diff --git a/CHANGELOG.md b/CHANGELOG.md index fa68c79744e..9f869e88cfb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,29 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.90.0 - 2026-06-16 +### Added +- Support for ExaDB-D Public Cloud in the Operator Access Control service +- Support for cross region replication with hot standby in the PostgreSQL service +- Support for starting and stopping DB systems in the PostgreSQL service +- Support for Kerberos authentication in the PostgreSQL service +- Support for performance insights in the PostgreSQL service +- Support for log analytics integration in the Application Performance Monitoring Control Plane service +- Support for storing large data files in Application Performance Monitoring configurations in the Application Performance Monitoring service +- Support for compute clusters and host groups in the Kubernetes Engine service +- Support for Zero Trust Packet Routing (ZPR) security attributes on private endpoints in the Object Storage service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Cloud Migrations service +- Support for Zero Trust Packet Routing (ZPR) security attributes in the Secure Desktops service +- Support for forcefully restarting and stopping Autonomous Databases and Autonomous Container Databases in the Database service +- Support for restarting Oracle Rest Data Services (ORDS) services on Autonomous VM Clusters and Cloud Autonomous VM Clusters in the Database service +- Support for triggering forced reboot and stop of DB nodes in ExaDB-D, ExaDB-XS and ExaDB-C@C in the Database service +- Support for additional coordinator node pools for OCI Search in the OpenSearch service +- Support for multi-link organizations in the Organizations service + +### Breaking Changes +- Class `com.oracle.bmc.opensearch.model.CustomerLoggingDetails` has been removed from the OpenSearch service +- Class `com.oracle.bmc.tenantmanagercontrolplane.model.ReviveWorkflowInstanceDetails` has been removed from the Organizations service + ## 3.89.1 - 2026-06-09 ### Added - Support for B200 shapes in dedicated AI clusters in the Generative AI service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index fdf5edf68a0..f4185bd31af 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-addons/bmc-adk/pom.xml b/bmc-addons/bmc-adk/pom.xml index 2619bd28403..d19e3debda8 100644 --- a/bmc-addons/bmc-adk/pom.xml +++ b/bmc-addons/bmc-adk/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.89.1 + 3.90.0 oci-java-sdk-addons-adk diff --git a/bmc-addons/bmc-aispeech-realtime/pom.xml b/bmc-addons/bmc-aispeech-realtime/pom.xml index 2e522715ee3..5521e2ed74f 100644 --- a/bmc-addons/bmc-aispeech-realtime/pom.xml +++ b/bmc-addons/bmc-aispeech-realtime/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.89.1 + 3.90.0 ../pom.xml 4.0.0 @@ -53,12 +53,12 @@ com.oracle.oci.sdk oci-java-sdk-aispeech - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 compile diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 2f5b4ca3f7c..7d7f2b4af11 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.89.1 + 3.90.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.89.1 + 3.90.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index ee070d70dce..5e524e4ca8f 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.89.1 + 3.90.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.89.1 + 3.90.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.89.1 + 3.90.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 71dbecbf10e..6d57b3ee481 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.89.1 + 3.90.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 3633d7d66b9..34908e1b8f2 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.89.1 + 3.90.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.89.1 + 3.90.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.89.1 + 3.90.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.89.1 + 3.90.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 843ee3be86b..20075d44d22 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.89.1 + 3.90.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index 47463422abd..7a711321e43 100644 --- a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.89.1 + 3.90.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.89.1 + 3.90.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.89.1 + 3.90.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index 3b02f7ace8a..6d9209d7ffb 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.89.1 + 3.90.0 ../pom.xml @@ -61,7 +61,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 5b41392baba..d690f0a3632 100644 --- a/bmc-addons/bmc-sse-support-jersey3/pom.xml +++ b/bmc-addons/bmc-sse-support-jersey3/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.89.1 + 3.90.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.89.1 + 3.90.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.89.1 + 3.90.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index d0fdbad2099..b4786ad6e76 100644 --- a/bmc-addons/bmc-sse-support/pom.xml +++ b/bmc-addons/bmc-sse-support/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.89.1 + 3.90.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.89.1 + 3.90.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index d01e8bf9ccb..0de5e51cf19 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index da34ec777e7..f30d626e671 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-aidataplatform/pom.xml b/bmc-aidataplatform/pom.xml index 5afc2f6b6b7..22133c29f21 100644 --- a/bmc-aidataplatform/pom.xml +++ b/bmc-aidataplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-aidataplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 369547c24f4..f152d568441 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 64a9b3273a3..9b77d07b1d0 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index a55dd156c5a..5f3d452f59d 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 285661d063d..cafd78c084a 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 318417a23f0..edac822244b 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 1904c624e2c..41a895efdd7 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-apiaccesscontrol/pom.xml b/bmc-apiaccesscontrol/pom.xml index c848a61ea2f..e94bd124b60 100644 --- a/bmc-apiaccesscontrol/pom.xml +++ b/bmc-apiaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-apiaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index fddc2cc7258..509f434933d 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-apiplatform/pom.xml b/bmc-apiplatform/pom.xml index dba14f62a9e..105c42303eb 100644 --- a/bmc-apiplatform/pom.xml +++ b/bmc-apiplatform/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-apiplatform @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 2a2a94e3d1d..d34a07af709 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java index 6f74c18179d..70d1f62a659 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/Config.java @@ -112,6 +112,21 @@ public interface Config extends AutoCloseable { */ DeleteConfigResponse deleteConfig(DeleteConfigRequest request); + /** + * Removes the data file. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use DeleteDataFile API. + */ + DeleteDataFileResponse deleteDataFile(DeleteDataFileRequest request); + /** * Exports configurations for the whole domain by domainId. * @@ -143,6 +158,21 @@ public interface Config extends AutoCloseable { */ GetConfigResponse getConfig(GetConfigRequest request); + /** + * Retrieves the Data file with the specified name and type. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use GetDataFile API. + */ + GetDataFileResponse getDataFile(GetDataFileRequest request); + /** * The domain-wide agents matching attribute key. * @@ -160,6 +190,21 @@ public interface Config extends AutoCloseable { GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( GetMatchAgentsWithAttributeKeyRequest request); + /** + * Returns metadata about the datafile. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use HeadDataFile API. + */ + HeadDataFileResponse headDataFile(HeadDataFileRequest request); + /** * Import configurations Item(s) with its dependencies into a destination domain. * @@ -191,6 +236,66 @@ GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( */ ListConfigsResponse listConfigs(ListConfigsRequest request); + /** + * Fetches a list of Data files using some parameters. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListDataFiles API. + */ + ListDataFilesResponse listDataFiles(ListDataFilesRequest request); + + /** + * Creates a new data file or replaces an existing one with the same name and type. + * + *

Note: This operation consumes a stream. + * + *

If the stream supports {@link java.io.InputStream#mark(int)} and {@link + * java.io.InputStream#reset()}, when a retry is necessary, the stream is reset so it starts at + * the beginning (or whatever the stream's position was at the time this operation is called}. + * + *

Note this means that if the caller has used {@link java.io.InputStream#mark(int)} before, + * then the mark will not be the same anymore after this operation, and a subsequent call to + * {@link java.io.InputStream#reset()} by the caller will reset the stream not to the caller's + * mark, but to the position the stream was in when this operation was called. + * + *

If the stream is a {@link java.io.FileInputStream}, and the stream's {@link + * java.nio.channels.FileChannel} position can be changed (like for a regular file), the stream + * will be wrapped in such a way that it does provide support for {@link + * java.io.InputStream#mark(int)} and {@link java.io.InputStream#reset()}. Then the same + * procedure as above is followed. If the stream's {@link java.nio.channels.FileChannel} + * position cannot be changed (like for a named pipe), then the stream's contents will be + * buffered in memory, as described below. + * + *

If the stream does not support {@link java.io.InputStream#mark(int)} and {@link + * java.io.InputStream#reset()}, then the stream is wrapped in a {@link + * java.io.BufferedInputStream}, which means the entire contents may be buffered in memory. Then + * the same procedure as above is followed. + * + *

The contents of the stream, except when the stream is a {@link java.io.FileInputStream} + * whose {@link java.nio.channels.FileChannel} position can be changed, should be less than 2 + * GiB in size if retries are used. This is because streams 2 GiB in size or larger do no + * guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in + * retries and manage retries yourself. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use PutDataFile API. + */ + PutDataFileResponse putDataFile(PutDataFileRequest request); + /** * Returns all metrics associated with the specified namespace. * diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java index c59bc13535e..3ba39c6fa06 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsync.java @@ -109,6 +109,21 @@ java.util.concurrent.Future deleteConfig( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Removes the data file. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future deleteDataFile( + DeleteDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Exports configurations for the whole domain by domainId. * @@ -139,6 +154,20 @@ java.util.concurrent.Future getConfig( GetConfigRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Retrieves the Data file with the specified name and type. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getDataFile( + GetDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * The domain-wide agents matching attribute key. * @@ -157,6 +186,21 @@ java.util.concurrent.Future getConfig( GetMatchAgentsWithAttributeKeyResponse> handler); + /** + * Returns metadata about the datafile. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future headDataFile( + HeadDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Import configurations Item(s) with its dependencies into a destination domain. * @@ -187,6 +231,35 @@ java.util.concurrent.Future listConfigs( ListConfigsRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Fetches a list of Data files using some parameters. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listDataFiles( + ListDataFilesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Creates a new data file or replaces an existing one with the same name and type. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future putDataFile( + PutDataFileRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Returns all metrics associated with the specified namespace. * diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java index 51005386300..fe9e60d4c41 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigAsyncClient.java @@ -43,7 +43,20 @@ public class ConfigAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncCli com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + ConfigAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { super(builder, authenticationDetailsProvider); + + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "ConfigAsyncClient", "getDataFile")); + } } /** @@ -61,6 +74,8 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder { + private boolean isStreamWarningEnabled = true; + private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "apmconfig"; @@ -70,6 +85,17 @@ private Builder(com.oracle.bmc.Service service) { com.oracle.bmc.http.signing.SigningStrategy.STANDARD); } + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + /** * Build the client. * @@ -80,7 +106,8 @@ public ConfigAsyncClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new ConfigAsyncClient(this, authenticationDetailsProvider); + return new ConfigAsyncClient( + this, authenticationDetailsProvider, isStreamWarningEnabled); } } @@ -197,6 +224,42 @@ public java.util.concurrent.Future deleteConfig( .callAsync(handler); } + @Override + public java.util.concurrent.Future deleteDataFile( + DeleteDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteDataFileRequest, DeleteDataFileResponse> + handler) { + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, DeleteDataFileResponse::builder) + .logger(LOG, "deleteDataFile") + .serviceDetails( + "Config", + "DeleteDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/DeleteDataFile") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDataFileRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .handleResponseHeaderString( + "opc-request-id", DeleteDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", DeleteDataFileResponse.Builder::opcClientRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future exportConfiguration( ExportConfigurationRequest request, @@ -265,6 +328,56 @@ public java.util.concurrent.Future getConfig( .callAsync(handler); } + @Override + public java.util.concurrent.Future getDataFile( + GetDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, GetDataFileResponse::builder) + .logger(LOG, "getDataFile") + .serviceDetails( + "Config", + "GetDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/GetDataFile") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDataFileRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .handleBody(java.io.InputStream.class, GetDataFileResponse.Builder::inputStream) + .handleResponseHeaderString("etag", GetDataFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", GetDataFileResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "content-type", GetDataFileResponse.Builder::contentType) + .handleResponseHeaderLong( + "content-length", GetDataFileResponse.Builder::contentLength) + .handleResponseHeaderString("content-md5", GetDataFileResponse.Builder::contentMd5) + .handleResponseHeaderString( + "content-encoding", GetDataFileResponse.Builder::contentEncoding) + .handleResponseHeaderString( + "content-language", GetDataFileResponse.Builder::contentLanguage) + .handleResponseHeaderString( + "content-disposition", GetDataFileResponse.Builder::contentDisposition) + .handleResponseHeaderDate( + "last-modified", GetDataFileResponse.Builder::lastModified) + .handleResponseHeaderString("metadata", GetDataFileResponse.Builder::metadata) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getMatchAgentsWithAttributeKey( @@ -300,6 +413,55 @@ public java.util.concurrent.Future getConfig( .callAsync(handler); } + @Override + public java.util.concurrent.Future headDataFile( + HeadDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, HeadDataFileResponse::builder) + .logger(LOG, "headDataFile") + .serviceDetails( + "Config", + "HeadDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/HeadDataFile") + .method(com.oracle.bmc.http.client.Method.HEAD) + .requestBuilder(HeadDataFileRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .handleResponseHeaderString("etag", HeadDataFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", HeadDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", HeadDataFileResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "content-type", HeadDataFileResponse.Builder::contentType) + .handleResponseHeaderLong( + "content-length", HeadDataFileResponse.Builder::contentLength) + .handleResponseHeaderString("content-md5", HeadDataFileResponse.Builder::contentMd5) + .handleResponseHeaderString( + "content-encoding", HeadDataFileResponse.Builder::contentEncoding) + .handleResponseHeaderString( + "content-language", HeadDataFileResponse.Builder::contentLanguage) + .handleResponseHeaderString( + "content-disposition", HeadDataFileResponse.Builder::contentDisposition) + .handleResponseHeaderDate( + "last-modified", HeadDataFileResponse.Builder::lastModified) + .handleResponseHeaderString("metadata", HeadDataFileResponse.Builder::metadata) + .callAsync(handler); + } + @Override public java.util.concurrent.Future importConfiguration( ImportConfigurationRequest request, @@ -391,6 +553,96 @@ public java.util.concurrent.Future listConfigs( .callAsync(handler); } + @Override + public java.util.concurrent.Future listDataFiles( + ListDataFilesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + return clientCall(request, ListDataFilesResponse::builder) + .logger(LOG, "listDataFiles") + .serviceDetails( + "Config", + "ListDataFiles", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFileSummaryCollection/ListDataFiles") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataFilesRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("timeLastModifiedBefore", request.getTimeLastModifiedBefore()) + .appendQueryParam("timeLastModifiedAfter", request.getTimeLastModifiedAfter()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("metadata", request.getMetadata()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .handleBody( + com.oracle.bmc.apmconfig.model.DataFileSummaryCollection.class, + ListDataFilesResponse.Builder::dataFileSummaryCollection) + .handleResponseHeaderString( + "opc-client-request-id", ListDataFilesResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", ListDataFilesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDataFilesResponse.Builder::opcNextPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future putDataFile( + PutDataFileRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getPutDataFileBody(), "putDataFileBody is required"); + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, PutDataFileResponse::builder) + .logger(LOG, "putDataFile") + .serviceDetails( + "Config", + "PutDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/PutDataFile") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(PutDataFileRequest::builder) + .obmcsSigningStrategy(com.oracle.bmc.http.signing.SigningStrategy.EXCLUDE_BODY) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("Content-MD5", request.getContentMD5()) + .appendHeader("Content-Type", request.getContentType()) + .appendHeader("Content-Language", request.getContentLanguage()) + .appendHeader("Content-Encoding", request.getContentEncoding()) + .appendHeader("Content-Disposition", request.getContentDisposition()) + .appendHeader("metadata", request.getMetadata()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .hasBinaryRequestBody() + .hasBody() + .handleResponseHeaderString("etag", PutDataFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", PutDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", PutDataFileResponse.Builder::opcClientRequestId) + .handleResponseHeaderString("content-md5", PutDataFileResponse.Builder::contentMd5) + .handleResponseHeaderDate( + "last-modified", PutDataFileResponse.Builder::lastModified) + .callAsync(handler); + } + @Override public java.util.concurrent.Future retrieveNamespaceMetrics( RetrieveNamespaceMetricsRequest request, diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java index 5cfdfd619ab..d7331d9daf3 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigClient.java @@ -31,12 +31,24 @@ public class ConfigClient extends com.oracle.bmc.http.internal.BaseSyncClient im com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder, authenticationDetailsProvider, true); + } + + ConfigClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + boolean isStreamWarningEnabled) { super( builder, authenticationDetailsProvider, CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); this.paginators = new ConfigPaginators(this); + if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { + LOG.warn( + com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( + "ConfigClient", "getDataFile")); + } } /** @@ -54,6 +66,8 @@ public static Builder builder() { */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder { + private boolean isStreamWarningEnabled = true; + private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "apmconfig"; @@ -63,6 +77,17 @@ private Builder(com.oracle.bmc.Service service) { com.oracle.bmc.http.signing.SigningStrategy.STANDARD); } + /** + * Enable/disable the stream warnings for the client + * + * @param isStreamWarningEnabled executorService + * @return this builder + */ + public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { + this.isStreamWarningEnabled = isStreamWarningEnabled; + return this; + } + /** * Build the client. * @@ -73,7 +98,7 @@ public ConfigClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { - return new ConfigClient(this, authenticationDetailsProvider); + return new ConfigClient(this, authenticationDetailsProvider, isStreamWarningEnabled); } } @@ -183,6 +208,39 @@ public DeleteConfigResponse deleteConfig(DeleteConfigRequest request) { .callSync(); } + @Override + public DeleteDataFileResponse deleteDataFile(DeleteDataFileRequest request) { + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, DeleteDataFileResponse::builder) + .logger(LOG, "deleteDataFile") + .serviceDetails( + "Config", + "DeleteDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/DeleteDataFile") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteDataFileRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", DeleteDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", DeleteDataFileResponse.Builder::opcClientRequestId) + .callSync(); + } + @Override public ExportConfigurationResponse exportConfiguration(ExportConfigurationRequest request) { Objects.requireNonNull( @@ -246,6 +304,54 @@ public GetConfigResponse getConfig(GetConfigRequest request) { .callSync(); } + @Override + public GetDataFileResponse getDataFile(GetDataFileRequest request) { + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, GetDataFileResponse::builder) + .logger(LOG, "getDataFile") + .serviceDetails( + "Config", + "GetDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/GetDataFile") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetDataFileRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .handleBody(java.io.InputStream.class, GetDataFileResponse.Builder::inputStream) + .handleResponseHeaderString("etag", GetDataFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", GetDataFileResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "content-type", GetDataFileResponse.Builder::contentType) + .handleResponseHeaderLong( + "content-length", GetDataFileResponse.Builder::contentLength) + .handleResponseHeaderString("content-md5", GetDataFileResponse.Builder::contentMd5) + .handleResponseHeaderString( + "content-encoding", GetDataFileResponse.Builder::contentEncoding) + .handleResponseHeaderString( + "content-language", GetDataFileResponse.Builder::contentLanguage) + .handleResponseHeaderString( + "content-disposition", GetDataFileResponse.Builder::contentDisposition) + .handleResponseHeaderDate( + "last-modified", GetDataFileResponse.Builder::lastModified) + .handleResponseHeaderString("metadata", GetDataFileResponse.Builder::metadata) + .callSync(); + } + @Override public GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( GetMatchAgentsWithAttributeKeyRequest request) { @@ -277,6 +383,53 @@ public GetMatchAgentsWithAttributeKeyResponse getMatchAgentsWithAttributeKey( .callSync(); } + @Override + public HeadDataFileResponse headDataFile(HeadDataFileRequest request) { + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, HeadDataFileResponse::builder) + .logger(LOG, "headDataFile") + .serviceDetails( + "Config", + "HeadDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/HeadDataFile") + .method(com.oracle.bmc.http.client.Method.HEAD) + .requestBuilder(HeadDataFileRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString("etag", HeadDataFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", HeadDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", HeadDataFileResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "content-type", HeadDataFileResponse.Builder::contentType) + .handleResponseHeaderLong( + "content-length", HeadDataFileResponse.Builder::contentLength) + .handleResponseHeaderString("content-md5", HeadDataFileResponse.Builder::contentMd5) + .handleResponseHeaderString( + "content-encoding", HeadDataFileResponse.Builder::contentEncoding) + .handleResponseHeaderString( + "content-language", HeadDataFileResponse.Builder::contentLanguage) + .handleResponseHeaderString( + "content-disposition", HeadDataFileResponse.Builder::contentDisposition) + .handleResponseHeaderDate( + "last-modified", HeadDataFileResponse.Builder::lastModified) + .handleResponseHeaderString("metadata", HeadDataFileResponse.Builder::metadata) + .callSync(); + } + @Override public ImportConfigurationResponse importConfiguration(ImportConfigurationRequest request) { Objects.requireNonNull( @@ -363,6 +516,92 @@ public ListConfigsResponse listConfigs(ListConfigsRequest request) { .callSync(); } + @Override + public ListDataFilesResponse listDataFiles(ListDataFilesRequest request) { + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + return clientCall(request, ListDataFilesResponse::builder) + .logger(LOG, "listDataFiles") + .serviceDetails( + "Config", + "ListDataFiles", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFileSummaryCollection/ListDataFiles") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDataFilesRequest::builder) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .appendQueryParam("name", request.getName()) + .appendQueryParam("timeLastModifiedBefore", request.getTimeLastModifiedBefore()) + .appendQueryParam("timeLastModifiedAfter", request.getTimeLastModifiedAfter()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .accept("application/json") + .appendHeader("metadata", request.getMetadata()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.apmconfig.model.DataFileSummaryCollection.class, + ListDataFilesResponse.Builder::dataFileSummaryCollection) + .handleResponseHeaderString( + "opc-client-request-id", ListDataFilesResponse.Builder::opcClientRequestId) + .handleResponseHeaderString( + "opc-request-id", ListDataFilesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDataFilesResponse.Builder::opcNextPage) + .callSync(); + } + + @Override + public PutDataFileResponse putDataFile(PutDataFileRequest request) { + Objects.requireNonNull(request.getPutDataFileBody(), "putDataFileBody is required"); + + Validate.notBlank(request.getDataFileName(), "dataFileName must not be blank"); + Objects.requireNonNull(request.getApmDomainId(), "apmDomainId is required"); + + Objects.requireNonNull(request.getApmType(), "apmType is required"); + + return clientCall(request, PutDataFileResponse::builder) + .logger(LOG, "putDataFile") + .serviceDetails( + "Config", + "PutDataFile", + "https://docs.oracle.com/iaas/api/#/en/apm-config/20210201/DataFile/PutDataFile") + .method(com.oracle.bmc.http.client.Method.PUT) + .requestBuilder(PutDataFileRequest::builder) + .obmcsSigningStrategy(com.oracle.bmc.http.signing.SigningStrategy.EXCLUDE_BODY) + .basePath("/20210201") + .appendPathParam("dataFiles") + .appendPathParam(request.getDataFileName()) + .appendQueryParam("apmDomainId", request.getApmDomainId()) + .appendQueryParam("apmType", request.getApmType()) + .accept("application/json") + .appendHeader("Content-MD5", request.getContentMD5()) + .appendHeader("Content-Type", request.getContentType()) + .appendHeader("Content-Language", request.getContentLanguage()) + .appendHeader("Content-Encoding", request.getContentEncoding()) + .appendHeader("Content-Disposition", request.getContentDisposition()) + .appendHeader("metadata", request.getMetadata()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-client-request-id", request.getOpcClientRequestId()) + .operationUsesDefaultRetries() + .hasBinaryRequestBody() + .hasBody() + .handleResponseHeaderString("etag", PutDataFileResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", PutDataFileResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-client-request-id", PutDataFileResponse.Builder::opcClientRequestId) + .handleResponseHeaderString("content-md5", PutDataFileResponse.Builder::contentMd5) + .handleResponseHeaderDate( + "last-modified", PutDataFileResponse.Builder::lastModified) + .callSync(); + } + @Override public RetrieveNamespaceMetricsResponse retrieveNamespaceMetrics( RetrieveNamespaceMetricsRequest request) { diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java index e2d9068357e..e298f35af18 100644 --- a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/ConfigPaginators.java @@ -154,4 +154,118 @@ public java.util.List apply( } }); } + + /** + * Creates a new iterable which will iterate over the responses received from the listDataFiles + * operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listDataFilesResponseIterator( + final ListDataFilesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDataFilesRequest.Builder, ListDataFilesRequest, ListDataFilesResponse>( + new java.util.function.Supplier() { + @Override + public ListDataFilesRequest.Builder get() { + return ListDataFilesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDataFilesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder>, + ListDataFilesRequest>() { + @Override + public ListDataFilesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListDataFilesResponse apply(ListDataFilesRequest request) { + return client.listDataFiles(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.apmconfig.model.DataFileSummary} objects contained in responses from the + * listDataFiles operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.apmconfig.model.DataFileSummary} objects contained in responses received + * from the service. + */ + public Iterable listDataFilesRecordIterator( + final ListDataFilesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDataFilesRequest.Builder, + ListDataFilesRequest, + ListDataFilesResponse, + com.oracle.bmc.apmconfig.model.DataFileSummary>( + new java.util.function.Supplier() { + @Override + public ListDataFilesRequest.Builder get() { + return ListDataFilesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDataFilesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder>, + ListDataFilesRequest>() { + @Override + public ListDataFilesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDataFilesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function() { + @Override + public ListDataFilesResponse apply(ListDataFilesRequest request) { + return client.listDataFiles(request); + } + }, + new java.util.function.Function< + ListDataFilesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListDataFilesResponse response) { + return response.getDataFileSummaryCollection().getItems(); + } + }); + } } diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFile.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFile.java new file mode 100644 index 00000000000..6a5eb1b7785 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFile.java @@ -0,0 +1,97 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.model; + +/** + * The data file to be uploaded.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataFile.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataFile extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + public DataFile() { + super(); + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataFile build() { + DataFile model = new DataFile(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataFile model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataFile("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataFile)) { + return false; + } + + DataFile other = (DataFile) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummary.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummary.java new file mode 100644 index 00000000000..00513e6d083 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummary.java @@ -0,0 +1,346 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.model; + +/** + * Properties related to the file.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataFileSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataFileSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "name", + "apmType", + "sizeInBytes", + "md5", + "timeLastModified", + "metadata" + }) + public DataFileSummary( + String name, + String apmType, + Long sizeInBytes, + String md5, + java.util.Date timeLastModified, + java.util.Map metadata) { + super(); + this.name = name; + this.apmType = apmType; + this.sizeInBytes = sizeInBytes; + this.md5 = md5; + this.timeLastModified = timeLastModified; + this.metadata = metadata; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name to use as identifier for the data file. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * The name to use as identifier for the data file. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** The type of the data file, indicating its intended use Example: {@code source_map} */ + @com.fasterxml.jackson.annotation.JsonProperty("apmType") + private String apmType; + + /** + * The type of the data file, indicating its intended use Example: {@code source_map} + * + * @param apmType the value to set + * @return this builder + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + this.__explicitlySet__.add("apmType"); + return this; + } + /** Size of the object in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private Long sizeInBytes; + + /** + * Size of the object in bytes. + * + * @param sizeInBytes the value to set + * @return this builder + */ + public Builder sizeInBytes(Long sizeInBytes) { + this.sizeInBytes = sizeInBytes; + this.__explicitlySet__.add("sizeInBytes"); + return this; + } + /** Base64-encoded MD5 hash of the object data. */ + @com.fasterxml.jackson.annotation.JsonProperty("md5") + private String md5; + + /** + * Base64-encoded MD5 hash of the object data. + * + * @param md5 the value to set + * @return this builder + */ + public Builder md5(String md5) { + this.md5 = md5; + this.__explicitlySet__.add("md5"); + return this; + } + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastModified") + private java.util.Date timeLastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @param timeLastModified the value to set + * @return this builder + */ + public Builder timeLastModified(java.util.Date timeLastModified) { + this.timeLastModified = timeLastModified; + this.__explicitlySet__.add("timeLastModified"); + return this; + } + /** Metadata properties related to the data file. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private java.util.Map metadata; + + /** + * Metadata properties related to the data file. + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(java.util.Map metadata) { + this.metadata = metadata; + this.__explicitlySet__.add("metadata"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataFileSummary build() { + DataFileSummary model = + new DataFileSummary( + this.name, + this.apmType, + this.sizeInBytes, + this.md5, + this.timeLastModified, + this.metadata); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataFileSummary model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("apmType")) { + this.apmType(model.getApmType()); + } + if (model.wasPropertyExplicitlySet("sizeInBytes")) { + this.sizeInBytes(model.getSizeInBytes()); + } + if (model.wasPropertyExplicitlySet("md5")) { + this.md5(model.getMd5()); + } + if (model.wasPropertyExplicitlySet("timeLastModified")) { + this.timeLastModified(model.getTimeLastModified()); + } + if (model.wasPropertyExplicitlySet("metadata")) { + this.metadata(model.getMetadata()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The name to use as identifier for the data file. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * The name to use as identifier for the data file. + * + * @return the value + */ + public String getName() { + return name; + } + + /** The type of the data file, indicating its intended use Example: {@code source_map} */ + @com.fasterxml.jackson.annotation.JsonProperty("apmType") + private final String apmType; + + /** + * The type of the data file, indicating its intended use Example: {@code source_map} + * + * @return the value + */ + public String getApmType() { + return apmType; + } + + /** Size of the object in bytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("sizeInBytes") + private final Long sizeInBytes; + + /** + * Size of the object in bytes. + * + * @return the value + */ + public Long getSizeInBytes() { + return sizeInBytes; + } + + /** Base64-encoded MD5 hash of the object data. */ + @com.fasterxml.jackson.annotation.JsonProperty("md5") + private final String md5; + + /** + * Base64-encoded MD5 hash of the object data. + * + * @return the value + */ + public String getMd5() { + return md5; + } + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeLastModified") + private final java.util.Date timeLastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getTimeLastModified() { + return timeLastModified; + } + + /** Metadata properties related to the data file. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadata") + private final java.util.Map metadata; + + /** + * Metadata properties related to the data file. + * + * @return the value + */ + public java.util.Map getMetadata() { + return metadata; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataFileSummary("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", apmType=").append(String.valueOf(this.apmType)); + sb.append(", sizeInBytes=").append(String.valueOf(this.sizeInBytes)); + sb.append(", md5=").append(String.valueOf(this.md5)); + sb.append(", timeLastModified=").append(String.valueOf(this.timeLastModified)); + sb.append(", metadata=").append(String.valueOf(this.metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataFileSummary)) { + return false; + } + + DataFileSummary other = (DataFileSummary) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.sizeInBytes, other.sizeInBytes) + && java.util.Objects.equals(this.md5, other.md5) + && java.util.Objects.equals(this.timeLastModified, other.timeLastModified) + && java.util.Objects.equals(this.metadata, other.metadata) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.sizeInBytes == null ? 43 : this.sizeInBytes.hashCode()); + result = (result * PRIME) + (this.md5 == null ? 43 : this.md5.hashCode()); + result = + (result * PRIME) + + (this.timeLastModified == null ? 43 : this.timeLastModified.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummaryCollection.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummaryCollection.java new file mode 100644 index 00000000000..cc7a4184d21 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/model/DataFileSummaryCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.model; + +/** + * A collection of Data File summaries.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DataFileSummaryCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DataFileSummaryCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DataFileSummaryCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A list of Data File summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * A list of Data File summaries. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DataFileSummaryCollection build() { + DataFileSummaryCollection model = new DataFileSummaryCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DataFileSummaryCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A list of Data File summaries. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * A list of Data File summaries. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DataFileSummaryCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DataFileSummaryCollection)) { + return false; + } + + DataFileSummaryCollection other = (DataFileSummaryCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/DeleteDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/DeleteDataFileRequest.java new file mode 100644 index 00000000000..fb9571b89a4 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/DeleteDataFileRequest.java @@ -0,0 +1,347 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use DeleteDataFileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class DeleteDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The name of the data file. */ + private String dataFileName; + + /** The name of the data file. */ + public String getDataFileName() { + return dataFileName; + } + /** The APM Domain ID the request is intended for. */ + private String apmDomainId; + + /** The APM Domain ID the request is intended for. */ + public String getApmDomainId() { + return apmDomainId; + } + /** The type of the data file. */ + private String apmType; + + /** The type of the data file. */ + public String getApmType() { + return apmType; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteDataFileRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The name of the data file. */ + private String dataFileName = null; + + /** + * The name of the data file. + * + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** The APM Domain ID the request is intended for. */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** The type of the data file. */ + private String apmType = null; + + /** + * The type of the data file. + * + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteDataFileRequest o) { + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteDataFileRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of DeleteDataFileRequest + */ + public DeleteDataFileRequest build() { + DeleteDataFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of DeleteDataFileRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteDataFileRequest + */ + public DeleteDataFileRequest buildWithoutInvocationCallback() { + DeleteDataFileRequest request = new DeleteDataFileRequest(); + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new DeleteDataFileRequest(dataFileName, apmDomainId, apmType, ifMatch, opcRetryToken, + // opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .ifMatch(ifMatch) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDataFileRequest)) { + return false; + } + + DeleteDataFileRequest other = (DeleteDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/GetDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/GetDataFileRequest.java new file mode 100644 index 00000000000..b9290e2df5d --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/GetDataFileRequest.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use GetDataFileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class GetDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The name of the data file. */ + private String dataFileName; + + /** The name of the data file. */ + public String getDataFileName() { + return dataFileName; + } + /** The APM Domain ID the request is intended for. */ + private String apmDomainId; + + /** The APM Domain ID the request is intended for. */ + public String getApmDomainId() { + return apmDomainId; + } + /** The type of the data file. */ + private String apmType; + + /** The type of the data file. */ + public String getApmType() { + return apmType; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetDataFileRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The name of the data file. */ + private String dataFileName = null; + + /** + * The name of the data file. + * + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** The APM Domain ID the request is intended for. */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** The type of the data file. */ + private String apmType = null; + + /** + * The type of the data file. + * + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetDataFileRequest o) { + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetDataFileRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetDataFileRequest + */ + public GetDataFileRequest build() { + GetDataFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetDataFileRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetDataFileRequest + */ + public GetDataFileRequest buildWithoutInvocationCallback() { + GetDataFileRequest request = new GetDataFileRequest(); + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new GetDataFileRequest(dataFileName, apmDomainId, apmType, opcRetryToken, + // opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataFileRequest)) { + return false; + } + + GetDataFileRequest other = (GetDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/HeadDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/HeadDataFileRequest.java new file mode 100644 index 00000000000..ec3d1e670ba --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/HeadDataFileRequest.java @@ -0,0 +1,302 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use HeadDataFileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class HeadDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The name of the data file. */ + private String dataFileName; + + /** The name of the data file. */ + public String getDataFileName() { + return dataFileName; + } + /** The APM Domain ID the request is intended for. */ + private String apmDomainId; + + /** The APM Domain ID the request is intended for. */ + public String getApmDomainId() { + return apmDomainId; + } + /** The type of the data file. */ + private String apmType; + + /** The type of the data file. */ + public String getApmType() { + return apmType; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + HeadDataFileRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The name of the data file. */ + private String dataFileName = null; + + /** + * The name of the data file. + * + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** The APM Domain ID the request is intended for. */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** The type of the data file. */ + private String apmType = null; + + /** + * The type of the data file. + * + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(HeadDataFileRequest o) { + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of HeadDataFileRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of HeadDataFileRequest + */ + public HeadDataFileRequest build() { + HeadDataFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of HeadDataFileRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of HeadDataFileRequest + */ + public HeadDataFileRequest buildWithoutInvocationCallback() { + HeadDataFileRequest request = new HeadDataFileRequest(); + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new HeadDataFileRequest(dataFileName, apmDomainId, apmType, opcRetryToken, + // opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HeadDataFileRequest)) { + return false; + } + + HeadDataFileRequest other = (HeadDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/ListDataFilesRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/ListDataFilesRequest.java new file mode 100644 index 00000000000..a62cc447cf0 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/ListDataFilesRequest.java @@ -0,0 +1,627 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use ListDataFilesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class ListDataFilesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The APM Domain ID the request is intended for. */ + private String apmDomainId; + + /** The APM Domain ID the request is intended for. */ + public String getApmDomainId() { + return apmDomainId; + } + /** The type of the data file. */ + private String apmType; + + /** The type of the data file. */ + public String getApmType() { + return apmType; + } + /** + * A filter to return resources that match the specified name. Supports regular expressions to + * filter data files. + */ + private String name; + + /** + * A filter to return resources that match the specified name. Supports regular expressions to + * filter data files. + */ + public String getName() { + return name; + } + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date timeLastModifiedBefore; + + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + public java.util.Date getTimeLastModifiedBefore() { + return timeLastModifiedBefore; + } + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date timeLastModifiedAfter; + + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + public java.util.Date getTimeLastModifiedAfter() { + return timeLastModifiedAfter; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * The maximum number of results per page, or items to return in a paginated "List" call. For + * information on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Example: + * {@code 50} + */ + private String page; + + /** + * The maximum number of results per page, or items to return in a paginated "List" call. For + * information on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Example: + * {@code 50} + */ + public String getPage() { + return page; + } + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * displayName sort order is case-sensitive. + */ + private com.oracle.bmc.apmconfig.model.SortOrders sortOrder; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * displayName sort order is case-sensitive. + */ + public com.oracle.bmc.apmconfig.model.SortOrders getSortOrder() { + return sortOrder; + } + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, + * timeCreated and timeUpdated is ascending. The displayName sort by is case-sensitive. + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, + * timeCreated and timeUpdated is ascending. The displayName sort by is case-sensitive. + */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + TimeUpdated("timeUpdated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for displayName, + * timeCreated and timeUpdated is ascending. The displayName sort by is case-sensitive. + */ + public SortBy getSortBy() { + return sortBy; + } + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + public String getMetadata() { + return metadata; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDataFilesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The APM Domain ID the request is intended for. */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** The type of the data file. */ + private String apmType = null; + + /** + * The type of the data file. + * + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * A filter to return resources that match the specified name. Supports regular expressions + * to filter data files. + */ + private String name = null; + + /** + * A filter to return resources that match the specified name. Supports regular expressions + * to filter data files. + * + * @param name the value to set + * @return this builder instance + */ + public Builder name(String name) { + this.name = name; + return this; + } + + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in + * [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date timeLastModifiedBefore = null; + + /** + * Return data files with time 'timeLastModified' before the specified time, expressed in + * [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @param timeLastModifiedBefore the value to set + * @return this builder instance + */ + public Builder timeLastModifiedBefore(java.util.Date timeLastModifiedBefore) { + this.timeLastModifiedBefore = timeLastModifiedBefore; + return this; + } + + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date timeLastModifiedAfter = null; + + /** + * Return data files with the 'timeLastModified' after the specified time, expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @param timeLastModifiedAfter the value to set + * @return this builder instance + */ + public Builder timeLastModifiedAfter(java.util.Date timeLastModifiedAfter) { + this.timeLastModifiedAfter = timeLastModifiedAfter; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * The maximum number of results per page, or items to return in a paginated "List" call. + * For information on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * Example: {@code 50} + */ + private String page = null; + + /** + * The maximum number of results per page, or items to return in a paginated "List" call. + * For information on how pagination works, see [List + * Pagination](https://docs.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * Example: {@code 50} + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * displayName sort order is case-sensitive. + */ + private com.oracle.bmc.apmconfig.model.SortOrders sortOrder = null; + + /** + * The sort order to use, either ascending ({@code ASC}) or descending ({@code DESC}). The + * displayName sort order is case-sensitive. + * + * @param sortOrder the value to set + * @return this builder instance + */ + public Builder sortOrder(com.oracle.bmc.apmconfig.model.SortOrders sortOrder) { + this.sortOrder = sortOrder; + return this; + } + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for + * displayName, timeCreated and timeUpdated is ascending. The displayName sort by is + * case-sensitive. + */ + private SortBy sortBy = null; + + /** + * The field to sort by. You can provide one "sortBy" value. The default order for + * displayName, timeCreated and timeUpdated is ascending. The displayName sort by is + * case-sensitive. + * + * @param sortBy the value to set + * @return this builder instance + */ + public Builder sortBy(SortBy sortBy) { + this.sortBy = sortBy; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata = null; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListDataFilesRequest o) { + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + name(o.getName()); + timeLastModifiedBefore(o.getTimeLastModifiedBefore()); + timeLastModifiedAfter(o.getTimeLastModifiedAfter()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + sortBy(o.getSortBy()); + metadata(o.getMetadata()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDataFilesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListDataFilesRequest + */ + public ListDataFilesRequest build() { + ListDataFilesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDataFilesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDataFilesRequest + */ + public ListDataFilesRequest buildWithoutInvocationCallback() { + ListDataFilesRequest request = new ListDataFilesRequest(); + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.name = name; + request.timeLastModifiedBefore = timeLastModifiedBefore; + request.timeLastModifiedAfter = timeLastModifiedAfter; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.sortBy = sortBy; + request.metadata = metadata; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new ListDataFilesRequest(apmDomainId, apmType, name, timeLastModifiedBefore, + // timeLastModifiedAfter, limit, page, sortOrder, sortBy, metadata, opcRetryToken, + // opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .apmDomainId(apmDomainId) + .apmType(apmType) + .name(name) + .timeLastModifiedBefore(timeLastModifiedBefore) + .timeLastModifiedAfter(timeLastModifiedAfter) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .sortBy(sortBy) + .metadata(metadata) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",name=").append(String.valueOf(this.name)); + sb.append(",timeLastModifiedBefore=").append(String.valueOf(this.timeLastModifiedBefore)); + sb.append(",timeLastModifiedAfter=").append(String.valueOf(this.timeLastModifiedAfter)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); + sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataFilesRequest)) { + return false; + } + + ListDataFilesRequest other = (ListDataFilesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals( + this.timeLastModifiedBefore, other.timeLastModifiedBefore) + && java.util.Objects.equals(this.timeLastModifiedAfter, other.timeLastModifiedAfter) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page) + && java.util.Objects.equals(this.sortOrder, other.sortOrder) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.timeLastModifiedBefore == null + ? 43 + : this.timeLastModifiedBefore.hashCode()); + result = + (result * PRIME) + + (this.timeLastModifiedAfter == null + ? 43 + : this.timeLastModifiedAfter.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/PutDataFileRequest.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/PutDataFileRequest.java new file mode 100644 index 00000000000..5af9641dd1a --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/requests/PutDataFileRequest.java @@ -0,0 +1,639 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.requests; + +import com.oracle.bmc.apmconfig.model.*; +/** + * Example: Click here to see how to use PutDataFileRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class PutDataFileRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The data file to be uploaded. */ + private java.io.InputStream putDataFileBody; + + /** The data file to be uploaded. */ + public java.io.InputStream getPutDataFileBody() { + return putDataFileBody; + } + /** The name of the data file. */ + private String dataFileName; + + /** The name of the data file. */ + public String getDataFileName() { + return dataFileName; + } + /** The APM Domain ID the request is intended for. */ + private String apmDomainId; + + /** The APM Domain ID the request is intended for. */ + public String getApmDomainId() { + return apmDomainId; + } + /** The type of the data file. */ + private String apmType; + + /** The type of the data file. */ + public String getApmType() { + return apmType; + } + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will perform a + * data integrity check by computing the MD5 of the received content and comparing it to the + * supplied value. + * + *

If the values do not match, the request will be rejected with an HTTP 400 error and a + * message such as: + * + *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header + * (HEADER_MD5)" + */ + private String contentMD5; + + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will perform a + * data integrity check by computing the MD5 of the received content and comparing it to the + * supplied value. + * + *

If the values do not match, the request will be rejected with an HTTP 400 error and a + * message such as: + * + *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header + * (HEADER_MD5)" + */ + public String getContentMD5() { + return contentMD5; + } + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. If + * not specified, the default is {@code application/octet-stream}. + * + *

This value can be used by recipients to determine how to interpret or render the content. + */ + private String contentType; + + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. If + * not specified, the default is {@code application/octet-stream}. + * + *

This value can be used by recipients to determine how to interpret or render the content. + */ + public String getContentType() { + return contentType; + } + /** + * Optional parameter that indicates the natural language of the content. This value can be used + * by clients or intermediaries to select or display content based on language preferences. + */ + private String contentLanguage; + + /** + * Optional parameter that indicates the natural language of the content. This value can be used + * by clients or intermediaries to select or display content based on language preferences. + */ + public String getContentLanguage() { + return contentLanguage; + } + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., gzip, + * deflate). This value can be used by recipients to determine how to decode the content. + */ + private String contentEncoding; + + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., gzip, + * deflate). This value can be used by recipients to determine how to decode the content. + */ + public String getContentEncoding() { + return contentEncoding; + } + /** + * Optional parameter that provides presentation information for how the content should be + * displayed or handled by the recipient. + * + *

For example, to prompt a file download with a custom filename: {@code attachment; + * filename="example.txt"} + */ + private String contentDisposition; + + /** + * Optional parameter that provides presentation information for how the content should be + * displayed or handled by the recipient. + * + *

For example, to prompt a file download with a custom filename: {@code attachment; + * filename="example.txt"} + */ + public String getContentDisposition() { + return contentDisposition; + } + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + public String getMetadata() { + return metadata; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request might be rejected. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** The client request ID for tracing. */ + private String opcClientRequestId; + + /** The client request ID for tracing. */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public java.io.InputStream getBody$() { + return putDataFileBody; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + PutDataFileRequest, java.io.InputStream> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The data file to be uploaded. */ + private java.io.InputStream putDataFileBody = null; + + /** + * The data file to be uploaded. + * + * @param putDataFileBody the value to set + * @return this builder instance + */ + public Builder putDataFileBody(java.io.InputStream putDataFileBody) { + this.putDataFileBody = putDataFileBody; + return this; + } + + /** The name of the data file. */ + private String dataFileName = null; + + /** + * The name of the data file. + * + * @param dataFileName the value to set + * @return this builder instance + */ + public Builder dataFileName(String dataFileName) { + this.dataFileName = dataFileName; + return this; + } + + /** The APM Domain ID the request is intended for. */ + private String apmDomainId = null; + + /** + * The APM Domain ID the request is intended for. + * + * @param apmDomainId the value to set + * @return this builder instance + */ + public Builder apmDomainId(String apmDomainId) { + this.apmDomainId = apmDomainId; + return this; + } + + /** The type of the data file. */ + private String apmType = null; + + /** + * The type of the data file. + * + * @param apmType the value to set + * @return this builder instance + */ + public Builder apmType(String apmType) { + this.apmType = apmType; + return this; + } + + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will + * perform a data integrity check by computing the MD5 of the received content and comparing + * it to the supplied value. + * + *

If the values do not match, the request will be rejected with an HTTP 400 error and a + * message such as: + * + *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 + * header (HEADER_MD5)" + */ + private String contentMD5 = null; + + /** + * Optional base64-encoded MD5 hash of the request body. If provided, the server will + * perform a data integrity check by computing the MD5 of the received content and comparing + * it to the supplied value. + * + *

If the values do not match, the request will be rejected with an HTTP 400 error and a + * message such as: + * + *

"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 + * header (HEADER_MD5)" + * + * @param contentMD5 the value to set + * @return this builder instance + */ + public Builder contentMD5(String contentMD5) { + this.contentMD5 = contentMD5; + return this; + } + + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. + * If not specified, the default is {@code application/octet-stream}. + * + *

This value can be used by recipients to determine how to interpret or render the + * content. + */ + private String contentType = null; + + /** + * Optional parameter specifying the media type (MIME type) of the request or response body. + * If not specified, the default is {@code application/octet-stream}. + * + *

This value can be used by recipients to determine how to interpret or render the + * content. + * + * @param contentType the value to set + * @return this builder instance + */ + public Builder contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Optional parameter that indicates the natural language of the content. This value can be + * used by clients or intermediaries to select or display content based on language + * preferences. + */ + private String contentLanguage = null; + + /** + * Optional parameter that indicates the natural language of the content. This value can be + * used by clients or intermediaries to select or display content based on language + * preferences. + * + * @param contentLanguage the value to set + * @return this builder instance + */ + public Builder contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., + * gzip, deflate). This value can be used by recipients to determine how to decode the + * content. + */ + private String contentEncoding = null; + + /** + * Optional parameter indicating the content encodings applied to the request body (e.g., + * gzip, deflate). This value can be used by recipients to determine how to decode the + * content. + * + * @param contentEncoding the value to set + * @return this builder instance + */ + public Builder contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Optional parameter that provides presentation information for how the content should be + * displayed or handled by the recipient. + * + *

For example, to prompt a file download with a custom filename: {@code attachment; + * filename="example.txt"} + */ + private String contentDisposition = null; + + /** + * Optional parameter that provides presentation information for how the content should be + * displayed or handled by the recipient. + * + *

For example, to prompt a file download with a custom filename: {@code attachment; + * filename="example.txt"} + * + * @param contentDisposition the value to set + * @return this builder instance + */ + public Builder contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata = null; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder instance + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcClientRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcClientRequestId the value to set + * @return this builder instance + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(PutDataFileRequest o) { + putDataFileBody(o.getPutDataFileBody()); + dataFileName(o.getDataFileName()); + apmDomainId(o.getApmDomainId()); + apmType(o.getApmType()); + contentMD5(o.getContentMD5()); + contentType(o.getContentType()); + contentLanguage(o.getContentLanguage()); + contentEncoding(o.getContentEncoding()); + contentDisposition(o.getContentDisposition()); + metadata(o.getMetadata()); + opcRetryToken(o.getOpcRetryToken()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of PutDataFileRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of PutDataFileRequest + */ + public PutDataFileRequest build() { + PutDataFileRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(java.io.InputStream body) { + putDataFileBody(body); + return this; + } + + /** + * Build the instance of PutDataFileRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of PutDataFileRequest + */ + public PutDataFileRequest buildWithoutInvocationCallback() { + PutDataFileRequest request = new PutDataFileRequest(); + request.putDataFileBody = putDataFileBody; + request.dataFileName = dataFileName; + request.apmDomainId = apmDomainId; + request.apmType = apmType; + request.contentMD5 = contentMD5; + request.contentType = contentType; + request.contentLanguage = contentLanguage; + request.contentEncoding = contentEncoding; + request.contentDisposition = contentDisposition; + request.metadata = metadata; + request.opcRetryToken = opcRetryToken; + request.opcClientRequestId = opcClientRequestId; + return request; + // new PutDataFileRequest(putDataFileBody, dataFileName, apmDomainId, apmType, + // contentMD5, contentType, contentLanguage, contentEncoding, contentDisposition, + // metadata, opcRetryToken, opcClientRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .putDataFileBody(putDataFileBody) + .dataFileName(dataFileName) + .apmDomainId(apmDomainId) + .apmType(apmType) + .contentMD5(contentMD5) + .contentType(contentType) + .contentLanguage(contentLanguage) + .contentEncoding(contentEncoding) + .contentDisposition(contentDisposition) + .metadata(metadata) + .opcRetryToken(opcRetryToken) + .opcClientRequestId(opcClientRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",putDataFileBody=").append(String.valueOf(this.putDataFileBody)); + sb.append(",dataFileName=").append(String.valueOf(this.dataFileName)); + sb.append(",apmDomainId=").append(String.valueOf(this.apmDomainId)); + sb.append(",apmType=").append(String.valueOf(this.apmType)); + sb.append(",contentMD5=").append(String.valueOf(this.contentMD5)); + sb.append(",contentType=").append(String.valueOf(this.contentType)); + sb.append(",contentLanguage=").append(String.valueOf(this.contentLanguage)); + sb.append(",contentEncoding=").append(String.valueOf(this.contentEncoding)); + sb.append(",contentDisposition=").append(String.valueOf(this.contentDisposition)); + sb.append(",metadata=").append(String.valueOf(this.metadata)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcClientRequestId=").append(String.valueOf(this.opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PutDataFileRequest)) { + return false; + } + + PutDataFileRequest other = (PutDataFileRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.putDataFileBody, other.putDataFileBody) + && java.util.Objects.equals(this.dataFileName, other.dataFileName) + && java.util.Objects.equals(this.apmDomainId, other.apmDomainId) + && java.util.Objects.equals(this.apmType, other.apmType) + && java.util.Objects.equals(this.contentMD5, other.contentMD5) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) + && java.util.Objects.equals(this.contentDisposition, other.contentDisposition) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.putDataFileBody == null ? 43 : this.putDataFileBody.hashCode()); + result = (result * PRIME) + (this.dataFileName == null ? 43 : this.dataFileName.hashCode()); + result = (result * PRIME) + (this.apmDomainId == null ? 43 : this.apmDomainId.hashCode()); + result = (result * PRIME) + (this.apmType == null ? 43 : this.apmType.hashCode()); + result = (result * PRIME) + (this.contentMD5 == null ? 43 : this.contentMD5.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = + (result * PRIME) + + (this.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = + (result * PRIME) + + (this.contentEncoding == null ? 43 : this.contentEncoding.hashCode()); + result = + (result * PRIME) + + (this.contentDisposition == null + ? 43 + : this.contentDisposition.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/DeleteDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/DeleteDataFileResponse.java new file mode 100644 index 00000000000..aace0a6cdda --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/DeleteDataFileResponse.java @@ -0,0 +1,179 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class DeleteDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcClientRequestId" + }) + private DeleteDataFileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcClientRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DeleteDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteDataFileResponse build() { + return new DeleteDataFileResponse( + __httpStatusCode__, headers, opcRequestId, opcClientRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DeleteDataFileResponse)) { + return false; + } + + DeleteDataFileResponse other = (DeleteDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/GetDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/GetDataFileResponse.java new file mode 100644 index 00000000000..861b379b092 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/GetDataFileResponse.java @@ -0,0 +1,588 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class GetDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * + * @return the value + */ + public String getContentType() { + return contentType; + } + + /** The object size in bytes. */ + private Long contentLength; + + /** + * The object size in bytes. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * + * @return the value + */ + public String getContentMd5() { + return contentMd5; + } + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * + * @return the value + */ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * + * @return the value + */ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * + * @return the value + */ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @return the value + */ + public java.io.InputStream getInputStream() { + return inputStream; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcClientRequestId", + "contentType", + "contentLength", + "contentMd5", + "contentEncoding", + "contentLanguage", + "contentDisposition", + "lastModified", + "metadata", + "inputStream" + }) + private GetDataFileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcClientRequestId, + String contentType, + Long contentLength, + String contentMd5, + String contentEncoding, + String contentLanguage, + String contentDisposition, + java.util.Date lastModified, + String metadata, + java.io.InputStream inputStream) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + this.contentType = contentType; + this.contentLength = contentLength; + this.contentMd5 = contentMd5; + this.contentEncoding = contentEncoding; + this.contentLanguage = contentLanguage; + this.contentDisposition = contentDisposition; + this.lastModified = lastModified; + this.metadata = metadata; + this.inputStream = inputStream; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * + * @param contentType the value to set + * @return this builder + */ + public Builder contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** The object size in bytes. */ + private Long contentLength; + + /** + * The object size in bytes. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * + * @param contentMd5 the value to set + * @return this builder + */ + public Builder contentMd5(String contentMd5) { + this.contentMd5 = contentMd5; + return this; + } + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * + * @param contentEncoding the value to set + * @return this builder + */ + public Builder contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * + * @param contentLanguage the value to set + * @return this builder + */ + public Builder contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * + * @param contentDisposition the value to set + * @return this builder + */ + public Builder contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** The returned {@code java.io.InputStream} instance. */ + private java.io.InputStream inputStream; + + /** + * The returned {@code java.io.InputStream} instance. + * + * @param inputStream the value to set + * @return this builder + */ + public Builder inputStream(java.io.InputStream inputStream) { + this.inputStream = inputStream; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + contentType(o.getContentType()); + contentLength(o.getContentLength()); + contentMd5(o.getContentMd5()); + contentEncoding(o.getContentEncoding()); + contentLanguage(o.getContentLanguage()); + contentDisposition(o.getContentDisposition()); + lastModified(o.getLastModified()); + metadata(o.getMetadata()); + inputStream(o.getInputStream()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetDataFileResponse build() { + return new GetDataFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcClientRequestId, + contentType, + contentLength, + contentMd5, + contentEncoding, + contentLanguage, + contentDisposition, + lastModified, + metadata, + inputStream); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",contentType=").append(String.valueOf(contentType)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",contentMd5=").append(String.valueOf(contentMd5)); + sb.append(",contentEncoding=").append(String.valueOf(contentEncoding)); + sb.append(",contentLanguage=").append(String.valueOf(contentLanguage)); + sb.append(",contentDisposition=").append(String.valueOf(contentDisposition)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",metadata=").append(String.valueOf(metadata)); + sb.append(",inputStream=").append(String.valueOf(inputStream)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetDataFileResponse)) { + return false; + } + + GetDataFileResponse other = (GetDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.contentLength, other.contentLength) + && java.util.Objects.equals(this.contentMd5, other.contentMd5) + && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.contentDisposition, other.contentDisposition) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.metadata, other.metadata) + && java.util.Objects.equals(this.inputStream, other.inputStream); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = + (result * PRIME) + + (this.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.contentMd5 == null ? 43 : this.contentMd5.hashCode()); + result = + (result * PRIME) + + (this.contentEncoding == null ? 43 : this.contentEncoding.hashCode()); + result = + (result * PRIME) + + (this.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = + (result * PRIME) + + (this.contentDisposition == null + ? 43 + : this.contentDisposition.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/HeadDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/HeadDataFileResponse.java new file mode 100644 index 00000000000..f4e0449bf78 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/HeadDataFileResponse.java @@ -0,0 +1,554 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class HeadDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * + * @return the value + */ + public String getContentType() { + return contentType; + } + + /** The object size in bytes. */ + private Long contentLength; + + /** + * The object size in bytes. + * + * @return the value + */ + public Long getContentLength() { + return contentLength; + } + + /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * + * @return the value + */ + public String getContentMd5() { + return contentMd5; + } + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * + * @return the value + */ + public String getContentEncoding() { + return contentEncoding; + } + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * + * @return the value + */ + public String getContentLanguage() { + return contentLanguage; + } + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * + * @return the value + */ + public String getContentDisposition() { + return contentDisposition; + } + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @return the value + */ + public String getMetadata() { + return metadata; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcClientRequestId", + "contentType", + "contentLength", + "contentMd5", + "contentEncoding", + "contentLanguage", + "contentDisposition", + "lastModified", + "metadata" + }) + private HeadDataFileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcClientRequestId, + String contentType, + Long contentLength, + String contentMd5, + String contentEncoding, + String contentLanguage, + String contentDisposition, + java.util.Date lastModified, + String metadata) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + this.contentType = contentType; + this.contentLength = contentLength; + this.contentMd5 = contentMd5; + this.contentEncoding = contentEncoding; + this.contentLanguage = contentLanguage; + this.contentDisposition = contentDisposition; + this.lastModified = lastModified; + this.metadata = metadata; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + */ + private String contentType; + + /** + * Content-Type header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.17). + * + * @param contentType the value to set + * @return this builder + */ + public Builder contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** The object size in bytes. */ + private Long contentLength; + + /** + * The object size in bytes. + * + * @param contentLength the value to set + * @return this builder + */ + public Builder contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * + * @param contentMd5 the value to set + * @return this builder + */ + public Builder contentMd5(String contentMd5) { + this.contentMd5 = contentMd5; + return this; + } + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + */ + private String contentEncoding; + + /** + * Content-Encoding header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.11). + * + * @param contentEncoding the value to set + * @return this builder + */ + public Builder contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + */ + private String contentLanguage; + + /** + * Content-Language header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.12). + * + * @param contentLanguage the value to set + * @return this builder + */ + public Builder contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + */ + private String contentDisposition; + + /** + * Content-Disposition header, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-19.5.1). + * + * @param contentDisposition the value to set + * @return this builder + */ + public Builder contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + */ + private String metadata; + + /** + * A string containing a JSON-encoded object with metadata related to the uploaded file or + * resource. Example: {"fileName":"report.pdf","uploader":"jane.doe","category":"financial"} + * + * @param metadata the value to set + * @return this builder + */ + public Builder metadata(String metadata) { + this.metadata = metadata; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(HeadDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + contentType(o.getContentType()); + contentLength(o.getContentLength()); + contentMd5(o.getContentMd5()); + contentEncoding(o.getContentEncoding()); + contentLanguage(o.getContentLanguage()); + contentDisposition(o.getContentDisposition()); + lastModified(o.getLastModified()); + metadata(o.getMetadata()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public HeadDataFileResponse build() { + return new HeadDataFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcClientRequestId, + contentType, + contentLength, + contentMd5, + contentEncoding, + contentLanguage, + contentDisposition, + lastModified, + metadata); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",contentType=").append(String.valueOf(contentType)); + sb.append(",contentLength=").append(String.valueOf(contentLength)); + sb.append(",contentMd5=").append(String.valueOf(contentMd5)); + sb.append(",contentEncoding=").append(String.valueOf(contentEncoding)); + sb.append(",contentLanguage=").append(String.valueOf(contentLanguage)); + sb.append(",contentDisposition=").append(String.valueOf(contentDisposition)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(",metadata=").append(String.valueOf(metadata)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof HeadDataFileResponse)) { + return false; + } + + HeadDataFileResponse other = (HeadDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.contentType, other.contentType) + && java.util.Objects.equals(this.contentLength, other.contentLength) + && java.util.Objects.equals(this.contentMd5, other.contentMd5) + && java.util.Objects.equals(this.contentEncoding, other.contentEncoding) + && java.util.Objects.equals(this.contentLanguage, other.contentLanguage) + && java.util.Objects.equals(this.contentDisposition, other.contentDisposition) + && java.util.Objects.equals(this.lastModified, other.lastModified) + && java.util.Objects.equals(this.metadata, other.metadata); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.contentType == null ? 43 : this.contentType.hashCode()); + result = + (result * PRIME) + + (this.contentLength == null ? 43 : this.contentLength.hashCode()); + result = (result * PRIME) + (this.contentMd5 == null ? 43 : this.contentMd5.hashCode()); + result = + (result * PRIME) + + (this.contentEncoding == null ? 43 : this.contentEncoding.hashCode()); + result = + (result * PRIME) + + (this.contentLanguage == null ? 43 : this.contentLanguage.hashCode()); + result = + (result * PRIME) + + (this.contentDisposition == null + ? 43 + : this.contentDisposition.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + result = (result * PRIME) + (this.metadata == null ? 43 : this.metadata.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/ListDataFilesResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/ListDataFilesResponse.java new file mode 100644 index 00000000000..9d06a075cb0 --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/ListDataFilesResponse.java @@ -0,0 +1,269 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class ListDataFilesResponse extends com.oracle.bmc.responses.BmcResponse { + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DataFileSummaryCollection} instance. */ + private com.oracle.bmc.apmconfig.model.DataFileSummaryCollection dataFileSummaryCollection; + + /** + * The returned {@code DataFileSummaryCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.apmconfig.model.DataFileSummaryCollection getDataFileSummaryCollection() { + return dataFileSummaryCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcClientRequestId", + "opcRequestId", + "opcNextPage", + "dataFileSummaryCollection" + }) + private ListDataFilesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcClientRequestId, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.apmconfig.model.DataFileSummaryCollection dataFileSummaryCollection) { + super(__httpStatusCode__, headers); + this.opcClientRequestId = opcClientRequestId; + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dataFileSummaryCollection = dataFileSummaryCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DataFileSummaryCollection} instance. */ + private com.oracle.bmc.apmconfig.model.DataFileSummaryCollection dataFileSummaryCollection; + + /** + * The returned {@code DataFileSummaryCollection} instance. + * + * @param dataFileSummaryCollection the value to set + * @return this builder + */ + public Builder dataFileSummaryCollection( + com.oracle.bmc.apmconfig.model.DataFileSummaryCollection + dataFileSummaryCollection) { + this.dataFileSummaryCollection = dataFileSummaryCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDataFilesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcClientRequestId(o.getOpcClientRequestId()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dataFileSummaryCollection(o.getDataFileSummaryCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDataFilesResponse build() { + return new ListDataFilesResponse( + __httpStatusCode__, + headers, + opcClientRequestId, + opcRequestId, + opcNextPage, + dataFileSummaryCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",dataFileSummaryCollection=").append(String.valueOf(dataFileSummaryCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDataFilesResponse)) { + return false; + } + + ListDataFilesResponse other = (ListDataFilesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.dataFileSummaryCollection, other.dataFileSummaryCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.dataFileSummaryCollection == null + ? 43 + : this.dataFileSummaryCollection.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/PutDataFileResponse.java b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/PutDataFileResponse.java new file mode 100644 index 00000000000..77e6f3b9feb --- /dev/null +++ b/bmc-apmconfig/src/main/java/com/oracle/bmc/apmconfig/responses/PutDataFileResponse.java @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.apmconfig.responses; + +import com.oracle.bmc.apmconfig.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210201") +public class PutDataFileResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @return the value + */ + public String getOpcClientRequestId() { + return opcClientRequestId; + } + + /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * + * @return the value + */ + public String getContentMd5() { + return contentMd5; + } + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @return the value + */ + public java.util.Date getLastModified() { + return lastModified; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "opcClientRequestId", + "contentMd5", + "lastModified" + }) + private PutDataFileResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + String opcClientRequestId, + String contentMd5, + java.util.Date lastModified) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.opcClientRequestId = opcClientRequestId; + this.contentMd5 = contentMd5; + this.lastModified = lastModified; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The client request ID. */ + private String opcClientRequestId; + + /** + * The client request ID. + * + * @param opcClientRequestId the value to set + * @return this builder + */ + public Builder opcClientRequestId(String opcClientRequestId) { + this.opcClientRequestId = opcClientRequestId; + return this; + } + + /** The base-64 encoded MD5 hash of the request body as computed by the server. */ + private String contentMd5; + + /** + * The base-64 encoded MD5 hash of the request body as computed by the server. + * + * @param contentMd5 the value to set + * @return this builder + */ + public Builder contentMd5(String contentMd5) { + this.contentMd5 = contentMd5; + return this; + } + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + */ + private java.util.Date lastModified; + + /** + * The last time the object was modified, as described in [RFC + * 2616](https://tools.ietf.org/html/rfc2616#section-14.29). Expressed in [RFC + * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code + * 2020-02-19T22:47:12.613Z} + * + * @param lastModified the value to set + * @return this builder + */ + public Builder lastModified(java.util.Date lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(PutDataFileResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + opcClientRequestId(o.getOpcClientRequestId()); + contentMd5(o.getContentMd5()); + lastModified(o.getLastModified()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public PutDataFileResponse build() { + return new PutDataFileResponse( + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcClientRequestId, + contentMd5, + lastModified); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcClientRequestId=").append(String.valueOf(opcClientRequestId)); + sb.append(",contentMd5=").append(String.valueOf(contentMd5)); + sb.append(",lastModified=").append(String.valueOf(lastModified)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PutDataFileResponse)) { + return false; + } + + PutDataFileResponse other = (PutDataFileResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcClientRequestId, other.opcClientRequestId) + && java.util.Objects.equals(this.contentMd5, other.contentMd5) + && java.util.Objects.equals(this.lastModified, other.lastModified); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcClientRequestId == null + ? 43 + : this.opcClientRequestId.hashCode()); + result = (result * PRIME) + (this.contentMd5 == null ? 43 : this.contentMd5.hashCode()); + result = (result * PRIME) + (this.lastModified == null ? 43 : this.lastModified.hashCode()); + return result; + } +} diff --git a/bmc-apmconfig/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmconfig/reflect-config.json b/bmc-apmconfig/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmconfig/reflect-config.json index 0bd9cf62ff5..abeb50e316e 100644 --- a/bmc-apmconfig/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmconfig/reflect-config.json +++ b/bmc-apmconfig/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-apmconfig/reflect-config.json @@ -264,6 +264,48 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmconfig.model.DataFile", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmconfig.model.DataFile$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmconfig.model.DataFileSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmconfig.model.DataFileSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmconfig.model.DataFileSummaryCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.apmconfig.model.DataFileSummaryCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.apmconfig.model.Dimension", diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index b75f6fa01c3..7c3afc6ae8e 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java index 5b6eefecba2..4df5971579b 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomain.java @@ -29,6 +29,7 @@ public final class ApmDomain extends com.oracle.bmc.http.client.internal.Explici "compartmentId", "lifecycleState", "isFreeTier", + "logGroupId", "timeCreated", "timeUpdated", "freeformTags", @@ -42,6 +43,7 @@ public ApmDomain( String compartmentId, LifecycleStates lifecycleState, Boolean isFreeTier, + String logGroupId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -54,6 +56,7 @@ public ApmDomain( this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.isFreeTier = isFreeTier; + this.logGroupId = logGroupId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -167,6 +170,25 @@ public Builder isFreeTier(Boolean isFreeTier) { this.__explicitlySet__.add("isFreeTier"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + * + * @param logGroupId the value to set + * @return this builder + */ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** The time the APM domain was created, expressed in RFC 3339 timestamp format. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; @@ -250,6 +272,7 @@ public ApmDomain build() { this.compartmentId, this.lifecycleState, this.isFreeTier, + this.logGroupId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -283,6 +306,9 @@ public Builder copy(ApmDomain model) { if (model.wasPropertyExplicitlySet("isFreeTier")) { this.isFreeTier(model.getIsFreeTier()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -399,6 +425,23 @@ public Boolean getIsFreeTier() { return isFreeTier; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + * + * @return the value + */ + public String getLogGroupId() { + return logGroupId; + } + /** The time the APM domain was created, expressed in RFC 3339 timestamp format. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; @@ -481,6 +524,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -506,6 +550,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -532,6 +577,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java index cdfc9b88465..66a096d0076 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/ApmDomainSummary.java @@ -29,6 +29,7 @@ public final class ApmDomainSummary "compartmentId", "lifecycleState", "isFreeTier", + "logGroupId", "timeCreated", "timeUpdated", "freeformTags", @@ -41,6 +42,7 @@ public ApmDomainSummary( String compartmentId, LifecycleStates lifecycleState, Boolean isFreeTier, + String logGroupId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -52,6 +54,7 @@ public ApmDomainSummary( this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.isFreeTier = isFreeTier; + this.logGroupId = logGroupId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -150,6 +153,25 @@ public Builder isFreeTier(Boolean isFreeTier) { this.__explicitlySet__.add("isFreeTier"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + * + * @param logGroupId the value to set + * @return this builder + */ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** The time the APM domain was created, expressed in RFC 3339 timestamp format. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; @@ -232,6 +254,7 @@ public ApmDomainSummary build() { this.compartmentId, this.lifecycleState, this.isFreeTier, + this.logGroupId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -262,6 +285,9 @@ public Builder copy(ApmDomainSummary model) { if (model.wasPropertyExplicitlySet("isFreeTier")) { this.isFreeTier(model.getIsFreeTier()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -365,6 +391,23 @@ public Boolean getIsFreeTier() { return isFreeTier; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + * + * @return the value + */ + public String getLogGroupId() { + return logGroupId; + } + /** The time the APM domain was created, expressed in RFC 3339 timestamp format. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; @@ -446,6 +489,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -470,6 +514,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -491,6 +536,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java index cfa6ef33b23..646da001ec0 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/BaseDomainDetails.java @@ -30,6 +30,7 @@ public final class BaseDomainDetails "compartmentId", "lifecycleState", "isFreeTier", + "logGroupId", "timeCreated", "timeUpdated", "freeformTags", @@ -42,6 +43,7 @@ public BaseDomainDetails( String compartmentId, LifecycleStates lifecycleState, Boolean isFreeTier, + String logGroupId, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, @@ -53,6 +55,7 @@ public BaseDomainDetails( this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.isFreeTier = isFreeTier; + this.logGroupId = logGroupId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; @@ -151,6 +154,25 @@ public Builder isFreeTier(Boolean isFreeTier) { this.__explicitlySet__.add("isFreeTier"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + * + * @param logGroupId the value to set + * @return this builder + */ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** The time the APM domain was created, expressed in RFC 3339 timestamp format. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; @@ -233,6 +255,7 @@ public BaseDomainDetails build() { this.compartmentId, this.lifecycleState, this.isFreeTier, + this.logGroupId, this.timeCreated, this.timeUpdated, this.freeformTags, @@ -263,6 +286,9 @@ public Builder copy(BaseDomainDetails model) { if (model.wasPropertyExplicitlySet("isFreeTier")) { this.isFreeTier(model.getIsFreeTier()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -366,6 +392,23 @@ public Boolean getIsFreeTier() { return isFreeTier; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + * + * @return the value + */ + public String getLogGroupId() { + return logGroupId; + } + /** The time the APM domain was created, expressed in RFC 3339 timestamp format. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; @@ -447,6 +490,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -471,6 +515,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -492,6 +537,7 @@ public int hashCode() { (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java index 3a829b713ff..f631426a41f 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/CreateApmDomainDetails.java @@ -27,6 +27,7 @@ public final class CreateApmDomainDetails "displayName", "description", "compartmentId", + "logGroupId", "freeformTags", "definedTags", "isFreeTier" @@ -35,6 +36,7 @@ public CreateApmDomainDetails( String displayName, String description, String compartmentId, + String logGroupId, java.util.Map freeformTags, java.util.Map> definedTags, Boolean isFreeTier) { @@ -42,6 +44,7 @@ public CreateApmDomainDetails( this.displayName = displayName; this.description = description; this.compartmentId = compartmentId; + this.logGroupId = logGroupId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.isFreeTier = isFreeTier; @@ -94,6 +97,25 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + * + * @param logGroupId the value to set + * @return this builder + */ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -158,6 +180,7 @@ public CreateApmDomainDetails build() { this.displayName, this.description, this.compartmentId, + this.logGroupId, this.freeformTags, this.definedTags, this.isFreeTier); @@ -178,6 +201,9 @@ public Builder copy(CreateApmDomainDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -239,6 +265,23 @@ public String getCompartmentId() { return compartmentId; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + * + * @return the value + */ + public String getLogGroupId() { + return logGroupId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -304,6 +347,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", isFreeTier=").append(String.valueOf(this.isFreeTier)); @@ -324,6 +368,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.isFreeTier, other.isFreeTier) @@ -339,6 +384,7 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.isFreeTier == null ? 43 : this.isFreeTier.hashCode()); diff --git a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java index eb6f6d4b0b2..39d7d554528 100644 --- a/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java +++ b/bmc-apmcontrolplane/src/main/java/com/oracle/bmc/apmcontrolplane/model/UpdateApmDomainDetails.java @@ -23,15 +23,23 @@ public final class UpdateApmDomainDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "description", "freeformTags", "definedTags"}) + @java.beans.ConstructorProperties({ + "displayName", + "description", + "logGroupId", + "freeformTags", + "definedTags" + }) public UpdateApmDomainDetails( String displayName, String description, + String logGroupId, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.description = description; + this.logGroupId = logGroupId; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -68,6 +76,25 @@ public Builder description(String description) { this.__explicitlySet__.add("description"); return this; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain + * will be mapped to. + * + * @param logGroupId the value to set + * @return this builder + */ + public Builder logGroupId(String logGroupId) { + this.logGroupId = logGroupId; + this.__explicitlySet__.add("logGroupId"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -116,6 +143,7 @@ public UpdateApmDomainDetails build() { new UpdateApmDomainDetails( this.displayName, this.description, + this.logGroupId, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -132,6 +160,9 @@ public Builder copy(UpdateApmDomainDetails model) { if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } + if (model.wasPropertyExplicitlySet("logGroupId")) { + this.logGroupId(model.getLogGroupId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -177,6 +208,23 @@ public String getDescription() { return description; } + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + */ + @com.fasterxml.jackson.annotation.JsonProperty("logGroupId") + private final String logGroupId; + + /** + * The OCID of the Log Analytics log group to which the data uploaded to this APM domain will be + * mapped to. + * + * @return the value + */ + public String getLogGroupId() { + return logGroupId; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -228,6 +276,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", logGroupId=").append(String.valueOf(this.logGroupId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -246,6 +295,7 @@ public boolean equals(Object o) { UpdateApmDomainDetails other = (UpdateApmDomainDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.logGroupId, other.logGroupId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -257,6 +307,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.logGroupId == null ? 43 : this.logGroupId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index a23c0556b3d..917b838034e 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 402e7bfcb86..1b97a081323 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 9b7763d4cb4..653eeff0414 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index f2eff200348..671c5a9bdb1 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index db6c496bb07..2cc1ea04a7e 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 824e0b3902d..be08a5a1da9 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index b4cffb9526a..8de8e7fcb56 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-batch/pom.xml b/bmc-batch/pom.xml index 25ad64b7afe..bd1e98379c7 100644 --- a/bmc-batch/pom.xml +++ b/bmc-batch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-batch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index dafebb148d8..5e9c513b520 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index a3f3ecd2260..227592371f5 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index 8daa34e9b8a..3dbc89e107a 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.89.1 + 3.90.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,1111 +38,1111 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-addons-aispeech-realtime - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-fleetappsmanagement - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-delegateaccesscontrol - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagent - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiagentruntime - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-securityattribute - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-zpr - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-dblm - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-mngdmac - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-lustrefilestorage - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-modeldeployment - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-distributeddatabase - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-apiaccesscontrol - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-wlms - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-addons-adk - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-dbmulticloud - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-apiplatform - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-managedkafka - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-aidataplatform - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-multicloud - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-resourceanalytics - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-jmsutils - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-iot - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-psa - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-dif - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-batch - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-gdp - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-limitsincrease - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-generativeaidata - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-self - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-containerregistry - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-databasetoolsruntime - 3.89.1 + 3.90.0 false com.oracle.oci.sdk oci-java-sdk-costad - 3.89.1 + 3.90.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index e16c0a46c58..d9172b93feb 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 170f6721d5b..bddea85a1ac 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index c728e4d41e1..48c90f2c6a7 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 41e67d56065..4d3c30bb951 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 6d28c37a71f..9bf284825b8 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 6ff173d1e56..225ff331149 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index ead23a31ca5..a4e911281ab 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 3f3be7fad70..7feaae41d64 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 2004d11292d..24c217b5cf3 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java index 8add4b341e2..979362698ee 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/CreateMigrationDetails.java @@ -31,7 +31,8 @@ public final class CreateMigrationDetails "isCompleted", "migrationConfig", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreateMigrationDetails( Migration.MigrationType migrationType, @@ -41,7 +42,8 @@ public CreateMigrationDetails( Boolean isCompleted, MigrationConfig migrationConfig, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.migrationType = migrationType; this.displayName = displayName; @@ -51,6 +53,7 @@ public CreateMigrationDetails( this.migrationConfig = migrationConfig; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -182,6 +185,34 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -196,7 +227,8 @@ public CreateMigrationDetails build() { this.isCompleted, this.migrationConfig, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -229,6 +261,9 @@ public Builder copy(CreateMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -352,6 +387,29 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -375,6 +433,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", migrationConfig=").append(String.valueOf(this.migrationConfig)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -397,6 +456,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.migrationConfig, other.migrationConfig) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -422,6 +482,11 @@ public int hashCode() { + (this.migrationConfig == null ? 43 : this.migrationConfig.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java index e81705f26fc..0f9ef22d5a6 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/Migration.java @@ -35,7 +35,8 @@ public final class Migration extends com.oracle.bmc.http.client.internal.Explici "migrationConfig", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public Migration( String id, @@ -51,7 +52,8 @@ public Migration( MigrationConfig migrationConfig, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -67,6 +69,7 @@ public Migration( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -296,6 +299,34 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -316,7 +347,8 @@ public Migration build() { this.migrationConfig, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -367,6 +399,9 @@ public Builder copy(Migration model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -676,6 +711,29 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -705,6 +763,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -733,6 +792,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -768,6 +828,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java index 503875e6b60..cb8f5ce6d7c 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/MigrationSummary.java @@ -36,7 +36,8 @@ public final class MigrationSummary "migrationConfig", "freeformTags", "definedTags", - "systemTags" + "systemTags", + "securityAttributes" }) public MigrationSummary( String id, @@ -52,7 +53,8 @@ public MigrationSummary( MigrationConfig migrationConfig, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.Map> systemTags) { + java.util.Map> systemTags, + java.util.Map> securityAttributes) { super(); this.id = id; this.displayName = displayName; @@ -68,6 +70,7 @@ public MigrationSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -301,6 +304,34 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -321,7 +352,8 @@ public MigrationSummary build() { this.migrationConfig, this.freeformTags, this.definedTags, - this.systemTags); + this.systemTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -372,6 +404,9 @@ public Builder copy(MigrationSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -581,6 +616,29 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -610,6 +668,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -638,6 +697,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -673,6 +733,11 @@ public int hashCode() { result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java index 412cdd5d622..42357171c1f 100644 --- a/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java +++ b/bmc-cloudmigrations/src/main/java/com/oracle/bmc/cloudmigrations/model/UpdateMigrationDetails.java @@ -30,7 +30,8 @@ public final class UpdateMigrationDetails "migrationType", "migrationConfig", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdateMigrationDetails( String displayName, @@ -39,7 +40,8 @@ public UpdateMigrationDetails( Migration.MigrationType migrationType, MigrationConfig migrationConfig, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.displayName = displayName; this.replicationScheduleId = replicationScheduleId; @@ -48,6 +50,7 @@ public UpdateMigrationDetails( this.migrationConfig = migrationConfig; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -164,6 +167,34 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -177,7 +208,8 @@ public UpdateMigrationDetails build() { this.migrationType, this.migrationConfig, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -207,6 +239,9 @@ public Builder copy(UpdateMigrationDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -317,6 +352,29 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for this resource. Each key is predefined and scoped to a namespace. For + * more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -339,6 +397,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", migrationConfig=").append(String.valueOf(this.migrationConfig)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -360,6 +419,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.migrationConfig, other.migrationConfig) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -382,6 +442,11 @@ public int hashCode() { + (this.migrationConfig == null ? 43 : this.migrationConfig.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 84c0f643754..8fa6689bee5 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index b62463571bf..4cc9680b7fd 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.89.1 + 3.90.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.89.1 + 3.90.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.89.1 + 3.90.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index f1a51f7b44a..e94dfed20af 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.89.1 + 3.90.0 ../pom.xml @@ -93,7 +93,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.89.1 + 3.90.0 @@ -102,7 +102,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.89.1 + 3.90.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index dd0b3260c11..4a51a329d24 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index 1c09efc7467..82cf9463c35 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index a3cb3ebc5af..d10ce96679e 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -87,12 +87,12 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.89.1 + 3.90.0 @@ -137,7 +137,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index ff5daa32578..1b2ad2acd81 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 461d0bbb701..20253928f54 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 07ed0b17ea1..51ca30b440c 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java index 5cf9fcb0513..904a3cedbee 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/CreateNodePoolNodeConfigDetails.java @@ -28,6 +28,7 @@ public final class CreateNodePoolNodeConfigDetails "nsgIds", "kmsKeyId", "isPvEncryptionInTransitEnabled", + "computeClusterId", "freeformTags", "definedTags", "placementConfigs", @@ -38,6 +39,7 @@ public CreateNodePoolNodeConfigDetails( java.util.List nsgIds, String kmsKeyId, Boolean isPvEncryptionInTransitEnabled, + String computeClusterId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.List placementConfigs, @@ -47,6 +49,7 @@ public CreateNodePoolNodeConfigDetails( this.nsgIds = nsgIds; this.kmsKeyId = kmsKeyId; this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled; + this.computeClusterId = computeClusterId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.placementConfigs = placementConfigs; @@ -123,6 +126,21 @@ public Builder isPvEncryptionInTransitEnabled(Boolean isPvEncryptionInTransitEna this.__explicitlySet__.add("isPvEncryptionInTransitEnabled"); return this; } + /** The OCID of the Compute Cluster to be associated with the worker node instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * + * @param computeClusterId the value to set + * @return this builder + */ + public Builder computeClusterId(String computeClusterId) { + this.computeClusterId = computeClusterId; + this.__explicitlySet__.add("computeClusterId"); + return this; + } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource @@ -225,6 +243,7 @@ public CreateNodePoolNodeConfigDetails build() { this.nsgIds, this.kmsKeyId, this.isPvEncryptionInTransitEnabled, + this.computeClusterId, this.freeformTags, this.definedTags, this.placementConfigs, @@ -249,6 +268,9 @@ public Builder copy(CreateNodePoolNodeConfigDetails model) { if (model.wasPropertyExplicitlySet("isPvEncryptionInTransitEnabled")) { this.isPvEncryptionInTransitEnabled(model.getIsPvEncryptionInTransitEnabled()); } + if (model.wasPropertyExplicitlySet("computeClusterId")) { + this.computeClusterId(model.getComputeClusterId()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -334,6 +356,19 @@ public Boolean getIsPvEncryptionInTransitEnabled() { return isPvEncryptionInTransitEnabled; } + /** The OCID of the Compute Cluster to be associated with the worker node instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private final String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * + * @return the value + */ + public String getComputeClusterId() { + return computeClusterId; + } + /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource @@ -432,6 +467,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); sb.append(", isPvEncryptionInTransitEnabled=") .append(String.valueOf(this.isPvEncryptionInTransitEnabled)); + sb.append(", computeClusterId=").append(String.valueOf(this.computeClusterId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", placementConfigs=").append(String.valueOf(this.placementConfigs)); @@ -456,6 +492,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) && java.util.Objects.equals( this.isPvEncryptionInTransitEnabled, other.isPvEncryptionInTransitEnabled) + && java.util.Objects.equals(this.computeClusterId, other.computeClusterId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.placementConfigs, other.placementConfigs) @@ -476,6 +513,9 @@ public int hashCode() { + (this.isPvEncryptionInTransitEnabled == null ? 43 : this.isPvEncryptionInTransitEnabled.hashCode()); + result = + (result * PRIME) + + (this.computeClusterId == null ? 43 : this.computeClusterId.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java index e3aa974e9e0..c0b94deabd2 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolNodeConfigDetails.java @@ -27,6 +27,7 @@ public final class NodePoolNodeConfigDetails "size", "nsgIds", "kmsKeyId", + "computeClusterId", "isPvEncryptionInTransitEnabled", "freeformTags", "definedTags", @@ -37,6 +38,7 @@ public NodePoolNodeConfigDetails( Integer size, java.util.List nsgIds, String kmsKeyId, + String computeClusterId, Boolean isPvEncryptionInTransitEnabled, java.util.Map freeformTags, java.util.Map> definedTags, @@ -46,6 +48,7 @@ public NodePoolNodeConfigDetails( this.size = size; this.nsgIds = nsgIds; this.kmsKeyId = kmsKeyId; + this.computeClusterId = computeClusterId; this.isPvEncryptionInTransitEnabled = isPvEncryptionInTransitEnabled; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -104,6 +107,21 @@ public Builder kmsKeyId(String kmsKeyId) { this.__explicitlySet__.add("kmsKeyId"); return this; } + /** The OCID of the Compute Cluster to be associated with the worker node instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * + * @param computeClusterId the value to set + * @return this builder + */ + public Builder computeClusterId(String computeClusterId) { + this.computeClusterId = computeClusterId; + this.__explicitlySet__.add("computeClusterId"); + return this; + } /** * Whether to enable in-transit encryption for the data volume's paravirtualized attachment. * This field applies to both block volumes and boot volumes. The default value is false. @@ -224,6 +242,7 @@ public NodePoolNodeConfigDetails build() { this.size, this.nsgIds, this.kmsKeyId, + this.computeClusterId, this.isPvEncryptionInTransitEnabled, this.freeformTags, this.definedTags, @@ -246,6 +265,9 @@ public Builder copy(NodePoolNodeConfigDetails model) { if (model.wasPropertyExplicitlySet("kmsKeyId")) { this.kmsKeyId(model.getKmsKeyId()); } + if (model.wasPropertyExplicitlySet("computeClusterId")) { + this.computeClusterId(model.getComputeClusterId()); + } if (model.wasPropertyExplicitlySet("isPvEncryptionInTransitEnabled")) { this.isPvEncryptionInTransitEnabled(model.getIsPvEncryptionInTransitEnabled()); } @@ -317,6 +339,19 @@ public String getKmsKeyId() { return kmsKeyId; } + /** The OCID of the Compute Cluster to be associated with the worker node instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeClusterId") + private final String computeClusterId; + + /** + * The OCID of the Compute Cluster to be associated with the worker node instance. + * + * @return the value + */ + public String getComputeClusterId() { + return computeClusterId; + } + /** * Whether to enable in-transit encryption for the data volume's paravirtualized attachment. * This field applies to both block volumes and boot volumes. The default value is false. @@ -430,6 +465,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("size=").append(String.valueOf(this.size)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", kmsKeyId=").append(String.valueOf(this.kmsKeyId)); + sb.append(", computeClusterId=").append(String.valueOf(this.computeClusterId)); sb.append(", isPvEncryptionInTransitEnabled=") .append(String.valueOf(this.isPvEncryptionInTransitEnabled)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -454,6 +490,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.size, other.size) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.kmsKeyId, other.kmsKeyId) + && java.util.Objects.equals(this.computeClusterId, other.computeClusterId) && java.util.Objects.equals( this.isPvEncryptionInTransitEnabled, other.isPvEncryptionInTransitEnabled) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -471,6 +508,9 @@ public int hashCode() { result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.kmsKeyId == null ? 43 : this.kmsKeyId.hashCode()); + result = + (result * PRIME) + + (this.computeClusterId == null ? 43 : this.computeClusterId.hashCode()); result = (result * PRIME) + (this.isPvEncryptionInTransitEnabled == null diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java index 0b851ed5fc0..89f1fcdc81b 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/model/NodePoolPlacementConfigDetails.java @@ -27,6 +27,7 @@ public final class NodePoolPlacementConfigDetails "availabilityDomain", "subnetId", "capacityReservationId", + "hostGroupId", "preemptibleNodeConfig", "faultDomains" }) @@ -34,12 +35,14 @@ public NodePoolPlacementConfigDetails( String availabilityDomain, String subnetId, String capacityReservationId, + String hostGroupId, PreemptibleNodeConfigDetails preemptibleNodeConfig, java.util.List faultDomains) { super(); this.availabilityDomain = availabilityDomain; this.subnetId = subnetId; this.capacityReservationId = capacityReservationId; + this.hostGroupId = hostGroupId; this.preemptibleNodeConfig = preemptibleNodeConfig; this.faultDomains = faultDomains; } @@ -91,6 +94,21 @@ public Builder capacityReservationId(String capacityReservationId) { this.__explicitlySet__.add("capacityReservationId"); return this; } + /** The OCID of the Host Group to be associated with the worker node instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostGroupId") + private String hostGroupId; + + /** + * The OCID of the Host Group to be associated with the worker node instance. + * + * @param hostGroupId the value to set + * @return this builder + */ + public Builder hostGroupId(String hostGroupId) { + this.hostGroupId = hostGroupId; + this.__explicitlySet__.add("hostGroupId"); + return this; + } @com.fasterxml.jackson.annotation.JsonProperty("preemptibleNodeConfig") private PreemptibleNodeConfigDetails preemptibleNodeConfig; @@ -125,6 +143,7 @@ public NodePoolPlacementConfigDetails build() { this.availabilityDomain, this.subnetId, this.capacityReservationId, + this.hostGroupId, this.preemptibleNodeConfig, this.faultDomains); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -144,6 +163,9 @@ public Builder copy(NodePoolPlacementConfigDetails model) { if (model.wasPropertyExplicitlySet("capacityReservationId")) { this.capacityReservationId(model.getCapacityReservationId()); } + if (model.wasPropertyExplicitlySet("hostGroupId")) { + this.hostGroupId(model.getHostGroupId()); + } if (model.wasPropertyExplicitlySet("preemptibleNodeConfig")) { this.preemptibleNodeConfig(model.getPreemptibleNodeConfig()); } @@ -202,6 +224,19 @@ public String getCapacityReservationId() { return capacityReservationId; } + /** The OCID of the Host Group to be associated with the worker node instance. */ + @com.fasterxml.jackson.annotation.JsonProperty("hostGroupId") + private final String hostGroupId; + + /** + * The OCID of the Host Group to be associated with the worker node instance. + * + * @return the value + */ + public String getHostGroupId() { + return hostGroupId; + } + @com.fasterxml.jackson.annotation.JsonProperty("preemptibleNodeConfig") private final PreemptibleNodeConfigDetails preemptibleNodeConfig; @@ -240,6 +275,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId)); + sb.append(", hostGroupId=").append(String.valueOf(this.hostGroupId)); sb.append(", preemptibleNodeConfig=").append(String.valueOf(this.preemptibleNodeConfig)); sb.append(", faultDomains=").append(String.valueOf(this.faultDomains)); sb.append(")"); @@ -259,6 +295,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId) + && java.util.Objects.equals(this.hostGroupId, other.hostGroupId) && java.util.Objects.equals(this.preemptibleNodeConfig, other.preemptibleNodeConfig) && java.util.Objects.equals(this.faultDomains, other.faultDomains) && super.equals(other); @@ -279,6 +316,7 @@ public int hashCode() { + (this.capacityReservationId == null ? 43 : this.capacityReservationId.hashCode()); + result = (result * PRIME) + (this.hostGroupId == null ? 43 : this.hostGroupId.hashCode()); result = (result * PRIME) + (this.preemptibleNodeConfig == null diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index 1e3f09177c9..9139e0b6382 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml index 9c4a386f355..f68d1329372 100644 --- a/bmc-containerregistry/pom.xml +++ b/bmc-containerregistry/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-containerregistry @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index ac9a06a40a0..46fcc8b0b3c 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.89.1 + 3.90.0 diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml index ad30c5405c8..7bd320fca7f 100644 --- a/bmc-costad/pom.xml +++ b/bmc-costad/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-costad @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index 9a44f8f1545..035fc8e9d6e 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 18f7406c51d..c69d57c23e0 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.89.1 + 3.90.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 800404326ab..0d71f55fbf6 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -1837,7 +1837,8 @@ CreatePluggableDatabaseSnapshotResponse createPluggableDatabaseSnapshot( /** * Performs one of the following power actions on the specified DB node: - start - power on - - * stop - power off gracefully - softreset - ACPI shutdown and power on - reset - power off and + * stop - power off gracefully - forcestop - power off forcefully - forcereset - ACPI shutdown + * and power on forcefully - softreset - ACPI shutdown and power on - reset - power off and * power on * *

*Note:** Stopping a node affects billing differently, depending on the type of DB system: @@ -6725,6 +6726,40 @@ RestartAutonomousContainerDatabaseResponse restartAutonomousContainerDatabase( RestartAutonomousDatabaseResponse restartAutonomousDatabase( RestartAutonomousDatabaseRequest request); + /** + * Restarts Oracle REST Data Services (ORDS) for Autonomous Exadata VM cluster. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * RestartAutonomousVmClusterOrds API. + */ + RestartAutonomousVmClusterOrdsResponse restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request); + + /** + * Restarts Oracle REST Data Services (ORDS) for a cloud Autonomous Exadata VM cluster. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation will not retry by default, users + * can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to + * enable retries for it. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * RestartCloudAutonomousVmClusterOrds API. + */ + RestartCloudAutonomousVmClusterOrdsResponse restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request); + /** * Restores an Autonomous AI Database based on the provided request parameters. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index cf932f3458d..b5167d4c954 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -1869,7 +1869,8 @@ java.util.concurrent.Future createVmClusterNetwo /** * Performs one of the following power actions on the specified DB node: - start - power on - - * stop - power off gracefully - softreset - ACPI shutdown and power on - reset - power off and + * stop - power off gracefully - forcestop - power off forcefully - forcereset - ACPI shutdown + * and power on forcefully - softreset - ACPI shutdown and power on - reset - power off and * power on * *

*Note:** Stopping a node affects billing differently, depending on the type of DB system: @@ -6805,6 +6806,42 @@ java.util.concurrent.Future restartAutonomous RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> handler); + /** + * Restarts Oracle REST Data Services (ORDS) for Autonomous Exadata VM cluster. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request, + com.oracle.bmc.responses.AsyncHandler< + RestartAutonomousVmClusterOrdsRequest, + RestartAutonomousVmClusterOrdsResponse> + handler); + + /** + * Restarts Oracle REST Data Services (ORDS) for a cloud Autonomous Exadata VM cluster. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request, + com.oracle.bmc.responses.AsyncHandler< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + handler); + /** * Restores an Autonomous AI Database based on the provided request parameters. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index a0f0af1e5f2..be58bfe5eda 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -14708,6 +14708,7 @@ public java.util.concurrent.Future resourcePoolShape .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() .handleBody( com.oracle.bmc.database.model.AutonomousContainerDatabase.class, RestartAutonomousContainerDatabaseResponse.Builder @@ -14750,6 +14751,7 @@ public java.util.concurrent.Future restartAut .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-dry-run", request.getOpcDryRun()) + .hasBody() .handleBody( com.oracle.bmc.database.model.AutonomousDatabase.class, RestartAutonomousDatabaseResponse.Builder::autonomousDatabase) @@ -14762,6 +14764,83 @@ public java.util.concurrent.Future restartAut .callAsync(handler); } + @Override + public java.util.concurrent.Future + restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RestartAutonomousVmClusterOrdsRequest, + RestartAutonomousVmClusterOrdsResponse> + handler) { + + Validate.notBlank( + request.getAutonomousVmClusterId(), "autonomousVmClusterId must not be blank"); + + return clientCall(request, RestartAutonomousVmClusterOrdsResponse::builder) + .logger(LOG, "restartAutonomousVmClusterOrds") + .serviceDetails( + "Database", + "RestartAutonomousVmClusterOrds", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/RestartAutonomousVmClusterOrds") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RestartAutonomousVmClusterOrdsRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousVmClusters") + .appendPathParam(request.getAutonomousVmClusterId()) + .appendPathParam("actions") + .appendPathParam("restartOrds") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + RestartAutonomousVmClusterOrdsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RestartAutonomousVmClusterOrdsResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + handler) { + + Validate.notBlank( + request.getCloudAutonomousVmClusterId(), + "cloudAutonomousVmClusterId must not be blank"); + + return clientCall(request, RestartCloudAutonomousVmClusterOrdsResponse::builder) + .logger(LOG, "restartCloudAutonomousVmClusterOrds") + .serviceDetails( + "Database", + "RestartCloudAutonomousVmClusterOrds", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/RestartCloudAutonomousVmClusterOrds") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RestartCloudAutonomousVmClusterOrdsRequest::builder) + .basePath("/20160918") + .appendPathParam("cloudAutonomousVmClusters") + .appendPathParam(request.getCloudAutonomousVmClusterId()) + .appendPathParam("actions") + .appendPathParam("restartOrds") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + RestartCloudAutonomousVmClusterOrdsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RestartCloudAutonomousVmClusterOrdsResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future restoreAutonomousDatabase( RestoreAutonomousDatabaseRequest request, @@ -15583,6 +15662,7 @@ public java.util.concurrent.Future stopAutonomou .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-dry-run", request.getOpcDryRun()) + .hasBody() .handleBody( com.oracle.bmc.database.model.AutonomousDatabase.class, StopAutonomousDatabaseResponse.Builder::autonomousDatabase) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index f3d4f3aa3fa..f16d353ea94 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -13174,6 +13174,7 @@ public RestartAutonomousContainerDatabaseResponse restartAutonomousContainerData .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() .handleBody( com.oracle.bmc.database.model.AutonomousContainerDatabase.class, RestartAutonomousContainerDatabaseResponse.Builder @@ -13213,6 +13214,7 @@ public RestartAutonomousDatabaseResponse restartAutonomousDatabase( .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-dry-run", request.getOpcDryRun()) + .hasBody() .handleBody( com.oracle.bmc.database.model.AutonomousDatabase.class, RestartAutonomousDatabaseResponse.Builder::autonomousDatabase) @@ -13225,6 +13227,73 @@ public RestartAutonomousDatabaseResponse restartAutonomousDatabase( .callSync(); } + @Override + public RestartAutonomousVmClusterOrdsResponse restartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request) { + + Validate.notBlank( + request.getAutonomousVmClusterId(), "autonomousVmClusterId must not be blank"); + + return clientCall(request, RestartAutonomousVmClusterOrdsResponse::builder) + .logger(LOG, "restartAutonomousVmClusterOrds") + .serviceDetails( + "Database", + "RestartAutonomousVmClusterOrds", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/RestartAutonomousVmClusterOrds") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RestartAutonomousVmClusterOrdsRequest::builder) + .basePath("/20160918") + .appendPathParam("autonomousVmClusters") + .appendPathParam(request.getAutonomousVmClusterId()) + .appendPathParam("actions") + .appendPathParam("restartOrds") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + RestartAutonomousVmClusterOrdsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RestartAutonomousVmClusterOrdsResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public RestartCloudAutonomousVmClusterOrdsResponse restartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request) { + + Validate.notBlank( + request.getCloudAutonomousVmClusterId(), + "cloudAutonomousVmClusterId must not be blank"); + + return clientCall(request, RestartCloudAutonomousVmClusterOrdsResponse::builder) + .logger(LOG, "restartCloudAutonomousVmClusterOrds") + .serviceDetails( + "Database", + "RestartCloudAutonomousVmClusterOrds", + "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/RestartCloudAutonomousVmClusterOrds") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(RestartCloudAutonomousVmClusterOrdsRequest::builder) + .basePath("/20160918") + .appendPathParam("cloudAutonomousVmClusters") + .appendPathParam(request.getCloudAutonomousVmClusterId()) + .appendPathParam("actions") + .appendPathParam("restartOrds") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("if-match", request.getIfMatch()) + .handleResponseHeaderString( + "opc-work-request-id", + RestartCloudAutonomousVmClusterOrdsResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + RestartCloudAutonomousVmClusterOrdsResponse.Builder::opcRequestId) + .callSync(); + } + @Override public RestoreAutonomousDatabaseResponse restoreAutonomousDatabase( RestoreAutonomousDatabaseRequest request) { @@ -13962,6 +14031,7 @@ public StopAutonomousDatabaseResponse stopAutonomousDatabase( .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-dry-run", request.getOpcDryRun()) + .hasBody() .handleBody( com.oracle.bmc.database.model.AutonomousDatabase.class, StopAutonomousDatabaseResponse.Builder::autonomousDatabase) diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java index 1f4543bde4c..55f68786bb1 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java @@ -18642,6 +18642,135 @@ public RestartAutonomousDatabaseResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RestartAutonomousVmClusterOrdsRequest, RestartAutonomousVmClusterOrdsResponse> + forRestartAutonomousVmClusterOrds(RestartAutonomousVmClusterOrdsRequest request) { + return forRestartAutonomousVmClusterOrds( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RestartAutonomousVmClusterOrdsRequest, RestartAutonomousVmClusterOrdsResponse> + forRestartAutonomousVmClusterOrds( + RestartAutonomousVmClusterOrdsRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public RestartAutonomousVmClusterOrdsResponse call() throws Exception { + final RestartAutonomousVmClusterOrdsResponse response = + client.restartAutonomousVmClusterOrds(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + forRestartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request) { + return forRestartCloudAutonomousVmClusterOrds( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + RestartCloudAutonomousVmClusterOrdsRequest, + RestartCloudAutonomousVmClusterOrdsResponse> + forRestartCloudAutonomousVmClusterOrds( + RestartCloudAutonomousVmClusterOrdsRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public RestartCloudAutonomousVmClusterOrdsResponse call() throws Exception { + final RestartCloudAutonomousVmClusterOrdsResponse response = + client.restartCloudAutonomousVmClusterOrds(request); + + if (response.getOpcWorkRequestId() != null) { + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests + .GetWorkRequestRequest.builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, + terminationStrategy, + delayStrategy) + .execute(); + } + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java index e0e4396dabc..19248d727b3 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNode.java @@ -33,6 +33,7 @@ public final class DbNode extends com.oracle.bmc.http.client.internal.Explicitly "vnic2Id", "backupVnic2Id", "lifecycleState", + "availableActions", "hostname", "faultDomain", "timeCreated", @@ -66,6 +67,7 @@ public DbNode( String vnic2Id, String backupVnic2Id, LifecycleState lifecycleState, + java.util.List availableActions, String hostname, String faultDomain, java.util.Date timeCreated, @@ -98,6 +100,7 @@ public DbNode( this.vnic2Id = vnic2Id; this.backupVnic2Id = backupVnic2Id; this.lifecycleState = lifecycleState; + this.availableActions = availableActions; this.hostname = hostname; this.faultDomain = faultDomain; this.timeCreated = timeCreated; @@ -371,6 +374,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Actions that can be performed on the database node, depending on its current lifecycle + * state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle + * state. + * + * @param availableActions the value to set + * @return this builder + */ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } /** The host name for the database node. */ @com.fasterxml.jackson.annotation.JsonProperty("hostname") private String hostname; @@ -736,6 +758,7 @@ public DbNode build() { this.vnic2Id, this.backupVnic2Id, this.lifecycleState, + this.availableActions, this.hostname, this.faultDomain, this.timeCreated, @@ -797,6 +820,9 @@ public Builder copy(DbNode model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } if (model.wasPropertyExplicitlySet("hostname")) { this.hostname(model.getHostname()); } @@ -1150,6 +1176,71 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** */ + public enum AvailableActions implements com.oracle.bmc.http.internal.BmcEnum { + Stop("STOP"), + Forcestop("FORCESTOP"), + Forcereset("FORCERESET"), + Start("START"), + Softreset("SOFTRESET"), + Reset("RESET"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + * + * @return the value + */ + public java.util.List getAvailableActions() { + return availableActions; + } + /** The host name for the database node. */ @com.fasterxml.jackson.annotation.JsonProperty("hostname") private final String hostname; @@ -1579,6 +1670,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vnic2Id=").append(String.valueOf(this.vnic2Id)); sb.append(", backupVnic2Id=").append(String.valueOf(this.backupVnic2Id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -1628,6 +1720,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vnic2Id, other.vnic2Id) && java.util.Objects.equals(this.backupVnic2Id, other.backupVnic2Id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.availableActions, other.availableActions) && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.faultDomain, other.faultDomain) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -1675,6 +1768,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java index 2340998fdad..d7ddd5fa973 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbNodeSummary.java @@ -41,6 +41,7 @@ public final class DbNodeSummary extends com.oracle.bmc.http.client.internal.Exp "vnic2Id", "backupVnic2Id", "lifecycleState", + "availableActions", "hostname", "faultDomain", "timeCreated", @@ -74,6 +75,7 @@ public DbNodeSummary( String vnic2Id, String backupVnic2Id, LifecycleState lifecycleState, + java.util.List availableActions, String hostname, String faultDomain, java.util.Date timeCreated, @@ -106,6 +108,7 @@ public DbNodeSummary( this.vnic2Id = vnic2Id; this.backupVnic2Id = backupVnic2Id; this.lifecycleState = lifecycleState; + this.availableActions = availableActions; this.hostname = hostname; this.faultDomain = faultDomain; this.timeCreated = timeCreated; @@ -379,6 +382,25 @@ public Builder lifecycleState(LifecycleState lifecycleState) { this.__explicitlySet__.add("lifecycleState"); return this; } + /** + * Actions that can be performed on the database node, depending on its current lifecycle + * state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle + * state. + * + * @param availableActions the value to set + * @return this builder + */ + public Builder availableActions(java.util.List availableActions) { + this.availableActions = availableActions; + this.__explicitlySet__.add("availableActions"); + return this; + } /** The host name for the database node. */ @com.fasterxml.jackson.annotation.JsonProperty("hostname") private String hostname; @@ -744,6 +766,7 @@ public DbNodeSummary build() { this.vnic2Id, this.backupVnic2Id, this.lifecycleState, + this.availableActions, this.hostname, this.faultDomain, this.timeCreated, @@ -805,6 +828,9 @@ public Builder copy(DbNodeSummary model) { if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } + if (model.wasPropertyExplicitlySet("availableActions")) { + this.availableActions(model.getAvailableActions()); + } if (model.wasPropertyExplicitlySet("hostname")) { this.hostname(model.getHostname()); } @@ -1158,6 +1184,71 @@ public LifecycleState getLifecycleState() { return lifecycleState; } + /** */ + public enum AvailableActions implements com.oracle.bmc.http.internal.BmcEnum { + Stop("STOP"), + Forcestop("FORCESTOP"), + Forcereset("FORCERESET"), + Start("START"), + Softreset("SOFTRESET"), + Reset("RESET"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AvailableActions.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AvailableActions v : AvailableActions.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AvailableActions(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AvailableActions create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AvailableActions', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("availableActions") + private final java.util.List availableActions; + + /** + * Actions that can be performed on the database node, depending on its current lifecycle state. + * + * @return the value + */ + public java.util.List getAvailableActions() { + return availableActions; + } + /** The host name for the database node. */ @com.fasterxml.jackson.annotation.JsonProperty("hostname") private final String hostname; @@ -1587,6 +1678,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vnic2Id=").append(String.valueOf(this.vnic2Id)); sb.append(", backupVnic2Id=").append(String.valueOf(this.backupVnic2Id)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", availableActions=").append(String.valueOf(this.availableActions)); sb.append(", hostname=").append(String.valueOf(this.hostname)); sb.append(", faultDomain=").append(String.valueOf(this.faultDomain)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -1636,6 +1728,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vnic2Id, other.vnic2Id) && java.util.Objects.equals(this.backupVnic2Id, other.backupVnic2Id) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.availableActions, other.availableActions) && java.util.Objects.equals(this.hostname, other.hostname) && java.util.Objects.equals(this.faultDomain, other.faultDomain) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -1683,6 +1776,9 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = + (result * PRIME) + + (this.availableActions == null ? 43 : this.availableActions.hashCode()); result = (result * PRIME) + (this.hostname == null ? 43 : this.hostname.hashCode()); result = (result * PRIME) + (this.faultDomain == null ? 43 : this.faultDomain.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousContainerDatabaseDetails.java new file mode 100644 index 00000000000..3cbd50d5ebc --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousContainerDatabaseDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.database.model; + +/** + * Request details to restart an Autonomous Container Database with force option.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RestartAutonomousContainerDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RestartAutonomousContainerDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isForceRestart"}) + public RestartAutonomousContainerDatabaseDetails(Boolean isForceRestart) { + super(); + this.isForceRestart = isForceRestart; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** If set to {@code true}, restarts the Autonomous Container Database with force option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Container Database with force option. + * + * @param isForceRestart the value to set + * @return this builder + */ + public Builder isForceRestart(Boolean isForceRestart) { + this.isForceRestart = isForceRestart; + this.__explicitlySet__.add("isForceRestart"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RestartAutonomousContainerDatabaseDetails build() { + RestartAutonomousContainerDatabaseDetails model = + new RestartAutonomousContainerDatabaseDetails(this.isForceRestart); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RestartAutonomousContainerDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("isForceRestart")) { + this.isForceRestart(model.getIsForceRestart()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** If set to {@code true}, restarts the Autonomous Container Database with force option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private final Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Container Database with force option. + * + * @return the value + */ + public Boolean getIsForceRestart() { + return isForceRestart; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RestartAutonomousContainerDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("isForceRestart=").append(String.valueOf(this.isForceRestart)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousContainerDatabaseDetails)) { + return false; + } + + RestartAutonomousContainerDatabaseDetails other = + (RestartAutonomousContainerDatabaseDetails) o; + return java.util.Objects.equals(this.isForceRestart, other.isForceRestart) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isForceRestart == null ? 43 : this.isForceRestart.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..4b36781bcc3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/RestartAutonomousDatabaseDetails.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.database.model; + +/** + * Request details to restart an Autonomous Database with force option.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = RestartAutonomousDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class RestartAutonomousDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isForceRestart"}) + public RestartAutonomousDatabaseDetails(Boolean isForceRestart) { + super(); + this.isForceRestart = isForceRestart; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** If set to {@code true}, restarts the Autonomous Database with force option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Database with force option. + * + * @param isForceRestart the value to set + * @return this builder + */ + public Builder isForceRestart(Boolean isForceRestart) { + this.isForceRestart = isForceRestart; + this.__explicitlySet__.add("isForceRestart"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public RestartAutonomousDatabaseDetails build() { + RestartAutonomousDatabaseDetails model = + new RestartAutonomousDatabaseDetails(this.isForceRestart); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(RestartAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("isForceRestart")) { + this.isForceRestart(model.getIsForceRestart()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** If set to {@code true}, restarts the Autonomous Database with force option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isForceRestart") + private final Boolean isForceRestart; + + /** + * If set to {@code true}, restarts the Autonomous Database with force option. + * + * @return the value + */ + public Boolean getIsForceRestart() { + return isForceRestart; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("RestartAutonomousDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("isForceRestart=").append(String.valueOf(this.isForceRestart)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousDatabaseDetails)) { + return false; + } + + RestartAutonomousDatabaseDetails other = (RestartAutonomousDatabaseDetails) o; + return java.util.Objects.equals(this.isForceRestart, other.isForceRestart) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isForceRestart == null ? 43 : this.isForceRestart.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/StopAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/StopAutonomousDatabaseDetails.java new file mode 100644 index 00000000000..d0df931ba6f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/StopAutonomousDatabaseDetails.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.database.model; + +/** + * Request details to stop an Autonomous Database with force option.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StopAutonomousDatabaseDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class StopAutonomousDatabaseDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isForceStop"}) + public StopAutonomousDatabaseDetails(Boolean isForceStop) { + super(); + this.isForceStop = isForceStop; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** If set to {@code true}, stops the Autonomous Database with force option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isForceStop") + private Boolean isForceStop; + + /** + * If set to {@code true}, stops the Autonomous Database with force option. + * + * @param isForceStop the value to set + * @return this builder + */ + public Builder isForceStop(Boolean isForceStop) { + this.isForceStop = isForceStop; + this.__explicitlySet__.add("isForceStop"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StopAutonomousDatabaseDetails build() { + StopAutonomousDatabaseDetails model = + new StopAutonomousDatabaseDetails(this.isForceStop); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StopAutonomousDatabaseDetails model) { + if (model.wasPropertyExplicitlySet("isForceStop")) { + this.isForceStop(model.getIsForceStop()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** If set to {@code true}, stops the Autonomous Database with force option. */ + @com.fasterxml.jackson.annotation.JsonProperty("isForceStop") + private final Boolean isForceStop; + + /** + * If set to {@code true}, stops the Autonomous Database with force option. + * + * @return the value + */ + public Boolean getIsForceStop() { + return isForceStop; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StopAutonomousDatabaseDetails("); + sb.append("super=").append(super.toString()); + sb.append("isForceStop=").append(String.valueOf(this.isForceStop)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopAutonomousDatabaseDetails)) { + return false; + } + + StopAutonomousDatabaseDetails other = (StopAutonomousDatabaseDetails) o; + return java.util.Objects.equals(this.isForceStop, other.isForceStop) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isForceStop == null ? 43 : this.isForceStop.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java index 2a36fcc2008..782918bcbdd 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousContainerDatabaseRequest.java @@ -13,7 +13,8 @@ */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class RestartAutonomousContainerDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails> { /** * The Autonomous Container Database @@ -52,10 +53,31 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Request details to restart the Autonomous Container Database with force option. */ + private com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + restartAutonomousContainerDatabaseDetails; + + /** Request details to restart the Autonomous Container Database with force option. */ + public com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + getRestartAutonomousContainerDatabaseDetails() { + return restartAutonomousContainerDatabaseDetails; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails getBody$() { + return restartAutonomousContainerDatabaseDetails; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RestartAutonomousContainerDatabaseRequest, java.lang.Void> { + RestartAutonomousContainerDatabaseRequest, + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -113,6 +135,24 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Request details to restart the Autonomous Container Database with force option. */ + private com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + restartAutonomousContainerDatabaseDetails = null; + + /** + * Request details to restart the Autonomous Container Database with force option. + * + * @param restartAutonomousContainerDatabaseDetails the value to set + * @return this builder instance + */ + public Builder restartAutonomousContainerDatabaseDetails( + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails + restartAutonomousContainerDatabaseDetails) { + this.restartAutonomousContainerDatabaseDetails = + restartAutonomousContainerDatabaseDetails; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -146,6 +186,8 @@ public Builder copy(RestartAutonomousContainerDatabaseRequest o) { autonomousContainerDatabaseId(o.getAutonomousContainerDatabaseId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + restartAutonomousContainerDatabaseDetails( + o.getRestartAutonomousContainerDatabaseDetails()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -170,6 +212,19 @@ public RestartAutonomousContainerDatabaseRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$( + com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails body) { + restartAutonomousContainerDatabaseDetails(body); + return this; + } + /** * Build the instance of RestartAutonomousContainerDatabaseRequest as configured by this * builder @@ -186,9 +241,11 @@ public RestartAutonomousContainerDatabaseRequest buildWithoutInvocationCallback( request.autonomousContainerDatabaseId = autonomousContainerDatabaseId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.restartAutonomousContainerDatabaseDetails = + restartAutonomousContainerDatabaseDetails; return request; // new RestartAutonomousContainerDatabaseRequest(autonomousContainerDatabaseId, ifMatch, - // opcRequestId); + // opcRequestId, restartAutonomousContainerDatabaseDetails); } } @@ -201,7 +258,9 @@ public Builder toBuilder() { return new Builder() .autonomousContainerDatabaseId(autonomousContainerDatabaseId) .ifMatch(ifMatch) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .restartAutonomousContainerDatabaseDetails( + restartAutonomousContainerDatabaseDetails); } /** @@ -222,6 +281,8 @@ public String toString() { .append(String.valueOf(this.autonomousContainerDatabaseId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",restartAutonomousContainerDatabaseDetails=") + .append(String.valueOf(this.restartAutonomousContainerDatabaseDetails)); sb.append(")"); return sb.toString(); } @@ -241,7 +302,10 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.autonomousContainerDatabaseId, other.autonomousContainerDatabaseId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.restartAutonomousContainerDatabaseDetails, + other.restartAutonomousContainerDatabaseDetails); } @Override @@ -255,6 +319,11 @@ public int hashCode() { : this.autonomousContainerDatabaseId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.restartAutonomousContainerDatabaseDetails == null + ? 43 + : this.restartAutonomousContainerDatabaseDetails.hashCode()); return result; } } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java index b42ee50755e..d5b61b4703d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousDatabaseRequest.java @@ -13,7 +13,8 @@ */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class RestartAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails> { /** * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -50,6 +51,15 @@ public String getIfMatch() { public Boolean getIsOnlineRestart() { return isOnlineRestart; } + /** Request details to restart the Autonomous Database with force option. */ + private com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + restartAutonomousDatabaseDetails; + + /** Request details to restart the Autonomous Database with force option. */ + public com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + getRestartAutonomousDatabaseDetails() { + return restartAutonomousDatabaseDetails; + } /** * Indicates that the request is a dry run, if set to "true". A dry run request does not * actually creating or updating a resource and is used only to perform validation on the @@ -66,9 +76,21 @@ public Boolean getOpcDryRun() { return opcDryRun; } + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails getBody$() { + return restartAutonomousDatabaseDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - RestartAutonomousDatabaseRequest, java.lang.Void> { + RestartAutonomousDatabaseRequest, + com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -126,6 +148,23 @@ public Builder isOnlineRestart(Boolean isOnlineRestart) { return this; } + /** Request details to restart the Autonomous Database with force option. */ + private com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + restartAutonomousDatabaseDetails = null; + + /** + * Request details to restart the Autonomous Database with force option. + * + * @param restartAutonomousDatabaseDetails the value to set + * @return this builder instance + */ + public Builder restartAutonomousDatabaseDetails( + com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails + restartAutonomousDatabaseDetails) { + this.restartAutonomousDatabaseDetails = restartAutonomousDatabaseDetails; + return this; + } + /** * Indicates that the request is a dry run, if set to "true". A dry run request does not * actually creating or updating a resource and is used only to perform validation on the @@ -179,6 +218,7 @@ public Builder copy(RestartAutonomousDatabaseRequest o) { autonomousDatabaseId(o.getAutonomousDatabaseId()); ifMatch(o.getIfMatch()); isOnlineRestart(o.getIsOnlineRestart()); + restartAutonomousDatabaseDetails(o.getRestartAutonomousDatabaseDetails()); opcDryRun(o.getOpcDryRun()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -203,6 +243,18 @@ public RestartAutonomousDatabaseRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails body) { + restartAutonomousDatabaseDetails(body); + return this; + } + /** * Build the instance of RestartAutonomousDatabaseRequest as configured by this builder * @@ -217,10 +269,11 @@ public RestartAutonomousDatabaseRequest buildWithoutInvocationCallback() { request.autonomousDatabaseId = autonomousDatabaseId; request.ifMatch = ifMatch; request.isOnlineRestart = isOnlineRestart; + request.restartAutonomousDatabaseDetails = restartAutonomousDatabaseDetails; request.opcDryRun = opcDryRun; return request; // new RestartAutonomousDatabaseRequest(autonomousDatabaseId, ifMatch, isOnlineRestart, - // opcDryRun); + // restartAutonomousDatabaseDetails, opcDryRun); } } @@ -234,6 +287,7 @@ public Builder toBuilder() { .autonomousDatabaseId(autonomousDatabaseId) .ifMatch(ifMatch) .isOnlineRestart(isOnlineRestart) + .restartAutonomousDatabaseDetails(restartAutonomousDatabaseDetails) .opcDryRun(opcDryRun); } @@ -254,6 +308,8 @@ public String toString() { sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",isOnlineRestart=").append(String.valueOf(this.isOnlineRestart)); + sb.append(",restartAutonomousDatabaseDetails=") + .append(String.valueOf(this.restartAutonomousDatabaseDetails)); sb.append(",opcDryRun=").append(String.valueOf(this.opcDryRun)); sb.append(")"); return sb.toString(); @@ -273,6 +329,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.isOnlineRestart, other.isOnlineRestart) + && java.util.Objects.equals( + this.restartAutonomousDatabaseDetails, + other.restartAutonomousDatabaseDetails) && java.util.Objects.equals(this.opcDryRun, other.opcDryRun); } @@ -289,6 +348,11 @@ public int hashCode() { result = (result * PRIME) + (this.isOnlineRestart == null ? 43 : this.isOnlineRestart.hashCode()); + result = + (result * PRIME) + + (this.restartAutonomousDatabaseDetails == null + ? 43 + : this.restartAutonomousDatabaseDetails.hashCode()); result = (result * PRIME) + (this.opcDryRun == null ? 43 : this.opcDryRun.hashCode()); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousVmClusterOrdsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousVmClusterOrdsRequest.java new file mode 100644 index 00000000000..9e4ad5c4067 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartAutonomousVmClusterOrdsRequest.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * RestartAutonomousVmClusterOrdsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartAutonomousVmClusterOrdsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The autonomous VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousVmClusterId; + + /** + * The autonomous VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getAutonomousVmClusterId() { + return autonomousVmClusterId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RestartAutonomousVmClusterOrdsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The autonomous VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String autonomousVmClusterId = null; + + /** + * The autonomous VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param autonomousVmClusterId the value to set + * @return this builder instance + */ + public Builder autonomousVmClusterId(String autonomousVmClusterId) { + this.autonomousVmClusterId = autonomousVmClusterId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RestartAutonomousVmClusterOrdsRequest o) { + autonomousVmClusterId(o.getAutonomousVmClusterId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RestartAutonomousVmClusterOrdsRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of RestartAutonomousVmClusterOrdsRequest + */ + public RestartAutonomousVmClusterOrdsRequest build() { + RestartAutonomousVmClusterOrdsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RestartAutonomousVmClusterOrdsRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RestartAutonomousVmClusterOrdsRequest + */ + public RestartAutonomousVmClusterOrdsRequest buildWithoutInvocationCallback() { + RestartAutonomousVmClusterOrdsRequest request = + new RestartAutonomousVmClusterOrdsRequest(); + request.autonomousVmClusterId = autonomousVmClusterId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RestartAutonomousVmClusterOrdsRequest(autonomousVmClusterId, opcRetryToken, + // opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .autonomousVmClusterId(autonomousVmClusterId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",autonomousVmClusterId=").append(String.valueOf(this.autonomousVmClusterId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousVmClusterOrdsRequest)) { + return false; + } + + RestartAutonomousVmClusterOrdsRequest other = (RestartAutonomousVmClusterOrdsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.autonomousVmClusterId, other.autonomousVmClusterId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.autonomousVmClusterId == null + ? 43 + : this.autonomousVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartCloudAutonomousVmClusterOrdsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartCloudAutonomousVmClusterOrdsRequest.java new file mode 100644 index 00000000000..1a7b799e13f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/RestartCloudAutonomousVmClusterOrdsRequest.java @@ -0,0 +1,311 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use + * RestartCloudAutonomousVmClusterOrdsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartCloudAutonomousVmClusterOrdsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Cloud VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String cloudAutonomousVmClusterId; + + /** + * The Cloud VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + public String getCloudAutonomousVmClusterId() { + return cloudAutonomousVmClusterId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a + * resource has been deleted and purged from the system, then a retry of the original creation + * request may be rejected). + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + RestartCloudAutonomousVmClusterOrdsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The Cloud VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + */ + private String cloudAutonomousVmClusterId = null; + + /** + * The Cloud VM cluster + * [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + * + * @param cloudAutonomousVmClusterId the value to set + * @return this builder instance + */ + public Builder cloudAutonomousVmClusterId(String cloudAutonomousVmClusterId) { + this.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations (for example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request may be rejected). + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(RestartCloudAutonomousVmClusterOrdsRequest o) { + cloudAutonomousVmClusterId(o.getCloudAutonomousVmClusterId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of RestartCloudAutonomousVmClusterOrdsRequest as configured by this + * builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of RestartCloudAutonomousVmClusterOrdsRequest + */ + public RestartCloudAutonomousVmClusterOrdsRequest build() { + RestartCloudAutonomousVmClusterOrdsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of RestartCloudAutonomousVmClusterOrdsRequest as configured by this + * builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of RestartCloudAutonomousVmClusterOrdsRequest + */ + public RestartCloudAutonomousVmClusterOrdsRequest buildWithoutInvocationCallback() { + RestartCloudAutonomousVmClusterOrdsRequest request = + new RestartCloudAutonomousVmClusterOrdsRequest(); + request.cloudAutonomousVmClusterId = cloudAutonomousVmClusterId; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + request.ifMatch = ifMatch; + return request; + // new RestartCloudAutonomousVmClusterOrdsRequest(cloudAutonomousVmClusterId, + // opcRetryToken, opcRequestId, ifMatch); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .cloudAutonomousVmClusterId(cloudAutonomousVmClusterId) + .opcRetryToken(opcRetryToken) + .opcRequestId(opcRequestId) + .ifMatch(ifMatch); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",cloudAutonomousVmClusterId=") + .append(String.valueOf(this.cloudAutonomousVmClusterId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartCloudAutonomousVmClusterOrdsRequest)) { + return false; + } + + RestartCloudAutonomousVmClusterOrdsRequest other = + (RestartCloudAutonomousVmClusterOrdsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.cloudAutonomousVmClusterId, other.cloudAutonomousVmClusterId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.cloudAutonomousVmClusterId == null + ? 43 + : this.cloudAutonomousVmClusterId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java index 872cd282265..a773dd35a8c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/StopAutonomousDatabaseRequest.java @@ -13,7 +13,8 @@ */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class StopAutonomousDatabaseRequest - extends com.oracle.bmc.requests.BmcRequest { + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.database.model.StopAutonomousDatabaseDetails> { /** * The database [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -50,6 +51,15 @@ public String getIfMatch() { public String getOpcRequestId() { return opcRequestId; } + /** Request details to stop the Autonomous Database with force option. */ + private com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + stopAutonomousDatabaseDetails; + + /** Request details to stop the Autonomous Database with force option. */ + public com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + getStopAutonomousDatabaseDetails() { + return stopAutonomousDatabaseDetails; + } /** * Indicates that the request is a dry run, if set to "true". A dry run request does not * actually creating or updating a resource and is used only to perform validation on the @@ -66,9 +76,21 @@ public Boolean getOpcDryRun() { return opcDryRun; } + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.database.model.StopAutonomousDatabaseDetails getBody$() { + return stopAutonomousDatabaseDetails; + } + public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - StopAutonomousDatabaseRequest, java.lang.Void> { + StopAutonomousDatabaseRequest, + com.oracle.bmc.database.model.StopAutonomousDatabaseDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; @@ -126,6 +148,23 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Request details to stop the Autonomous Database with force option. */ + private com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + stopAutonomousDatabaseDetails = null; + + /** + * Request details to stop the Autonomous Database with force option. + * + * @param stopAutonomousDatabaseDetails the value to set + * @return this builder instance + */ + public Builder stopAutonomousDatabaseDetails( + com.oracle.bmc.database.model.StopAutonomousDatabaseDetails + stopAutonomousDatabaseDetails) { + this.stopAutonomousDatabaseDetails = stopAutonomousDatabaseDetails; + return this; + } + /** * Indicates that the request is a dry run, if set to "true". A dry run request does not * actually creating or updating a resource and is used only to perform validation on the @@ -179,6 +218,7 @@ public Builder copy(StopAutonomousDatabaseRequest o) { autonomousDatabaseId(o.getAutonomousDatabaseId()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); + stopAutonomousDatabaseDetails(o.getStopAutonomousDatabaseDetails()); opcDryRun(o.getOpcDryRun()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -203,6 +243,18 @@ public StopAutonomousDatabaseRequest build() { return request; } + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.database.model.StopAutonomousDatabaseDetails body) { + stopAutonomousDatabaseDetails(body); + return this; + } + /** * Build the instance of StopAutonomousDatabaseRequest as configured by this builder * @@ -217,10 +269,11 @@ public StopAutonomousDatabaseRequest buildWithoutInvocationCallback() { request.autonomousDatabaseId = autonomousDatabaseId; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; + request.stopAutonomousDatabaseDetails = stopAutonomousDatabaseDetails; request.opcDryRun = opcDryRun; return request; // new StopAutonomousDatabaseRequest(autonomousDatabaseId, ifMatch, opcRequestId, - // opcDryRun); + // stopAutonomousDatabaseDetails, opcDryRun); } } @@ -234,6 +287,7 @@ public Builder toBuilder() { .autonomousDatabaseId(autonomousDatabaseId) .ifMatch(ifMatch) .opcRequestId(opcRequestId) + .stopAutonomousDatabaseDetails(stopAutonomousDatabaseDetails) .opcDryRun(opcDryRun); } @@ -254,6 +308,8 @@ public String toString() { sb.append(",autonomousDatabaseId=").append(String.valueOf(this.autonomousDatabaseId)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",stopAutonomousDatabaseDetails=") + .append(String.valueOf(this.stopAutonomousDatabaseDetails)); sb.append(",opcDryRun=").append(String.valueOf(this.opcDryRun)); sb.append(")"); return sb.toString(); @@ -273,6 +329,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.autonomousDatabaseId, other.autonomousDatabaseId) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.stopAutonomousDatabaseDetails, other.stopAutonomousDatabaseDetails) && java.util.Objects.equals(this.opcDryRun, other.opcDryRun); } @@ -287,6 +345,11 @@ public int hashCode() { : this.autonomousDatabaseId.hashCode()); result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.stopAutonomousDatabaseDetails == null + ? 43 + : this.stopAutonomousDatabaseDetails.hashCode()); result = (result * PRIME) + (this.opcDryRun == null ? 43 : this.opcDryRun.hashCode()); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartAutonomousVmClusterOrdsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartAutonomousVmClusterOrdsResponse.java new file mode 100644 index 00000000000..7d5d1b13701 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartAutonomousVmClusterOrdsResponse.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartAutonomousVmClusterOrdsResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RestartAutonomousVmClusterOrdsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RestartAutonomousVmClusterOrdsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RestartAutonomousVmClusterOrdsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RestartAutonomousVmClusterOrdsResponse build() { + return new RestartAutonomousVmClusterOrdsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartAutonomousVmClusterOrdsResponse)) { + return false; + } + + RestartAutonomousVmClusterOrdsResponse other = (RestartAutonomousVmClusterOrdsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartCloudAutonomousVmClusterOrdsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartCloudAutonomousVmClusterOrdsResponse.java new file mode 100644 index 00000000000..1cf2b4ac57a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/RestartCloudAutonomousVmClusterOrdsResponse.java @@ -0,0 +1,196 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +public class RestartCloudAutonomousVmClusterOrdsResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work + * request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the + * status of the request. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private RestartCloudAutonomousVmClusterOrdsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + RestartCloudAutonomousVmClusterOrdsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + */ + private String opcWorkRequestId; + + /** + * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * work request. Multiple OCID values are returned in a comma-separated list. Use {@link + * #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track + * the status of the request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(RestartCloudAutonomousVmClusterOrdsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public RestartCloudAutonomousVmClusterOrdsResponse build() { + return new RestartCloudAutonomousVmClusterOrdsResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof RestartCloudAutonomousVmClusterOrdsResponse)) { + return false; + } + + RestartCloudAutonomousVmClusterOrdsResponse other = + (RestartCloudAutonomousVmClusterOrdsResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json index 10cdfa53c51..86349ed6256 100644 --- a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json +++ b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json @@ -5585,6 +5585,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.DbNode$AvailableActions", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.DbNode$MaintenanceType", @@ -5631,6 +5637,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.DbNodeSummary$AvailableActions", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.DbNodeSummary$MaintenanceType", @@ -9425,6 +9437,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RestartAutonomousContainerDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.RestartAutonomousDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.RestoreAutonomousDatabaseDetails", @@ -9952,6 +9992,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.StopAutonomousDatabaseDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.database.model.StopAutonomousDatabaseDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.database.model.StoragePerformanceDetails", diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 0a5443810a6..be153f7be2d 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 7136ee9ddcd..e82ae36dd49 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index cc2b6890126..7029e168836 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml index ad6dc15830d..a7e12205cb8 100644 --- a/bmc-databasetoolsruntime/pom.xml +++ b/bmc-databasetoolsruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-databasetoolsruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 7cb3ef7c191..65e1e8dd812 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index e15a8634778..2ee6083f6c5 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index d90e024ce0b..945cad80360 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index 2350ac52690..212a989029c 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 2985ecc7659..0a135328449 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index fd8557a93b1..58013a76119 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 711cef399a1..73d55e10c63 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml index a4c2b65462d..4fb431449bd 100644 --- a/bmc-dblm/pom.xml +++ b/bmc-dblm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-dblm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml index e733408aa28..d3a7d94a724 100644 --- a/bmc-dbmulticloud/pom.xml +++ b/bmc-dbmulticloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-dbmulticloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml index 56cc7d2c35b..0c1c8e84ec3 100644 --- a/bmc-delegateaccesscontrol/pom.xml +++ b/bmc-delegateaccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-delegateaccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index e8cb66e362b..05c7d969e4d 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index bdd1e953cb8..27283cbfb75 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java index 81e2a8603c7..fceb6494961 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolDetails.java @@ -49,6 +49,7 @@ public final class CreateDesktopPoolDetails "definedTags", "nsgIds", "privateAccessDetails", + "securityAttributes", "bootVolumeSizeInGBs" }) public CreateDesktopPoolDetails( @@ -77,6 +78,7 @@ public CreateDesktopPoolDetails( java.util.Map> definedTags, java.util.List nsgIds, CreateDesktopPoolPrivateAccessDetails privateAccessDetails, + java.util.Map> securityAttributes, Integer bootVolumeSizeInGBs) { super(); this.compartmentId = compartmentId; @@ -104,6 +106,7 @@ public CreateDesktopPoolDetails( this.definedTags = definedTags; this.nsgIds = nsgIds; this.privateAccessDetails = privateAccessDetails; + this.securityAttributes = securityAttributes; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; } @@ -469,6 +472,36 @@ public Builder privateAccessDetails( this.__explicitlySet__.add("privateAccessDetails"); return this; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** The size in GBs of the boot volume for the desktop pool. */ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") private Integer bootVolumeSizeInGBs; @@ -516,6 +549,7 @@ public CreateDesktopPoolDetails build() { this.definedTags, this.nsgIds, this.privateAccessDetails, + this.securityAttributes, this.bootVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -600,6 +634,9 @@ public Builder copy(CreateDesktopPoolDetails model) { if (model.wasPropertyExplicitlySet("privateAccessDetails")) { this.privateAccessDetails(model.getPrivateAccessDetails()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("bootVolumeSizeInGBs")) { this.bootVolumeSizeInGBs(model.getBootVolumeSizeInGBs()); } @@ -957,6 +994,33 @@ public CreateDesktopPoolPrivateAccessDetails getPrivateAccessDetails() { return privateAccessDetails; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** The size in GBs of the boot volume for the desktop pool. */ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") private final Integer bootVolumeSizeInGBs; @@ -1011,6 +1075,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateAccessDetails=").append(String.valueOf(this.privateAccessDetails)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); sb.append(")"); return sb.toString(); @@ -1052,6 +1117,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateAccessDetails, other.privateAccessDetails) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) && super.equals(other); } @@ -1131,6 +1197,11 @@ public int hashCode() { + (this.privateAccessDetails == null ? 43 : this.privateAccessDetails.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.bootVolumeSizeInGBs == null diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java index e54324e3ff6..9289fd06d93 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/CreateDesktopPoolPrivateAccessDetails.java @@ -24,13 +24,17 @@ public final class CreateDesktopPoolPrivateAccessDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"subnetId", "nsgIds", "privateIp"}) + @java.beans.ConstructorProperties({"subnetId", "nsgIds", "privateIp", "securityAttributes"}) public CreateDesktopPoolPrivateAccessDetails( - String subnetId, java.util.List nsgIds, String privateIp) { + String subnetId, + java.util.List nsgIds, + String privateIp, + java.util.Map> securityAttributes) { super(); this.subnetId = subnetId; this.nsgIds = nsgIds; this.privateIp = privateIp; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -88,6 +92,36 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -95,7 +129,7 @@ public Builder privateIp(String privateIp) { public CreateDesktopPoolPrivateAccessDetails build() { CreateDesktopPoolPrivateAccessDetails model = new CreateDesktopPoolPrivateAccessDetails( - this.subnetId, this.nsgIds, this.privateIp); + this.subnetId, this.nsgIds, this.privateIp, this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -113,6 +147,9 @@ public Builder copy(CreateDesktopPoolPrivateAccessDetails model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -173,6 +210,33 @@ public String getPrivateIp() { return privateIp; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -191,6 +255,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -208,6 +273,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -218,6 +284,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java index 554c641128e..b5705a00f32 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopNetworkConfiguration.java @@ -23,11 +23,15 @@ public final class DesktopNetworkConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"vcnId", "subnetId"}) - public DesktopNetworkConfiguration(String vcnId, String subnetId) { + @java.beans.ConstructorProperties({"vcnId", "subnetId", "securityAttributes"}) + public DesktopNetworkConfiguration( + String vcnId, + String subnetId, + java.util.Map> securityAttributes) { super(); this.vcnId = vcnId; this.subnetId = subnetId; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -70,13 +74,44 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public DesktopNetworkConfiguration build() { DesktopNetworkConfiguration model = - new DesktopNetworkConfiguration(this.vcnId, this.subnetId); + new DesktopNetworkConfiguration( + this.vcnId, this.subnetId, this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -91,6 +126,9 @@ public Builder copy(DesktopNetworkConfiguration model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -138,6 +176,33 @@ public String getSubnetId() { return subnetId; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -155,6 +220,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("vcnId=").append(String.valueOf(this.vcnId)); sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -171,6 +237,7 @@ public boolean equals(Object o) { DesktopNetworkConfiguration other = (DesktopNetworkConfiguration) o; return java.util.Objects.equals(this.vcnId, other.vcnId) && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -180,6 +247,11 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java index 73682f8de28..c6dc0990202 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPool.java @@ -48,6 +48,7 @@ public final class DesktopPool extends com.oracle.bmc.http.client.internal.Expli "availabilityDomain", "freeformTags", "definedTags", + "securityAttributes", "nsgIds", "privateAccessDetails", "bootVolumeSizeInGBs" @@ -79,6 +80,7 @@ public DesktopPool( String availabilityDomain, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> securityAttributes, java.util.List nsgIds, DesktopPoolPrivateAccessDetails privateAccessDetails, Integer bootVolumeSizeInGBs) { @@ -109,6 +111,7 @@ public DesktopPool( this.availabilityDomain = availabilityDomain; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; this.nsgIds = nsgIds; this.privateAccessDetails = privateAccessDetails; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; @@ -496,6 +499,36 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** A list of network security groups for the network. */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private java.util.List nsgIds; @@ -568,6 +601,7 @@ public DesktopPool build() { this.availabilityDomain, this.freeformTags, this.definedTags, + this.securityAttributes, this.nsgIds, this.privateAccessDetails, this.bootVolumeSizeInGBs); @@ -657,6 +691,9 @@ public Builder copy(DesktopPool model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("nsgIds")) { this.nsgIds(model.getNsgIds()); } @@ -1052,6 +1089,33 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** A list of network security groups for the network. */ @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") private final java.util.List nsgIds; @@ -1127,6 +1191,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", availabilityDomain=").append(String.valueOf(this.availabilityDomain)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateAccessDetails=").append(String.valueOf(this.privateAccessDetails)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); @@ -1171,6 +1236,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.availabilityDomain, other.availabilityDomain) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateAccessDetails, other.privateAccessDetails) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) @@ -1251,6 +1317,11 @@ public int hashCode() { : this.availabilityDomain.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java index 87dc94d40f4..4cd1f71cbed 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolPrivateAccessDetails.java @@ -24,19 +24,28 @@ public final class DesktopPoolPrivateAccessDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"vcnId", "endpointFqdn", "subnetId", "nsgIds", "privateIp"}) + @java.beans.ConstructorProperties({ + "vcnId", + "endpointFqdn", + "subnetId", + "nsgIds", + "privateIp", + "securityAttributes" + }) public DesktopPoolPrivateAccessDetails( String vcnId, String endpointFqdn, String subnetId, java.util.List nsgIds, - String privateIp) { + String privateIp, + java.util.Map> securityAttributes) { super(); this.vcnId = vcnId; this.endpointFqdn = endpointFqdn; this.subnetId = subnetId; this.nsgIds = nsgIds; this.privateIp = privateIp; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -136,6 +145,36 @@ public Builder privateIp(String privateIp) { this.__explicitlySet__.add("privateIp"); return this; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -147,7 +186,8 @@ public DesktopPoolPrivateAccessDetails build() { this.endpointFqdn, this.subnetId, this.nsgIds, - this.privateIp); + this.privateIp, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -171,6 +211,9 @@ public Builder copy(DesktopPoolPrivateAccessDetails model) { if (model.wasPropertyExplicitlySet("privateIp")) { this.privateIp(model.getPrivateIp()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -267,6 +310,33 @@ public String getPrivateIp() { return privateIp; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -287,6 +357,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", privateIp=").append(String.valueOf(this.privateIp)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -306,6 +377,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.privateIp, other.privateIp) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -318,6 +390,11 @@ public int hashCode() { result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + (this.privateIp == null ? 43 : this.privateIp.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java index 37a74516c08..aaad48244b0 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/DesktopPoolSummary.java @@ -32,6 +32,7 @@ public final class DesktopPoolSummary "activeDesktops", "freeformTags", "definedTags", + "securityAttributes", "contactDetails", "compartmentId", "timeCreated" @@ -44,6 +45,7 @@ public DesktopPoolSummary( Integer activeDesktops, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> securityAttributes, String contactDetails, String compartmentId, java.util.Date timeCreated) { @@ -55,6 +57,7 @@ public DesktopPoolSummary( this.activeDesktops = activeDesktops; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; this.contactDetails = contactDetails; this.compartmentId = compartmentId; this.timeCreated = timeCreated; @@ -184,6 +187,36 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * Contact information of the desktop pool administrator. Avoid entering confidential * information. @@ -247,6 +280,7 @@ public DesktopPoolSummary build() { this.activeDesktops, this.freeformTags, this.definedTags, + this.securityAttributes, this.contactDetails, this.compartmentId, this.timeCreated); @@ -279,6 +313,9 @@ public Builder copy(DesktopPoolSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("contactDetails")) { this.contactDetails(model.getContactDetails()); } @@ -408,6 +445,33 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * Contact information of the desktop pool administrator. Avoid entering confidential * information. @@ -473,6 +537,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", activeDesktops=").append(String.valueOf(this.activeDesktops)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", contactDetails=").append(String.valueOf(this.contactDetails)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -497,6 +562,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.activeDesktops, other.activeDesktops) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.contactDetails, other.contactDetails) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) @@ -518,6 +584,11 @@ public int hashCode() { + (this.activeDesktops == null ? 43 : this.activeDesktops.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.contactDetails == null ? 43 : this.contactDetails.hashCode()); diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopNetworkConfiguration.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopNetworkConfiguration.java new file mode 100644 index 00000000000..dd29fc1b012 --- /dev/null +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopNetworkConfiguration.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.desktops.model; + +/** + * Provides information about the network configuration of the desktop pool.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220618") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDesktopNetworkConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDesktopNetworkConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"securityAttributes"}) + public UpdateDesktopNetworkConfiguration( + java.util.Map> securityAttributes) { + super(); + this.securityAttributes = securityAttributes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDesktopNetworkConfiguration build() { + UpdateDesktopNetworkConfiguration model = + new UpdateDesktopNetworkConfiguration(this.securityAttributes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDesktopNetworkConfiguration model) { + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDesktopNetworkConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDesktopNetworkConfiguration)) { + return false; + } + + UpdateDesktopNetworkConfiguration other = (UpdateDesktopNetworkConfiguration) o; + return java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java index e6ca0ca607a..94669f52f77 100644 --- a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolDetails.java @@ -37,6 +37,9 @@ public final class UpdateDesktopPoolDetails "definedTags", "sessionLifecycleActions", "image", + "networkConfiguration", + "privateAccessDetails", + "securityAttributes", "bootVolumeSizeInGBs" }) public UpdateDesktopPoolDetails( @@ -53,6 +56,9 @@ public UpdateDesktopPoolDetails( java.util.Map> definedTags, UpdateDesktopPoolDesktopSessionLifecycleActions sessionLifecycleActions, UpdateDesktopImage image, + UpdateDesktopNetworkConfiguration networkConfiguration, + UpdateDesktopPoolPrivateAccessDetails privateAccessDetails, + java.util.Map> securityAttributes, Integer bootVolumeSizeInGBs) { super(); this.displayName = displayName; @@ -68,6 +74,9 @@ public UpdateDesktopPoolDetails( this.definedTags = definedTags; this.sessionLifecycleActions = sessionLifecycleActions; this.image = image; + this.networkConfiguration = networkConfiguration; + this.privateAccessDetails = privateAccessDetails; + this.securityAttributes = securityAttributes; this.bootVolumeSizeInGBs = bootVolumeSizeInGBs; } @@ -270,6 +279,56 @@ public Builder image(UpdateDesktopImage image) { this.__explicitlySet__.add("image"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("networkConfiguration") + private UpdateDesktopNetworkConfiguration networkConfiguration; + + public Builder networkConfiguration( + UpdateDesktopNetworkConfiguration networkConfiguration) { + this.networkConfiguration = networkConfiguration; + this.__explicitlySet__.add("networkConfiguration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateAccessDetails") + private UpdateDesktopPoolPrivateAccessDetails privateAccessDetails; + + public Builder privateAccessDetails( + UpdateDesktopPoolPrivateAccessDetails privateAccessDetails) { + this.privateAccessDetails = privateAccessDetails; + this.__explicitlySet__.add("privateAccessDetails"); + return this; + } + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** The size in GBs of the boot volume for the desktop pool. */ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") private Integer bootVolumeSizeInGBs; @@ -305,6 +364,9 @@ public UpdateDesktopPoolDetails build() { this.definedTags, this.sessionLifecycleActions, this.image, + this.networkConfiguration, + this.privateAccessDetails, + this.securityAttributes, this.bootVolumeSizeInGBs); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -353,6 +415,15 @@ public Builder copy(UpdateDesktopPoolDetails model) { if (model.wasPropertyExplicitlySet("image")) { this.image(model.getImage()); } + if (model.wasPropertyExplicitlySet("networkConfiguration")) { + this.networkConfiguration(model.getNetworkConfiguration()); + } + if (model.wasPropertyExplicitlySet("privateAccessDetails")) { + this.privateAccessDetails(model.getPrivateAccessDetails()); + } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("bootVolumeSizeInGBs")) { this.bootVolumeSizeInGBs(model.getBootVolumeSizeInGBs()); } @@ -538,6 +609,47 @@ public UpdateDesktopImage getImage() { return image; } + @com.fasterxml.jackson.annotation.JsonProperty("networkConfiguration") + private final UpdateDesktopNetworkConfiguration networkConfiguration; + + public UpdateDesktopNetworkConfiguration getNetworkConfiguration() { + return networkConfiguration; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateAccessDetails") + private final UpdateDesktopPoolPrivateAccessDetails privateAccessDetails; + + public UpdateDesktopPoolPrivateAccessDetails getPrivateAccessDetails() { + return privateAccessDetails; + } + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** The size in GBs of the boot volume for the desktop pool. */ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") private final Integer bootVolumeSizeInGBs; @@ -580,6 +692,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", sessionLifecycleActions=") .append(String.valueOf(this.sessionLifecycleActions)); sb.append(", image=").append(String.valueOf(this.image)); + sb.append(", networkConfiguration=").append(String.valueOf(this.networkConfiguration)); + sb.append(", privateAccessDetails=").append(String.valueOf(this.privateAccessDetails)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", bootVolumeSizeInGBs=").append(String.valueOf(this.bootVolumeSizeInGBs)); sb.append(")"); return sb.toString(); @@ -609,6 +724,9 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.sessionLifecycleActions, other.sessionLifecycleActions) && java.util.Objects.equals(this.image, other.image) + && java.util.Objects.equals(this.networkConfiguration, other.networkConfiguration) + && java.util.Objects.equals(this.privateAccessDetails, other.privateAccessDetails) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.bootVolumeSizeInGBs, other.bootVolumeSizeInGBs) && super.equals(other); } @@ -646,6 +764,21 @@ public int hashCode() { ? 43 : this.sessionLifecycleActions.hashCode()); result = (result * PRIME) + (this.image == null ? 43 : this.image.hashCode()); + result = + (result * PRIME) + + (this.networkConfiguration == null + ? 43 + : this.networkConfiguration.hashCode()); + result = + (result * PRIME) + + (this.privateAccessDetails == null + ? 43 + : this.privateAccessDetails.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.bootVolumeSizeInGBs == null diff --git a/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolPrivateAccessDetails.java b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolPrivateAccessDetails.java new file mode 100644 index 00000000000..a561c6250c8 --- /dev/null +++ b/bmc-desktops/src/main/java/com/oracle/bmc/desktops/model/UpdateDesktopPoolPrivateAccessDetails.java @@ -0,0 +1,170 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.desktops.model; + +/** + * The details of the desktop's private access network connectivity to be set up for the desktop + * pool.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220618") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateDesktopPoolPrivateAccessDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateDesktopPoolPrivateAccessDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"securityAttributes"}) + public UpdateDesktopPoolPrivateAccessDetails( + java.util.Map> securityAttributes) { + super(); + this.securityAttributes = securityAttributes; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) + * (ZPR) policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateDesktopPoolPrivateAccessDetails build() { + UpdateDesktopPoolPrivateAccessDetails model = + new UpdateDesktopPoolPrivateAccessDetails(this.securityAttributes); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateDesktopPoolPrivateAccessDetails model) { + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * [Security + * attributes](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/zpr-artifacts.htm#security-attributes) + * for this resource. Each attribute can be referenced in a [Zero Trust Packet + * Routing](https://docs.oracle.com/iaas/Content/zero-trust-packet-routing/overview.htm) (ZPR) + * policy to control access to ZPR-supported resources. + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "audit"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateDesktopPoolPrivateAccessDetails("); + sb.append("super=").append(super.toString()); + sb.append("securityAttributes=").append(String.valueOf(this.securityAttributes)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateDesktopPoolPrivateAccessDetails)) { + return false; + } + + UpdateDesktopPoolPrivateAccessDetails other = (UpdateDesktopPoolPrivateAccessDetails) o; + return java.util.Objects.equals(this.securityAttributes, other.securityAttributes) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-desktops/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-desktops/reflect-config.json b/bmc-desktops/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-desktops/reflect-config.json index 165bd12c412..fb73f10b558 100644 --- a/bmc-desktops/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-desktops/reflect-config.json +++ b/bmc-desktops/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-desktops/reflect-config.json @@ -509,6 +509,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.desktops.model.UpdateDesktopNetworkConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.desktops.model.UpdateDesktopNetworkConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.desktops.model.UpdateDesktopPoolDesktopSessionLifecycleActions", @@ -537,6 +551,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.desktops.model.UpdateDesktopPoolPrivateAccessDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.desktops.model.UpdateDesktopPoolPrivateAccessDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.desktops.model.WorkRequest", diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index f46da2fdb00..8f7b6ea4b6b 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml index 15ff034320e..f00cdab95eb 100644 --- a/bmc-dif/pom.xml +++ b/bmc-dif/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-dif @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index f68df7a29b6..1a9f7c43440 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml index efb7dec52bd..5750e66fce7 100644 --- a/bmc-distributeddatabase/pom.xml +++ b/bmc-distributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-distributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index c4ac50034f9..e512ed3e4d8 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.89.1 + 3.90.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 877303f2957..eb392c8389f 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 7c65c96e234..0d4dbff77dc 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 15ed7a33fc2..4656653d6ca 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 2f469355211..6ba0982d1f8 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.89.1 + 3.90.0 com.fasterxml.jackson.core @@ -48,7 +48,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 4bbb1d88ab4..a8b660e3919 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index a10bd708ab1..97cf0866efb 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index cc379c056ea..1fe3e5d9f07 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.89.1 + 3.90.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 559f78488cd..1b98b744586 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml index 13fa99a385a..fb506cd4a50 100644 --- a/bmc-fleetappsmanagement/pom.xml +++ b/bmc-fleetappsmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-fleetappsmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 76430c2f42f..5c924bfd443 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 82a7174ef71..90837fd3f4f 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.89.1 + 3.90.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index ac01fff6c89..44cc711b44d 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index e2bbcd9afca..ec600979346 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml index 7ef2fc237fd..dc6f70d4ed0 100644 --- a/bmc-gdp/pom.xml +++ b/bmc-gdp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-gdp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index f079a67620a..cce324aa36d 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml index aec4d1b3827..f0d0fbd0186 100644 --- a/bmc-generativeaiagent/pom.xml +++ b/bmc-generativeaiagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-generativeaiagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml index 1b136d9f807..c5b5122afd3 100644 --- a/bmc-generativeaiagentruntime/pom.xml +++ b/bmc-generativeaiagentruntime/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-generativeaiagentruntime @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml index 90969c095a4..74d287e7b50 100644 --- a/bmc-generativeaidata/pom.xml +++ b/bmc-generativeaidata/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-generativeaidata @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index e43256c749a..014047a8086 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index bccdb6040f7..50ab1e0343c 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 14f3ebd952d..2820a5aabf0 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 965cabe49e4..79c3e96e83f 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 2bce5888fbb..49faa719d40 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 71faab58155..af346aac99e 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index fa974aedc14..0a2ce24bf41 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 537b6f60b63..96143d04e31 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 5589c8e2a73..dd932f1c87c 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml index 53e176e4c1e..8aa2d75b722 100644 --- a/bmc-iot/pom.xml +++ b/bmc-iot/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-iot @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index d1cdfe00314..ecf1c747286 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index f345a7bc4ff..b7e7c897f68 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml index 7526ae0aa5e..a090bd6c240 100644 --- a/bmc-jmsutils/pom.xml +++ b/bmc-jmsutils/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-jmsutils @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index b05c094064b..db784a3d011 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 28f4f35f2e4..442956519ae 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 58ddd8c78e8..787b011173d 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml index e433206925c..b2d99d05a76 100644 --- a/bmc-limitsincrease/pom.xml +++ b/bmc-limitsincrease/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-limitsincrease @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index c280f6e3c4f..9c508f20738 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index b96ab0f7330..fbfce4677d0 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index d18596813a6..74313ff7857 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 47a4cac3af0..bea76de2982 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 0eeceabad3f..beb4db425e1 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index c1ffd0c71f5..095cb9300ed 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml index 72204d41b4d..e1c365414ca 100644 --- a/bmc-lustrefilestorage/pom.xml +++ b/bmc-lustrefilestorage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-lustrefilestorage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml index 95cf2ec8518..8a424138def 100644 --- a/bmc-managedkafka/pom.xml +++ b/bmc-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-managedkafka @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index f88c04e0ebc..c3fe158c2f8 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index ba95fe21d6d..00fb0ca9f87 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index e5b12bc2f8b..b0c14fc449c 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 8439fd869d0..625b166f6ba 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index 1a846a90c76..b0a23805e24 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 9347451990d..68d53302c84 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml index a115daceaba..7e1817e7147 100644 --- a/bmc-mngdmac/pom.xml +++ b/bmc-mngdmac/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-mngdmac @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml index b57681f3b4d..16927cfc132 100644 --- a/bmc-modeldeployment/pom.xml +++ b/bmc-modeldeployment/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-modeldeployment @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index bccdd5b4d2d..e30e2df6859 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml index ca28919bd30..dd64fe7fac2 100644 --- a/bmc-multicloud/pom.xml +++ b/bmc-multicloud/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-multicloud @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 1e4d4e780ec..0f29bcce9ab 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 15b2e8bbdf7..2f1a938d9ef 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 0eddba34058..ba59b44ba8f 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 9b074b4e105..3bb26129131 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 38e28d9b39c..ed9f51d8264 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.89.1 + 3.90.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.89.1 + 3.90.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index e2b859fcb11..62cd8889a49 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.89.1 + 3.90.0 ../pom.xml @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.89.1 + 3.90.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 48538770b22..411b1f34d27 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.89.1 + 3.90.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java index 8d651596208..929915ffa2f 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePrivateEndpointDetails.java @@ -33,7 +33,8 @@ public final class CreatePrivateEndpointDetails "nsgIds", "accessTargets", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public CreatePrivateEndpointDetails( String name, @@ -45,7 +46,8 @@ public CreatePrivateEndpointDetails( java.util.List nsgIds, java.util.List accessTargets, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.name = name; this.compartmentId = compartmentId; @@ -57,6 +59,7 @@ public CreatePrivateEndpointDetails( this.accessTargets = accessTargets; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -260,6 +263,34 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -276,7 +307,8 @@ public CreatePrivateEndpointDetails build() { this.nsgIds, this.accessTargets, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -315,6 +347,9 @@ public Builder copy(CreatePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -506,6 +541,29 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -531,6 +589,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -555,6 +614,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessTargets, other.accessTargets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -582,6 +642,11 @@ public int hashCode() { + (this.accessTargets == null ? 43 : this.accessTargets.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java index ae73b97b920..842cc605ab5 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/PrivateEndpoint.java @@ -42,6 +42,7 @@ public final class PrivateEndpoint "accessTargets", "freeformTags", "definedTags", + "securityAttributes", "id" }) public PrivateEndpoint( @@ -62,6 +63,7 @@ public PrivateEndpoint( java.util.List accessTargets, java.util.Map freeformTags, java.util.Map> definedTags, + java.util.Map> securityAttributes, String id) { super(); this.name = name; @@ -81,6 +83,7 @@ public PrivateEndpoint( this.accessTargets = accessTargets; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; this.id = id; } @@ -400,6 +403,34 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * PrivateEndpoint. @@ -443,6 +474,7 @@ public PrivateEndpoint build() { this.accessTargets, this.freeformTags, this.definedTags, + this.securityAttributes, this.id); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -503,6 +535,9 @@ public Builder copy(PrivateEndpoint model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } @@ -849,6 +884,29 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the * PrivateEndpoint. @@ -898,6 +956,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(")"); return sb.toString(); @@ -930,6 +989,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessTargets, other.accessTargets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && java.util.Objects.equals(this.id, other.id) && super.equals(other); } @@ -967,6 +1027,11 @@ public int hashCode() { + (this.accessTargets == null ? 43 : this.accessTargets.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java index 15ad4b2c37e..b3abd44a6a0 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdatePrivateEndpointDetails.java @@ -28,20 +28,23 @@ public final class UpdatePrivateEndpointDetails "namespace", "accessTargets", "freeformTags", - "definedTags" + "definedTags", + "securityAttributes" }) public UpdatePrivateEndpointDetails( String name, String namespace, java.util.List accessTargets, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> securityAttributes) { super(); this.name = name; this.namespace = namespace; this.accessTargets = accessTargets; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.securityAttributes = securityAttributes; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -142,6 +145,34 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": + * "enforce"}}}} + * + * @param securityAttributes the value to set + * @return this builder + */ + public Builder securityAttributes( + java.util.Map> securityAttributes) { + this.securityAttributes = securityAttributes; + this.__explicitlySet__.add("securityAttributes"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -153,7 +184,8 @@ public UpdatePrivateEndpointDetails build() { this.namespace, this.accessTargets, this.freeformTags, - this.definedTags); + this.definedTags, + this.securityAttributes); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -177,6 +209,9 @@ public Builder copy(UpdatePrivateEndpointDetails model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("securityAttributes")) { + this.securityAttributes(model.getSecurityAttributes()); + } return this; } } @@ -275,6 +310,29 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("securityAttributes") + private final java.util.Map> securityAttributes; + + /** + * Security attributes for Private Endpoint resource. Each key is predefined and scoped to a + * namespace. For more information, see [Resource + * Tags](https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + * + *

Example: {@code {"Oracle-ZPR": {"MaxEgressCount": {"value": "42", "mode": "enforce"}}}} + * + * @return the value + */ + public java.util.Map> getSecurityAttributes() { + return securityAttributes; + } + @Override public String toString() { return this.toString(true); @@ -295,6 +353,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", accessTargets=").append(String.valueOf(this.accessTargets)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", securityAttributes=").append(String.valueOf(this.securityAttributes)); sb.append(")"); return sb.toString(); } @@ -314,6 +373,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.accessTargets, other.accessTargets) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.securityAttributes, other.securityAttributes) && super.equals(other); } @@ -328,6 +388,11 @@ public int hashCode() { + (this.accessTargets == null ? 43 : this.accessTargets.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = + (result * PRIME) + + (this.securityAttributes == null + ? 43 + : this.securityAttributes.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 37967e0b985..5117e6fc5a5 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index ee20e9b6351..392e4e8c3d2 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index e82e60a318e..4c212a6fa52 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index d703e287117..8fd46e69fe0 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 5ab480ac7b1..65f600c5a62 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index f5807953a17..74c874c9b18 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 47fbb9ad9c0..e2111beb198 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index fbba7cd7472..375d0a9320d 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index 2e08e90217a..7a2c14cd6ff 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CoordinatorNodeHostType.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CoordinatorNodeHostType.java new file mode 100644 index 00000000000..c226a1c2b1e --- /dev/null +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CoordinatorNodeHostType.java @@ -0,0 +1,52 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.opensearch.model; + +/** The instance type for the cluster's coordinator nodes. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +public enum CoordinatorNodeHostType implements com.oracle.bmc.http.internal.BmcEnum { + Flex("FLEX"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CoordinatorNodeHostType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CoordinatorNodeHostType v : CoordinatorNodeHostType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CoordinatorNodeHostType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CoordinatorNodeHostType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CoordinatorNodeHostType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java index 7c86d15a955..b948878589b 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CreateOpensearchClusterDetails.java @@ -50,6 +50,11 @@ public final class CreateOpensearchClusterDetails "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", "searchNodeStorageGB", + "coordinatorNodeCount", + "coordinatorNodeHostType", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", "mlNodeCount", "mlNodeHostType", "mlNodeHostShape", @@ -104,6 +109,11 @@ public CreateOpensearchClusterDetails( Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, Integer searchNodeStorageGB, + Integer coordinatorNodeCount, + CoordinatorNodeHostType coordinatorNodeHostType, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, Integer mlNodeCount, MlNodeHostType mlNodeHostType, String mlNodeHostShape, @@ -157,6 +167,11 @@ public CreateOpensearchClusterDetails( this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; this.searchNodeStorageGB = searchNodeStorageGB; + this.coordinatorNodeCount = coordinatorNodeCount; + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; this.mlNodeCount = mlNodeCount; this.mlNodeHostType = mlNodeHostType; this.mlNodeHostShape = mlNodeHostShape; @@ -579,6 +594,81 @@ public Builder searchNodeStorageGB(Integer searchNodeStorageGB) { this.__explicitlySet__.add("searchNodeStorageGB"); return this; } + /** The number of coordinator nodes configured for the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * + * @param coordinatorNodeCount the value to set + * @return this builder + */ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } + /** The instance type for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostType the value to set + * @return this builder + */ + public Builder coordinatorNodeHostType(CoordinatorNodeHostType coordinatorNodeHostType) { + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.__explicitlySet__.add("coordinatorNodeHostType"); + return this; + } + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostShape the value to set + * @return this builder + */ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + */ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + */ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } /** The number of ML nodes configured for the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeCount") private Integer mlNodeCount; @@ -993,6 +1083,11 @@ public CreateOpensearchClusterDetails build() { this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, this.searchNodeStorageGB, + this.coordinatorNodeCount, + this.coordinatorNodeHostType, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, this.mlNodeCount, this.mlNodeHostType, this.mlNodeHostShape, @@ -1105,6 +1200,21 @@ public Builder copy(CreateOpensearchClusterDetails model) { if (model.wasPropertyExplicitlySet("searchNodeStorageGB")) { this.searchNodeStorageGB(model.getSearchNodeStorageGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostType")) { + this.coordinatorNodeHostType(model.getCoordinatorNodeHostType()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } if (model.wasPropertyExplicitlySet("mlNodeCount")) { this.mlNodeCount(model.getMlNodeCount()); } @@ -1535,6 +1645,71 @@ public Integer getSearchNodeStorageGB() { return searchNodeStorageGB; } + /** The number of coordinator nodes configured for the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * + * @return the value + */ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + + /** The instance type for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private final CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * + * @return the value + */ + public CoordinatorNodeHostType getCoordinatorNodeHostType() { + return coordinatorNodeHostType; + } + + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @return the value + */ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + /** The number of ML nodes configured for the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeCount") private final Integer mlNodeCount; @@ -1907,6 +2082,15 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); sb.append(", searchNodeStorageGB=").append(String.valueOf(this.searchNodeStorageGB)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); + sb.append(", coordinatorNodeHostType=") + .append(String.valueOf(this.coordinatorNodeHostType)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); sb.append(", mlNodeCount=").append(String.valueOf(this.mlNodeCount)); sb.append(", mlNodeHostType=").append(String.valueOf(this.mlNodeHostType)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); @@ -1985,6 +2169,15 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) && java.util.Objects.equals(this.searchNodeStorageGB, other.searchNodeStorageGB) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) + && java.util.Objects.equals( + this.coordinatorNodeHostType, other.coordinatorNodeHostType) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) && java.util.Objects.equals(this.mlNodeCount, other.mlNodeCount) && java.util.Objects.equals(this.mlNodeHostType, other.mlNodeHostType) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) @@ -2132,6 +2325,31 @@ public int hashCode() { + (this.searchNodeStorageGB == null ? 43 : this.searchNodeStorageGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostType == null + ? 43 + : this.coordinatorNodeHostType.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); result = (result * PRIME) + (this.mlNodeCount == null ? 43 : this.mlNodeCount.hashCode()); result = (result * PRIME) diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java index e6b76ec703f..128824b1b47 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/OpensearchCluster.java @@ -65,6 +65,11 @@ public final class OpensearchCluster "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", "searchNodeStorageGB", + "coordinatorNodeCount", + "coordinatorNodeHostType", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", "mlNodeCount", "mlNodeHostType", "mlNodeHostShape", @@ -133,6 +138,11 @@ public OpensearchCluster( Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, Integer searchNodeStorageGB, + Integer coordinatorNodeCount, + CoordinatorNodeHostType coordinatorNodeHostType, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, Integer mlNodeCount, MlNodeHostType mlNodeHostType, String mlNodeHostShape, @@ -200,6 +210,11 @@ public OpensearchCluster( this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; this.searchNodeStorageGB = searchNodeStorageGB; + this.coordinatorNodeCount = coordinatorNodeCount; + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; this.mlNodeCount = mlNodeCount; this.mlNodeHostType = mlNodeHostType; this.mlNodeHostShape = mlNodeHostShape; @@ -818,6 +833,81 @@ public Builder searchNodeStorageGB(Integer searchNodeStorageGB) { this.__explicitlySet__.add("searchNodeStorageGB"); return this; } + /** The number of coordinator nodes configured for the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * + * @param coordinatorNodeCount the value to set + * @return this builder + */ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } + /** The instance type for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostType the value to set + * @return this builder + */ + public Builder coordinatorNodeHostType(CoordinatorNodeHostType coordinatorNodeHostType) { + this.coordinatorNodeHostType = coordinatorNodeHostType; + this.__explicitlySet__.add("coordinatorNodeHostType"); + return this; + } + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostShape the value to set + * @return this builder + */ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + */ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + */ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } /** The number of ML nodes configured for the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeCount") private Integer mlNodeCount; @@ -1263,6 +1353,11 @@ public OpensearchCluster build() { this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, this.searchNodeStorageGB, + this.coordinatorNodeCount, + this.coordinatorNodeHostType, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, this.mlNodeCount, this.mlNodeHostType, this.mlNodeHostShape, @@ -1411,6 +1506,21 @@ public Builder copy(OpensearchCluster model) { if (model.wasPropertyExplicitlySet("searchNodeStorageGB")) { this.searchNodeStorageGB(model.getSearchNodeStorageGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostType")) { + this.coordinatorNodeHostType(model.getCoordinatorNodeHostType()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } if (model.wasPropertyExplicitlySet("mlNodeCount")) { this.mlNodeCount(model.getMlNodeCount()); } @@ -2067,6 +2177,71 @@ public Integer getSearchNodeStorageGB() { return searchNodeStorageGB; } + /** The number of coordinator nodes configured for the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * + * @return the value + */ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + + /** The instance type for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostType") + private final CoordinatorNodeHostType coordinatorNodeHostType; + + /** + * The instance type for the cluster's coordinator nodes. + * + * @return the value + */ + public CoordinatorNodeHostType getCoordinatorNodeHostType() { + return coordinatorNodeHostType; + } + + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @return the value + */ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + /** The number of ML nodes configured for the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeCount") private final Integer mlNodeCount; @@ -2464,6 +2639,15 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); sb.append(", searchNodeStorageGB=").append(String.valueOf(this.searchNodeStorageGB)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); + sb.append(", coordinatorNodeHostType=") + .append(String.valueOf(this.coordinatorNodeHostType)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); sb.append(", mlNodeCount=").append(String.valueOf(this.mlNodeCount)); sb.append(", mlNodeHostType=").append(String.valueOf(this.mlNodeHostType)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); @@ -2557,6 +2741,15 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) && java.util.Objects.equals(this.searchNodeStorageGB, other.searchNodeStorageGB) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) + && java.util.Objects.equals( + this.coordinatorNodeHostType, other.coordinatorNodeHostType) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) && java.util.Objects.equals(this.mlNodeCount, other.mlNodeCount) && java.util.Objects.equals(this.mlNodeHostType, other.mlNodeHostType) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) @@ -2729,6 +2922,31 @@ public int hashCode() { + (this.searchNodeStorageGB == null ? 43 : this.searchNodeStorageGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostType == null + ? 43 + : this.coordinatorNodeHostType.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); result = (result * PRIME) + (this.mlNodeCount == null ? 43 : this.mlNodeCount.hashCode()); result = (result * PRIME) diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java index 6cb84fc35d6..4ef8a899469 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterHorizontalDetails.java @@ -30,6 +30,7 @@ public final class ResizeOpensearchClusterHorizontalDetails "dataNodeCount", "opendashboardNodeCount", "searchNodeCount", + "coordinatorNodeCount", "mlNodeCount", "freeformTags", "definedTags" @@ -39,6 +40,7 @@ public ResizeOpensearchClusterHorizontalDetails( Integer dataNodeCount, Integer opendashboardNodeCount, Integer searchNodeCount, + Integer coordinatorNodeCount, Integer mlNodeCount, java.util.Map freeformTags, java.util.Map> definedTags) { @@ -47,6 +49,7 @@ public ResizeOpensearchClusterHorizontalDetails( this.dataNodeCount = dataNodeCount; this.opendashboardNodeCount = opendashboardNodeCount; this.searchNodeCount = searchNodeCount; + this.coordinatorNodeCount = coordinatorNodeCount; this.mlNodeCount = mlNodeCount; this.freeformTags = freeformTags; this.definedTags = definedTags; @@ -114,6 +117,21 @@ public Builder searchNodeCount(Integer searchNodeCount) { this.__explicitlySet__.add("searchNodeCount"); return this; } + /** The number of coordinator nodes configured for the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * + * @param coordinatorNodeCount the value to set + * @return this builder + */ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } /** The number of ML nodes configured for the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeCount") private Integer mlNodeCount; @@ -179,6 +197,7 @@ public ResizeOpensearchClusterHorizontalDetails build() { this.dataNodeCount, this.opendashboardNodeCount, this.searchNodeCount, + this.coordinatorNodeCount, this.mlNodeCount, this.freeformTags, this.definedTags); @@ -202,6 +221,9 @@ public Builder copy(ResizeOpensearchClusterHorizontalDetails model) { if (model.wasPropertyExplicitlySet("searchNodeCount")) { this.searchNodeCount(model.getSearchNodeCount()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } if (model.wasPropertyExplicitlySet("mlNodeCount")) { this.mlNodeCount(model.getMlNodeCount()); } @@ -276,6 +298,19 @@ public Integer getSearchNodeCount() { return searchNodeCount; } + /** The number of coordinator nodes configured for the cluster. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * The number of coordinator nodes configured for the cluster. + * + * @return the value + */ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + /** The number of ML nodes configured for the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeCount") private final Integer mlNodeCount; @@ -342,6 +377,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dataNodeCount=").append(String.valueOf(this.dataNodeCount)); sb.append(", opendashboardNodeCount=").append(String.valueOf(this.opendashboardNodeCount)); sb.append(", searchNodeCount=").append(String.valueOf(this.searchNodeCount)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); sb.append(", mlNodeCount=").append(String.valueOf(this.mlNodeCount)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); @@ -365,6 +401,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.opendashboardNodeCount, other.opendashboardNodeCount) && java.util.Objects.equals(this.searchNodeCount, other.searchNodeCount) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) && java.util.Objects.equals(this.mlNodeCount, other.mlNodeCount) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) @@ -389,6 +426,11 @@ public int hashCode() { result = (result * PRIME) + (this.searchNodeCount == null ? 43 : this.searchNodeCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); result = (result * PRIME) + (this.mlNodeCount == null ? 43 : this.mlNodeCount.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java index 1b75790fd2a..6f0e8967dba 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/ResizeOpensearchClusterVerticalDetails.java @@ -40,6 +40,9 @@ public final class ResizeOpensearchClusterVerticalDetails "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", "searchNodeStorageGB", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", "mlNodeHostShape", "mlNodeHostOcpuCount", "mlNodeHostMemoryGB", @@ -62,6 +65,9 @@ public ResizeOpensearchClusterVerticalDetails( Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, Integer searchNodeStorageGB, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, String mlNodeHostShape, Integer mlNodeHostOcpuCount, Integer mlNodeHostMemoryGB, @@ -83,6 +89,9 @@ public ResizeOpensearchClusterVerticalDetails( this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; this.searchNodeStorageGB = searchNodeStorageGB; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; this.mlNodeHostShape = mlNodeHostShape; this.mlNodeHostOcpuCount = mlNodeHostOcpuCount; this.mlNodeHostMemoryGB = mlNodeHostMemoryGB; @@ -305,6 +314,51 @@ public Builder searchNodeStorageGB(Integer searchNodeStorageGB) { this.__explicitlySet__.add("searchNodeStorageGB"); return this; } + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostShape the value to set + * @return this builder + */ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + */ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + */ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } /** The node shape for the cluster's ML nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeHostShape") private String mlNodeHostShape; @@ -425,6 +479,9 @@ public ResizeOpensearchClusterVerticalDetails build() { this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, this.searchNodeStorageGB, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, this.mlNodeHostShape, this.mlNodeHostOcpuCount, this.mlNodeHostMemoryGB, @@ -481,6 +538,15 @@ public Builder copy(ResizeOpensearchClusterVerticalDetails model) { if (model.wasPropertyExplicitlySet("searchNodeStorageGB")) { this.searchNodeStorageGB(model.getSearchNodeStorageGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } if (model.wasPropertyExplicitlySet("mlNodeHostShape")) { this.mlNodeHostShape(model.getMlNodeHostShape()); } @@ -694,6 +760,45 @@ public Integer getSearchNodeStorageGB() { return searchNodeStorageGB; } + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @return the value + */ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + /** The node shape for the cluster's ML nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeHostShape") private final String mlNodeHostShape; @@ -813,6 +918,12 @@ public String toString(boolean includeByteArrayContents) { .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); sb.append(", searchNodeStorageGB=").append(String.valueOf(this.searchNodeStorageGB)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); sb.append(", mlNodeHostOcpuCount=").append(String.valueOf(this.mlNodeHostOcpuCount)); sb.append(", mlNodeHostMemoryGB=").append(String.valueOf(this.mlNodeHostMemoryGB)); @@ -853,6 +964,12 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) && java.util.Objects.equals(this.searchNodeStorageGB, other.searchNodeStorageGB) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) && java.util.Objects.equals(this.mlNodeHostOcpuCount, other.mlNodeHostOcpuCount) && java.util.Objects.equals(this.mlNodeHostMemoryGB, other.mlNodeHostMemoryGB) @@ -932,6 +1049,21 @@ public int hashCode() { + (this.searchNodeStorageGB == null ? 43 : this.searchNodeStorageGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); result = (result * PRIME) + (this.mlNodeHostShape == null ? 43 : this.mlNodeHostShape.hashCode()); diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java index 9d688051c34..a12ec4940c9 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java +++ b/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/UpdateClusterSpecsDetails.java @@ -34,6 +34,10 @@ public final class UpdateClusterSpecsDetails "searchNodeHostShape", "searchNodeHostOcpuCount", "searchNodeHostMemoryGB", + "coordinatorNodeHostShape", + "coordinatorNodeHostOcpuCount", + "coordinatorNodeHostMemoryGB", + "coordinatorNodeCount", "mlNodeHostShape", "mlNodeHostOcpuCount", "mlNodeHostMemoryGB", @@ -53,6 +57,10 @@ public UpdateClusterSpecsDetails( String searchNodeHostShape, Integer searchNodeHostOcpuCount, Integer searchNodeHostMemoryGB, + String coordinatorNodeHostShape, + Integer coordinatorNodeHostOcpuCount, + Integer coordinatorNodeHostMemoryGB, + Integer coordinatorNodeCount, String mlNodeHostShape, Integer mlNodeHostOcpuCount, Integer mlNodeHostMemoryGB, @@ -71,6 +79,10 @@ public UpdateClusterSpecsDetails( this.searchNodeHostShape = searchNodeHostShape; this.searchNodeHostOcpuCount = searchNodeHostOcpuCount; this.searchNodeHostMemoryGB = searchNodeHostMemoryGB; + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.coordinatorNodeCount = coordinatorNodeCount; this.mlNodeHostShape = mlNodeHostShape; this.mlNodeHostOcpuCount = mlNodeHostOcpuCount; this.mlNodeHostMemoryGB = mlNodeHostMemoryGB; @@ -232,6 +244,66 @@ public Builder searchNodeHostMemoryGB(Integer searchNodeHostMemoryGB) { this.__explicitlySet__.add("searchNodeHostMemoryGB"); return this; } + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostShape the value to set + * @return this builder + */ + public Builder coordinatorNodeHostShape(String coordinatorNodeHostShape) { + this.coordinatorNodeHostShape = coordinatorNodeHostShape; + this.__explicitlySet__.add("coordinatorNodeHostShape"); + return this; + } + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostOcpuCount the value to set + * @return this builder + */ + public Builder coordinatorNodeHostOcpuCount(Integer coordinatorNodeHostOcpuCount) { + this.coordinatorNodeHostOcpuCount = coordinatorNodeHostOcpuCount; + this.__explicitlySet__.add("coordinatorNodeHostOcpuCount"); + return this; + } + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @param coordinatorNodeHostMemoryGB the value to set + * @return this builder + */ + public Builder coordinatorNodeHostMemoryGB(Integer coordinatorNodeHostMemoryGB) { + this.coordinatorNodeHostMemoryGB = coordinatorNodeHostMemoryGB; + this.__explicitlySet__.add("coordinatorNodeHostMemoryGB"); + return this; + } + /** Updated value of number of coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private Integer coordinatorNodeCount; + + /** + * Updated value of number of coordinator nodes. + * + * @param coordinatorNodeCount the value to set + * @return this builder + */ + public Builder coordinatorNodeCount(Integer coordinatorNodeCount) { + this.coordinatorNodeCount = coordinatorNodeCount; + this.__explicitlySet__.add("coordinatorNodeCount"); + return this; + } /** The node shape for the cluster's ML nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeHostShape") private String mlNodeHostShape; @@ -354,6 +426,10 @@ public UpdateClusterSpecsDetails build() { this.searchNodeHostShape, this.searchNodeHostOcpuCount, this.searchNodeHostMemoryGB, + this.coordinatorNodeHostShape, + this.coordinatorNodeHostOcpuCount, + this.coordinatorNodeHostMemoryGB, + this.coordinatorNodeCount, this.mlNodeHostShape, this.mlNodeHostOcpuCount, this.mlNodeHostMemoryGB, @@ -399,6 +475,18 @@ public Builder copy(UpdateClusterSpecsDetails model) { if (model.wasPropertyExplicitlySet("searchNodeHostMemoryGB")) { this.searchNodeHostMemoryGB(model.getSearchNodeHostMemoryGB()); } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostShape")) { + this.coordinatorNodeHostShape(model.getCoordinatorNodeHostShape()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostOcpuCount")) { + this.coordinatorNodeHostOcpuCount(model.getCoordinatorNodeHostOcpuCount()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeHostMemoryGB")) { + this.coordinatorNodeHostMemoryGB(model.getCoordinatorNodeHostMemoryGB()); + } + if (model.wasPropertyExplicitlySet("coordinatorNodeCount")) { + this.coordinatorNodeCount(model.getCoordinatorNodeCount()); + } if (model.wasPropertyExplicitlySet("mlNodeHostShape")) { this.mlNodeHostShape(model.getMlNodeHostShape()); } @@ -563,6 +651,58 @@ public Integer getSearchNodeHostMemoryGB() { return searchNodeHostMemoryGB; } + /** The node shape for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostShape") + private final String coordinatorNodeHostShape; + + /** + * The node shape for the cluster's coordinator nodes. + * + * @return the value + */ + public String getCoordinatorNodeHostShape() { + return coordinatorNodeHostShape; + } + + /** The number of OCPUs configured for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostOcpuCount") + private final Integer coordinatorNodeHostOcpuCount; + + /** + * The number of OCPUs configured for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostOcpuCount() { + return coordinatorNodeHostOcpuCount; + } + + /** The amount of memory in GB, for the cluster's coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeHostMemoryGB") + private final Integer coordinatorNodeHostMemoryGB; + + /** + * The amount of memory in GB, for the cluster's coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeHostMemoryGB() { + return coordinatorNodeHostMemoryGB; + } + + /** Updated value of number of coordinator nodes. */ + @com.fasterxml.jackson.annotation.JsonProperty("coordinatorNodeCount") + private final Integer coordinatorNodeCount; + + /** + * Updated value of number of coordinator nodes. + * + * @return the value + */ + public Integer getCoordinatorNodeCount() { + return coordinatorNodeCount; + } + /** The node shape for the cluster's ML nodes. */ @com.fasterxml.jackson.annotation.JsonProperty("mlNodeHostShape") private final String mlNodeHostShape; @@ -681,6 +821,13 @@ public String toString(boolean includeByteArrayContents) { sb.append(", searchNodeHostOcpuCount=") .append(String.valueOf(this.searchNodeHostOcpuCount)); sb.append(", searchNodeHostMemoryGB=").append(String.valueOf(this.searchNodeHostMemoryGB)); + sb.append(", coordinatorNodeHostShape=") + .append(String.valueOf(this.coordinatorNodeHostShape)); + sb.append(", coordinatorNodeHostOcpuCount=") + .append(String.valueOf(this.coordinatorNodeHostOcpuCount)); + sb.append(", coordinatorNodeHostMemoryGB=") + .append(String.valueOf(this.coordinatorNodeHostMemoryGB)); + sb.append(", coordinatorNodeCount=").append(String.valueOf(this.coordinatorNodeCount)); sb.append(", mlNodeHostShape=").append(String.valueOf(this.mlNodeHostShape)); sb.append(", mlNodeHostOcpuCount=").append(String.valueOf(this.mlNodeHostOcpuCount)); sb.append(", mlNodeHostMemoryGB=").append(String.valueOf(this.mlNodeHostMemoryGB)); @@ -718,6 +865,13 @@ public boolean equals(Object o) { this.searchNodeHostOcpuCount, other.searchNodeHostOcpuCount) && java.util.Objects.equals( this.searchNodeHostMemoryGB, other.searchNodeHostMemoryGB) + && java.util.Objects.equals( + this.coordinatorNodeHostShape, other.coordinatorNodeHostShape) + && java.util.Objects.equals( + this.coordinatorNodeHostOcpuCount, other.coordinatorNodeHostOcpuCount) + && java.util.Objects.equals( + this.coordinatorNodeHostMemoryGB, other.coordinatorNodeHostMemoryGB) + && java.util.Objects.equals(this.coordinatorNodeCount, other.coordinatorNodeCount) && java.util.Objects.equals(this.mlNodeHostShape, other.mlNodeHostShape) && java.util.Objects.equals(this.mlNodeHostOcpuCount, other.mlNodeHostOcpuCount) && java.util.Objects.equals(this.mlNodeHostMemoryGB, other.mlNodeHostMemoryGB) @@ -779,6 +933,26 @@ public int hashCode() { + (this.searchNodeHostMemoryGB == null ? 43 : this.searchNodeHostMemoryGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostShape == null + ? 43 + : this.coordinatorNodeHostShape.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostOcpuCount == null + ? 43 + : this.coordinatorNodeHostOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeHostMemoryGB == null + ? 43 + : this.coordinatorNodeHostMemoryGB.hashCode()); + result = + (result * PRIME) + + (this.coordinatorNodeCount == null + ? 43 + : this.coordinatorNodeCount.hashCode()); result = (result * PRIME) + (this.mlNodeHostShape == null ? 43 : this.mlNodeHostShape.hashCode()); diff --git a/bmc-opensearch/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opensearch/reflect-config.json b/bmc-opensearch/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opensearch/reflect-config.json index 8120bba1bfa..1c0a98159d6 100644 --- a/bmc-opensearch/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opensearch/reflect-config.json +++ b/bmc-opensearch/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-opensearch/reflect-config.json @@ -141,6 +141,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.opensearch.model.CoordinatorNodeHostType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opensearch.model.CreateMaintenanceDetails", @@ -183,20 +189,6 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.opensearch.model.CustomerLoggingDetails", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.opensearch.model.CustomerLoggingDetails$Builder", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true - }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.opensearch.model.DataNodeHostType", diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index b05c661b6e0..2766bf0ce6d 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java index db12b245ecf..f8dc67487b0 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequests.java @@ -12,8 +12,6 @@ * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. - * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java index a29a448dffa..2cbf3f72ada 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. - * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface AccessRequestsAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java index 189c1a309a6..a22724dcf0b 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsAsyncClient.java @@ -110,7 +110,10 @@ public java.util.concurrent.Future approveAccessRe return clientCall(request, ApproveAccessRequestResponse::builder) .logger(LOG, "approveAccessRequest") - .serviceDetails("AccessRequests", "ApproveAccessRequest", "") + .serviceDetails( + "AccessRequests", + "ApproveAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ApproveAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ApproveAccessRequestRequest::builder) .basePath("/20200630") @@ -142,7 +145,10 @@ public java.util.concurrent.Future getAccessRequest( return clientCall(request, GetAccessRequestResponse::builder) .logger(LOG, "getAccessRequest") - .serviceDetails("AccessRequests", "GetAccessRequest", "") + .serviceDetails( + "AccessRequests", + "GetAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/GetAccessRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAccessRequestRequest::builder) .basePath("/20200630") @@ -169,7 +175,10 @@ public java.util.concurrent.Future getAuditLogReport( return clientCall(request, GetAuditLogReportResponse::builder) .logger(LOG, "getAuditLogReport") - .serviceDetails("AccessRequests", "GetAuditLogReport", "") + .serviceDetails( + "AccessRequests", + "GetAuditLogReport", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AuditLogReport/GetAuditLogReport") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAuditLogReportRequest::builder) .basePath("/20200630") @@ -200,7 +209,10 @@ public java.util.concurrent.Future interactionReques return clientCall(request, InteractionRequestResponse::builder) .logger(LOG, "interactionRequest") - .serviceDetails("AccessRequests", "InteractionRequest", "") + .serviceDetails( + "AccessRequests", + "InteractionRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/InteractionRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(InteractionRequestRequest::builder) .basePath("/20200630") @@ -235,7 +247,10 @@ public java.util.concurrent.Future interactionReques return clientCall(request, ListAccessRequestHistoriesResponse::builder) .logger(LOG, "listAccessRequestHistories") - .serviceDetails("AccessRequests", "ListAccessRequestHistories", "") + .serviceDetails( + "AccessRequests", + "ListAccessRequestHistories", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequestHistories") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListAccessRequestHistoriesRequest::builder) .basePath("/20200630") @@ -267,7 +282,10 @@ public java.util.concurrent.Future listAccessRequest return clientCall(request, ListAccessRequestsResponse::builder) .logger(LOG, "listAccessRequests") - .serviceDetails("AccessRequests", "ListAccessRequests", "") + .serviceDetails( + "AccessRequests", + "ListAccessRequests", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListAccessRequestsRequest::builder) .basePath("/20200630") @@ -276,6 +294,7 @@ public java.util.concurrent.Future listAccessRequest .appendQueryParam("resourceName", request.getResourceName()) .appendQueryParam("resourceType", request.getResourceType()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("numDays", request.getNumDays()) .appendQueryParam("timeStart", request.getTimeStart()) .appendQueryParam("timeEnd", request.getTimeEnd()) .appendQueryParam("limit", request.getLimit()) @@ -305,7 +324,10 @@ public java.util.concurrent.Future listInteractions( return clientCall(request, ListInteractionsResponse::builder) .logger(LOG, "listInteractions") - .serviceDetails("AccessRequests", "ListInteractions", "") + .serviceDetails( + "AccessRequests", + "ListInteractions", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListInteractions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListInteractionsRequest::builder) .basePath("/20200630") @@ -339,7 +361,10 @@ public java.util.concurrent.Future rejectAccessRequ return clientCall(request, RejectAccessRequestResponse::builder) .logger(LOG, "rejectAccessRequest") - .serviceDetails("AccessRequests", "RejectAccessRequest", "") + .serviceDetails( + "AccessRequests", + "RejectAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RejectAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RejectAccessRequestRequest::builder) .basePath("/20200630") @@ -373,7 +398,10 @@ public java.util.concurrent.Future reviewAccessRequ return clientCall(request, ReviewAccessRequestResponse::builder) .logger(LOG, "reviewAccessRequest") - .serviceDetails("AccessRequests", "ReviewAccessRequest", "") + .serviceDetails( + "AccessRequests", + "ReviewAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ReviewAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ReviewAccessRequestRequest::builder) .basePath("/20200630") @@ -408,7 +436,10 @@ public java.util.concurrent.Future revokeAccessRequ return clientCall(request, RevokeAccessRequestResponse::builder) .logger(LOG, "revokeAccessRequest") - .serviceDetails("AccessRequests", "RevokeAccessRequest", "") + .serviceDetails( + "AccessRequests", + "RevokeAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RevokeAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RevokeAccessRequestRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java index dc3ae87f274..e03119454ef 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/AccessRequestsClient.java @@ -133,7 +133,10 @@ public ApproveAccessRequestResponse approveAccessRequest(ApproveAccessRequestReq return clientCall(request, ApproveAccessRequestResponse::builder) .logger(LOG, "approveAccessRequest") - .serviceDetails("AccessRequests", "ApproveAccessRequest", "") + .serviceDetails( + "AccessRequests", + "ApproveAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ApproveAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ApproveAccessRequestRequest::builder) .basePath("/20200630") @@ -162,7 +165,10 @@ public GetAccessRequestResponse getAccessRequest(GetAccessRequestRequest request return clientCall(request, GetAccessRequestResponse::builder) .logger(LOG, "getAccessRequest") - .serviceDetails("AccessRequests", "GetAccessRequest", "") + .serviceDetails( + "AccessRequests", + "GetAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/GetAccessRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAccessRequestRequest::builder) .basePath("/20200630") @@ -186,7 +192,10 @@ public GetAuditLogReportResponse getAuditLogReport(GetAuditLogReportRequest requ return clientCall(request, GetAuditLogReportResponse::builder) .logger(LOG, "getAuditLogReport") - .serviceDetails("AccessRequests", "GetAuditLogReport", "") + .serviceDetails( + "AccessRequests", + "GetAuditLogReport", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AuditLogReport/GetAuditLogReport") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAuditLogReportRequest::builder) .basePath("/20200630") @@ -214,7 +223,10 @@ public InteractionRequestResponse interactionRequest(InteractionRequestRequest r return clientCall(request, InteractionRequestResponse::builder) .logger(LOG, "interactionRequest") - .serviceDetails("AccessRequests", "InteractionRequest", "") + .serviceDetails( + "AccessRequests", + "InteractionRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/InteractionRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(InteractionRequestRequest::builder) .basePath("/20200630") @@ -245,7 +257,10 @@ public ListAccessRequestHistoriesResponse listAccessRequestHistories( return clientCall(request, ListAccessRequestHistoriesResponse::builder) .logger(LOG, "listAccessRequestHistories") - .serviceDetails("AccessRequests", "ListAccessRequestHistories", "") + .serviceDetails( + "AccessRequests", + "ListAccessRequestHistories", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequestHistories") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListAccessRequestHistoriesRequest::builder) .basePath("/20200630") @@ -274,7 +289,10 @@ public ListAccessRequestsResponse listAccessRequests(ListAccessRequestsRequest r return clientCall(request, ListAccessRequestsResponse::builder) .logger(LOG, "listAccessRequests") - .serviceDetails("AccessRequests", "ListAccessRequests", "") + .serviceDetails( + "AccessRequests", + "ListAccessRequests", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListAccessRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListAccessRequestsRequest::builder) .basePath("/20200630") @@ -283,6 +301,7 @@ public ListAccessRequestsResponse listAccessRequests(ListAccessRequestsRequest r .appendQueryParam("resourceName", request.getResourceName()) .appendQueryParam("resourceType", request.getResourceType()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .appendQueryParam("numDays", request.getNumDays()) .appendQueryParam("timeStart", request.getTimeStart()) .appendQueryParam("timeEnd", request.getTimeEnd()) .appendQueryParam("limit", request.getLimit()) @@ -309,7 +328,10 @@ public ListInteractionsResponse listInteractions(ListInteractionsRequest request return clientCall(request, ListInteractionsResponse::builder) .logger(LOG, "listInteractions") - .serviceDetails("AccessRequests", "ListInteractions", "") + .serviceDetails( + "AccessRequests", + "ListInteractions", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ListInteractions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListInteractionsRequest::builder) .basePath("/20200630") @@ -340,7 +362,10 @@ public RejectAccessRequestResponse rejectAccessRequest(RejectAccessRequestReques return clientCall(request, RejectAccessRequestResponse::builder) .logger(LOG, "rejectAccessRequest") - .serviceDetails("AccessRequests", "RejectAccessRequest", "") + .serviceDetails( + "AccessRequests", + "RejectAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RejectAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RejectAccessRequestRequest::builder) .basePath("/20200630") @@ -371,7 +396,10 @@ public ReviewAccessRequestResponse reviewAccessRequest(ReviewAccessRequestReques return clientCall(request, ReviewAccessRequestResponse::builder) .logger(LOG, "reviewAccessRequest") - .serviceDetails("AccessRequests", "ReviewAccessRequest", "") + .serviceDetails( + "AccessRequests", + "ReviewAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/ReviewAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ReviewAccessRequestRequest::builder) .basePath("/20200630") @@ -403,7 +431,10 @@ public RevokeAccessRequestResponse revokeAccessRequest(RevokeAccessRequestReques return clientCall(request, RevokeAccessRequestResponse::builder) .logger(LOG, "revokeAccessRequest") - .serviceDetails("AccessRequests", "RevokeAccessRequest", "") + .serviceDetails( + "AccessRequests", + "RevokeAccessRequest", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/AccessRequest/RevokeAccessRequest") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RevokeAccessRequestRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java index 5a38d26668a..6774cebf599 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActions.java @@ -12,8 +12,6 @@ * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. - * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java index a93640d9f75..18f23a454a8 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. - * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface OperatorActionsAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java index d083957d4b1..c042af24764 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsAsyncClient.java @@ -107,7 +107,10 @@ public java.util.concurrent.Future getOperatorAction( return clientCall(request, GetOperatorActionResponse::builder) .logger(LOG, "getOperatorAction") - .serviceDetails("OperatorActions", "GetOperatorAction", "") + .serviceDetails( + "OperatorActions", + "GetOperatorAction", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/GetOperatorAction") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetOperatorActionRequest::builder) .basePath("/20200630") @@ -133,7 +136,10 @@ public java.util.concurrent.Future listOperatorActi return clientCall(request, ListOperatorActionsResponse::builder) .logger(LOG, "listOperatorActions") - .serviceDetails("OperatorActions", "ListOperatorActions", "") + .serviceDetails( + "OperatorActions", + "ListOperatorActions", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/ListOperatorActions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListOperatorActionsRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java index ba9bfbd956c..5cbc3aabd47 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorActionsClient.java @@ -96,7 +96,10 @@ public GetOperatorActionResponse getOperatorAction(GetOperatorActionRequest requ return clientCall(request, GetOperatorActionResponse::builder) .logger(LOG, "getOperatorAction") - .serviceDetails("OperatorActions", "GetOperatorAction", "") + .serviceDetails( + "OperatorActions", + "GetOperatorAction", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/GetOperatorAction") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetOperatorActionRequest::builder) .basePath("/20200630") @@ -119,7 +122,10 @@ public ListOperatorActionsResponse listOperatorActions(ListOperatorActionsReques return clientCall(request, ListOperatorActionsResponse::builder) .logger(LOG, "listOperatorActions") - .serviceDetails("OperatorActions", "ListOperatorActions", "") + .serviceDetails( + "OperatorActions", + "ListOperatorActions", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorAction/ListOperatorActions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListOperatorActionsRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java index 1b0fcdfc01e..727ba56f704 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControl.java @@ -12,8 +12,6 @@ * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. - * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java index ebc82166b0b..e1885beec3c 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignment.java @@ -12,8 +12,6 @@ * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. - * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. */ diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java index e1e8f51c16a..b45af078d71 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. - * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface OperatorControlAssignmentAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java index 0c564bad874..29682816c7d 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentAsyncClient.java @@ -118,7 +118,7 @@ public void setRegion(String regionId) { .serviceDetails( "OperatorControlAssignment", "ChangeOperatorControlAssignmentCompartment", - "") + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ChangeOperatorControlAssignmentCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeOperatorControlAssignmentCompartmentRequest::builder) .basePath("/20200630") @@ -151,7 +151,10 @@ public void setRegion(String regionId) { return clientCall(request, CreateOperatorControlAssignmentResponse::builder) .logger(LOG, "createOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "CreateOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "CreateOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/CreateOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -189,7 +192,10 @@ public void setRegion(String regionId) { return clientCall(request, DeleteOperatorControlAssignmentResponse::builder) .logger(LOG, "deleteOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "DeleteOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "DeleteOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/DeleteOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -220,7 +226,10 @@ public void setRegion(String regionId) { return clientCall(request, GetAssignmentValidationStatusResponse::builder) .logger(LOG, "getAssignmentValidationStatus") - .serviceDetails("OperatorControlAssignment", "GetAssignmentValidationStatus", "") + .serviceDetails( + "OperatorControlAssignment", + "GetAssignmentValidationStatus", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetAssignmentValidationStatus") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAssignmentValidationStatusRequest::builder) .basePath("/20200630") @@ -256,7 +265,10 @@ public void setRegion(String regionId) { return clientCall(request, GetOperatorControlAssignmentResponse::builder) .logger(LOG, "getOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "GetOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "GetOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -287,7 +299,10 @@ public void setRegion(String regionId) { return clientCall(request, ListOperatorControlAssignmentsResponse::builder) .logger(LOG, "listOperatorControlAssignments") - .serviceDetails("OperatorControlAssignment", "ListOperatorControlAssignments", "") + .serviceDetails( + "OperatorControlAssignment", + "ListOperatorControlAssignments", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ListOperatorControlAssignments") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListOperatorControlAssignmentsRequest::builder) .basePath("/20200630") @@ -335,7 +350,10 @@ public void setRegion(String regionId) { return clientCall(request, UpdateOperatorControlAssignmentResponse::builder) .logger(LOG, "updateOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "UpdateOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "UpdateOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/UpdateOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -374,7 +392,10 @@ public void setRegion(String regionId) { return clientCall(request, ValidateOperatorAssignmentResponse::builder) .logger(LOG, "validateOperatorAssignment") - .serviceDetails("OperatorControlAssignment", "ValidateOperatorAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "ValidateOperatorAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ValidateOperatorAssignment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ValidateOperatorAssignmentRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java index 2f1b96a2718..25beafb18b9 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAssignmentClient.java @@ -142,7 +142,7 @@ public void setRegion(String regionId) { .serviceDetails( "OperatorControlAssignment", "ChangeOperatorControlAssignmentCompartment", - "") + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ChangeOperatorControlAssignmentCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeOperatorControlAssignmentCompartmentRequest::builder) .basePath("/20200630") @@ -171,7 +171,10 @@ public CreateOperatorControlAssignmentResponse createOperatorControlAssignment( return clientCall(request, CreateOperatorControlAssignmentResponse::builder) .logger(LOG, "createOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "CreateOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "CreateOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/CreateOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -205,7 +208,10 @@ public DeleteOperatorControlAssignmentResponse deleteOperatorControlAssignment( return clientCall(request, DeleteOperatorControlAssignmentResponse::builder) .logger(LOG, "deleteOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "DeleteOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "DeleteOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/DeleteOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -232,7 +238,10 @@ public GetAssignmentValidationStatusResponse getAssignmentValidationStatus( return clientCall(request, GetAssignmentValidationStatusResponse::builder) .logger(LOG, "getAssignmentValidationStatus") - .serviceDetails("OperatorControlAssignment", "GetAssignmentValidationStatus", "") + .serviceDetails( + "OperatorControlAssignment", + "GetAssignmentValidationStatus", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetAssignmentValidationStatus") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAssignmentValidationStatusRequest::builder) .basePath("/20200630") @@ -264,7 +273,10 @@ public GetOperatorControlAssignmentResponse getOperatorControlAssignment( return clientCall(request, GetOperatorControlAssignmentResponse::builder) .logger(LOG, "getOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "GetOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "GetOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/GetOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -291,7 +303,10 @@ public ListOperatorControlAssignmentsResponse listOperatorControlAssignments( return clientCall(request, ListOperatorControlAssignmentsResponse::builder) .logger(LOG, "listOperatorControlAssignments") - .serviceDetails("OperatorControlAssignment", "ListOperatorControlAssignments", "") + .serviceDetails( + "OperatorControlAssignment", + "ListOperatorControlAssignments", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ListOperatorControlAssignments") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListOperatorControlAssignmentsRequest::builder) .basePath("/20200630") @@ -335,7 +350,10 @@ public UpdateOperatorControlAssignmentResponse updateOperatorControlAssignment( return clientCall(request, UpdateOperatorControlAssignmentResponse::builder) .logger(LOG, "updateOperatorControlAssignment") - .serviceDetails("OperatorControlAssignment", "UpdateOperatorControlAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "UpdateOperatorControlAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/UpdateOperatorControlAssignment") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateOperatorControlAssignmentRequest::builder) .basePath("/20200630") @@ -370,7 +388,10 @@ public ValidateOperatorAssignmentResponse validateOperatorAssignment( return clientCall(request, ValidateOperatorAssignmentResponse::builder) .logger(LOG, "validateOperatorAssignment") - .serviceDetails("OperatorControlAssignment", "ValidateOperatorAssignment", "") + .serviceDetails( + "OperatorControlAssignment", + "ValidateOperatorAssignment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControlAssignment/ValidateOperatorAssignment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ValidateOperatorAssignmentRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java index b2549bc114d..a9f2fbf1103 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsync.java @@ -11,8 +11,6 @@ * Operator Access Control enables you to control the time duration and the actions an Oracle * operator can perform on your Exadata Cloud@Customer infrastructure. Using logging service, you * can view a near real-time audit report of all actions performed by an Oracle operator. - * - *

Use the table of contents and search tool to explore the OperatorAccessControl API. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20200630") public interface OperatorControlAsync extends AutoCloseable { diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java index 7a89d858b2d..4c774f84d79 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlAsyncClient.java @@ -112,7 +112,10 @@ public void setRegion(String regionId) { return clientCall(request, ChangeOperatorControlCompartmentResponse::builder) .logger(LOG, "changeOperatorControlCompartment") - .serviceDetails("OperatorControl", "ChangeOperatorControlCompartment", "") + .serviceDetails( + "OperatorControl", + "ChangeOperatorControlCompartment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ChangeOperatorControlCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeOperatorControlCompartmentRequest::builder) .basePath("/20200630") @@ -143,7 +146,10 @@ public java.util.concurrent.Future createOperator return clientCall(request, CreateOperatorControlResponse::builder) .logger(LOG, "createOperatorControl") - .serviceDetails("OperatorControl", "CreateOperatorControl", "") + .serviceDetails( + "OperatorControl", + "CreateOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/CreateOperatorControl") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateOperatorControlRequest::builder) .basePath("/20200630") @@ -172,7 +178,10 @@ public java.util.concurrent.Future deleteOperator return clientCall(request, DeleteOperatorControlResponse::builder) .logger(LOG, "deleteOperatorControl") - .serviceDetails("OperatorControl", "DeleteOperatorControl", "") + .serviceDetails( + "OperatorControl", + "DeleteOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/DeleteOperatorControl") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteOperatorControlRequest::builder) .basePath("/20200630") @@ -198,7 +207,10 @@ public java.util.concurrent.Future getOperatorContro return clientCall(request, GetOperatorControlResponse::builder) .logger(LOG, "getOperatorControl") - .serviceDetails("OperatorControl", "GetOperatorControl", "") + .serviceDetails( + "OperatorControl", + "GetOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/GetOperatorControl") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetOperatorControlRequest::builder) .basePath("/20200630") @@ -225,7 +237,10 @@ public java.util.concurrent.Future listOperatorCon return clientCall(request, ListOperatorControlsResponse::builder) .logger(LOG, "listOperatorControls") - .serviceDetails("OperatorControl", "ListOperatorControls", "") + .serviceDetails( + "OperatorControl", + "ListOperatorControls", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ListOperatorControls") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListOperatorControlsRequest::builder) .basePath("/20200630") @@ -264,7 +279,10 @@ public java.util.concurrent.Future updateOperator return clientCall(request, UpdateOperatorControlResponse::builder) .logger(LOG, "updateOperatorControl") - .serviceDetails("OperatorControl", "UpdateOperatorControl", "") + .serviceDetails( + "OperatorControl", + "UpdateOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/UpdateOperatorControl") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateOperatorControlRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java index 46ec6b432f6..44ca5b84a81 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/OperatorControlClient.java @@ -134,7 +134,10 @@ public ChangeOperatorControlCompartmentResponse changeOperatorControlCompartment return clientCall(request, ChangeOperatorControlCompartmentResponse::builder) .logger(LOG, "changeOperatorControlCompartment") - .serviceDetails("OperatorControl", "ChangeOperatorControlCompartment", "") + .serviceDetails( + "OperatorControl", + "ChangeOperatorControlCompartment", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ChangeOperatorControlCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeOperatorControlCompartmentRequest::builder) .basePath("/20200630") @@ -163,7 +166,10 @@ public CreateOperatorControlResponse createOperatorControl( return clientCall(request, CreateOperatorControlResponse::builder) .logger(LOG, "createOperatorControl") - .serviceDetails("OperatorControl", "CreateOperatorControl", "") + .serviceDetails( + "OperatorControl", + "CreateOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/CreateOperatorControl") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateOperatorControlRequest::builder) .basePath("/20200630") @@ -190,7 +196,10 @@ public DeleteOperatorControlResponse deleteOperatorControl( return clientCall(request, DeleteOperatorControlResponse::builder) .logger(LOG, "deleteOperatorControl") - .serviceDetails("OperatorControl", "DeleteOperatorControl", "") + .serviceDetails( + "OperatorControl", + "DeleteOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/DeleteOperatorControl") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteOperatorControlRequest::builder) .basePath("/20200630") @@ -213,7 +222,10 @@ public GetOperatorControlResponse getOperatorControl(GetOperatorControlRequest r return clientCall(request, GetOperatorControlResponse::builder) .logger(LOG, "getOperatorControl") - .serviceDetails("OperatorControl", "GetOperatorControl", "") + .serviceDetails( + "OperatorControl", + "GetOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/GetOperatorControl") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetOperatorControlRequest::builder) .basePath("/20200630") @@ -237,7 +249,10 @@ public ListOperatorControlsResponse listOperatorControls(ListOperatorControlsReq return clientCall(request, ListOperatorControlsResponse::builder) .logger(LOG, "listOperatorControls") - .serviceDetails("OperatorControl", "ListOperatorControls", "") + .serviceDetails( + "OperatorControl", + "ListOperatorControls", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/ListOperatorControls") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListOperatorControlsRequest::builder) .basePath("/20200630") @@ -274,7 +289,10 @@ public UpdateOperatorControlResponse updateOperatorControl( return clientCall(request, UpdateOperatorControlResponse::builder) .logger(LOG, "updateOperatorControl") - .serviceDetails("OperatorControl", "UpdateOperatorControl", "") + .serviceDetails( + "OperatorControl", + "UpdateOperatorControl", + "https://docs.oracle.com/iaas/api/#/en/operatoraccesscontrol/20200630/OperatorControl/UpdateOperatorControl") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateOperatorControlRequest::builder) .basePath("/20200630") diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java index a9773a9e0fb..ff04610b674 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/AccessRequestSummary.java @@ -32,6 +32,7 @@ public final class AccessRequestSummary "resourceName", "subResourceList", "resourceType", + "actionRequestsList", "lifecycleState", "lifecycleDetails", "timeOfCreation", @@ -54,6 +55,7 @@ public AccessRequestSummary( String resourceName, java.util.List subResourceList, ResourceTypes resourceType, + java.util.List actionRequestsList, AccessRequestLifecycleStates lifecycleState, String lifecycleDetails, java.util.Date timeOfCreation, @@ -75,6 +77,7 @@ public AccessRequestSummary( this.resourceName = resourceName; this.subResourceList = subResourceList; this.resourceType = resourceType; + this.actionRequestsList = actionRequestsList; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.timeOfCreation = timeOfCreation; @@ -215,6 +218,21 @@ public Builder resourceType(ResourceTypes resourceType) { this.__explicitlySet__.add("resourceType"); return this; } + /** List of operator actions for which approval is sought by the operator user. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionRequestsList") + private java.util.List actionRequestsList; + + /** + * List of operator actions for which approval is sought by the operator user. + * + * @param actionRequestsList the value to set + * @return this builder + */ + public Builder actionRequestsList(java.util.List actionRequestsList) { + this.actionRequestsList = actionRequestsList; + this.__explicitlySet__.add("actionRequestsList"); + return this; + } /** The current state of the AccessRequest. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private AccessRequestLifecycleStates lifecycleState; @@ -439,6 +457,7 @@ public AccessRequestSummary build() { this.resourceName, this.subResourceList, this.resourceType, + this.actionRequestsList, this.lifecycleState, this.lifecycleDetails, this.timeOfCreation, @@ -483,6 +502,9 @@ public Builder copy(AccessRequestSummary model) { if (model.wasPropertyExplicitlySet("resourceType")) { this.resourceType(model.getResourceType()); } + if (model.wasPropertyExplicitlySet("actionRequestsList")) { + this.actionRequestsList(model.getActionRequestsList()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -640,6 +662,19 @@ public ResourceTypes getResourceType() { return resourceType; } + /** List of operator actions for which approval is sought by the operator user. */ + @com.fasterxml.jackson.annotation.JsonProperty("actionRequestsList") + private final java.util.List actionRequestsList; + + /** + * List of operator actions for which approval is sought by the operator user. + * + * @return the value + */ + public java.util.List getActionRequestsList() { + return actionRequestsList; + } + /** The current state of the AccessRequest. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final AccessRequestLifecycleStates lifecycleState; @@ -847,6 +882,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", resourceName=").append(String.valueOf(this.resourceName)); sb.append(", subResourceList=").append(String.valueOf(this.subResourceList)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); + sb.append(", actionRequestsList=").append(String.valueOf(this.actionRequestsList)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeOfCreation=").append(String.valueOf(this.timeOfCreation)); @@ -882,6 +918,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resourceName, other.resourceName) && java.util.Objects.equals(this.subResourceList, other.subResourceList) && java.util.Objects.equals(this.resourceType, other.resourceType) + && java.util.Objects.equals(this.actionRequestsList, other.actionRequestsList) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeOfCreation, other.timeOfCreation) @@ -918,6 +955,11 @@ public int hashCode() { (result * PRIME) + (this.subResourceList == null ? 43 : this.subResourceList.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); + result = + (result * PRIME) + + (this.actionRequestsList == null + ? 43 + : this.actionRequestsList.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java index a70635a0e7c..a3cb038dd60 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/CreateOperatorControlDetails.java @@ -41,6 +41,7 @@ public final class CreateOperatorControlDetails "isFullyPreApproved", "resourceType", "numberOfApprovers", + "notificationTopicId", "emailIdList", "systemMessage", "compartmentId", @@ -56,6 +57,7 @@ public CreateOperatorControlDetails( Boolean isFullyPreApproved, ResourceTypes resourceType, Integer numberOfApprovers, + String notificationTopicId, java.util.List emailIdList, String systemMessage, String compartmentId, @@ -70,6 +72,7 @@ public CreateOperatorControlDetails( this.isFullyPreApproved = isFullyPreApproved; this.resourceType = resourceType; this.numberOfApprovers = numberOfApprovers; + this.notificationTopicId = notificationTopicId; this.emailIdList = emailIdList; this.systemMessage = systemMessage; this.compartmentId = compartmentId; @@ -217,6 +220,25 @@ public Builder numberOfApprovers(Integer numberOfApprovers) { this.__explicitlySet__.add("numberOfApprovers"); return this; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator + * control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator + * control. + * + * @param notificationTopicId the value to set + * @return this builder + */ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } /** List of emailId. */ @com.fasterxml.jackson.annotation.JsonProperty("emailIdList") private java.util.List emailIdList; @@ -316,6 +338,7 @@ public CreateOperatorControlDetails build() { this.isFullyPreApproved, this.resourceType, this.numberOfApprovers, + this.notificationTopicId, this.emailIdList, this.systemMessage, this.compartmentId, @@ -353,6 +376,9 @@ public Builder copy(CreateOperatorControlDetails model) { if (model.wasPropertyExplicitlySet("numberOfApprovers")) { this.numberOfApprovers(model.getNumberOfApprovers()); } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } if (model.wasPropertyExplicitlySet("emailIdList")) { this.emailIdList(model.getEmailIdList()); } @@ -503,6 +529,21 @@ public Integer getNumberOfApprovers() { return numberOfApprovers; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * + * @return the value + */ + public String getNotificationTopicId() { + return notificationTopicId; + } + /** List of emailId. */ @com.fasterxml.jackson.annotation.JsonProperty("emailIdList") private final java.util.List emailIdList; @@ -598,6 +639,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", isFullyPreApproved=").append(String.valueOf(this.isFullyPreApproved)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); sb.append(", numberOfApprovers=").append(String.valueOf(this.numberOfApprovers)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", emailIdList=").append(String.valueOf(this.emailIdList)); sb.append(", systemMessage=").append(String.valueOf(this.systemMessage)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); @@ -626,6 +668,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.isFullyPreApproved, other.isFullyPreApproved) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.numberOfApprovers, other.numberOfApprovers) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.emailIdList, other.emailIdList) && java.util.Objects.equals(this.systemMessage, other.systemMessage) && java.util.Objects.equals(this.compartmentId, other.compartmentId) @@ -666,6 +709,11 @@ public int hashCode() { result = (result * PRIME) + (this.numberOfApprovers == null ? 43 : this.numberOfApprovers.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); result = (result * PRIME) + (this.emailIdList == null ? 43 : this.emailIdList.hashCode()); result = (result * PRIME) diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java index e70a50ae133..8792e28c143 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControl.java @@ -33,6 +33,7 @@ public final class OperatorControl "preApprovedOpActionList", "approvalRequiredOpActionList", "isFullyPreApproved", + "notificationTopicId", "emailIdList", "resourceType", "systemMessage", @@ -56,6 +57,7 @@ public OperatorControl( java.util.List preApprovedOpActionList, java.util.List approvalRequiredOpActionList, Boolean isFullyPreApproved, + String notificationTopicId, java.util.List emailIdList, ResourceTypes resourceType, String systemMessage, @@ -78,6 +80,7 @@ public OperatorControl( this.preApprovedOpActionList = preApprovedOpActionList; this.approvalRequiredOpActionList = approvalRequiredOpActionList; this.isFullyPreApproved = isFullyPreApproved; + this.notificationTopicId = notificationTopicId; this.emailIdList = emailIdList; this.resourceType = resourceType; this.systemMessage = systemMessage; @@ -242,6 +245,25 @@ public Builder isFullyPreApproved(Boolean isFullyPreApproved) { this.__explicitlySet__.add("isFullyPreApproved"); return this; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator + * control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator + * control. + * + * @param notificationTopicId the value to set + * @return this builder + */ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } /** List of emailId. */ @com.fasterxml.jackson.annotation.JsonProperty("emailIdList") private java.util.List emailIdList; @@ -481,6 +503,7 @@ public OperatorControl build() { this.preApprovedOpActionList, this.approvalRequiredOpActionList, this.isFullyPreApproved, + this.notificationTopicId, this.emailIdList, this.resourceType, this.systemMessage, @@ -526,6 +549,9 @@ public Builder copy(OperatorControl model) { if (model.wasPropertyExplicitlySet("isFullyPreApproved")) { this.isFullyPreApproved(model.getIsFullyPreApproved()); } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } if (model.wasPropertyExplicitlySet("emailIdList")) { this.emailIdList(model.getEmailIdList()); } @@ -708,6 +734,21 @@ public Boolean getIsFullyPreApproved() { return isFullyPreApproved; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * + * @return the value + */ + public String getNotificationTopicId() { + return notificationTopicId; + } + /** List of emailId. */ @com.fasterxml.jackson.annotation.JsonProperty("emailIdList") private final java.util.List emailIdList; @@ -930,6 +971,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", approvalRequiredOpActionList=") .append(String.valueOf(this.approvalRequiredOpActionList)); sb.append(", isFullyPreApproved=").append(String.valueOf(this.isFullyPreApproved)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", emailIdList=").append(String.valueOf(this.emailIdList)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); sb.append(", systemMessage=").append(String.valueOf(this.systemMessage)); @@ -968,6 +1010,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.approvalRequiredOpActionList, other.approvalRequiredOpActionList) && java.util.Objects.equals(this.isFullyPreApproved, other.isFullyPreApproved) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.emailIdList, other.emailIdList) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.systemMessage, other.systemMessage) @@ -1019,6 +1062,11 @@ public int hashCode() { + (this.isFullyPreApproved == null ? 43 : this.isFullyPreApproved.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); result = (result * PRIME) + (this.emailIdList == null ? 43 : this.emailIdList.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); result = diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java index 3baec97cd5c..f0a5b9ab059 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/OperatorControlAssignmentLifecycleStates.java @@ -16,6 +16,7 @@ public enum OperatorControlAssignmentLifecycleStates Deleting("DELETING"), Deleted("DELETED"), Deletionfailed("DELETIONFAILED"), + Customerassigned("CUSTOMERASSIGNED"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java index 21eb38af411..b83bc50543a 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/ResourceTypes.java @@ -12,6 +12,7 @@ public enum ResourceTypes implements com.oracle.bmc.http.internal.BmcEnum { Autonomousvmcluster("AUTONOMOUSVMCLUSTER"), Cloudautonomousvmcluster("CLOUDAUTONOMOUSVMCLUSTER"), Cccinfrastructure("CCCINFRASTRUCTURE"), + Cloudexadatainfrastructure("CLOUDEXADATAINFRASTRUCTURE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java index 2c78ebb0612..d7a492ab121 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/model/UpdateOperatorControlDetails.java @@ -30,6 +30,7 @@ public final class UpdateOperatorControlDetails "approverGroupsList", "preApprovedOpActionList", "isFullyPreApproved", + "notificationTopicId", "emailIdList", "numberOfApprovers", "systemMessage", @@ -43,6 +44,7 @@ public UpdateOperatorControlDetails( java.util.List approverGroupsList, java.util.List preApprovedOpActionList, Boolean isFullyPreApproved, + String notificationTopicId, java.util.List emailIdList, Integer numberOfApprovers, String systemMessage, @@ -55,6 +57,7 @@ public UpdateOperatorControlDetails( this.approverGroupsList = approverGroupsList; this.preApprovedOpActionList = preApprovedOpActionList; this.isFullyPreApproved = isFullyPreApproved; + this.notificationTopicId = notificationTopicId; this.emailIdList = emailIdList; this.numberOfApprovers = numberOfApprovers; this.systemMessage = systemMessage; @@ -172,6 +175,25 @@ public Builder isFullyPreApproved(Boolean isFullyPreApproved) { this.__explicitlySet__.add("isFullyPreApproved"); return this; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator + * control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator + * control. + * + * @param notificationTopicId the value to set + * @return this builder + */ + public Builder notificationTopicId(String notificationTopicId) { + this.notificationTopicId = notificationTopicId; + this.__explicitlySet__.add("notificationTopicId"); + return this; + } /** List of emailId. */ @com.fasterxml.jackson.annotation.JsonProperty("emailIdList") private java.util.List emailIdList; @@ -269,6 +291,7 @@ public UpdateOperatorControlDetails build() { this.approverGroupsList, this.preApprovedOpActionList, this.isFullyPreApproved, + this.notificationTopicId, this.emailIdList, this.numberOfApprovers, this.systemMessage, @@ -300,6 +323,9 @@ public Builder copy(UpdateOperatorControlDetails model) { if (model.wasPropertyExplicitlySet("isFullyPreApproved")) { this.isFullyPreApproved(model.getIsFullyPreApproved()); } + if (model.wasPropertyExplicitlySet("notificationTopicId")) { + this.notificationTopicId(model.getNotificationTopicId()); + } if (model.wasPropertyExplicitlySet("emailIdList")) { this.emailIdList(model.getEmailIdList()); } @@ -424,6 +450,21 @@ public Boolean getIsFullyPreApproved() { return isFullyPreApproved; } + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + */ + @com.fasterxml.jackson.annotation.JsonProperty("notificationTopicId") + private final String notificationTopicId; + + /** + * The OCID of the OCI Notification topic to publish messages related to this operator control. + * + * @return the value + */ + public String getNotificationTopicId() { + return notificationTopicId; + } + /** List of emailId. */ @com.fasterxml.jackson.annotation.JsonProperty("emailIdList") private final java.util.List emailIdList; @@ -519,6 +560,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", preApprovedOpActionList=") .append(String.valueOf(this.preApprovedOpActionList)); sb.append(", isFullyPreApproved=").append(String.valueOf(this.isFullyPreApproved)); + sb.append(", notificationTopicId=").append(String.valueOf(this.notificationTopicId)); sb.append(", emailIdList=").append(String.valueOf(this.emailIdList)); sb.append(", numberOfApprovers=").append(String.valueOf(this.numberOfApprovers)); sb.append(", systemMessage=").append(String.valueOf(this.systemMessage)); @@ -545,6 +587,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.preApprovedOpActionList, other.preApprovedOpActionList) && java.util.Objects.equals(this.isFullyPreApproved, other.isFullyPreApproved) + && java.util.Objects.equals(this.notificationTopicId, other.notificationTopicId) && java.util.Objects.equals(this.emailIdList, other.emailIdList) && java.util.Objects.equals(this.numberOfApprovers, other.numberOfApprovers) && java.util.Objects.equals(this.systemMessage, other.systemMessage) @@ -581,6 +624,11 @@ public int hashCode() { + (this.isFullyPreApproved == null ? 43 : this.isFullyPreApproved.hashCode()); + result = + (result * PRIME) + + (this.notificationTopicId == null + ? 43 + : this.notificationTopicId.hashCode()); result = (result * PRIME) + (this.emailIdList == null ? 43 : this.emailIdList.hashCode()); result = (result * PRIME) diff --git a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java index 1b8e5edfa8a..c1bcc5cab76 100644 --- a/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java +++ b/bmc-operatoraccesscontrol/src/main/java/com/oracle/bmc/operatoraccesscontrol/requests/ListAccessRequestsRequest.java @@ -48,6 +48,13 @@ public String getResourceType() { getLifecycleState() { return lifecycleState; } + /** The number of days since when the user wants to search . */ + private Integer numDays; + + /** The number of days since when the user wants to search . */ + public Integer getNumDays() { + return numDays; + } /** * Query start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters are used together. @@ -231,6 +238,20 @@ public Builder lifecycleState( return this; } + /** The number of days since when the user wants to search . */ + private Integer numDays = null; + + /** + * The number of days since when the user wants to search . + * + * @param numDays the value to set + * @return this builder instance + */ + public Builder numDays(Integer numDays) { + this.numDays = numDays; + return this; + } + /** * Query start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z * (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd parameters are used @@ -385,6 +406,7 @@ public Builder copy(ListAccessRequestsRequest o) { resourceName(o.getResourceName()); resourceType(o.getResourceType()); lifecycleState(o.getLifecycleState()); + numDays(o.getNumDays()); timeStart(o.getTimeStart()); timeEnd(o.getTimeEnd()); limit(o.getLimit()); @@ -430,6 +452,7 @@ public ListAccessRequestsRequest buildWithoutInvocationCallback() { request.resourceName = resourceName; request.resourceType = resourceType; request.lifecycleState = lifecycleState; + request.numDays = numDays; request.timeStart = timeStart; request.timeEnd = timeEnd; request.limit = limit; @@ -439,7 +462,8 @@ public ListAccessRequestsRequest buildWithoutInvocationCallback() { request.opcRequestId = opcRequestId; return request; // new ListAccessRequestsRequest(compartmentId, resourceName, resourceType, - // lifecycleState, timeStart, timeEnd, limit, page, sortOrder, sortBy, opcRequestId); + // lifecycleState, numDays, timeStart, timeEnd, limit, page, sortOrder, sortBy, + // opcRequestId); } } @@ -454,6 +478,7 @@ public Builder toBuilder() { .resourceName(resourceName) .resourceType(resourceType) .lifecycleState(lifecycleState) + .numDays(numDays) .timeStart(timeStart) .timeEnd(timeEnd) .limit(limit) @@ -481,6 +506,7 @@ public String toString() { sb.append(",resourceName=").append(String.valueOf(this.resourceName)); sb.append(",resourceType=").append(String.valueOf(this.resourceType)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(",numDays=").append(String.valueOf(this.numDays)); sb.append(",timeStart=").append(String.valueOf(this.timeStart)); sb.append(",timeEnd=").append(String.valueOf(this.timeEnd)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -507,6 +533,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.resourceName, other.resourceName) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.numDays, other.numDays) && java.util.Objects.equals(this.timeStart, other.timeStart) && java.util.Objects.equals(this.timeEnd, other.timeEnd) && java.util.Objects.equals(this.limit, other.limit) @@ -528,6 +555,7 @@ public int hashCode() { result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.numDays == null ? 43 : this.numDays.hashCode()); result = (result * PRIME) + (this.timeStart == null ? 43 : this.timeStart.hashCode()); result = (result * PRIME) + (this.timeEnd == null ? 43 : this.timeEnd.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 809649c0a1d..b26f583e6e4 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index fd7ed846257..b8f47630e38 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 0f74a24cc8d..7e646e3115f 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 23c6ef778bc..14c4fd52055 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 2943b748e22..3c4f789dfb1 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 2784ff9db86..b2c3682ed8a 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 3f1dc4038b3..e35272946cb 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index f03b699c9f6..a17ed0d43b2 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index 2c26a5f4147..13517f5757f 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.89.1 + 3.90.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.89.1 + 3.90.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.89.1 + 3.90.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index 92a95de5e1b..0bf48d5a504 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.89.1 + 3.90.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -58,7 +58,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.89.1 + 3.90.0 false @@ -95,14 +95,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.89.1 + 3.90.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.89.1 + 3.90.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 7a4865f154e..312f25fcfd7 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.89.1 + 3.90.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm @@ -98,14 +98,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.89.1 + 3.90.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.89.1 + 3.90.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 5f51c9fca1b..bfeebc652ad 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml index 01caf3b0728..92b561f031f 100644 --- a/bmc-psa/pom.xml +++ b/bmc-psa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-psa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 828e43c851e..5c4e89ca79c 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java index 638c28a253f..644186cd30d 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/Postgresql.java @@ -135,6 +135,39 @@ ChangeConfigurationCompartmentResponse changeConfigurationCompartment( ChangeDbSystemCompartmentResponse changeDbSystemCompartment( ChangeDbSystemCompartmentRequest request); + /** + * Changes a standalone database system's role to warm-standby replica, converting it into a + * replica database system that replicates data from the specified primary database system. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ChangeRoleToReplica + * API. + */ + ChangeRoleToReplicaResponse changeRoleToReplica(ChangeRoleToReplicaRequest request); + + /** + * Convert a replica database system into a standalone database system. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeRoleToStandalone API. + */ + ChangeRoleToStandaloneResponse changeRoleToStandalone(ChangeRoleToStandaloneRequest request); + /** * Creates a new backup. * @@ -383,6 +416,22 @@ ChangeDbSystemCompartmentResponse changeDbSystemCompartment( */ ListConfigurationsResponse listConfigurations(ListConfigurationsRequest request); + /** + * Returns a list of replica database systems. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListDbSystemReplicas API. + */ + ListDbSystemReplicasResponse listDbSystemReplicas(ListDbSystemReplicasRequest request); + /** * Returns a list of database systems. * @@ -415,6 +464,25 @@ ChangeDbSystemCompartmentResponse changeDbSystemCompartment( ListDefaultConfigurationsResponse listDefaultConfigurations( ListDefaultConfigurationsRequest request); + /** + * Returns the supported insight types and their capabilities. This API allows clients to + * discover: - Supported insight types - Supported insight data types for each insight type - + * Filters, sorting, pagination, limits, and data contracts required to use the unified insights + * API. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListInsightCapabilities API. + */ + ListInsightCapabilitiesResponse listInsightCapabilities(ListInsightCapabilitiesRequest request); + /** * Returns the list of shapes allowed in the region. * @@ -542,6 +610,52 @@ RestartDbInstanceInDbSystemResponse restartDbInstanceInDbSystem( */ RestoreDbSystemResponse restoreDbSystem(RestoreDbSystemRequest request); + /** + * Start the DB System. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use StartDbSystem API. + */ + StartDbSystemResponse startDbSystem(StartDbSystemRequest request); + + /** + * Stop the DB System. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use StopDbSystem API. + */ + StopDbSystemResponse stopDbSystem(StopDbSystemRequest request); + + /** + * Switchover the roles between a primary database system and its replica, making the replica + * the new primary and the original primary become its replica. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use SwitchOver API. + */ + SwitchOverResponse switchOver(SwitchOverRequest request); + /** * Updates the backup. * diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java index bdae868c909..fb27a12227b 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsync.java @@ -131,6 +131,39 @@ java.util.concurrent.Future changeDbSystemCom ChangeDbSystemCompartmentRequest, ChangeDbSystemCompartmentResponse> handler); + /** + * Changes a standalone database system's role to warm-standby replica, converting it into a + * replica database system that replicates data from the specified primary database system. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future changeRoleToReplica( + ChangeRoleToReplicaRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToReplicaRequest, ChangeRoleToReplicaResponse> + handler); + + /** + * Convert a replica database system into a standalone database system. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future changeRoleToStandalone( + ChangeRoleToStandaloneRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToStandaloneRequest, ChangeRoleToStandaloneResponse> + handler); + /** * Creates a new backup. * @@ -374,6 +407,22 @@ java.util.concurrent.Future listConfigurations( ListConfigurationsRequest, ListConfigurationsResponse> handler); + /** + * Returns a list of replica database systems. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listDbSystemReplicas( + ListDbSystemReplicasRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse> + handler); + /** * Returns a list of database systems. * @@ -405,6 +454,25 @@ java.util.concurrent.Future listDefaultConfig ListDefaultConfigurationsRequest, ListDefaultConfigurationsResponse> handler); + /** + * Returns the supported insight types and their capabilities. This API allows clients to + * discover: - Supported insight types - Supported insight data types for each insight type - + * Filters, sorting, pagination, limits, and data contracts required to use the unified insights + * API. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listInsightCapabilities( + ListInsightCapabilitiesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse> + handler); + /** * Returns the list of shapes allowed in the region. * @@ -528,6 +596,51 @@ java.util.concurrent.Future restoreDbSystem( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Start the DB System. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future startDbSystem( + StartDbSystemRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Stop the DB System. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future stopDbSystem( + StopDbSystemRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Switchover the roles between a primary database system and its replica, making the replica + * the new primary and the original primary become its replica. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future switchOver( + SwitchOverRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Updates the backup. * diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java index f1983b7e784..ee30da22075 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlAsyncClient.java @@ -242,6 +242,81 @@ public java.util.concurrent.Future changeDbSy .callAsync(handler); } + @Override + public java.util.concurrent.Future changeRoleToReplica( + ChangeRoleToReplicaRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToReplicaRequest, ChangeRoleToReplicaResponse> + handler) { + Objects.requireNonNull( + request.getChangeRoleToReplicaDetails(), "changeRoleToReplicaDetails is required"); + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, ChangeRoleToReplicaResponse::builder) + .logger(LOG, "changeRoleToReplica") + .serviceDetails( + "Postgresql", + "ChangeRoleToReplica", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToReplica") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRoleToReplicaRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("changeRoleToReplica") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeRoleToReplicaResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeRoleToReplicaResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future changeRoleToStandalone( + ChangeRoleToStandaloneRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeRoleToStandaloneRequest, ChangeRoleToStandaloneResponse> + handler) { + Objects.requireNonNull( + request.getChangeRoleToStandaloneDetails(), + "changeRoleToStandaloneDetails is required"); + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, ChangeRoleToStandaloneResponse::builder) + .logger(LOG, "changeRoleToStandalone") + .serviceDetails( + "Postgresql", + "ChangeRoleToStandalone", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToStandalone") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRoleToStandaloneRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("changeRoleToStandalone") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeRoleToStandaloneResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeRoleToStandaloneResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createBackup( CreateBackupRequest request, @@ -763,6 +838,41 @@ public java.util.concurrent.Future listConfiguration .callAsync(handler); } + @Override + public java.util.concurrent.Future listDbSystemReplicas( + ListDbSystemReplicasRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse> + handler) { + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, ListDbSystemReplicasResponse::builder) + .logger(LOG, "listDbSystemReplicas") + .serviceDetails( + "Postgresql", + "ListDbSystemReplicas", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystemReplicaCollection/ListDbSystemReplicas") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDbSystemReplicasRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("replicas") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.psql.model.DbSystemReplicaCollection.class, + ListDbSystemReplicasResponse.Builder::dbSystemReplicaCollection) + .handleResponseHeaderString( + "opc-request-id", ListDbSystemReplicasResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDbSystemReplicasResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listDbSystems( ListDbSystemsRequest request, @@ -787,6 +897,7 @@ public java.util.concurrent.Future listDbSystems( .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("systemRole", request.getSystemRole()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -839,6 +950,37 @@ public java.util.concurrent.Future listDefaul .callAsync(handler); } + @Override + public java.util.concurrent.Future listInsightCapabilities( + ListInsightCapabilitiesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse> + handler) { + + return clientCall(request, ListInsightCapabilitiesResponse::builder) + .logger(LOG, "listInsightCapabilities") + .serviceDetails( + "Postgresql", + "ListInsightCapabilities", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/InsightCapabilitySummary/ListInsightCapabilities") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInsightCapabilitiesRequest::builder) + .basePath("/20220915") + .appendPathParam("insightCapabilities") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.psql.model.InsightCapabilityCollection.class, + ListInsightCapabilitiesResponse.Builder::insightCapabilityCollection) + .handleResponseHeaderString( + "opc-request-id", ListInsightCapabilitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInsightCapabilitiesResponse.Builder::opcNextPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listShapes( ListShapesRequest request, @@ -1130,6 +1272,107 @@ public java.util.concurrent.Future restoreDbSystem( .callAsync(handler); } + @Override + public java.util.concurrent.Future startDbSystem( + StartDbSystemRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + Objects.requireNonNull( + request.getStartDbSystemDetails(), "startDbSystemDetails is required"); + + return clientCall(request, StartDbSystemResponse::builder) + .logger(LOG, "startDbSystem") + .serviceDetails( + "Postgresql", + "StartDbSystem", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StartDbSystem") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartDbSystemRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("start") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", StartDbSystemResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartDbSystemResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future stopDbSystem( + StopDbSystemRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, StopDbSystemResponse::builder) + .logger(LOG, "stopDbSystem") + .serviceDetails( + "Postgresql", + "StopDbSystem", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StopDbSystem") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopDbSystemRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("stop") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .handleResponseHeaderString( + "opc-work-request-id", StopDbSystemResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopDbSystemResponse.Builder::opcRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future switchOver( + SwitchOverRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getSwitchOverDetails(), "switchOverDetails is required"); + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, SwitchOverResponse::builder) + .logger(LOG, "switchOver") + .serviceDetails( + "Postgresql", + "SwitchOver", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/SwitchOver") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SwitchOverRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("switchover") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", SwitchOverResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SwitchOverResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateBackup( UpdateBackupRequest request, diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java index f7580a98e56..da152546aff 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlClient.java @@ -260,6 +260,76 @@ public ChangeDbSystemCompartmentResponse changeDbSystemCompartment( .callSync(); } + @Override + public ChangeRoleToReplicaResponse changeRoleToReplica(ChangeRoleToReplicaRequest request) { + Objects.requireNonNull( + request.getChangeRoleToReplicaDetails(), "changeRoleToReplicaDetails is required"); + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, ChangeRoleToReplicaResponse::builder) + .logger(LOG, "changeRoleToReplica") + .serviceDetails( + "Postgresql", + "ChangeRoleToReplica", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToReplica") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRoleToReplicaRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("changeRoleToReplica") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeRoleToReplicaResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeRoleToReplicaResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public ChangeRoleToStandaloneResponse changeRoleToStandalone( + ChangeRoleToStandaloneRequest request) { + Objects.requireNonNull( + request.getChangeRoleToStandaloneDetails(), + "changeRoleToStandaloneDetails is required"); + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, ChangeRoleToStandaloneResponse::builder) + .logger(LOG, "changeRoleToStandalone") + .serviceDetails( + "Postgresql", + "ChangeRoleToStandalone", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/ChangeRoleToStandalone") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeRoleToStandaloneRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("changeRoleToStandalone") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ChangeRoleToStandaloneResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", ChangeRoleToStandaloneResponse.Builder::opcRequestId) + .callSync(); + } + @Override public CreateBackupResponse createBackup(CreateBackupRequest request) { Objects.requireNonNull(request.getCreateBackupDetails(), "createBackupDetails is required"); @@ -739,6 +809,38 @@ public ListConfigurationsResponse listConfigurations(ListConfigurationsRequest r .callSync(); } + @Override + public ListDbSystemReplicasResponse listDbSystemReplicas(ListDbSystemReplicasRequest request) { + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, ListDbSystemReplicasResponse::builder) + .logger(LOG, "listDbSystemReplicas") + .serviceDetails( + "Postgresql", + "ListDbSystemReplicas", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystemReplicaCollection/ListDbSystemReplicas") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListDbSystemReplicasRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("replicas") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.psql.model.DbSystemReplicaCollection.class, + ListDbSystemReplicasResponse.Builder::dbSystemReplicaCollection) + .handleResponseHeaderString( + "opc-request-id", ListDbSystemReplicasResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListDbSystemReplicasResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListDbSystemsResponse listDbSystems(ListDbSystemsRequest request) { @@ -760,6 +862,7 @@ public ListDbSystemsResponse listDbSystems(ListDbSystemsRequest request) { .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("systemRole", request.getSystemRole()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -811,6 +914,35 @@ public ListDefaultConfigurationsResponse listDefaultConfigurations( .callSync(); } + @Override + public ListInsightCapabilitiesResponse listInsightCapabilities( + ListInsightCapabilitiesRequest request) { + + return clientCall(request, ListInsightCapabilitiesResponse::builder) + .logger(LOG, "listInsightCapabilities") + .serviceDetails( + "Postgresql", + "ListInsightCapabilities", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/InsightCapabilitySummary/ListInsightCapabilities") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListInsightCapabilitiesRequest::builder) + .basePath("/20220915") + .appendPathParam("insightCapabilities") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.psql.model.InsightCapabilityCollection.class, + ListInsightCapabilitiesResponse.Builder::insightCapabilityCollection) + .handleResponseHeaderString( + "opc-request-id", ListInsightCapabilitiesResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", ListInsightCapabilitiesResponse.Builder::opcNextPage) + .callSync(); + } + @Override public ListShapesResponse listShapes(ListShapesRequest request) { @@ -1081,6 +1213,101 @@ public RestoreDbSystemResponse restoreDbSystem(RestoreDbSystemRequest request) { .callSync(); } + @Override + public StartDbSystemResponse startDbSystem(StartDbSystemRequest request) { + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + Objects.requireNonNull( + request.getStartDbSystemDetails(), "startDbSystemDetails is required"); + + return clientCall(request, StartDbSystemResponse::builder) + .logger(LOG, "startDbSystem") + .serviceDetails( + "Postgresql", + "StartDbSystem", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StartDbSystem") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StartDbSystemRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("start") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", StartDbSystemResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StartDbSystemResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public StopDbSystemResponse stopDbSystem(StopDbSystemRequest request) { + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, StopDbSystemResponse::builder) + .logger(LOG, "stopDbSystem") + .serviceDetails( + "Postgresql", + "StopDbSystem", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/StopDbSystem") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(StopDbSystemRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("stop") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", StopDbSystemResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", StopDbSystemResponse.Builder::opcRequestId) + .callSync(); + } + + @Override + public SwitchOverResponse switchOver(SwitchOverRequest request) { + Objects.requireNonNull(request.getSwitchOverDetails(), "switchOverDetails is required"); + + Validate.notBlank(request.getDbSystemId(), "dbSystemId must not be blank"); + + return clientCall(request, SwitchOverResponse::builder) + .logger(LOG, "switchOver") + .serviceDetails( + "Postgresql", + "SwitchOver", + "https://docs.oracle.com/iaas/api/#/en/postgresql/20220915/DbSystem/SwitchOver") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(SwitchOverRequest::builder) + .basePath("/20220915") + .appendPathParam("dbSystems") + .appendPathParam(request.getDbSystemId()) + .appendPathParam("actions") + .appendPathParam("switchover") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", SwitchOverResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", SwitchOverResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateBackupResponse updateBackup(UpdateBackupRequest request) { diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java index d82b052103b..69e99be401c 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/PostgresqlPaginators.java @@ -273,6 +273,124 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listDbSystemReplicas operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listDbSystemReplicasResponseIterator( + final ListDbSystemReplicasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListDbSystemReplicasRequest.Builder, + ListDbSystemReplicasRequest, + ListDbSystemReplicasResponse>( + new java.util.function.Supplier() { + @Override + public ListDbSystemReplicasRequest.Builder get() { + return ListDbSystemReplicasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDbSystemReplicasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder>, + ListDbSystemReplicasRequest>() { + @Override + public ListDbSystemReplicasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse>() { + @Override + public ListDbSystemReplicasResponse apply(ListDbSystemReplicasRequest request) { + return client.listDbSystemReplicas(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.psql.model.DbSystemReplicaSummary} objects contained in responses from the + * listDbSystemReplicas operation. This iterable will fetch more data from the server as needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.psql.model.DbSystemReplicaSummary} objects contained in responses received + * from the service. + */ + public Iterable + listDbSystemReplicasRecordIterator(final ListDbSystemReplicasRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListDbSystemReplicasRequest.Builder, + ListDbSystemReplicasRequest, + ListDbSystemReplicasResponse, + com.oracle.bmc.psql.model.DbSystemReplicaSummary>( + new java.util.function.Supplier() { + @Override + public ListDbSystemReplicasRequest.Builder get() { + return ListDbSystemReplicasRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListDbSystemReplicasResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder>, + ListDbSystemReplicasRequest>() { + @Override + public ListDbSystemReplicasRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListDbSystemReplicasRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListDbSystemReplicasRequest, ListDbSystemReplicasResponse>() { + @Override + public ListDbSystemReplicasResponse apply(ListDbSystemReplicasRequest request) { + return client.listDbSystemReplicas(request); + } + }, + new java.util.function.Function< + ListDbSystemReplicasResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListDbSystemReplicasResponse response) { + return response.getDbSystemReplicaCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listDbSystems * operation. This iterable will fetch more data from the server as needed. @@ -510,6 +628,128 @@ public ListDefaultConfigurationsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listInsightCapabilities operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the responses + * received from the service. + */ + public Iterable listInsightCapabilitiesResponseIterator( + final ListInsightCapabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListInsightCapabilitiesRequest.Builder, + ListInsightCapabilitiesRequest, + ListInsightCapabilitiesResponse>( + new java.util.function.Supplier() { + @Override + public ListInsightCapabilitiesRequest.Builder get() { + return ListInsightCapabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInsightCapabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder>, + ListInsightCapabilitiesRequest>() { + @Override + public ListInsightCapabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse>() { + @Override + public ListInsightCapabilitiesResponse apply( + ListInsightCapabilitiesRequest request) { + return client.listInsightCapabilities(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.psql.model.InsightCapabilitySummary} objects contained in responses from the + * listInsightCapabilities operation. This iterable will fetch more data from the server as + * needed. + * + * @param request a request which can be sent to the service operation + * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link + * com.oracle.bmc.psql.model.InsightCapabilitySummary} objects contained in responses + * received from the service. + */ + public Iterable + listInsightCapabilitiesRecordIterator(final ListInsightCapabilitiesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListInsightCapabilitiesRequest.Builder, + ListInsightCapabilitiesRequest, + ListInsightCapabilitiesResponse, + com.oracle.bmc.psql.model.InsightCapabilitySummary>( + new java.util.function.Supplier() { + @Override + public ListInsightCapabilitiesRequest.Builder get() { + return ListInsightCapabilitiesRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListInsightCapabilitiesResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder>, + ListInsightCapabilitiesRequest>() { + @Override + public ListInsightCapabilitiesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListInsightCapabilitiesRequest.Builder> + input) { + if (input.getNextPageToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getNextPageToken().orElse(null)) + .build(); + } + } + }, + new java.util.function.Function< + ListInsightCapabilitiesRequest, ListInsightCapabilitiesResponse>() { + @Override + public ListInsightCapabilitiesResponse apply( + ListInsightCapabilitiesRequest request) { + return client.listInsightCapabilities(request); + } + }, + new java.util.function.Function< + ListInsightCapabilitiesResponse, + java.util.List>() { + @Override + public java.util.List apply( + ListInsightCapabilitiesResponse response) { + return response.getInsightCapabilityCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listShapes * operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java index 7bb3824bbbb..f176ffcbf74 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/BackupCopyDetails.java @@ -64,12 +64,12 @@ public Builder retentionPeriod(Integer retentionPeriod) { this.__explicitlySet__.add("retentionPeriod"); return this; } - /** List of region names of the remote region */ + /** List of region names of the remote regions */ @com.fasterxml.jackson.annotation.JsonProperty("regions") private java.util.List regions; /** - * List of region names of the remote region + * List of region names of the remote regions * * @param regions the value to set * @return this builder @@ -142,12 +142,12 @@ public Integer getRetentionPeriod() { return retentionPeriod; } - /** List of region names of the remote region */ + /** List of region names of the remote regions */ @com.fasterxml.jackson.annotation.JsonProperty("regions") private final java.util.List regions; /** - * List of region names of the remote region + * List of region names of the remote regions * * @return the value */ diff --git a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CustomerLoggingDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToReplicaDetails.java similarity index 61% rename from bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CustomerLoggingDetails.java rename to bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToReplicaDetails.java index 59c02cac95b..00d4a4a6538 100644 --- a/bmc-opensearch/src/main/java/com/oracle/bmc/opensearch/model/CustomerLoggingDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToReplicaDetails.java @@ -2,10 +2,10 @@ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. * 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. */ -package com.oracle.bmc.opensearch.model; +package com.oracle.bmc.psql.model; /** - * Customer logging configuration
+ * The information required to change a primary database system's role to replica.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,43 +15,44 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180828") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CustomerLoggingDetails.Builder.class) + builder = ChangeRoleToReplicaDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CustomerLoggingDetails +public final class ChangeRoleToReplicaDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"logRetentionDays"}) - public CustomerLoggingDetails(Integer logRetentionDays) { + @java.beans.ConstructorProperties({"primaryDbSystemId"}) + public ChangeRoleToReplicaDetails(String primaryDbSystemId) { super(); - this.logRetentionDays = logRetentionDays; + this.primaryDbSystemId = primaryDbSystemId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** the age of an index after which the index will get deleted by ISM policy */ - @com.fasterxml.jackson.annotation.JsonProperty("logRetentionDays") - private Integer logRetentionDays; + /** The [OCID] of the primary database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private String primaryDbSystemId; /** - * the age of an index after which the index will get deleted by ISM policy + * The [OCID] of the primary database system. * - * @param logRetentionDays the value to set + * @param primaryDbSystemId the value to set * @return this builder */ - public Builder logRetentionDays(Integer logRetentionDays) { - this.logRetentionDays = logRetentionDays; - this.__explicitlySet__.add("logRetentionDays"); + public Builder primaryDbSystemId(String primaryDbSystemId) { + this.primaryDbSystemId = primaryDbSystemId; + this.__explicitlySet__.add("primaryDbSystemId"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CustomerLoggingDetails build() { - CustomerLoggingDetails model = new CustomerLoggingDetails(this.logRetentionDays); + public ChangeRoleToReplicaDetails build() { + ChangeRoleToReplicaDetails model = + new ChangeRoleToReplicaDetails(this.primaryDbSystemId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -59,9 +60,9 @@ public CustomerLoggingDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CustomerLoggingDetails model) { - if (model.wasPropertyExplicitlySet("logRetentionDays")) { - this.logRetentionDays(model.getLogRetentionDays()); + public Builder copy(ChangeRoleToReplicaDetails model) { + if (model.wasPropertyExplicitlySet("primaryDbSystemId")) { + this.primaryDbSystemId(model.getPrimaryDbSystemId()); } return this; } @@ -76,17 +77,17 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** the age of an index after which the index will get deleted by ISM policy */ - @com.fasterxml.jackson.annotation.JsonProperty("logRetentionDays") - private final Integer logRetentionDays; + /** The [OCID] of the primary database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private final String primaryDbSystemId; /** - * the age of an index after which the index will get deleted by ISM policy + * The [OCID] of the primary database system. * * @return the value */ - public Integer getLogRetentionDays() { - return logRetentionDays; + public String getPrimaryDbSystemId() { + return primaryDbSystemId; } @Override @@ -102,9 +103,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CustomerLoggingDetails("); + sb.append("ChangeRoleToReplicaDetails("); sb.append("super=").append(super.toString()); - sb.append("logRetentionDays=").append(String.valueOf(this.logRetentionDays)); + sb.append("primaryDbSystemId=").append(String.valueOf(this.primaryDbSystemId)); sb.append(")"); return sb.toString(); } @@ -114,12 +115,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CustomerLoggingDetails)) { + if (!(o instanceof ChangeRoleToReplicaDetails)) { return false; } - CustomerLoggingDetails other = (CustomerLoggingDetails) o; - return java.util.Objects.equals(this.logRetentionDays, other.logRetentionDays) + ChangeRoleToReplicaDetails other = (ChangeRoleToReplicaDetails) o; + return java.util.Objects.equals(this.primaryDbSystemId, other.primaryDbSystemId) && super.equals(other); } @@ -129,7 +130,7 @@ public int hashCode() { int result = 1; result = (result * PRIME) - + (this.logRetentionDays == null ? 43 : this.logRetentionDays.hashCode()); + + (this.primaryDbSystemId == null ? 43 : this.primaryDbSystemId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToStandaloneDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToStandaloneDetails.java new file mode 100644 index 00000000000..037fb2ea46b --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ChangeRoleToStandaloneDetails.java @@ -0,0 +1,193 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * The information required to change a replica database system's role to standalone.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeRoleToStandaloneDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeRoleToStandaloneDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"changeMode"}) + public ChangeRoleToStandaloneDetails(ChangeMode changeMode) { + super(); + this.changeMode = changeMode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Type of the mode choose during change role operation. REPLAY_PENDING_UPDATES (Default + * value): In this mode, the role change is delayed until replica database system has + * processed all Write-Ahead log (WAL) records that were archived before this API call is + * made. IMMEDIATELY: In this mode, the role change is applied right away, without waiting + * for any pending WAL records to be processed. This allows for an immediate transition. + */ + @com.fasterxml.jackson.annotation.JsonProperty("changeMode") + private ChangeMode changeMode; + + /** + * Type of the mode choose during change role operation. REPLAY_PENDING_UPDATES (Default + * value): In this mode, the role change is delayed until replica database system has + * processed all Write-Ahead log (WAL) records that were archived before this API call is + * made. IMMEDIATELY: In this mode, the role change is applied right away, without waiting + * for any pending WAL records to be processed. This allows for an immediate transition. + * + * @param changeMode the value to set + * @return this builder + */ + public Builder changeMode(ChangeMode changeMode) { + this.changeMode = changeMode; + this.__explicitlySet__.add("changeMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ChangeRoleToStandaloneDetails build() { + ChangeRoleToStandaloneDetails model = + new ChangeRoleToStandaloneDetails(this.changeMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeRoleToStandaloneDetails model) { + if (model.wasPropertyExplicitlySet("changeMode")) { + this.changeMode(model.getChangeMode()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Type of the mode choose during change role operation. REPLAY_PENDING_UPDATES (Default value): + * In this mode, the role change is delayed until replica database system has processed all + * Write-Ahead log (WAL) records that were archived before this API call is made. IMMEDIATELY: + * In this mode, the role change is applied right away, without waiting for any pending WAL + * records to be processed. This allows for an immediate transition. + */ + public enum ChangeMode implements com.oracle.bmc.http.internal.BmcEnum { + ReplayPendingUpdates("REPLAY_PENDING_UPDATES"), + Immediately("IMMEDIATELY"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ChangeMode v : ChangeMode.values()) { + map.put(v.getValue(), v); + } + } + + ChangeMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ChangeMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ChangeMode: " + key); + } + }; + /** + * Type of the mode choose during change role operation. REPLAY_PENDING_UPDATES (Default value): + * In this mode, the role change is delayed until replica database system has processed all + * Write-Ahead log (WAL) records that were archived before this API call is made. IMMEDIATELY: + * In this mode, the role change is applied right away, without waiting for any pending WAL + * records to be processed. This allows for an immediate transition. + */ + @com.fasterxml.jackson.annotation.JsonProperty("changeMode") + private final ChangeMode changeMode; + + /** + * Type of the mode choose during change role operation. REPLAY_PENDING_UPDATES (Default value): + * In this mode, the role change is delayed until replica database system has processed all + * Write-Ahead log (WAL) records that were archived before this API call is made. IMMEDIATELY: + * In this mode, the role change is applied right away, without waiting for any pending WAL + * records to be processed. This allows for an immediate transition. + * + * @return the value + */ + public ChangeMode getChangeMode() { + return changeMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ChangeRoleToStandaloneDetails("); + sb.append("super=").append(super.toString()); + sb.append("changeMode=").append(String.valueOf(this.changeMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToStandaloneDetails)) { + return false; + } + + ChangeRoleToStandaloneDetails other = (ChangeRoleToStandaloneDetails) o; + return java.util.Objects.equals(this.changeMode, other.changeMode) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.changeMode == null ? 43 : this.changeMode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java index 2ebcd102a01..8b245b99050 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateDbSystemDetails.java @@ -40,6 +40,8 @@ public final class CreateDbSystemDetails "networkDetails", "managementPolicy", "source", + "replicationConfig", + "odspInsightDetails", "freeformTags", "definedTags" }) @@ -60,6 +62,8 @@ public CreateDbSystemDetails( NetworkDetails networkDetails, ManagementPolicyDetails managementPolicy, SourceDetails source, + CreateReplicationConfigDetails replicationConfig, + OdspInsightDetails odspInsightDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -79,6 +83,8 @@ public CreateDbSystemDetails( this.networkDetails = networkDetails; this.managementPolicy = managementPolicy; this.source = source; + this.replicationConfig = replicationConfig; + this.odspInsightDetails = odspInsightDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -315,6 +321,24 @@ public Builder source(SourceDetails source) { this.__explicitlySet__.add("source"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private CreateReplicationConfigDetails replicationConfig; + + public Builder replicationConfig(CreateReplicationConfigDetails replicationConfig) { + this.replicationConfig = replicationConfig; + this.__explicitlySet__.add("replicationConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private OdspInsightDetails odspInsightDetails; + + public Builder odspInsightDetails(OdspInsightDetails odspInsightDetails) { + this.odspInsightDetails = odspInsightDetails; + this.__explicitlySet__.add("odspInsightDetails"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -377,6 +401,8 @@ public CreateDbSystemDetails build() { this.networkDetails, this.managementPolicy, this.source, + this.replicationConfig, + this.odspInsightDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -435,6 +461,12 @@ public Builder copy(CreateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("source")) { this.source(model.getSource()); } + if (model.wasPropertyExplicitlySet("replicationConfig")) { + this.replicationConfig(model.getReplicationConfig()); + } + if (model.wasPropertyExplicitlySet("odspInsightDetails")) { + this.odspInsightDetails(model.getOdspInsightDetails()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -652,6 +684,20 @@ public SourceDetails getSource() { return source; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private final CreateReplicationConfigDetails replicationConfig; + + public CreateReplicationConfigDetails getReplicationConfig() { + return replicationConfig; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private final OdspInsightDetails odspInsightDetails; + + public OdspInsightDetails getOdspInsightDetails() { + return odspInsightDetails; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -718,6 +764,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkDetails=").append(String.valueOf(this.networkDetails)); sb.append(", managementPolicy=").append(String.valueOf(this.managementPolicy)); sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", replicationConfig=").append(String.valueOf(this.replicationConfig)); + sb.append(", odspInsightDetails=").append(String.valueOf(this.odspInsightDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -751,6 +799,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkDetails, other.networkDetails) && java.util.Objects.equals(this.managementPolicy, other.managementPolicy) && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.replicationConfig, other.replicationConfig) + && java.util.Objects.equals(this.odspInsightDetails, other.odspInsightDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -794,6 +844,14 @@ public int hashCode() { (result * PRIME) + (this.managementPolicy == null ? 43 : this.managementPolicy.hashCode()); result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = + (result * PRIME) + + (this.replicationConfig == null ? 43 : this.replicationConfig.hashCode()); + result = + (result * PRIME) + + (this.odspInsightDetails == null + ? 43 + : this.odspInsightDetails.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateReplicationConfigDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateReplicationConfigDetails.java new file mode 100644 index 00000000000..9b912f610c5 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/CreateReplicationConfigDetails.java @@ -0,0 +1,191 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Details of the replication configuration that is applicable when database system gets the + * PRIMARY_DB_SYSTEM role. + * + *

This configuration does not have any effect on database systems with other roles.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateReplicationConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateReplicationConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRpoEnforced", "rpoInSeconds"}) + public CreateReplicationConfigDetails(Boolean isRpoEnforced, Long rpoInSeconds) { + super(); + this.isRpoEnforced = isRpoEnforced; + this.rpoInSeconds = rpoInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @param isRpoEnforced the value to set + * @return this builder + */ + public Builder isRpoEnforced(Boolean isRpoEnforced) { + this.isRpoEnforced = isRpoEnforced; + this.__explicitlySet__.add("isRpoEnforced"); + return this; + } + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @param rpoInSeconds the value to set + * @return this builder + */ + public Builder rpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + this.__explicitlySet__.add("rpoInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateReplicationConfigDetails build() { + CreateReplicationConfigDetails model = + new CreateReplicationConfigDetails(this.isRpoEnforced, this.rpoInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateReplicationConfigDetails model) { + if (model.wasPropertyExplicitlySet("isRpoEnforced")) { + this.isRpoEnforced(model.getIsRpoEnforced()); + } + if (model.wasPropertyExplicitlySet("rpoInSeconds")) { + this.rpoInSeconds(model.getRpoInSeconds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private final Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @return the value + */ + public Boolean getIsRpoEnforced() { + return isRpoEnforced; + } + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the {@code + * isRpoEnforced} flag is true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private final Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the {@code + * isRpoEnforced} flag is true. + * + * @return the value + */ + public Long getRpoInSeconds() { + return rpoInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateReplicationConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("isRpoEnforced=").append(String.valueOf(this.isRpoEnforced)); + sb.append(", rpoInSeconds=").append(String.valueOf(this.rpoInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateReplicationConfigDetails)) { + return false; + } + + CreateReplicationConfigDetails other = (CreateReplicationConfigDetails) o; + return java.util.Objects.equals(this.isRpoEnforced, other.isRpoEnforced) + && java.util.Objects.equals(this.rpoInSeconds, other.rpoInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isRpoEnforced == null ? 43 : this.isRpoEnforced.hashCode()); + result = (result * PRIME) + (this.rpoInSeconds == null ? 43 : this.rpoInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DateTimeRangeCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DateTimeRangeCapability.java new file mode 100644 index 00000000000..5ee758baa77 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DateTimeRangeCapability.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Indicates whether a time range is required for the insight.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DateTimeRangeCapability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DateTimeRangeCapability + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRequired"}) + public DateTimeRangeCapability(Boolean isRequired) { + super(); + this.isRequired = isRequired; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicates whether start and end time parameters are required. */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private Boolean isRequired; + + /** + * Indicates whether start and end time parameters are required. + * + * @param isRequired the value to set + * @return this builder + */ + public Builder isRequired(Boolean isRequired) { + this.isRequired = isRequired; + this.__explicitlySet__.add("isRequired"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DateTimeRangeCapability build() { + DateTimeRangeCapability model = new DateTimeRangeCapability(this.isRequired); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DateTimeRangeCapability model) { + if (model.wasPropertyExplicitlySet("isRequired")) { + this.isRequired(model.getIsRequired()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicates whether start and end time parameters are required. */ + @com.fasterxml.jackson.annotation.JsonProperty("isRequired") + private final Boolean isRequired; + + /** + * Indicates whether start and end time parameters are required. + * + * @return the value + */ + public Boolean getIsRequired() { + return isRequired; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DateTimeRangeCapability("); + sb.append("super=").append(super.toString()); + sb.append("isRequired=").append(String.valueOf(this.isRequired)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DateTimeRangeCapability)) { + return false; + } + + DateTimeRangeCapability other = (DateTimeRangeCapability) o; + return java.util.Objects.equals(this.isRequired, other.isRequired) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isRequired == null ? 43 : this.isRequired.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java index 7b71799b978..30f3b45341d 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystem.java @@ -35,6 +35,8 @@ public final class DbSystem extends com.oracle.bmc.http.client.internal.Explicit "definedTags", "systemTags", "systemType", + "systemRole", + "replicationConfig", "dbVersion", "configId", "shape", @@ -45,7 +47,9 @@ public final class DbSystem extends com.oracle.bmc.http.client.internal.Explicit "storageDetails", "networkDetails", "managementPolicy", - "source" + "source", + "kerberosAuthDetails", + "odspInsightDetails" }) public DbSystem( String id, @@ -61,6 +65,8 @@ public DbSystem( java.util.Map> definedTags, java.util.Map> systemTags, SystemType systemType, + SystemRole systemRole, + ReplicationConfig replicationConfig, String dbVersion, String configId, String shape, @@ -71,7 +77,9 @@ public DbSystem( StorageDetails storageDetails, NetworkDetails networkDetails, ManagementPolicy managementPolicy, - SourceDetails source) { + SourceDetails source, + KerberosAuthDetails kerberosAuthDetails, + OdspInsightDetails odspInsightDetails) { super(); this.id = id; this.displayName = displayName; @@ -86,6 +94,8 @@ public DbSystem( this.definedTags = definedTags; this.systemTags = systemTags; this.systemType = systemType; + this.systemRole = systemRole; + this.replicationConfig = replicationConfig; this.dbVersion = dbVersion; this.configId = configId; this.shape = shape; @@ -97,6 +107,8 @@ public DbSystem( this.networkDetails = networkDetails; this.managementPolicy = managementPolicy; this.source = source; + this.kerberosAuthDetails = kerberosAuthDetails; + this.odspInsightDetails = odspInsightDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -337,6 +349,30 @@ public Builder systemType(SystemType systemType) { this.__explicitlySet__.add("systemType"); return this; } + /** Type of the database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRole") + private SystemRole systemRole; + + /** + * Type of the database system. + * + * @param systemRole the value to set + * @return this builder + */ + public Builder systemRole(SystemRole systemRole) { + this.systemRole = systemRole; + this.__explicitlySet__.add("systemRole"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private ReplicationConfig replicationConfig; + + public Builder replicationConfig(ReplicationConfig replicationConfig) { + this.replicationConfig = replicationConfig; + this.__explicitlySet__.add("replicationConfig"); + return this; + } /** The major and minor versions of the database system software. */ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") private String dbVersion; @@ -483,6 +519,24 @@ public Builder source(SourceDetails source) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private KerberosAuthDetails kerberosAuthDetails; + + public Builder kerberosAuthDetails(KerberosAuthDetails kerberosAuthDetails) { + this.kerberosAuthDetails = kerberosAuthDetails; + this.__explicitlySet__.add("kerberosAuthDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private OdspInsightDetails odspInsightDetails; + + public Builder odspInsightDetails(OdspInsightDetails odspInsightDetails) { + this.odspInsightDetails = odspInsightDetails; + this.__explicitlySet__.add("odspInsightDetails"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -502,6 +556,8 @@ public DbSystem build() { this.definedTags, this.systemTags, this.systemType, + this.systemRole, + this.replicationConfig, this.dbVersion, this.configId, this.shape, @@ -512,7 +568,9 @@ public DbSystem build() { this.storageDetails, this.networkDetails, this.managementPolicy, - this.source); + this.source, + this.kerberosAuthDetails, + this.odspInsightDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -560,6 +618,12 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("systemType")) { this.systemType(model.getSystemType()); } + if (model.wasPropertyExplicitlySet("systemRole")) { + this.systemRole(model.getSystemRole()); + } + if (model.wasPropertyExplicitlySet("replicationConfig")) { + this.replicationConfig(model.getReplicationConfig()); + } if (model.wasPropertyExplicitlySet("dbVersion")) { this.dbVersion(model.getDbVersion()); } @@ -593,6 +657,12 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("source")) { this.source(model.getSource()); } + if (model.wasPropertyExplicitlySet("kerberosAuthDetails")) { + this.kerberosAuthDetails(model.getKerberosAuthDetails()); + } + if (model.wasPropertyExplicitlySet("odspInsightDetails")) { + this.odspInsightDetails(model.getOdspInsightDetails()); + } return this; } } @@ -912,6 +982,74 @@ public SystemType getSystemType() { return systemType; } + /** Type of the database system. */ + public enum SystemRole implements com.oracle.bmc.http.internal.BmcEnum { + StandaloneDbSystem("STANDALONE_DB_SYSTEM"), + PrimaryDbSystem("PRIMARY_DB_SYSTEM"), + WarmStandbyDbSystem("WARM_STANDBY_DB_SYSTEM"), + PilotLightDbSystem("PILOT_LIGHT_DB_SYSTEM"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SystemRole.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SystemRole v : SystemRole.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SystemRole(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SystemRole create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SystemRole', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of the database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("systemRole") + private final SystemRole systemRole; + + /** + * Type of the database system. + * + * @return the value + */ + public SystemRole getSystemRole() { + return systemRole; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private final ReplicationConfig replicationConfig; + + public ReplicationConfig getReplicationConfig() { + return replicationConfig; + } + /** The major and minor versions of the database system software. */ @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") private final String dbVersion; @@ -1035,6 +1173,20 @@ public SourceDetails getSource() { return source; } + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private final KerberosAuthDetails kerberosAuthDetails; + + public KerberosAuthDetails getKerberosAuthDetails() { + return kerberosAuthDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private final OdspInsightDetails odspInsightDetails; + + public OdspInsightDetails getOdspInsightDetails() { + return odspInsightDetails; + } + @Override public String toString() { return this.toString(true); @@ -1063,6 +1215,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", systemType=").append(String.valueOf(this.systemType)); + sb.append(", systemRole=").append(String.valueOf(this.systemRole)); + sb.append(", replicationConfig=").append(String.valueOf(this.replicationConfig)); sb.append(", dbVersion=").append(String.valueOf(this.dbVersion)); sb.append(", configId=").append(String.valueOf(this.configId)); sb.append(", shape=").append(String.valueOf(this.shape)); @@ -1075,6 +1229,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", networkDetails=").append(String.valueOf(this.networkDetails)); sb.append(", managementPolicy=").append(String.valueOf(this.managementPolicy)); sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", kerberosAuthDetails=").append(String.valueOf(this.kerberosAuthDetails)); + sb.append(", odspInsightDetails=").append(String.valueOf(this.odspInsightDetails)); sb.append(")"); return sb.toString(); } @@ -1102,6 +1258,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.systemType, other.systemType) + && java.util.Objects.equals(this.systemRole, other.systemRole) + && java.util.Objects.equals(this.replicationConfig, other.replicationConfig) && java.util.Objects.equals(this.dbVersion, other.dbVersion) && java.util.Objects.equals(this.configId, other.configId) && java.util.Objects.equals(this.shape, other.shape) @@ -1114,6 +1272,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.networkDetails, other.networkDetails) && java.util.Objects.equals(this.managementPolicy, other.managementPolicy) && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.kerberosAuthDetails, other.kerberosAuthDetails) + && java.util.Objects.equals(this.odspInsightDetails, other.odspInsightDetails) && super.equals(other); } @@ -1142,6 +1302,10 @@ public int hashCode() { result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.systemType == null ? 43 : this.systemType.hashCode()); + result = (result * PRIME) + (this.systemRole == null ? 43 : this.systemRole.hashCode()); + result = + (result * PRIME) + + (this.replicationConfig == null ? 43 : this.replicationConfig.hashCode()); result = (result * PRIME) + (this.dbVersion == null ? 43 : this.dbVersion.hashCode()); result = (result * PRIME) + (this.configId == null ? 43 : this.configId.hashCode()); result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); @@ -1167,6 +1331,16 @@ public int hashCode() { (result * PRIME) + (this.managementPolicy == null ? 43 : this.managementPolicy.hashCode()); result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = + (result * PRIME) + + (this.kerberosAuthDetails == null + ? 43 + : this.kerberosAuthDetails.hashCode()); + result = + (result * PRIME) + + (this.odspInsightDetails == null + ? 43 + : this.odspInsightDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaCollection.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaCollection.java new file mode 100644 index 00000000000..0ca82663d7f --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Results of replica database system search.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DbSystemReplicaCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DbSystemReplicaCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public DbSystemReplicaCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of replica database systems. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * List of replica database systems. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DbSystemReplicaCollection build() { + DbSystemReplicaCollection model = new DbSystemReplicaCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DbSystemReplicaCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** List of replica database systems. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * List of replica database systems. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DbSystemReplicaCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DbSystemReplicaCollection)) { + return false; + } + + DbSystemReplicaCollection other = (DbSystemReplicaCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaSummary.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaSummary.java new file mode 100644 index 00000000000..8622a6fa336 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DbSystemReplicaSummary.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Summary information about a replica database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DbSystemReplicaSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DbSystemReplicaSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"id", "region"}) + public DbSystemReplicaSummary(String id, String region) { + super(); + this.id = id; + this.region = region; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** A unique identifier for the replica database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * A unique identifier for the replica database system. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** Region name of the replica database system region. Example: {@code us-phoenix-1} */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * Region name of the replica database system region. Example: {@code us-phoenix-1} + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DbSystemReplicaSummary build() { + DbSystemReplicaSummary model = new DbSystemReplicaSummary(this.id, this.region); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DbSystemReplicaSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** A unique identifier for the replica database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * A unique identifier for the replica database system. + * + * @return the value + */ + public String getId() { + return id; + } + + /** Region name of the replica database system region. Example: {@code us-phoenix-1} */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * Region name of the replica database system region. Example: {@code us-phoenix-1} + * + * @return the value + */ + public String getRegion() { + return region; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DbSystemReplicaSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DbSystemReplicaSummary)) { + return false; + } + + DbSystemReplicaSummary other = (DbSystemReplicaSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.region, other.region) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledInsightDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledInsightDetails.java new file mode 100644 index 00000000000..7cededa8199 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledInsightDetails.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Disable Insight for the database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisabledInsightDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisabledInsightDetails extends OdspInsightDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisabledInsightDetails build() { + DisabledInsightDetails model = new DisabledInsightDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisabledInsightDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DisabledInsightDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisabledInsightDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisabledInsightDetails)) { + return false; + } + + DisabledInsightDetails other = (DisabledInsightDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledKerberosAuthDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledKerberosAuthDetails.java new file mode 100644 index 00000000000..dc3d84f0847 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/DisabledKerberosAuthDetails.java @@ -0,0 +1,100 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Disable Kerberos Authentication for the database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisabledKerberosAuthDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisabledKerberosAuthDetails extends KerberosAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisabledKerberosAuthDetails build() { + DisabledKerberosAuthDetails model = new DisabledKerberosAuthDetails(); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisabledKerberosAuthDetails model) { + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DisabledKerberosAuthDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisabledKerberosAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisabledKerberosAuthDetails)) { + return false; + } + + DisabledKerberosAuthDetails other = (DisabledKerberosAuthDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledInsightDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledInsightDetails.java new file mode 100644 index 00000000000..a672ee9a7d6 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledInsightDetails.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Enable or Update Existing Insights for the database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnabledInsightDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnabledInsightDetails extends OdspInsightDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** List of ODSP Insight and their configurations. */ + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightList") + private java.util.List odspInsightList; + + /** + * List of ODSP Insight and their configurations. + * + * @param odspInsightList the value to set + * @return this builder + */ + public Builder odspInsightList(java.util.List odspInsightList) { + this.odspInsightList = odspInsightList; + this.__explicitlySet__.add("odspInsightList"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnabledInsightDetails build() { + EnabledInsightDetails model = new EnabledInsightDetails(this.odspInsightList); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnabledInsightDetails model) { + if (model.wasPropertyExplicitlySet("odspInsightList")) { + this.odspInsightList(model.getOdspInsightList()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public EnabledInsightDetails(java.util.List odspInsightList) { + super(); + this.odspInsightList = odspInsightList; + } + + /** List of ODSP Insight and their configurations. */ + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightList") + private final java.util.List odspInsightList; + + /** + * List of ODSP Insight and their configurations. + * + * @return the value + */ + public java.util.List getOdspInsightList() { + return odspInsightList; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnabledInsightDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", odspInsightList=").append(String.valueOf(this.odspInsightList)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnabledInsightDetails)) { + return false; + } + + EnabledInsightDetails other = (EnabledInsightDetails) o; + return java.util.Objects.equals(this.odspInsightList, other.odspInsightList) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.odspInsightList == null ? 43 : this.odspInsightList.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledKerberosAuthDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledKerberosAuthDetails.java new file mode 100644 index 00000000000..89c3bb26874 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/EnabledKerberosAuthDetails.java @@ -0,0 +1,191 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Enable or Update Existing Kerberos Authentication for the database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnabledKerberosAuthDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnabledKerberosAuthDetails extends KerberosAuthDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only + * one entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("credentials") + private java.util.List credentials; + + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only + * one entry. + * + * @param credentials the value to set + * @return this builder + */ + public Builder credentials(java.util.List credentials) { + this.credentials = credentials; + this.__explicitlySet__.add("credentials"); + return this; + } + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently + * supports only one entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupCredentials") + private java.util.List backupCredentials; + + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently + * supports only one entry. + * + * @param backupCredentials the value to set + * @return this builder + */ + public Builder backupCredentials(java.util.List backupCredentials) { + this.backupCredentials = backupCredentials; + this.__explicitlySet__.add("backupCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnabledKerberosAuthDetails build() { + EnabledKerberosAuthDetails model = + new EnabledKerberosAuthDetails(this.credentials, this.backupCredentials); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnabledKerberosAuthDetails model) { + if (model.wasPropertyExplicitlySet("credentials")) { + this.credentials(model.getCredentials()); + } + if (model.wasPropertyExplicitlySet("backupCredentials")) { + this.backupCredentials(model.getBackupCredentials()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public EnabledKerberosAuthDetails( + java.util.List credentials, + java.util.List backupCredentials) { + super(); + this.credentials = credentials; + this.backupCredentials = backupCredentials; + } + + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only one + * entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("credentials") + private final java.util.List credentials; + + /** + * List of Kerberos Credentials to be configured for the dbsystem. Currently supports only one + * entry. + * + * @return the value + */ + public java.util.List getCredentials() { + return credentials; + } + + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently + * supports only one entry. + */ + @com.fasterxml.jackson.annotation.JsonProperty("backupCredentials") + private final java.util.List backupCredentials; + + /** + * Optional. List of Kerberos Credentials previously configured for the dbsystem. Currently + * supports only one entry. + * + * @return the value + */ + public java.util.List getBackupCredentials() { + return backupCredentials; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnabledKerberosAuthDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", credentials=").append(String.valueOf(this.credentials)); + sb.append(", backupCredentials=").append(String.valueOf(this.backupCredentials)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnabledKerberosAuthDetails)) { + return false; + } + + EnabledKerberosAuthDetails other = (EnabledKerberosAuthDetails) o; + return java.util.Objects.equals(this.credentials, other.credentials) + && java.util.Objects.equals(this.backupCredentials, other.backupCredentials) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.credentials == null ? 43 : this.credentials.hashCode()); + result = + (result * PRIME) + + (this.backupCredentials == null ? 43 : this.backupCredentials.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/GranularityCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/GranularityCapability.java new file mode 100644 index 00000000000..83d46118fa9 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/GranularityCapability.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Describes time granularity behavior for time-series Insight.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GranularityCapability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GranularityCapability + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"type", "minSeconds", "maxSeconds"}) + public GranularityCapability(Type type, Integer minSeconds, Integer maxSeconds) { + super(); + this.type = type; + this.minSeconds = minSeconds; + this.maxSeconds = maxSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Granularity selection strategy. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private Type type; + + /** + * Granularity selection strategy. + * + * @param type the value to set + * @return this builder + */ + public Builder type(Type type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Minimum supported granularity in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("minSeconds") + private Integer minSeconds; + + /** + * Minimum supported granularity in seconds. + * + * @param minSeconds the value to set + * @return this builder + */ + public Builder minSeconds(Integer minSeconds) { + this.minSeconds = minSeconds; + this.__explicitlySet__.add("minSeconds"); + return this; + } + /** Maximum supported granularity in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxSeconds") + private Integer maxSeconds; + + /** + * Maximum supported granularity in seconds. + * + * @param maxSeconds the value to set + * @return this builder + */ + public Builder maxSeconds(Integer maxSeconds) { + this.maxSeconds = maxSeconds; + this.__explicitlySet__.add("maxSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GranularityCapability build() { + GranularityCapability model = + new GranularityCapability(this.type, this.minSeconds, this.maxSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GranularityCapability model) { + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("minSeconds")) { + this.minSeconds(model.getMinSeconds()); + } + if (model.wasPropertyExplicitlySet("maxSeconds")) { + this.maxSeconds(model.getMaxSeconds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Granularity selection strategy. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Fixed("FIXED"), + ClientInput("CLIENT_INPUT"), + BackendDetermined("BACKEND_DETERMINED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Granularity selection strategy. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final Type type; + + /** + * Granularity selection strategy. + * + * @return the value + */ + public Type getType() { + return type; + } + + /** Minimum supported granularity in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("minSeconds") + private final Integer minSeconds; + + /** + * Minimum supported granularity in seconds. + * + * @return the value + */ + public Integer getMinSeconds() { + return minSeconds; + } + + /** Maximum supported granularity in seconds. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxSeconds") + private final Integer maxSeconds; + + /** + * Maximum supported granularity in seconds. + * + * @return the value + */ + public Integer getMaxSeconds() { + return maxSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GranularityCapability("); + sb.append("super=").append(super.toString()); + sb.append("type=").append(String.valueOf(this.type)); + sb.append(", minSeconds=").append(String.valueOf(this.minSeconds)); + sb.append(", maxSeconds=").append(String.valueOf(this.maxSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GranularityCapability)) { + return false; + } + + GranularityCapability other = (GranularityCapability) o; + return java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.minSeconds, other.minSeconds) + && java.util.Objects.equals(this.maxSeconds, other.maxSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.minSeconds == null ? 43 : this.minSeconds.hashCode()); + result = (result * PRIME) + (this.maxSeconds == null ? 43 : this.maxSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilityCollection.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilityCollection.java new file mode 100644 index 00000000000..8e7b7a5fb68 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilityCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * PostgreSQL insight capabilities collection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightCapabilityCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InsightCapabilityCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public InsightCapabilityCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** PostgreSQL insight capabilities list. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * PostgreSQL insight capabilities list. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightCapabilityCollection build() { + InsightCapabilityCollection model = new InsightCapabilityCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightCapabilityCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** PostgreSQL insight capabilities list. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * PostgreSQL insight capabilities list. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightCapabilityCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightCapabilityCollection)) { + return false; + } + + InsightCapabilityCollection other = (InsightCapabilityCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilitySummary.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilitySummary.java new file mode 100644 index 00000000000..81b2bdccd59 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightCapabilitySummary.java @@ -0,0 +1,259 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Describes supported insight types and their capabilities.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightCapabilitySummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InsightCapabilitySummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"insightType", "description", "dataTypeCapabilities"}) + public InsightCapabilitySummary( + InsightType insightType, + String description, + java.util.List dataTypeCapabilities) { + super(); + this.insightType = insightType; + this.description = description; + this.dataTypeCapabilities = dataTypeCapabilities; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Echo of the requested insight type. */ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private InsightType insightType; + + /** + * Echo of the requested insight type. + * + * @param insightType the value to set + * @return this builder + */ + public Builder insightType(InsightType insightType) { + this.insightType = insightType; + this.__explicitlySet__.add("insightType"); + return this; + } + /** Human-readable description of the insight type. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Human-readable description of the insight type. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** Supported insight data types for this insight type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataTypeCapabilities") + private java.util.List dataTypeCapabilities; + + /** + * Supported insight data types for this insight type. + * + * @param dataTypeCapabilities the value to set + * @return this builder + */ + public Builder dataTypeCapabilities( + java.util.List dataTypeCapabilities) { + this.dataTypeCapabilities = dataTypeCapabilities; + this.__explicitlySet__.add("dataTypeCapabilities"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightCapabilitySummary build() { + InsightCapabilitySummary model = + new InsightCapabilitySummary( + this.insightType, this.description, this.dataTypeCapabilities); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightCapabilitySummary model) { + if (model.wasPropertyExplicitlySet("insightType")) { + this.insightType(model.getInsightType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("dataTypeCapabilities")) { + this.dataTypeCapabilities(model.getDataTypeCapabilities()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Echo of the requested insight type. */ + public enum InsightType implements com.oracle.bmc.http.internal.BmcEnum { + QueryInsight("QUERY_INSIGHT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InsightType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InsightType v : InsightType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InsightType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InsightType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InsightType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Echo of the requested insight type. */ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private final InsightType insightType; + + /** + * Echo of the requested insight type. + * + * @return the value + */ + public InsightType getInsightType() { + return insightType; + } + + /** Human-readable description of the insight type. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Human-readable description of the insight type. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** Supported insight data types for this insight type. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataTypeCapabilities") + private final java.util.List dataTypeCapabilities; + + /** + * Supported insight data types for this insight type. + * + * @return the value + */ + public java.util.List getDataTypeCapabilities() { + return dataTypeCapabilities; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightCapabilitySummary("); + sb.append("super=").append(super.toString()); + sb.append("insightType=").append(String.valueOf(this.insightType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", dataTypeCapabilities=").append(String.valueOf(this.dataTypeCapabilities)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightCapabilitySummary)) { + return false; + } + + InsightCapabilitySummary other = (InsightCapabilitySummary) o; + return java.util.Objects.equals(this.insightType, other.insightType) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.dataTypeCapabilities, other.dataTypeCapabilities) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.insightType == null ? 43 : this.insightType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.dataTypeCapabilities == null + ? 43 + : this.dataTypeCapabilities.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataContract.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataContract.java new file mode 100644 index 00000000000..1ea8e51924b --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataContract.java @@ -0,0 +1,214 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Describes the response data format returned for an insight type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightDataContract.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InsightDataContract + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"kind", "unit"}) + public InsightDataContract(Kind kind, String unit) { + super(); + this.kind = kind; + this.unit = unit; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicates the structure of the insight data payload. */ + @com.fasterxml.jackson.annotation.JsonProperty("kind") + private Kind kind; + + /** + * Indicates the structure of the insight data payload. + * + * @param kind the value to set + * @return this builder + */ + public Builder kind(Kind kind) { + this.kind = kind; + this.__explicitlySet__.add("kind"); + return this; + } + /** Optional unit associated with numeric values. */ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private String unit; + + /** + * Optional unit associated with numeric values. + * + * @param unit the value to set + * @return this builder + */ + public Builder unit(String unit) { + this.unit = unit; + this.__explicitlySet__.add("unit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightDataContract build() { + InsightDataContract model = new InsightDataContract(this.kind, this.unit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightDataContract model) { + if (model.wasPropertyExplicitlySet("kind")) { + this.kind(model.getKind()); + } + if (model.wasPropertyExplicitlySet("unit")) { + this.unit(model.getUnit()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicates the structure of the insight data payload. */ + public enum Kind implements com.oracle.bmc.http.internal.BmcEnum { + TimeSeries("TIME_SERIES"), + Table("TABLE"), + Summary("SUMMARY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Kind.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Kind v : Kind.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Kind(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Kind create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Kind', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** Indicates the structure of the insight data payload. */ + @com.fasterxml.jackson.annotation.JsonProperty("kind") + private final Kind kind; + + /** + * Indicates the structure of the insight data payload. + * + * @return the value + */ + public Kind getKind() { + return kind; + } + + /** Optional unit associated with numeric values. */ + @com.fasterxml.jackson.annotation.JsonProperty("unit") + private final String unit; + + /** + * Optional unit associated with numeric values. + * + * @return the value + */ + public String getUnit() { + return unit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightDataContract("); + sb.append("super=").append(super.toString()); + sb.append("kind=").append(String.valueOf(this.kind)); + sb.append(", unit=").append(String.valueOf(this.unit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightDataContract)) { + return false; + } + + InsightDataContract other = (InsightDataContract) o; + return java.util.Objects.equals(this.kind, other.kind) + && java.util.Objects.equals(this.unit, other.unit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.kind == null ? 43 : this.kind.hashCode()); + result = (result * PRIME) + (this.unit == null ? 43 : this.unit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataTypeCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataTypeCapability.java new file mode 100644 index 00000000000..049e3be90ae --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightDataTypeCapability.java @@ -0,0 +1,423 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Capability metadata for a specific insight data type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightDataTypeCapability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InsightDataTypeCapability + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "insightDataType", + "description", + "dataContract", + "dateTimeRangeSupport", + "granularity", + "filters", + "sorting", + "pagination", + "limits" + }) + public InsightDataTypeCapability( + InsightDataType insightDataType, + String description, + InsightDataContract dataContract, + DateTimeRangeCapability dateTimeRangeSupport, + GranularityCapability granularity, + java.util.List filters, + SortingCapability sorting, + PaginationCapability pagination, + InsightLimits limits) { + super(); + this.insightDataType = insightDataType; + this.description = description; + this.dataContract = dataContract; + this.dateTimeRangeSupport = dateTimeRangeSupport; + this.granularity = granularity; + this.filters = filters; + this.sorting = sorting; + this.pagination = pagination; + this.limits = limits; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Insight data type identifier (for example, AAS_TIME_SERIES). */ + @com.fasterxml.jackson.annotation.JsonProperty("insightDataType") + private InsightDataType insightDataType; + + /** + * Insight data type identifier (for example, AAS_TIME_SERIES). + * + * @param insightDataType the value to set + * @return this builder + */ + public Builder insightDataType(InsightDataType insightDataType) { + this.insightDataType = insightDataType; + this.__explicitlySet__.add("insightDataType"); + return this; + } + /** Human-readable description of the insight data type. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Human-readable description of the insight data type. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataContract") + private InsightDataContract dataContract; + + public Builder dataContract(InsightDataContract dataContract) { + this.dataContract = dataContract; + this.__explicitlySet__.add("dataContract"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dateTimeRangeSupport") + private DateTimeRangeCapability dateTimeRangeSupport; + + public Builder dateTimeRangeSupport(DateTimeRangeCapability dateTimeRangeSupport) { + this.dateTimeRangeSupport = dateTimeRangeSupport; + this.__explicitlySet__.add("dateTimeRangeSupport"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("granularity") + private GranularityCapability granularity; + + public Builder granularity(GranularityCapability granularity) { + this.granularity = granularity; + this.__explicitlySet__.add("granularity"); + return this; + } + /** Supported filters for this insight data type. */ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private java.util.List filters; + + /** + * Supported filters for this insight data type. + * + * @param filters the value to set + * @return this builder + */ + public Builder filters(java.util.List filters) { + this.filters = filters; + this.__explicitlySet__.add("filters"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sorting") + private SortingCapability sorting; + + public Builder sorting(SortingCapability sorting) { + this.sorting = sorting; + this.__explicitlySet__.add("sorting"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pagination") + private PaginationCapability pagination; + + public Builder pagination(PaginationCapability pagination) { + this.pagination = pagination; + this.__explicitlySet__.add("pagination"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("limits") + private InsightLimits limits; + + public Builder limits(InsightLimits limits) { + this.limits = limits; + this.__explicitlySet__.add("limits"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightDataTypeCapability build() { + InsightDataTypeCapability model = + new InsightDataTypeCapability( + this.insightDataType, + this.description, + this.dataContract, + this.dateTimeRangeSupport, + this.granularity, + this.filters, + this.sorting, + this.pagination, + this.limits); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightDataTypeCapability model) { + if (model.wasPropertyExplicitlySet("insightDataType")) { + this.insightDataType(model.getInsightDataType()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("dataContract")) { + this.dataContract(model.getDataContract()); + } + if (model.wasPropertyExplicitlySet("dateTimeRangeSupport")) { + this.dateTimeRangeSupport(model.getDateTimeRangeSupport()); + } + if (model.wasPropertyExplicitlySet("granularity")) { + this.granularity(model.getGranularity()); + } + if (model.wasPropertyExplicitlySet("filters")) { + this.filters(model.getFilters()); + } + if (model.wasPropertyExplicitlySet("sorting")) { + this.sorting(model.getSorting()); + } + if (model.wasPropertyExplicitlySet("pagination")) { + this.pagination(model.getPagination()); + } + if (model.wasPropertyExplicitlySet("limits")) { + this.limits(model.getLimits()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Insight data type identifier (for example, AAS_TIME_SERIES). */ + public enum InsightDataType implements com.oracle.bmc.http.internal.BmcEnum { + AasTimeSeries("AAS_TIME_SERIES"), + TopQueries("TOP_QUERIES"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InsightDataType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InsightDataType v : InsightDataType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InsightDataType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InsightDataType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InsightDataType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Insight data type identifier (for example, AAS_TIME_SERIES). */ + @com.fasterxml.jackson.annotation.JsonProperty("insightDataType") + private final InsightDataType insightDataType; + + /** + * Insight data type identifier (for example, AAS_TIME_SERIES). + * + * @return the value + */ + public InsightDataType getInsightDataType() { + return insightDataType; + } + + /** Human-readable description of the insight data type. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Human-readable description of the insight data type. + * + * @return the value + */ + public String getDescription() { + return description; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataContract") + private final InsightDataContract dataContract; + + public InsightDataContract getDataContract() { + return dataContract; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dateTimeRangeSupport") + private final DateTimeRangeCapability dateTimeRangeSupport; + + public DateTimeRangeCapability getDateTimeRangeSupport() { + return dateTimeRangeSupport; + } + + @com.fasterxml.jackson.annotation.JsonProperty("granularity") + private final GranularityCapability granularity; + + public GranularityCapability getGranularity() { + return granularity; + } + + /** Supported filters for this insight data type. */ + @com.fasterxml.jackson.annotation.JsonProperty("filters") + private final java.util.List filters; + + /** + * Supported filters for this insight data type. + * + * @return the value + */ + public java.util.List getFilters() { + return filters; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sorting") + private final SortingCapability sorting; + + public SortingCapability getSorting() { + return sorting; + } + + @com.fasterxml.jackson.annotation.JsonProperty("pagination") + private final PaginationCapability pagination; + + public PaginationCapability getPagination() { + return pagination; + } + + @com.fasterxml.jackson.annotation.JsonProperty("limits") + private final InsightLimits limits; + + public InsightLimits getLimits() { + return limits; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightDataTypeCapability("); + sb.append("super=").append(super.toString()); + sb.append("insightDataType=").append(String.valueOf(this.insightDataType)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", dataContract=").append(String.valueOf(this.dataContract)); + sb.append(", dateTimeRangeSupport=").append(String.valueOf(this.dateTimeRangeSupport)); + sb.append(", granularity=").append(String.valueOf(this.granularity)); + sb.append(", filters=").append(String.valueOf(this.filters)); + sb.append(", sorting=").append(String.valueOf(this.sorting)); + sb.append(", pagination=").append(String.valueOf(this.pagination)); + sb.append(", limits=").append(String.valueOf(this.limits)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightDataTypeCapability)) { + return false; + } + + InsightDataTypeCapability other = (InsightDataTypeCapability) o; + return java.util.Objects.equals(this.insightDataType, other.insightDataType) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.dataContract, other.dataContract) + && java.util.Objects.equals(this.dateTimeRangeSupport, other.dateTimeRangeSupport) + && java.util.Objects.equals(this.granularity, other.granularity) + && java.util.Objects.equals(this.filters, other.filters) + && java.util.Objects.equals(this.sorting, other.sorting) + && java.util.Objects.equals(this.pagination, other.pagination) + && java.util.Objects.equals(this.limits, other.limits) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.insightDataType == null ? 43 : this.insightDataType.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.dataContract == null ? 43 : this.dataContract.hashCode()); + result = + (result * PRIME) + + (this.dateTimeRangeSupport == null + ? 43 + : this.dateTimeRangeSupport.hashCode()); + result = (result * PRIME) + (this.granularity == null ? 43 : this.granularity.hashCode()); + result = (result * PRIME) + (this.filters == null ? 43 : this.filters.hashCode()); + result = (result * PRIME) + (this.sorting == null ? 43 : this.sorting.hashCode()); + result = (result * PRIME) + (this.pagination == null ? 43 : this.pagination.hashCode()); + result = (result * PRIME) + (this.limits == null ? 43 : this.limits.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightFilterCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightFilterCapability.java new file mode 100644 index 00000000000..c29944953e1 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightFilterCapability.java @@ -0,0 +1,246 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Describes a supported filter for an insight type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InsightFilterCapability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InsightFilterCapability + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "type", "values", "canUsePartialMatch"}) + public InsightFilterCapability( + String name, String type, java.util.List values, Boolean canUsePartialMatch) { + super(); + this.name = name; + this.type = type; + this.values = values; + this.canUsePartialMatch = canUsePartialMatch; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the filter parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the filter parameter. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** Data type of the filter parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Data type of the filter parameter. + * + * @param type the value to set + * @return this builder + */ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + /** Allowed values for enum-based filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private java.util.List values; + + /** + * Allowed values for enum-based filters. + * + * @param values the value to set + * @return this builder + */ + public Builder values(java.util.List values) { + this.values = values; + this.__explicitlySet__.add("values"); + return this; + } + /** Indicates whether partial matching is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("canUsePartialMatch") + private Boolean canUsePartialMatch; + + /** + * Indicates whether partial matching is supported. + * + * @param canUsePartialMatch the value to set + * @return this builder + */ + public Builder canUsePartialMatch(Boolean canUsePartialMatch) { + this.canUsePartialMatch = canUsePartialMatch; + this.__explicitlySet__.add("canUsePartialMatch"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightFilterCapability build() { + InsightFilterCapability model = + new InsightFilterCapability( + this.name, this.type, this.values, this.canUsePartialMatch); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightFilterCapability model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("values")) { + this.values(model.getValues()); + } + if (model.wasPropertyExplicitlySet("canUsePartialMatch")) { + this.canUsePartialMatch(model.getCanUsePartialMatch()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the filter parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the filter parameter. + * + * @return the value + */ + public String getName() { + return name; + } + + /** Data type of the filter parameter. */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Data type of the filter parameter. + * + * @return the value + */ + public String getType() { + return type; + } + + /** Allowed values for enum-based filters. */ + @com.fasterxml.jackson.annotation.JsonProperty("values") + private final java.util.List values; + + /** + * Allowed values for enum-based filters. + * + * @return the value + */ + public java.util.List getValues() { + return values; + } + + /** Indicates whether partial matching is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("canUsePartialMatch") + private final Boolean canUsePartialMatch; + + /** + * Indicates whether partial matching is supported. + * + * @return the value + */ + public Boolean getCanUsePartialMatch() { + return canUsePartialMatch; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightFilterCapability("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", values=").append(String.valueOf(this.values)); + sb.append(", canUsePartialMatch=").append(String.valueOf(this.canUsePartialMatch)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightFilterCapability)) { + return false; + } + + InsightFilterCapability other = (InsightFilterCapability) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.values, other.values) + && java.util.Objects.equals(this.canUsePartialMatch, other.canUsePartialMatch) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.values == null ? 43 : this.values.hashCode()); + result = + (result * PRIME) + + (this.canUsePartialMatch == null + ? 43 + : this.canUsePartialMatch.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightLimits.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightLimits.java new file mode 100644 index 00000000000..0214591c6b5 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/InsightLimits.java @@ -0,0 +1,169 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Defines limits applicable to an insight type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = InsightLimits.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InsightLimits extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"maxTimeRangeDays", "maxRows"}) + public InsightLimits(Integer maxTimeRangeDays, Integer maxRows) { + super(); + this.maxTimeRangeDays = maxTimeRangeDays; + this.maxRows = maxRows; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Maximum allowed time range in days. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxTimeRangeDays") + private Integer maxTimeRangeDays; + + /** + * Maximum allowed time range in days. + * + * @param maxTimeRangeDays the value to set + * @return this builder + */ + public Builder maxTimeRangeDays(Integer maxTimeRangeDays) { + this.maxTimeRangeDays = maxTimeRangeDays; + this.__explicitlySet__.add("maxTimeRangeDays"); + return this; + } + /** Maximum number of rows returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxRows") + private Integer maxRows; + + /** + * Maximum number of rows returned. + * + * @param maxRows the value to set + * @return this builder + */ + public Builder maxRows(Integer maxRows) { + this.maxRows = maxRows; + this.__explicitlySet__.add("maxRows"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InsightLimits build() { + InsightLimits model = new InsightLimits(this.maxTimeRangeDays, this.maxRows); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InsightLimits model) { + if (model.wasPropertyExplicitlySet("maxTimeRangeDays")) { + this.maxTimeRangeDays(model.getMaxTimeRangeDays()); + } + if (model.wasPropertyExplicitlySet("maxRows")) { + this.maxRows(model.getMaxRows()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Maximum allowed time range in days. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxTimeRangeDays") + private final Integer maxTimeRangeDays; + + /** + * Maximum allowed time range in days. + * + * @return the value + */ + public Integer getMaxTimeRangeDays() { + return maxTimeRangeDays; + } + + /** Maximum number of rows returned. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxRows") + private final Integer maxRows; + + /** + * Maximum number of rows returned. + * + * @return the value + */ + public Integer getMaxRows() { + return maxRows; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InsightLimits("); + sb.append("super=").append(super.toString()); + sb.append("maxTimeRangeDays=").append(String.valueOf(this.maxTimeRangeDays)); + sb.append(", maxRows=").append(String.valueOf(this.maxRows)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InsightLimits)) { + return false; + } + + InsightLimits other = (InsightLimits) o; + return java.util.Objects.equals(this.maxTimeRangeDays, other.maxTimeRangeDays) + && java.util.Objects.equals(this.maxRows, other.maxRows) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.maxTimeRangeDays == null ? 43 : this.maxTimeRangeDays.hashCode()); + result = (result * PRIME) + (this.maxRows == null ? 43 : this.maxRows.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosAuthDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosAuthDetails.java new file mode 100644 index 00000000000..5e6f7b742aa --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosAuthDetails.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Kerberos Authentication details for the database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = KerberosAuthDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DisabledKerberosAuthDetails.class, + name = "DISABLED"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = EnabledKerberosAuthDetails.class, + name = "ENABLED") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class KerberosAuthDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected KerberosAuthDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("KerberosAuthDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof KerberosAuthDetails)) { + return false; + } + + KerberosAuthDetails other = (KerberosAuthDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Specifies the management of Kerberos Authentication for the dbSystem. */ + public enum Kind implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Kind.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Kind v : Kind.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Kind(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Kind create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Kind', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosCredential.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosCredential.java new file mode 100644 index 00000000000..3f0a5773faf --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/KerberosCredential.java @@ -0,0 +1,238 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Kerberos Credential details as OCI Vault Secret for the keytab.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = KerberosCredential.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class KerberosCredential + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"realmName", "keytabSecretId", "keytabSecretVersion"}) + public KerberosCredential(String realmName, String keytabSecretId, Long keytabSecretVersion) { + super(); + this.realmName = realmName; + this.keytabSecretId = keytabSecretId; + this.keytabSecretVersion = keytabSecretVersion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Kerberos realm name. https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html + * Realm names can consist of any ASCII string. Usually, the realm name is the same as your + * DNS domain name except that the realm name is in uppercase. This convention helps + * differentiate problems with the Kerberos service from problems with the DNS namespace, + * while keeping a name that is familiar. You can use any string, but configuration and + * maintenance might then require more work. Use realm names that follow the standard + * Internet naming structure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("realmName") + private String realmName; + + /** + * Kerberos realm name. https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html + * Realm names can consist of any ASCII string. Usually, the realm name is the same as your + * DNS domain name except that the realm name is in uppercase. This convention helps + * differentiate problems with the Kerberos service from problems with the DNS namespace, + * while keeping a name that is familiar. You can use any string, but configuration and + * maintenance might then require more work. Use realm names that follow the standard + * Internet naming structure. + * + * @param realmName the value to set + * @return this builder + */ + public Builder realmName(String realmName) { + this.realmName = realmName; + this.__explicitlySet__.add("realmName"); + return this; + } + /** The OCID of the secret where the Kerberos keytab file is stored as base64 text. */ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretId") + private String keytabSecretId; + + /** + * The OCID of the secret where the Kerberos keytab file is stored as base64 text. + * + * @param keytabSecretId the value to set + * @return this builder + */ + public Builder keytabSecretId(String keytabSecretId) { + this.keytabSecretId = keytabSecretId; + this.__explicitlySet__.add("keytabSecretId"); + return this; + } + /** The secret version of the stored Kerberos keytab file. */ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretVersion") + private Long keytabSecretVersion; + + /** + * The secret version of the stored Kerberos keytab file. + * + * @param keytabSecretVersion the value to set + * @return this builder + */ + public Builder keytabSecretVersion(Long keytabSecretVersion) { + this.keytabSecretVersion = keytabSecretVersion; + this.__explicitlySet__.add("keytabSecretVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public KerberosCredential build() { + KerberosCredential model = + new KerberosCredential( + this.realmName, this.keytabSecretId, this.keytabSecretVersion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(KerberosCredential model) { + if (model.wasPropertyExplicitlySet("realmName")) { + this.realmName(model.getRealmName()); + } + if (model.wasPropertyExplicitlySet("keytabSecretId")) { + this.keytabSecretId(model.getKeytabSecretId()); + } + if (model.wasPropertyExplicitlySet("keytabSecretVersion")) { + this.keytabSecretVersion(model.getKeytabSecretVersion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Kerberos realm name. https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html Realm + * names can consist of any ASCII string. Usually, the realm name is the same as your DNS domain + * name except that the realm name is in uppercase. This convention helps differentiate problems + * with the Kerberos service from problems with the DNS namespace, while keeping a name that is + * familiar. You can use any string, but configuration and maintenance might then require more + * work. Use realm names that follow the standard Internet naming structure. + */ + @com.fasterxml.jackson.annotation.JsonProperty("realmName") + private final String realmName; + + /** + * Kerberos realm name. https://docs.oracle.com/cd/E36784_01/html/E37126/kplanning-27.html Realm + * names can consist of any ASCII string. Usually, the realm name is the same as your DNS domain + * name except that the realm name is in uppercase. This convention helps differentiate problems + * with the Kerberos service from problems with the DNS namespace, while keeping a name that is + * familiar. You can use any string, but configuration and maintenance might then require more + * work. Use realm names that follow the standard Internet naming structure. + * + * @return the value + */ + public String getRealmName() { + return realmName; + } + + /** The OCID of the secret where the Kerberos keytab file is stored as base64 text. */ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretId") + private final String keytabSecretId; + + /** + * The OCID of the secret where the Kerberos keytab file is stored as base64 text. + * + * @return the value + */ + public String getKeytabSecretId() { + return keytabSecretId; + } + + /** The secret version of the stored Kerberos keytab file. */ + @com.fasterxml.jackson.annotation.JsonProperty("keytabSecretVersion") + private final Long keytabSecretVersion; + + /** + * The secret version of the stored Kerberos keytab file. + * + * @return the value + */ + public Long getKeytabSecretVersion() { + return keytabSecretVersion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("KerberosCredential("); + sb.append("super=").append(super.toString()); + sb.append("realmName=").append(String.valueOf(this.realmName)); + sb.append(", keytabSecretId=").append(String.valueOf(this.keytabSecretId)); + sb.append(", keytabSecretVersion=").append(String.valueOf(this.keytabSecretVersion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof KerberosCredential)) { + return false; + } + + KerberosCredential other = (KerberosCredential) o; + return java.util.Objects.equals(this.realmName, other.realmName) + && java.util.Objects.equals(this.keytabSecretId, other.keytabSecretId) + && java.util.Objects.equals(this.keytabSecretVersion, other.keytabSecretVersion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.realmName == null ? 43 : this.realmName.hashCode()); + result = + (result * PRIME) + + (this.keytabSecretId == null ? 43 : this.keytabSecretId.hashCode()); + result = + (result * PRIME) + + (this.keytabSecretVersion == null + ? 43 + : this.keytabSecretVersion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsight.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsight.java new file mode 100644 index 00000000000..2f14bd43605 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsight.java @@ -0,0 +1,224 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Details for a single ODSP insight.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OdspInsight.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OdspInsight extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"insightType", "retentionPeriodInDays"}) + public OdspInsight(InsightType insightType, Integer retentionPeriodInDays) { + super(); + this.insightType = insightType; + this.retentionPeriodInDays = retentionPeriodInDays; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Type of Insight collected for the database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private InsightType insightType; + + /** + * Type of Insight collected for the database system. + * + * @param insightType the value to set + * @return this builder + */ + public Builder insightType(InsightType insightType) { + this.insightType = insightType; + this.__explicitlySet__.add("insightType"); + return this; + } + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system + * default is 7 days. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private Integer retentionPeriodInDays; + + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system + * default is 7 days. + * + * @param retentionPeriodInDays the value to set + * @return this builder + */ + public Builder retentionPeriodInDays(Integer retentionPeriodInDays) { + this.retentionPeriodInDays = retentionPeriodInDays; + this.__explicitlySet__.add("retentionPeriodInDays"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OdspInsight build() { + OdspInsight model = new OdspInsight(this.insightType, this.retentionPeriodInDays); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OdspInsight model) { + if (model.wasPropertyExplicitlySet("insightType")) { + this.insightType(model.getInsightType()); + } + if (model.wasPropertyExplicitlySet("retentionPeriodInDays")) { + this.retentionPeriodInDays(model.getRetentionPeriodInDays()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Type of Insight collected for the database system. */ + public enum InsightType implements com.oracle.bmc.http.internal.BmcEnum { + QueryInsight("QUERY_INSIGHT"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(InsightType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (InsightType v : InsightType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + InsightType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static InsightType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'InsightType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Type of Insight collected for the database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("insightType") + private final InsightType insightType; + + /** + * Type of Insight collected for the database system. + * + * @return the value + */ + public InsightType getInsightType() { + return insightType; + } + + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system + * default is 7 days. + */ + @com.fasterxml.jackson.annotation.JsonProperty("retentionPeriodInDays") + private final Integer retentionPeriodInDays; + + /** + * Retention period for Insight data, in days. Current supported value is 7 days. the system + * default is 7 days. + * + * @return the value + */ + public Integer getRetentionPeriodInDays() { + return retentionPeriodInDays; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OdspInsight("); + sb.append("super=").append(super.toString()); + sb.append("insightType=").append(String.valueOf(this.insightType)); + sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OdspInsight)) { + return false; + } + + OdspInsight other = (OdspInsight) o; + return java.util.Objects.equals(this.insightType, other.insightType) + && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.insightType == null ? 43 : this.insightType.hashCode()); + result = + (result * PRIME) + + (this.retentionPeriodInDays == null + ? 43 + : this.retentionPeriodInDays.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsightDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsightDetails.java new file mode 100644 index 00000000000..f18495b1b2a --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/OdspInsightDetails.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * ODSP Insight details for the database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "kind", + defaultImpl = OdspInsightDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DisabledInsightDetails.class, + name = "DISABLED"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = EnabledInsightDetails.class, + name = "ENABLED") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class OdspInsightDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected OdspInsightDetails() { + super(); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OdspInsightDetails("); + sb.append("super=").append(super.toString()); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OdspInsightDetails)) { + return false; + } + + OdspInsightDetails other = (OdspInsightDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Specifies the management of Insight for the dbSystem. */ + public enum Kind implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + Disabled("DISABLED"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Kind.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Kind v : Kind.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Kind(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Kind create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Kind', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PaginationCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PaginationCapability.java new file mode 100644 index 00000000000..ad137452771 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PaginationCapability.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Describes pagination support for an insight type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PaginationCapability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PaginationCapability + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSupported", "maxLimit", "defaultLimit"}) + public PaginationCapability(Boolean isSupported, Integer maxLimit, Integer defaultLimit) { + super(); + this.isSupported = isSupported; + this.maxLimit = maxLimit; + this.defaultLimit = defaultLimit; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicates whether pagination is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private Boolean isSupported; + + /** + * Indicates whether pagination is supported. + * + * @param isSupported the value to set + * @return this builder + */ + public Builder isSupported(Boolean isSupported) { + this.isSupported = isSupported; + this.__explicitlySet__.add("isSupported"); + return this; + } + /** Maximum number of items per page. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxLimit") + private Integer maxLimit; + + /** + * Maximum number of items per page. + * + * @param maxLimit the value to set + * @return this builder + */ + public Builder maxLimit(Integer maxLimit) { + this.maxLimit = maxLimit; + this.__explicitlySet__.add("maxLimit"); + return this; + } + /** Default number of items per page. */ + @com.fasterxml.jackson.annotation.JsonProperty("defaultLimit") + private Integer defaultLimit; + + /** + * Default number of items per page. + * + * @param defaultLimit the value to set + * @return this builder + */ + public Builder defaultLimit(Integer defaultLimit) { + this.defaultLimit = defaultLimit; + this.__explicitlySet__.add("defaultLimit"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PaginationCapability build() { + PaginationCapability model = + new PaginationCapability(this.isSupported, this.maxLimit, this.defaultLimit); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PaginationCapability model) { + if (model.wasPropertyExplicitlySet("isSupported")) { + this.isSupported(model.getIsSupported()); + } + if (model.wasPropertyExplicitlySet("maxLimit")) { + this.maxLimit(model.getMaxLimit()); + } + if (model.wasPropertyExplicitlySet("defaultLimit")) { + this.defaultLimit(model.getDefaultLimit()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicates whether pagination is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private final Boolean isSupported; + + /** + * Indicates whether pagination is supported. + * + * @return the value + */ + public Boolean getIsSupported() { + return isSupported; + } + + /** Maximum number of items per page. */ + @com.fasterxml.jackson.annotation.JsonProperty("maxLimit") + private final Integer maxLimit; + + /** + * Maximum number of items per page. + * + * @return the value + */ + public Integer getMaxLimit() { + return maxLimit; + } + + /** Default number of items per page. */ + @com.fasterxml.jackson.annotation.JsonProperty("defaultLimit") + private final Integer defaultLimit; + + /** + * Default number of items per page. + * + * @return the value + */ + public Integer getDefaultLimit() { + return defaultLimit; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PaginationCapability("); + sb.append("super=").append(super.toString()); + sb.append("isSupported=").append(String.valueOf(this.isSupported)); + sb.append(", maxLimit=").append(String.valueOf(this.maxLimit)); + sb.append(", defaultLimit=").append(String.valueOf(this.defaultLimit)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PaginationCapability)) { + return false; + } + + PaginationCapability other = (PaginationCapability) o; + return java.util.Objects.equals(this.isSupported, other.isSupported) + && java.util.Objects.equals(this.maxLimit, other.maxLimit) + && java.util.Objects.equals(this.defaultLimit, other.defaultLimit) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isSupported == null ? 43 : this.isSupported.hashCode()); + result = (result * PRIME) + (this.maxLimit == null ? 43 : this.maxLimit.hashCode()); + result = (result * PRIME) + (this.defaultLimit == null ? 43 : this.defaultLimit.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PrimaryDbSystemSourceDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PrimaryDbSystemSourceDetails.java new file mode 100644 index 00000000000..4e27fea4cca --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/PrimaryDbSystemSourceDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Details of the primary database system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PrimaryDbSystemSourceDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "sourceType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PrimaryDbSystemSourceDetails extends SourceDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The [OCID] of the primary database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private String primaryDbSystemId; + + /** + * The [OCID] of the primary database system. + * + * @param primaryDbSystemId the value to set + * @return this builder + */ + public Builder primaryDbSystemId(String primaryDbSystemId) { + this.primaryDbSystemId = primaryDbSystemId; + this.__explicitlySet__.add("primaryDbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrimaryDbSystemSourceDetails build() { + PrimaryDbSystemSourceDetails model = + new PrimaryDbSystemSourceDetails(this.primaryDbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrimaryDbSystemSourceDetails model) { + if (model.wasPropertyExplicitlySet("primaryDbSystemId")) { + this.primaryDbSystemId(model.getPrimaryDbSystemId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PrimaryDbSystemSourceDetails(String primaryDbSystemId) { + super(); + this.primaryDbSystemId = primaryDbSystemId; + } + + /** The [OCID] of the primary database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryDbSystemId") + private final String primaryDbSystemId; + + /** + * The [OCID] of the primary database system. + * + * @return the value + */ + public String getPrimaryDbSystemId() { + return primaryDbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PrimaryDbSystemSourceDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", primaryDbSystemId=").append(String.valueOf(this.primaryDbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrimaryDbSystemSourceDetails)) { + return false; + } + + PrimaryDbSystemSourceDetails other = (PrimaryDbSystemSourceDetails) o; + return java.util.Objects.equals(this.primaryDbSystemId, other.primaryDbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.primaryDbSystemId == null ? 43 : this.primaryDbSystemId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ReplicationConfig.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ReplicationConfig.java new file mode 100644 index 00000000000..90f29d57843 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/ReplicationConfig.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Replication configuration that is applicable on database systems with the PRIMARY_DB_SYSTEM role. + * + *

This configuration does not have any effect on database systems with other roles.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ReplicationConfig.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ReplicationConfig + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRpoEnforced", "rpoInSeconds"}) + public ReplicationConfig(Boolean isRpoEnforced, Long rpoInSeconds) { + super(); + this.isRpoEnforced = isRpoEnforced; + this.rpoInSeconds = rpoInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private Boolean isRpoEnforced; + + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database + * system. + * + * @param isRpoEnforced the value to set + * @return this builder + */ + public Builder isRpoEnforced(Boolean isRpoEnforced) { + this.isRpoEnforced = isRpoEnforced; + this.__explicitlySet__.add("isRpoEnforced"); + return this; + } + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @param rpoInSeconds the value to set + * @return this builder + */ + public Builder rpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + this.__explicitlySet__.add("rpoInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ReplicationConfig build() { + ReplicationConfig model = new ReplicationConfig(this.isRpoEnforced, this.rpoInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ReplicationConfig model) { + if (model.wasPropertyExplicitlySet("isRpoEnforced")) { + this.isRpoEnforced(model.getIsRpoEnforced()); + } + if (model.wasPropertyExplicitlySet("rpoInSeconds")) { + this.rpoInSeconds(model.getRpoInSeconds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private final Boolean isRpoEnforced; + + /** + * Specifies if Recovery point objective (RPO) enforcement is enabled on the database system. + * + * @return the value + */ + public Boolean getIsRpoEnforced() { + return isRpoEnforced; + } + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the {@code + * isRpoEnforced} flag is true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private final Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the {@code + * isRpoEnforced} flag is true. + * + * @return the value + */ + public Long getRpoInSeconds() { + return rpoInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ReplicationConfig("); + sb.append("super=").append(super.toString()); + sb.append("isRpoEnforced=").append(String.valueOf(this.isRpoEnforced)); + sb.append(", rpoInSeconds=").append(String.valueOf(this.rpoInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ReplicationConfig)) { + return false; + } + + ReplicationConfig other = (ReplicationConfig) o; + return java.util.Objects.equals(this.isRpoEnforced, other.isRpoEnforced) + && java.util.Objects.equals(this.rpoInSeconds, other.rpoInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isRpoEnforced == null ? 43 : this.isRpoEnforced.hashCode()); + result = (result * PRIME) + (this.rpoInSeconds == null ? 43 : this.rpoInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingCapability.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingCapability.java new file mode 100644 index 00000000000..fdfdbb932f3 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingCapability.java @@ -0,0 +1,194 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Describes sorting support for an insight type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SortingCapability.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SortingCapability + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSupported", "fields", "defaultSort"}) + public SortingCapability( + Boolean isSupported, java.util.List fields, SortingDefault defaultSort) { + super(); + this.isSupported = isSupported; + this.fields = fields; + this.defaultSort = defaultSort; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Indicates whether sorting is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private Boolean isSupported; + + /** + * Indicates whether sorting is supported. + * + * @param isSupported the value to set + * @return this builder + */ + public Builder isSupported(Boolean isSupported) { + this.isSupported = isSupported; + this.__explicitlySet__.add("isSupported"); + return this; + } + /** Fields that can be used for sorting. */ + @com.fasterxml.jackson.annotation.JsonProperty("fields") + private java.util.List fields; + + /** + * Fields that can be used for sorting. + * + * @param fields the value to set + * @return this builder + */ + public Builder fields(java.util.List fields) { + this.fields = fields; + this.__explicitlySet__.add("fields"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("defaultSort") + private SortingDefault defaultSort; + + public Builder defaultSort(SortingDefault defaultSort) { + this.defaultSort = defaultSort; + this.__explicitlySet__.add("defaultSort"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SortingCapability build() { + SortingCapability model = + new SortingCapability(this.isSupported, this.fields, this.defaultSort); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SortingCapability model) { + if (model.wasPropertyExplicitlySet("isSupported")) { + this.isSupported(model.getIsSupported()); + } + if (model.wasPropertyExplicitlySet("fields")) { + this.fields(model.getFields()); + } + if (model.wasPropertyExplicitlySet("defaultSort")) { + this.defaultSort(model.getDefaultSort()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Indicates whether sorting is supported. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSupported") + private final Boolean isSupported; + + /** + * Indicates whether sorting is supported. + * + * @return the value + */ + public Boolean getIsSupported() { + return isSupported; + } + + /** Fields that can be used for sorting. */ + @com.fasterxml.jackson.annotation.JsonProperty("fields") + private final java.util.List fields; + + /** + * Fields that can be used for sorting. + * + * @return the value + */ + public java.util.List getFields() { + return fields; + } + + @com.fasterxml.jackson.annotation.JsonProperty("defaultSort") + private final SortingDefault defaultSort; + + public SortingDefault getDefaultSort() { + return defaultSort; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SortingCapability("); + sb.append("super=").append(super.toString()); + sb.append("isSupported=").append(String.valueOf(this.isSupported)); + sb.append(", fields=").append(String.valueOf(this.fields)); + sb.append(", defaultSort=").append(String.valueOf(this.defaultSort)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SortingCapability)) { + return false; + } + + SortingCapability other = (SortingCapability) o; + return java.util.Objects.equals(this.isSupported, other.isSupported) + && java.util.Objects.equals(this.fields, other.fields) + && java.util.Objects.equals(this.defaultSort, other.defaultSort) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isSupported == null ? 43 : this.isSupported.hashCode()); + result = (result * PRIME) + (this.fields == null ? 43 : this.fields.hashCode()); + result = (result * PRIME) + (this.defaultSort == null ? 43 : this.defaultSort.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingDefault.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingDefault.java new file mode 100644 index 00000000000..c84d615ece8 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SortingDefault.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Default sorting behavior for an insight type.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SortingDefault.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SortingDefault + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"field", "order"}) + public SortingDefault(String field, Order order) { + super(); + this.field = field; + this.order = order; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Default field used for sorting. */ + @com.fasterxml.jackson.annotation.JsonProperty("field") + private String field; + + /** + * Default field used for sorting. + * + * @param field the value to set + * @return this builder + */ + public Builder field(String field) { + this.field = field; + this.__explicitlySet__.add("field"); + return this; + } + /** Default sort order. */ + @com.fasterxml.jackson.annotation.JsonProperty("order") + private Order order; + + /** + * Default sort order. + * + * @param order the value to set + * @return this builder + */ + public Builder order(Order order) { + this.order = order; + this.__explicitlySet__.add("order"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SortingDefault build() { + SortingDefault model = new SortingDefault(this.field, this.order); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SortingDefault model) { + if (model.wasPropertyExplicitlySet("field")) { + this.field(model.getField()); + } + if (model.wasPropertyExplicitlySet("order")) { + this.order(model.getOrder()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Default field used for sorting. */ + @com.fasterxml.jackson.annotation.JsonProperty("field") + private final String field; + + /** + * Default field used for sorting. + * + * @return the value + */ + public String getField() { + return field; + } + + /** Default sort order. */ + public enum Order implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Order.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Order v : Order.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Order(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Order create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Order', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Default sort order. */ + @com.fasterxml.jackson.annotation.JsonProperty("order") + private final Order order; + + /** + * Default sort order. + * + * @return the value + */ + public Order getOrder() { + return order; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SortingDefault("); + sb.append("super=").append(super.toString()); + sb.append("field=").append(String.valueOf(this.field)); + sb.append(", order=").append(String.valueOf(this.order)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SortingDefault)) { + return false; + } + + SortingDefault other = (SortingDefault) o; + return java.util.Objects.equals(this.field, other.field) + && java.util.Objects.equals(this.order, other.order) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.field == null ? 43 : this.field.hashCode()); + result = (result * PRIME) + (this.order == null ? 43 : this.order.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java index d1be3d12dfa..0f5eb40ff87 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SourceDetails.java @@ -25,6 +25,9 @@ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = BackupSourceDetails.class, name = "BACKUP"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PrimaryDbSystemSourceDetails.class, + name = "DB_SYSTEM"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( value = NoneSourceDetails.class, name = "NONE") @@ -82,6 +85,7 @@ public int hashCode() { public enum SourceType implements com.oracle.bmc.http.internal.BmcEnum { Backup("BACKUP"), None("NONE"), + DbSystem("DB_SYSTEM"), /** * This value is used if a service returns a value for this enum that is not recognized by diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StartDbSystemDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StartDbSystemDetails.java new file mode 100644 index 00000000000..99cd15f741b --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/StartDbSystemDetails.java @@ -0,0 +1,263 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * DB System start parameters to update ocpu, memory, shape and configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = StartDbSystemDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class StartDbSystemDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "instanceOcpuCount", + "instanceMemorySizeInGBs", + "shape", + "configId" + }) + public StartDbSystemDetails( + Integer instanceOcpuCount, + Integer instanceMemorySizeInGBs, + String shape, + String configId) { + super(); + this.instanceOcpuCount = instanceOcpuCount; + this.instanceMemorySizeInGBs = instanceMemorySizeInGBs; + this.shape = shape; + this.configId = configId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The total number of OCPUs available to each database system node. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceOcpuCount") + private Integer instanceOcpuCount; + + /** + * The total number of OCPUs available to each database system node. + * + * @param instanceOcpuCount the value to set + * @return this builder + */ + public Builder instanceOcpuCount(Integer instanceOcpuCount) { + this.instanceOcpuCount = instanceOcpuCount; + this.__explicitlySet__.add("instanceOcpuCount"); + return this; + } + /** The total amount of memory available to each database system node, in gigabytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceMemorySizeInGBs") + private Integer instanceMemorySizeInGBs; + + /** + * The total amount of memory available to each database system node, in gigabytes. + * + * @param instanceMemorySizeInGBs the value to set + * @return this builder + */ + public Builder instanceMemorySizeInGBs(Integer instanceMemorySizeInGBs) { + this.instanceMemorySizeInGBs = instanceMemorySizeInGBs; + this.__explicitlySet__.add("instanceMemorySizeInGBs"); + return this; + } + /** + * The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} + */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private String shape; + + /** + * The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} + * + * @param shape the value to set + * @return this builder + */ + public Builder shape(String shape) { + this.shape = shape; + this.__explicitlySet__.add("shape"); + return this; + } + /** The updated configId for the database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("configId") + private String configId; + + /** + * The updated configId for the database system. + * + * @param configId the value to set + * @return this builder + */ + public Builder configId(String configId) { + this.configId = configId; + this.__explicitlySet__.add("configId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public StartDbSystemDetails build() { + StartDbSystemDetails model = + new StartDbSystemDetails( + this.instanceOcpuCount, + this.instanceMemorySizeInGBs, + this.shape, + this.configId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(StartDbSystemDetails model) { + if (model.wasPropertyExplicitlySet("instanceOcpuCount")) { + this.instanceOcpuCount(model.getInstanceOcpuCount()); + } + if (model.wasPropertyExplicitlySet("instanceMemorySizeInGBs")) { + this.instanceMemorySizeInGBs(model.getInstanceMemorySizeInGBs()); + } + if (model.wasPropertyExplicitlySet("shape")) { + this.shape(model.getShape()); + } + if (model.wasPropertyExplicitlySet("configId")) { + this.configId(model.getConfigId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The total number of OCPUs available to each database system node. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceOcpuCount") + private final Integer instanceOcpuCount; + + /** + * The total number of OCPUs available to each database system node. + * + * @return the value + */ + public Integer getInstanceOcpuCount() { + return instanceOcpuCount; + } + + /** The total amount of memory available to each database system node, in gigabytes. */ + @com.fasterxml.jackson.annotation.JsonProperty("instanceMemorySizeInGBs") + private final Integer instanceMemorySizeInGBs; + + /** + * The total amount of memory available to each database system node, in gigabytes. + * + * @return the value + */ + public Integer getInstanceMemorySizeInGBs() { + return instanceMemorySizeInGBs; + } + + /** The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} */ + @com.fasterxml.jackson.annotation.JsonProperty("shape") + private final String shape; + + /** + * The name of the shape for the database system nodes. Example: {@code VM.Standard.E4.Flex} + * + * @return the value + */ + public String getShape() { + return shape; + } + + /** The updated configId for the database system. */ + @com.fasterxml.jackson.annotation.JsonProperty("configId") + private final String configId; + + /** + * The updated configId for the database system. + * + * @return the value + */ + public String getConfigId() { + return configId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("StartDbSystemDetails("); + sb.append("super=").append(super.toString()); + sb.append("instanceOcpuCount=").append(String.valueOf(this.instanceOcpuCount)); + sb.append(", instanceMemorySizeInGBs=") + .append(String.valueOf(this.instanceMemorySizeInGBs)); + sb.append(", shape=").append(String.valueOf(this.shape)); + sb.append(", configId=").append(String.valueOf(this.configId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDbSystemDetails)) { + return false; + } + + StartDbSystemDetails other = (StartDbSystemDetails) o; + return java.util.Objects.equals(this.instanceOcpuCount, other.instanceOcpuCount) + && java.util.Objects.equals( + this.instanceMemorySizeInGBs, other.instanceMemorySizeInGBs) + && java.util.Objects.equals(this.shape, other.shape) + && java.util.Objects.equals(this.configId, other.configId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.instanceOcpuCount == null ? 43 : this.instanceOcpuCount.hashCode()); + result = + (result * PRIME) + + (this.instanceMemorySizeInGBs == null + ? 43 + : this.instanceMemorySizeInGBs.hashCode()); + result = (result * PRIME) + (this.shape == null ? 43 : this.shape.hashCode()); + result = (result * PRIME) + (this.configId == null ? 43 : this.configId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SwitchOverDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SwitchOverDetails.java new file mode 100644 index 00000000000..678dd668ce2 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/SwitchOverDetails.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * The information required to swap role between the primary and an existing replica database + * system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = SwitchOverDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class SwitchOverDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"replicaDbSystemId"}) + public SwitchOverDetails(String replicaDbSystemId) { + super(); + this.replicaDbSystemId = replicaDbSystemId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the replica database system that will get the primary role after switchover. + */ + @com.fasterxml.jackson.annotation.JsonProperty("replicaDbSystemId") + private String replicaDbSystemId; + + /** + * The OCID of the replica database system that will get the primary role after switchover. + * + * @param replicaDbSystemId the value to set + * @return this builder + */ + public Builder replicaDbSystemId(String replicaDbSystemId) { + this.replicaDbSystemId = replicaDbSystemId; + this.__explicitlySet__.add("replicaDbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public SwitchOverDetails build() { + SwitchOverDetails model = new SwitchOverDetails(this.replicaDbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(SwitchOverDetails model) { + if (model.wasPropertyExplicitlySet("replicaDbSystemId")) { + this.replicaDbSystemId(model.getReplicaDbSystemId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The OCID of the replica database system that will get the primary role after switchover. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicaDbSystemId") + private final String replicaDbSystemId; + + /** + * The OCID of the replica database system that will get the primary role after switchover. + * + * @return the value + */ + public String getReplicaDbSystemId() { + return replicaDbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("SwitchOverDetails("); + sb.append("super=").append(super.toString()); + sb.append("replicaDbSystemId=").append(String.valueOf(this.replicaDbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchOverDetails)) { + return false; + } + + SwitchOverDetails other = (SwitchOverDetails) o; + return java.util.Objects.equals(this.replicaDbSystemId, other.replicaDbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.replicaDbSystemId == null ? 43 : this.replicaDbSystemId.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java index 4e0bea4e236..e464f6510ef 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateDbSystemDetails.java @@ -32,7 +32,10 @@ public final class UpdateDbSystemDetails "dbConfigurationParams", "managementPolicy", "storageDetails", + "replicationConfig", "networkDetails", + "kerberosAuthDetails", + "odspInsightDetails", "freeformTags", "definedTags" }) @@ -45,7 +48,10 @@ public UpdateDbSystemDetails( UpdateDbConfigParams dbConfigurationParams, ManagementPolicyDetails managementPolicy, UpdateStorageDetailsParams storageDetails, + UpdateReplicationConfigDetails replicationConfig, UpdateNetworkDetails networkDetails, + KerberosAuthDetails kerberosAuthDetails, + OdspInsightDetails odspInsightDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -57,7 +63,10 @@ public UpdateDbSystemDetails( this.dbConfigurationParams = dbConfigurationParams; this.managementPolicy = managementPolicy; this.storageDetails = storageDetails; + this.replicationConfig = replicationConfig; this.networkDetails = networkDetails; + this.kerberosAuthDetails = kerberosAuthDetails; + this.odspInsightDetails = odspInsightDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -173,6 +182,15 @@ public Builder storageDetails(UpdateStorageDetailsParams storageDetails) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private UpdateReplicationConfigDetails replicationConfig; + + public Builder replicationConfig(UpdateReplicationConfigDetails replicationConfig) { + this.replicationConfig = replicationConfig; + this.__explicitlySet__.add("replicationConfig"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("networkDetails") private UpdateNetworkDetails networkDetails; @@ -181,6 +199,24 @@ public Builder networkDetails(UpdateNetworkDetails networkDetails) { this.__explicitlySet__.add("networkDetails"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private KerberosAuthDetails kerberosAuthDetails; + + public Builder kerberosAuthDetails(KerberosAuthDetails kerberosAuthDetails) { + this.kerberosAuthDetails = kerberosAuthDetails; + this.__explicitlySet__.add("kerberosAuthDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private OdspInsightDetails odspInsightDetails; + + public Builder odspInsightDetails(OdspInsightDetails odspInsightDetails) { + this.odspInsightDetails = odspInsightDetails; + this.__explicitlySet__.add("odspInsightDetails"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -235,7 +271,10 @@ public UpdateDbSystemDetails build() { this.dbConfigurationParams, this.managementPolicy, this.storageDetails, + this.replicationConfig, this.networkDetails, + this.kerberosAuthDetails, + this.odspInsightDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -270,9 +309,18 @@ public Builder copy(UpdateDbSystemDetails model) { if (model.wasPropertyExplicitlySet("storageDetails")) { this.storageDetails(model.getStorageDetails()); } + if (model.wasPropertyExplicitlySet("replicationConfig")) { + this.replicationConfig(model.getReplicationConfig()); + } if (model.wasPropertyExplicitlySet("networkDetails")) { this.networkDetails(model.getNetworkDetails()); } + if (model.wasPropertyExplicitlySet("kerberosAuthDetails")) { + this.kerberosAuthDetails(model.getKerberosAuthDetails()); + } + if (model.wasPropertyExplicitlySet("odspInsightDetails")) { + this.odspInsightDetails(model.getOdspInsightDetails()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -382,6 +430,13 @@ public UpdateStorageDetailsParams getStorageDetails() { return storageDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("replicationConfig") + private final UpdateReplicationConfigDetails replicationConfig; + + public UpdateReplicationConfigDetails getReplicationConfig() { + return replicationConfig; + } + @com.fasterxml.jackson.annotation.JsonProperty("networkDetails") private final UpdateNetworkDetails networkDetails; @@ -389,6 +444,20 @@ public UpdateNetworkDetails getNetworkDetails() { return networkDetails; } + @com.fasterxml.jackson.annotation.JsonProperty("kerberosAuthDetails") + private final KerberosAuthDetails kerberosAuthDetails; + + public KerberosAuthDetails getKerberosAuthDetails() { + return kerberosAuthDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("odspInsightDetails") + private final OdspInsightDetails odspInsightDetails; + + public OdspInsightDetails getOdspInsightDetails() { + return odspInsightDetails; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -447,7 +516,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", dbConfigurationParams=").append(String.valueOf(this.dbConfigurationParams)); sb.append(", managementPolicy=").append(String.valueOf(this.managementPolicy)); sb.append(", storageDetails=").append(String.valueOf(this.storageDetails)); + sb.append(", replicationConfig=").append(String.valueOf(this.replicationConfig)); sb.append(", networkDetails=").append(String.valueOf(this.networkDetails)); + sb.append(", kerberosAuthDetails=").append(String.valueOf(this.kerberosAuthDetails)); + sb.append(", odspInsightDetails=").append(String.valueOf(this.odspInsightDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -473,7 +545,10 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.dbConfigurationParams, other.dbConfigurationParams) && java.util.Objects.equals(this.managementPolicy, other.managementPolicy) && java.util.Objects.equals(this.storageDetails, other.storageDetails) + && java.util.Objects.equals(this.replicationConfig, other.replicationConfig) && java.util.Objects.equals(this.networkDetails, other.networkDetails) + && java.util.Objects.equals(this.kerberosAuthDetails, other.kerberosAuthDetails) + && java.util.Objects.equals(this.odspInsightDetails, other.odspInsightDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -505,9 +580,22 @@ public int hashCode() { result = (result * PRIME) + (this.storageDetails == null ? 43 : this.storageDetails.hashCode()); + result = + (result * PRIME) + + (this.replicationConfig == null ? 43 : this.replicationConfig.hashCode()); result = (result * PRIME) + (this.networkDetails == null ? 43 : this.networkDetails.hashCode()); + result = + (result * PRIME) + + (this.kerberosAuthDetails == null + ? 43 + : this.kerberosAuthDetails.hashCode()); + result = + (result * PRIME) + + (this.odspInsightDetails == null + ? 43 + : this.odspInsightDetails.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateReplicationConfigDetails.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateReplicationConfigDetails.java new file mode 100644 index 00000000000..396635b9cb9 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/model/UpdateReplicationConfigDetails.java @@ -0,0 +1,191 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.model; + +/** + * Details of the replication configuration that is applicable when database system gets the + * PRIMARY_DB_SYSTEM role. + * + *

This configuration does not have any effect on database systems with other roles.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateReplicationConfigDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateReplicationConfigDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isRpoEnforced", "rpoInSeconds"}) + public UpdateReplicationConfigDetails(Boolean isRpoEnforced, Long rpoInSeconds) { + super(); + this.isRpoEnforced = isRpoEnforced; + this.rpoInSeconds = rpoInSeconds; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @param isRpoEnforced the value to set + * @return this builder + */ + public Builder isRpoEnforced(Boolean isRpoEnforced) { + this.isRpoEnforced = isRpoEnforced; + this.__explicitlySet__.add("isRpoEnforced"); + return this; + } + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the + * {@code isRpoEnforced} flag is true. + * + * @param rpoInSeconds the value to set + * @return this builder + */ + public Builder rpoInSeconds(Long rpoInSeconds) { + this.rpoInSeconds = rpoInSeconds; + this.__explicitlySet__.add("rpoInSeconds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateReplicationConfigDetails build() { + UpdateReplicationConfigDetails model = + new UpdateReplicationConfigDetails(this.isRpoEnforced, this.rpoInSeconds); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateReplicationConfigDetails model) { + if (model.wasPropertyExplicitlySet("isRpoEnforced")) { + this.isRpoEnforced(model.getIsRpoEnforced()); + } + if (model.wasPropertyExplicitlySet("rpoInSeconds")) { + this.rpoInSeconds(model.getRpoInSeconds()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isRpoEnforced") + private final Boolean isRpoEnforced; + + /** + * Specify if Recovery point objective (RPO) enforcement needs to be enabled on the database + * system. + * + * @return the value + */ + public Boolean getIsRpoEnforced() { + return isRpoEnforced; + } + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the {@code + * isRpoEnforced} flag is true. + */ + @com.fasterxml.jackson.annotation.JsonProperty("rpoInSeconds") + private final Long rpoInSeconds; + + /** + * Specifies the Recovery point objective (RPO) in seconds that will be enforced, if the {@code + * isRpoEnforced} flag is true. + * + * @return the value + */ + public Long getRpoInSeconds() { + return rpoInSeconds; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateReplicationConfigDetails("); + sb.append("super=").append(super.toString()); + sb.append("isRpoEnforced=").append(String.valueOf(this.isRpoEnforced)); + sb.append(", rpoInSeconds=").append(String.valueOf(this.rpoInSeconds)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateReplicationConfigDetails)) { + return false; + } + + UpdateReplicationConfigDetails other = (UpdateReplicationConfigDetails) o; + return java.util.Objects.equals(this.isRpoEnforced, other.isRpoEnforced) + && java.util.Objects.equals(this.rpoInSeconds, other.rpoInSeconds) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isRpoEnforced == null ? 43 : this.isRpoEnforced.hashCode()); + result = (result * PRIME) + (this.rpoInSeconds == null ? 43 : this.rpoInSeconds.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToReplicaRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToReplicaRequest.java new file mode 100644 index 00000000000..5cb0a09787e --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToReplicaRequest.java @@ -0,0 +1,350 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use ChangeRoleToReplicaRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToReplicaRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails> { + + /** Change a standalone database system's role to warm-standby replica parameters. */ + private com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails changeRoleToReplicaDetails; + + /** Change a standalone database system's role to warm-standby replica parameters. */ + public com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails getChangeRoleToReplicaDetails() { + return changeRoleToReplicaDetails; + } + /** A unique identifier for the database system. */ + private String dbSystemId; + + /** A unique identifier for the database system. */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails getBody$() { + return changeRoleToReplicaDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeRoleToReplicaRequest, + com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Change a standalone database system's role to warm-standby replica parameters. */ + private com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails changeRoleToReplicaDetails = + null; + + /** + * Change a standalone database system's role to warm-standby replica parameters. + * + * @param changeRoleToReplicaDetails the value to set + * @return this builder instance + */ + public Builder changeRoleToReplicaDetails( + com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails changeRoleToReplicaDetails) { + this.changeRoleToReplicaDetails = changeRoleToReplicaDetails; + return this; + } + + /** A unique identifier for the database system. */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeRoleToReplicaRequest o) { + changeRoleToReplicaDetails(o.getChangeRoleToReplicaDetails()); + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeRoleToReplicaRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ChangeRoleToReplicaRequest + */ + public ChangeRoleToReplicaRequest build() { + ChangeRoleToReplicaRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails body) { + changeRoleToReplicaDetails(body); + return this; + } + + /** + * Build the instance of ChangeRoleToReplicaRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeRoleToReplicaRequest + */ + public ChangeRoleToReplicaRequest buildWithoutInvocationCallback() { + ChangeRoleToReplicaRequest request = new ChangeRoleToReplicaRequest(); + request.changeRoleToReplicaDetails = changeRoleToReplicaDetails; + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeRoleToReplicaRequest(changeRoleToReplicaDetails, dbSystemId, ifMatch, + // opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeRoleToReplicaDetails(changeRoleToReplicaDetails) + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeRoleToReplicaDetails=") + .append(String.valueOf(this.changeRoleToReplicaDetails)); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToReplicaRequest)) { + return false; + } + + ChangeRoleToReplicaRequest other = (ChangeRoleToReplicaRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeRoleToReplicaDetails, other.changeRoleToReplicaDetails) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeRoleToReplicaDetails == null + ? 43 + : this.changeRoleToReplicaDetails.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToStandaloneRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToStandaloneRequest.java new file mode 100644 index 00000000000..de33ca11bfc --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ChangeRoleToStandaloneRequest.java @@ -0,0 +1,353 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use + * ChangeRoleToStandaloneRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToStandaloneRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails> { + + /** Change a replica database system's role to standalone parameters. */ + private com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails changeRoleToStandaloneDetails; + + /** Change a replica database system's role to standalone parameters. */ + public com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails + getChangeRoleToStandaloneDetails() { + return changeRoleToStandaloneDetails; + } + /** A unique identifier for the database system. */ + private String dbSystemId; + + /** A unique identifier for the database system. */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails getBody$() { + return changeRoleToStandaloneDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeRoleToStandaloneRequest, + com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Change a replica database system's role to standalone parameters. */ + private com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails + changeRoleToStandaloneDetails = null; + + /** + * Change a replica database system's role to standalone parameters. + * + * @param changeRoleToStandaloneDetails the value to set + * @return this builder instance + */ + public Builder changeRoleToStandaloneDetails( + com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails + changeRoleToStandaloneDetails) { + this.changeRoleToStandaloneDetails = changeRoleToStandaloneDetails; + return this; + } + + /** A unique identifier for the database system. */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeRoleToStandaloneRequest o) { + changeRoleToStandaloneDetails(o.getChangeRoleToStandaloneDetails()); + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeRoleToStandaloneRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ChangeRoleToStandaloneRequest + */ + public ChangeRoleToStandaloneRequest build() { + ChangeRoleToStandaloneRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails body) { + changeRoleToStandaloneDetails(body); + return this; + } + + /** + * Build the instance of ChangeRoleToStandaloneRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeRoleToStandaloneRequest + */ + public ChangeRoleToStandaloneRequest buildWithoutInvocationCallback() { + ChangeRoleToStandaloneRequest request = new ChangeRoleToStandaloneRequest(); + request.changeRoleToStandaloneDetails = changeRoleToStandaloneDetails; + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new ChangeRoleToStandaloneRequest(changeRoleToStandaloneDetails, dbSystemId, ifMatch, + // opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .changeRoleToStandaloneDetails(changeRoleToStandaloneDetails) + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",changeRoleToStandaloneDetails=") + .append(String.valueOf(this.changeRoleToStandaloneDetails)); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToStandaloneRequest)) { + return false; + } + + ChangeRoleToStandaloneRequest other = (ChangeRoleToStandaloneRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.changeRoleToStandaloneDetails, other.changeRoleToStandaloneDetails) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.changeRoleToStandaloneDetails == null + ? 43 + : this.changeRoleToStandaloneDetails.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemReplicasRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemReplicasRequest.java new file mode 100644 index 00000000000..9fb2dd52ab0 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemReplicasRequest.java @@ -0,0 +1,257 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use ListDbSystemReplicasRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListDbSystemReplicasRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A unique identifier for the database system. */ + private String dbSystemId; + + /** A unique identifier for the database system. */ + public String getDbSystemId() { + return dbSystemId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListDbSystemReplicasRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A unique identifier for the database system. */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListDbSystemReplicasRequest o) { + dbSystemId(o.getDbSystemId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListDbSystemReplicasRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListDbSystemReplicasRequest + */ + public ListDbSystemReplicasRequest build() { + ListDbSystemReplicasRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListDbSystemReplicasRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListDbSystemReplicasRequest + */ + public ListDbSystemReplicasRequest buildWithoutInvocationCallback() { + ListDbSystemReplicasRequest request = new ListDbSystemReplicasRequest(); + request.dbSystemId = dbSystemId; + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListDbSystemReplicasRequest(dbSystemId, opcRequestId, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dbSystemId(dbSystemId) + .opcRequestId(opcRequestId) + .limit(limit) + .page(page); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDbSystemReplicasRequest)) { + return false; + } + + ListDbSystemReplicasRequest other = (ListDbSystemReplicasRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java index 31ecf97adb8..c7624ec081a 100644 --- a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListDbSystemsRequest.java @@ -124,6 +124,19 @@ public static SortBy create(String key) { public SortBy getSortBy() { return sortBy; } + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given + * value. + */ + private com.oracle.bmc.psql.model.DbSystem.SystemRole systemRole; + + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given + * value. + */ + public com.oracle.bmc.psql.model.DbSystem.SystemRole getSystemRole() { + return systemRole; + } /** The client request ID for tracing. */ private String opcRequestId; @@ -263,6 +276,24 @@ public Builder sortBy(SortBy sortBy) { return this; } + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given + * value. + */ + private com.oracle.bmc.psql.model.DbSystem.SystemRole systemRole = null; + + /** + * A filter to return only DbSystem resources if their {@code systemRole} matches the given + * value. + * + * @param systemRole the value to set + * @return this builder instance + */ + public Builder systemRole(com.oracle.bmc.psql.model.DbSystem.SystemRole systemRole) { + this.systemRole = systemRole; + return this; + } + /** The client request ID for tracing. */ private String opcRequestId = null; @@ -315,6 +346,7 @@ public Builder copy(ListDbSystemsRequest o) { page(o.getPage()); sortOrder(o.getSortOrder()); sortBy(o.getSortBy()); + systemRole(o.getSystemRole()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -358,10 +390,11 @@ public ListDbSystemsRequest buildWithoutInvocationCallback() { request.page = page; request.sortOrder = sortOrder; request.sortBy = sortBy; + request.systemRole = systemRole; request.opcRequestId = opcRequestId; return request; // new ListDbSystemsRequest(compartmentId, lifecycleState, displayName, id, limit, page, - // sortOrder, sortBy, opcRequestId); + // sortOrder, sortBy, systemRole, opcRequestId); } } @@ -380,6 +413,7 @@ public Builder toBuilder() { .page(page) .sortOrder(sortOrder) .sortBy(sortBy) + .systemRole(systemRole) .opcRequestId(opcRequestId); } @@ -405,6 +439,7 @@ public String toString() { sb.append(",page=").append(String.valueOf(this.page)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",systemRole=").append(String.valueOf(this.systemRole)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); return sb.toString(); @@ -429,6 +464,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.sortOrder, other.sortOrder) && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.systemRole, other.systemRole) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -448,6 +484,7 @@ public int hashCode() { result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.systemRole == null ? 43 : this.systemRole.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); return result; } diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListInsightCapabilitiesRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListInsightCapabilitiesRequest.java new file mode 100644 index 00000000000..59f9c05520f --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/ListInsightCapabilitiesRequest.java @@ -0,0 +1,228 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use + * ListInsightCapabilitiesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListInsightCapabilitiesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** The maximum number of items to return. */ + private Integer limit; + + /** The maximum number of items to return. */ + public Integer getLimit() { + return limit; + } + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + private String page; + + /** + * A token representing the position at which to start retrieving results. This must come from + * the {@code opc-next-page} header field of a previous response. + */ + public String getPage() { + return page; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListInsightCapabilitiesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The maximum number of items to return. */ + private Integer limit = null; + + /** + * The maximum number of items to return. + * + * @param limit the value to set + * @return this builder instance + */ + public Builder limit(Integer limit) { + this.limit = limit; + return this; + } + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + */ + private String page = null; + + /** + * A token representing the position at which to start retrieving results. This must come + * from the {@code opc-next-page} header field of a previous response. + * + * @param page the value to set + * @return this builder instance + */ + public Builder page(String page) { + this.page = page; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListInsightCapabilitiesRequest o) { + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListInsightCapabilitiesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListInsightCapabilitiesRequest + */ + public ListInsightCapabilitiesRequest build() { + ListInsightCapabilitiesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListInsightCapabilitiesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListInsightCapabilitiesRequest + */ + public ListInsightCapabilitiesRequest buildWithoutInvocationCallback() { + ListInsightCapabilitiesRequest request = new ListInsightCapabilitiesRequest(); + request.opcRequestId = opcRequestId; + request.limit = limit; + request.page = page; + return request; + // new ListInsightCapabilitiesRequest(opcRequestId, limit, page); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().opcRequestId(opcRequestId).limit(limit).page(page); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",limit=").append(String.valueOf(this.limit)); + sb.append(",page=").append(String.valueOf(this.page)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInsightCapabilitiesRequest)) { + return false; + } + + ListInsightCapabilitiesRequest other = (ListInsightCapabilitiesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.limit, other.limit) + && java.util.Objects.equals(this.page, other.page); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); + result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StartDbSystemRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StartDbSystemRequest.java new file mode 100644 index 00000000000..04d710d3b74 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StartDbSystemRequest.java @@ -0,0 +1,345 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use StartDbSystemRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StartDbSystemRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** A unique identifier for the database system. */ + private String dbSystemId; + + /** A unique identifier for the database system. */ + public String getDbSystemId() { + return dbSystemId; + } + /** The information to be updated the DB System while starting DB System after stop. */ + private com.oracle.bmc.psql.model.StartDbSystemDetails startDbSystemDetails; + + /** The information to be updated the DB System while starting DB System after stop. */ + public com.oracle.bmc.psql.model.StartDbSystemDetails getStartDbSystemDetails() { + return startDbSystemDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.StartDbSystemDetails getBody$() { + return startDbSystemDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StartDbSystemRequest, com.oracle.bmc.psql.model.StartDbSystemDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A unique identifier for the database system. */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** The information to be updated the DB System while starting DB System after stop. */ + private com.oracle.bmc.psql.model.StartDbSystemDetails startDbSystemDetails = null; + + /** + * The information to be updated the DB System while starting DB System after stop. + * + * @param startDbSystemDetails the value to set + * @return this builder instance + */ + public Builder startDbSystemDetails( + com.oracle.bmc.psql.model.StartDbSystemDetails startDbSystemDetails) { + this.startDbSystemDetails = startDbSystemDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(StartDbSystemRequest o) { + dbSystemId(o.getDbSystemId()); + startDbSystemDetails(o.getStartDbSystemDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StartDbSystemRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of StartDbSystemRequest + */ + public StartDbSystemRequest build() { + StartDbSystemRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.StartDbSystemDetails body) { + startDbSystemDetails(body); + return this; + } + + /** + * Build the instance of StartDbSystemRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of StartDbSystemRequest + */ + public StartDbSystemRequest buildWithoutInvocationCallback() { + StartDbSystemRequest request = new StartDbSystemRequest(); + request.dbSystemId = dbSystemId; + request.startDbSystemDetails = startDbSystemDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new StartDbSystemRequest(dbSystemId, startDbSystemDetails, ifMatch, opcRequestId, + // opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dbSystemId(dbSystemId) + .startDbSystemDetails(startDbSystemDetails) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",startDbSystemDetails=").append(String.valueOf(this.startDbSystemDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDbSystemRequest)) { + return false; + } + + StartDbSystemRequest other = (StartDbSystemRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.startDbSystemDetails, other.startDbSystemDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = + (result * PRIME) + + (this.startDbSystemDetails == null + ? 43 + : this.startDbSystemDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StopDbSystemRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StopDbSystemRequest.java new file mode 100644 index 00000000000..51c2e876bcb --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/StopDbSystemRequest.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use StopDbSystemRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StopDbSystemRequest extends com.oracle.bmc.requests.BmcRequest { + + /** A unique identifier for the database system. */ + private String dbSystemId; + + /** A unique identifier for the database system. */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + StopDbSystemRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A unique identifier for the database system. */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(StopDbSystemRequest o) { + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of StopDbSystemRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of StopDbSystemRequest + */ + public StopDbSystemRequest build() { + StopDbSystemRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of StopDbSystemRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of StopDbSystemRequest + */ + public StopDbSystemRequest buildWithoutInvocationCallback() { + StopDbSystemRequest request = new StopDbSystemRequest(); + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new StopDbSystemRequest(dbSystemId, ifMatch, opcRequestId, opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopDbSystemRequest)) { + return false; + } + + StopDbSystemRequest other = (StopDbSystemRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/SwitchOverRequest.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/SwitchOverRequest.java new file mode 100644 index 00000000000..23ce8a363fe --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/requests/SwitchOverRequest.java @@ -0,0 +1,343 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.requests; + +import com.oracle.bmc.psql.model.*; +/** + * Example: Click here to see how to use SwitchOverRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class SwitchOverRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** Switchover the primary and replica role parameters. */ + private com.oracle.bmc.psql.model.SwitchOverDetails switchOverDetails; + + /** Switchover the primary and replica role parameters. */ + public com.oracle.bmc.psql.model.SwitchOverDetails getSwitchOverDetails() { + return switchOverDetails; + } + /** A unique identifier for the database system. */ + private String dbSystemId; + + /** A unique identifier for the database system. */ + public String getDbSystemId() { + return dbSystemId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + private String opcRetryToken; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if a + * resource has been deleted and purged from the system, {@code retrytoken} could be expired or + * invalidated. + */ + public String getOpcRetryToken() { + return opcRetryToken; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.psql.model.SwitchOverDetails getBody$() { + return switchOverDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + SwitchOverRequest, com.oracle.bmc.psql.model.SwitchOverDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Switchover the primary and replica role parameters. */ + private com.oracle.bmc.psql.model.SwitchOverDetails switchOverDetails = null; + + /** + * Switchover the primary and replica role parameters. + * + * @param switchOverDetails the value to set + * @return this builder instance + */ + public Builder switchOverDetails( + com.oracle.bmc.psql.model.SwitchOverDetails switchOverDetails) { + this.switchOverDetails = switchOverDetails; + return this; + } + + /** A unique identifier for the database system. */ + private String dbSystemId = null; + + /** + * A unique identifier for the database system. + * + * @param dbSystemId the value to set + * @return this builder instance + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, {@code retrytoken} could be + * expired or invalidated. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(SwitchOverRequest o) { + switchOverDetails(o.getSwitchOverDetails()); + dbSystemId(o.getDbSystemId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of SwitchOverRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of SwitchOverRequest + */ + public SwitchOverRequest build() { + SwitchOverRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(com.oracle.bmc.psql.model.SwitchOverDetails body) { + switchOverDetails(body); + return this; + } + + /** + * Build the instance of SwitchOverRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of SwitchOverRequest + */ + public SwitchOverRequest buildWithoutInvocationCallback() { + SwitchOverRequest request = new SwitchOverRequest(); + request.switchOverDetails = switchOverDetails; + request.dbSystemId = dbSystemId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new SwitchOverRequest(switchOverDetails, dbSystemId, ifMatch, opcRequestId, + // opcRetryToken); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .switchOverDetails(switchOverDetails) + .dbSystemId(dbSystemId) + .ifMatch(ifMatch) + .opcRequestId(opcRequestId) + .opcRetryToken(opcRetryToken); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",switchOverDetails=").append(String.valueOf(this.switchOverDetails)); + sb.append(",dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchOverRequest)) { + return false; + } + + SwitchOverRequest other = (SwitchOverRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.switchOverDetails, other.switchOverDetails) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.switchOverDetails == null ? 43 : this.switchOverDetails.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToReplicaResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToReplicaResponse.java new file mode 100644 index 00000000000..a95e65a99d2 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToReplicaResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToReplicaResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeRoleToReplicaResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeRoleToReplicaResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeRoleToReplicaResponse build() { + return new ChangeRoleToReplicaResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToReplicaResponse)) { + return false; + } + + ChangeRoleToReplicaResponse other = (ChangeRoleToReplicaResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToStandaloneResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToStandaloneResponse.java new file mode 100644 index 00000000000..68ae7c7d3f9 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ChangeRoleToStandaloneResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ChangeRoleToStandaloneResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private ChangeRoleToStandaloneResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeRoleToStandaloneResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeRoleToStandaloneResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeRoleToStandaloneResponse build() { + return new ChangeRoleToStandaloneResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ChangeRoleToStandaloneResponse)) { + return false; + } + + ChangeRoleToStandaloneResponse other = (ChangeRoleToStandaloneResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListDbSystemReplicasResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListDbSystemReplicasResponse.java new file mode 100644 index 00000000000..8074570462c --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListDbSystemReplicasResponse.java @@ -0,0 +1,218 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListDbSystemReplicasResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For pagination of a list of items. */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code DbSystemReplicaCollection} instance. */ + private com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection; + + /** + * The returned {@code DbSystemReplicaCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.psql.model.DbSystemReplicaCollection getDbSystemReplicaCollection() { + return dbSystemReplicaCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "dbSystemReplicaCollection" + }) + private ListDbSystemReplicasResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.dbSystemReplicaCollection = dbSystemReplicaCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For pagination of a list of items. */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code DbSystemReplicaCollection} instance. */ + private com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection; + + /** + * The returned {@code DbSystemReplicaCollection} instance. + * + * @param dbSystemReplicaCollection the value to set + * @return this builder + */ + public Builder dbSystemReplicaCollection( + com.oracle.bmc.psql.model.DbSystemReplicaCollection dbSystemReplicaCollection) { + this.dbSystemReplicaCollection = dbSystemReplicaCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListDbSystemReplicasResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + dbSystemReplicaCollection(o.getDbSystemReplicaCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListDbSystemReplicasResponse build() { + return new ListDbSystemReplicasResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + dbSystemReplicaCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",dbSystemReplicaCollection=").append(String.valueOf(dbSystemReplicaCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListDbSystemReplicasResponse)) { + return false; + } + + ListDbSystemReplicasResponse other = (ListDbSystemReplicasResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.dbSystemReplicaCollection, other.dbSystemReplicaCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.dbSystemReplicaCollection == null + ? 43 + : this.dbSystemReplicaCollection.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListInsightCapabilitiesResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListInsightCapabilitiesResponse.java new file mode 100644 index 00000000000..df993a40311 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/ListInsightCapabilitiesResponse.java @@ -0,0 +1,220 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class ListInsightCapabilitiesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** For pagination of a list of items. */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** The returned {@code InsightCapabilityCollection} instance. */ + private com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection; + + /** + * The returned {@code InsightCapabilityCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.psql.model.InsightCapabilityCollection getInsightCapabilityCollection() { + return insightCapabilityCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "insightCapabilityCollection" + }) + private ListInsightCapabilitiesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.insightCapabilityCollection = insightCapabilityCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListInsightCapabilitiesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** For pagination of a list of items. */ + private String opcNextPage; + + /** + * For pagination of a list of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** The returned {@code InsightCapabilityCollection} instance. */ + private com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection; + + /** + * The returned {@code InsightCapabilityCollection} instance. + * + * @param insightCapabilityCollection the value to set + * @return this builder + */ + public Builder insightCapabilityCollection( + com.oracle.bmc.psql.model.InsightCapabilityCollection insightCapabilityCollection) { + this.insightCapabilityCollection = insightCapabilityCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListInsightCapabilitiesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + insightCapabilityCollection(o.getInsightCapabilityCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListInsightCapabilitiesResponse build() { + return new ListInsightCapabilitiesResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + insightCapabilityCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",insightCapabilityCollection=") + .append(String.valueOf(insightCapabilityCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListInsightCapabilitiesResponse)) { + return false; + } + + ListInsightCapabilitiesResponse other = (ListInsightCapabilitiesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals( + this.insightCapabilityCollection, other.insightCapabilityCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = + (result * PRIME) + + (this.insightCapabilityCollection == null + ? 43 + : this.insightCapabilityCollection.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StartDbSystemResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StartDbSystemResponse.java new file mode 100644 index 00000000000..86ce73f2ebb --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StartDbSystemResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StartDbSystemResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StartDbSystemResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(StartDbSystemResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public StartDbSystemResponse build() { + return new StartDbSystemResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StartDbSystemResponse)) { + return false; + } + + StartDbSystemResponse other = (StartDbSystemResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StopDbSystemResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StopDbSystemResponse.java new file mode 100644 index 00000000000..c2b66ee2060 --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/StopDbSystemResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class StopDbSystemResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private StopDbSystemResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(StopDbSystemResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public StopDbSystemResponse build() { + return new StopDbSystemResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof StopDbSystemResponse)) { + return false; + } + + StopDbSystemResponse other = (StopDbSystemResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/SwitchOverResponse.java b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/SwitchOverResponse.java new file mode 100644 index 00000000000..ced2097e2be --- /dev/null +++ b/bmc-psql/src/main/java/com/oracle/bmc/psql/responses/SwitchOverResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.psql.responses; + +import com.oracle.bmc.psql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20220915") +public class SwitchOverResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its + * status. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcWorkRequestId", + "opcRequestId" + }) + private SwitchOverResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous work. You can use this to query + * its status. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(SwitchOverResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public SwitchOverResponse build() { + return new SwitchOverResponse( + __httpStatusCode__, headers, opcWorkRequestId, opcRequestId); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof SwitchOverResponse)) { + return false; + } + + SwitchOverResponse other = (SwitchOverResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-psql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-psql/reflect-config.json b/bmc-psql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-psql/reflect-config.json index ac64d8fc592..56d1a76b767 100644 --- a/bmc-psql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-psql/reflect-config.json +++ b/bmc-psql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-psql/reflect-config.json @@ -176,6 +176,40 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.ChangeRoleToReplicaDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.ChangeRoleToStandaloneDetails$ChangeMode", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.ConfigOverrides", @@ -342,6 +376,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.CreateReplicationConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.CreateReplicationConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.Credentials", @@ -370,6 +418,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DateTimeRangeCapability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DateTimeRangeCapability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.DbConfigurationOverrideCollection", @@ -444,6 +506,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DbSystem$SystemRole", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.DbSystemCollection", @@ -472,6 +540,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DbSystemReplicaCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DbSystemReplicaCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DbSystemReplicaSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DbSystemReplicaSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.DbSystemSummary", @@ -562,6 +658,62 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DisabledInsightDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DisabledInsightDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DisabledKerberosAuthDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.DisabledKerberosAuthDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.EnabledInsightDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.EnabledInsightDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.EnabledKerberosAuthDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.EnabledKerberosAuthDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.Endpoint", @@ -590,6 +742,155 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.GranularityCapability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.GranularityCapability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.GranularityCapability$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightCapabilityCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightCapabilityCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightCapabilitySummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightCapabilitySummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightCapabilitySummary$InsightType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightDataContract", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightDataContract$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightDataContract$Kind", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightDataTypeCapability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightDataTypeCapability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightDataTypeCapability$InsightDataType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightFilterCapability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightFilterCapability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightLimits", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.InsightLimits$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.KerberosAuthDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.KerberosAuthDetails$Kind", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.KerberosCredential", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.KerberosCredential$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.ManagementPolicy", @@ -688,6 +989,39 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.OdspInsight", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.OdspInsight$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.OdspInsight$InsightType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.OdspInsightDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.OdspInsightDetails$Kind", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.OperationStatus", @@ -700,6 +1034,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.PaginationCapability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.PaginationCapability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.PasswordDetails", @@ -878,6 +1226,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.PrimaryDbSystemSourceDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.PrimaryDbSystemSourceDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.ReplicationConfig", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.ReplicationConfig$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.ResetMasterUserPasswordDetails", @@ -988,6 +1364,40 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.SortingCapability", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.SortingCapability$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.SortingDefault", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.SortingDefault$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.SortingDefault$Order", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.SourceBackupDetails", @@ -1015,6 +1425,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.StartDbSystemDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.StartDbSystemDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.StorageDetails", @@ -1022,6 +1446,20 @@ "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.SwitchOverDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.SwitchOverDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.UpdateBackupDetails", @@ -1112,6 +1550,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.UpdateReplicationConfigDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.psql.model.UpdateReplicationConfigDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.psql.model.UpdateStorageDetailsParams", diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 10e672cd3e0..a9d0a9ad68c 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index fb236ea7fdf..545b818908b 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index f9603a37696..0f73230fd5a 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml index 54059f49c5f..a727befce33 100644 --- a/bmc-resourceanalytics/pom.xml +++ b/bmc-resourceanalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-resourceanalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 5a03798a855..e01d821f2c2 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 17ab3429ba5..98a233821ce 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 33357253c1f..b5a4f2880af 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 29b15cd98a7..fa7737a26ee 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 87f26cd48e3..ef6df1dd84d 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index f7aee413ffa..8eebaeddc08 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml index 4dd6f009510..2cd3223bd06 100644 --- a/bmc-securityattribute/pom.xml +++ b/bmc-securityattribute/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-securityattribute @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml index b743755e59c..a28e5c58778 100644 --- a/bmc-self/pom.xml +++ b/bmc-self/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-self @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 26e89e6775a..91869470645 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 03749f9668c..5431c282a30 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index 446e43c9813..999c97e53c9 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index e3831e4e4bc..54f3360177a 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 253d282824b..da62b57e011 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 1deefac0cb0..f2f5e959bc8 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index d641970e15f..7e54365fb90 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java index 7ffa99c0d0a..4be8206c3ea 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/Link.java @@ -96,6 +96,22 @@ public interface Link extends AutoCloseable { */ GetLinkResponse getLink(GetLinkRequest request); + /** + * Gets information about the link along with the parent and child tenancy names. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GetLinkWithTenancyNames API. + */ + GetLinkWithTenancyNamesResponse getLinkWithTenancyNames(GetLinkWithTenancyNamesRequest request); + /** * Return a (paginated) list of links. * diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java index c8d7baa63c8..0d52caae512 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsync.java @@ -92,6 +92,22 @@ java.util.concurrent.Future getLink( GetLinkRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets information about the link along with the parent and child tenancy names. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + handler); + /** * Return a (paginated) list of links. * diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java index e462cc4f7dc..79d2bc0350e 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkAsyncClient.java @@ -152,6 +152,38 @@ public java.util.concurrent.Future getLink( .callAsync(handler); } + @Override + public java.util.concurrent.Future getLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + handler) { + + Validate.notBlank(request.getLinkId(), "linkId must not be blank"); + + return clientCall(request, GetLinkWithTenancyNamesResponse::builder) + .logger(LOG, "getLinkWithTenancyNames") + .serviceDetails( + "Link", + "GetLinkWithTenancyNames", + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkWithTenancyNames/GetLinkWithTenancyNames") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetLinkWithTenancyNamesRequest::builder) + .basePath("/20230401") + .appendPathParam("links") + .appendPathParam(request.getLinkId()) + .appendPathParam("tenancyNames") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames.class, + GetLinkWithTenancyNamesResponse.Builder::linkWithTenancyNames) + .handleResponseHeaderString("etag", GetLinkWithTenancyNamesResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetLinkWithTenancyNamesResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listLinks( ListLinksRequest request, @@ -170,6 +202,7 @@ public java.util.concurrent.Future listLinks( .appendPathParam("links") .appendQueryParam("parentTenancyId", request.getParentTenancyId()) .appendQueryParam("childTenancyId", request.getChildTenancyId()) + .appendQueryParam("feature", request.getFeature()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java index bc5521e5787..7ca08e84646 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkClient.java @@ -173,6 +173,36 @@ public GetLinkResponse getLink(GetLinkRequest request) { .callSync(); } + @Override + public GetLinkWithTenancyNamesResponse getLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request) { + + Validate.notBlank(request.getLinkId(), "linkId must not be blank"); + + return clientCall(request, GetLinkWithTenancyNamesResponse::builder) + .logger(LOG, "getLinkWithTenancyNames") + .serviceDetails( + "Link", + "GetLinkWithTenancyNames", + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkWithTenancyNames/GetLinkWithTenancyNames") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetLinkWithTenancyNamesRequest::builder) + .basePath("/20230401") + .appendPathParam("links") + .appendPathParam(request.getLinkId()) + .appendPathParam("tenancyNames") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames.class, + GetLinkWithTenancyNamesResponse.Builder::linkWithTenancyNames) + .handleResponseHeaderString("etag", GetLinkWithTenancyNamesResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", GetLinkWithTenancyNamesResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListLinksResponse listLinks(ListLinksRequest request) { @@ -188,6 +218,7 @@ public ListLinksResponse listLinks(ListLinksRequest request) { .appendPathParam("links") .appendQueryParam("parentTenancyId", request.getParentTenancyId()) .appendQueryParam("childTenancyId", request.getChildTenancyId()) + .appendQueryParam("feature", request.getFeature()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeatures.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeatures.java new file mode 100644 index 00000000000..3aac9606fd3 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeatures.java @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane; + +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; + +/** + * Use the Organizations API to consolidate multiple OCI tenancies into an organization, and + * centrally manage your tenancies and organization resources. For more information, see + * [Organization Management + * Overview](https://docs.oracle.com/iaas/Content/General/Concepts/organization_management_overview.htm). + * This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by + * default if no circuit breaker configuration is defined by the user. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public interface LinkFeatures extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the service. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this Region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Return a list of link features. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ListLinkFeatures + * API. + */ + ListLinkFeaturesResponse listLinkFeatures(ListLinkFeaturesRequest request); +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsync.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsync.java new file mode 100644 index 00000000000..93b95e54507 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsync.java @@ -0,0 +1,81 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane; + +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; + +/** + * Use the Organizations API to consolidate multiple OCI tenancies into an organization, and + * centrally manage your tenancies and organization resources. For more information, see + * [Organization Management + * Overview](https://docs.oracle.com/iaas/Content/General/Concepts/organization_management_overview.htm). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public interface LinkFeaturesAsync extends AutoCloseable { + + /** Rebuilds the client from scratch. Useful to refresh certificates. */ + void refreshClient(); + + /** + * Sets the endpoint to call (ex, https://www.example.com). + * + * @param endpoint The endpoint of the serice. + */ + void setEndpoint(String endpoint); + + /** Gets the set endpoint for REST call (ex, https://www.example.com) */ + String getEndpoint(); + + /** + * Sets the region to call (ex, Region.US_PHOENIX_1). + * + *

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the + * endpoint. If the service is not available in this region, however, an + * IllegalArgumentException will be raised. + * + * @param region The region of the service. + */ + void setRegion(com.oracle.bmc.Region region); + + /** + * Sets the region to call (ex, 'us-phoenix-1'). + * + *

Note, this will first try to map the region ID to a known Region and call {@link + * #setRegion(Region) setRegion}. + * + *

If no known Region could be determined, it will create an endpoint based on the default + * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} + * and then call {@link #setEndpoint(String) setEndpoint}. + * + * @param regionId The public region ID. + */ + void setRegion(String regionId); + + /** + * Determines whether realm specific endpoint should be used or not. Set + * realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm + * specific endpoint template, otherwise set it to "false" + * + * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint + * template + */ + void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + + /** + * Return a list of link features. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future listLinkFeatures( + ListLinkFeaturesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsyncClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsyncClient.java new file mode 100644 index 00000000000..a6b38a28a2b --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesAsyncClient.java @@ -0,0 +1,287 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; + +import java.util.Objects; + +/** + * Async client implementation for LinkFeatures service.
+ * There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response + * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, + * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream + * will be closed right after the AsyncHandler is invoked.
+ * 2. Use Java Future: using Java Future, developers need to close the stream after they are done + * with the Java Future.
+ * Accessing the result should be done in a mutually exclusive manner, either through the Future or + * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the + * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine + * whether or not the request was completed via Future.isDone/isCancelled.
+ * Please refer to + * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class LinkFeaturesAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient + implements LinkFeaturesAsync { + /** Service instance for LinkFeatures. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(LinkFeaturesClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://organizations.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LinkFeaturesAsyncClient.class); + + LinkFeaturesAsyncClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super(builder, authenticationDetailsProvider); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "tenantmanagercontrolplane"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public LinkFeaturesAsyncClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new LinkFeaturesAsyncClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public java.util.concurrent.Future listLinkFeatures( + ListLinkFeaturesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListLinkFeaturesRequest, ListLinkFeaturesResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListLinkFeaturesResponse::builder) + .logger(LOG, "listLinkFeatures") + .serviceDetails( + "LinkFeatures", + "ListLinkFeatures", + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkFeaturesCollection/ListLinkFeatures") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListLinkFeaturesRequest::builder) + .basePath("/20230401") + .appendPathParam("linkFeatures") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection.class, + ListLinkFeaturesResponse.Builder::linkFeaturesCollection) + .handleResponseHeaderString( + "opc-next-page", ListLinkFeaturesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListLinkFeaturesResponse.Builder::opcRequestId) + .callAsync(handler); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesClient.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesClient.java new file mode 100644 index 00000000000..07ad69fe0ee --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkFeaturesClient.java @@ -0,0 +1,274 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane; + +import com.oracle.bmc.util.internal.Validate; +import com.oracle.bmc.tenantmanagercontrolplane.requests.*; +import com.oracle.bmc.tenantmanagercontrolplane.responses.*; +import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration; +import com.oracle.bmc.util.CircuitBreakerUtils; + +import java.util.Objects; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class LinkFeaturesClient extends com.oracle.bmc.http.internal.BaseSyncClient + implements LinkFeatures { + /** Service instance for LinkFeatures. */ + public static final com.oracle.bmc.Service SERVICE = + com.oracle.bmc.Services.serviceBuilder() + .serviceName(LinkFeaturesClient.class.getName()) + .serviceEndpointPrefix("") + .serviceEndpointTemplate( + "https://organizations.{region}.oci.{secondLevelDomain}") + .build(); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LinkFeaturesClient.class); + + LinkFeaturesClient( + com.oracle.bmc.common.ClientBuilderBase builder, + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + super( + builder, + authenticationDetailsProvider, + CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION); + } + + /** + * Create a builder for this client. + * + * @return builder + */ + public static Builder builder() { + return new Builder(SERVICE); + } + + /** + * Builder class for this client. The "authenticationDetailsProvider" is required and must be + * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. + */ + public static class Builder + extends com.oracle.bmc.common.RegionalClientBuilder { + private Builder(com.oracle.bmc.Service service) { + super(service); + final String packageName = "tenantmanagercontrolplane"; + com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); + requestSignerFactory = + new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( + com.oracle.bmc.http.signing.SigningStrategy.STANDARD); + } + + /** + * Build the client. + * + * @param authenticationDetailsProvider authentication details provider + * @return the client + */ + public LinkFeaturesClient build( + @jakarta.annotation.Nonnull + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider + authenticationDetailsProvider) { + return new LinkFeaturesClient(this, authenticationDetailsProvider); + } + } + + @Override + public void setRegion(com.oracle.bmc.Region region) { + super.setRegion(region); + } + + @Override + public void setRegion(String regionId) { + super.setRegion(regionId); + } + + @Override + public ListLinkFeaturesResponse listLinkFeatures(ListLinkFeaturesRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListLinkFeaturesResponse::builder) + .logger(LOG, "listLinkFeatures") + .serviceDetails( + "LinkFeatures", + "ListLinkFeatures", + "https://docs.oracle.com/iaas/api/#/en/organizations/20230401/LinkFeaturesCollection/ListLinkFeatures") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListLinkFeaturesRequest::builder) + .basePath("/20230401") + .appendPathParam("linkFeatures") + .appendQueryParam("compartmentId", request.getCompartmentId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection.class, + ListLinkFeaturesResponse.Builder::linkFeaturesCollection) + .handleResponseHeaderString( + "opc-next-page", ListLinkFeaturesResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-request-id", ListLinkFeaturesResponse.Builder::opcRequestId) + .callSync(); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { + this(builder(), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration) { + this(builder().configuration(configuration), authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesClient( + com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator) { + this( + builder().configuration(configuration).clientConfigurator(clientConfigurator), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint), + authenticationDetailsProvider); + } + + /** + * Create a new client instance. + * + * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) + * @param configuration {@link Builder#configuration} + * @param clientConfigurator {@link Builder#clientConfigurator} + * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} + * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} + * @param endpoint {@link Builder#endpoint} + * @param signingStrategyRequestSignerFactories {@link + * Builder#signingStrategyRequestSignerFactories} + * @deprecated Use the {@link #builder() builder} instead. + */ + @Deprecated + public LinkFeaturesClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint) { + this( + builder() + .configuration(configuration) + .clientConfigurator(clientConfigurator) + .requestSignerFactory(defaultRequestSignerFactory) + .additionalClientConfigurators(additionalClientConfigurators) + .endpoint(endpoint) + .signingStrategyRequestSignerFactories( + signingStrategyRequestSignerFactories), + authenticationDetailsProvider); + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java index cd49b1ed99e..22726541c63 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/LinkWaiters.java @@ -122,4 +122,115 @@ public boolean test(GetLinkResponse response) { .Terminated)), request); } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetState the desired states to wait for. If multiple states are provided then the + * waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forLinkWithTenancyNames( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + com.oracle.bmc.util.internal.Validate.notNull( + targetState, "The targetState cannot be null"); + + return forLinkWithTenancyNames( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource + * reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + GetLinkWithTenancyNamesRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState... targetStates) { + com.oracle.bmc.util.internal.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + com.oracle.bmc.util.internal.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forLinkWithTenancyNames( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for LinkWithTenancyNames. + private com.oracle.bmc.waiter.Waiter< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse> + forLinkWithTenancyNames( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetLinkWithTenancyNamesRequest request, + final com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + () -> request, + new java.util.function.Function< + GetLinkWithTenancyNamesRequest, GetLinkWithTenancyNamesResponse>() { + @Override + public GetLinkWithTenancyNamesResponse apply( + GetLinkWithTenancyNamesRequest request) { + return client.getLinkWithTenancyNames(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetLinkWithTenancyNamesResponse response) { + return targetStatesSet.contains( + response.getLinkWithTenancyNames().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState + .Terminated)), + request); + } } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java index d569fcec359..91fb6a66732 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateChildTenancyDetails.java @@ -30,7 +30,8 @@ public final class CreateChildTenancyDetails "adminEmail", "policyName", "governanceStatus", - "subscriptionId" + "subscriptionId", + "features" }) public CreateChildTenancyDetails( String compartmentId, @@ -39,7 +40,8 @@ public CreateChildTenancyDetails( String adminEmail, String policyName, GovernanceStatus governanceStatus, - String subscriptionId) { + String subscriptionId, + java.util.List features) { super(); this.compartmentId = compartmentId; this.tenancyName = tenancyName; @@ -48,6 +50,7 @@ public CreateChildTenancyDetails( this.policyName = policyName; this.governanceStatus = governanceStatus; this.subscriptionId = subscriptionId; + this.features = features; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -165,6 +168,25 @@ public Builder subscriptionId(String subscriptionId) { this.__explicitlySet__.add("subscriptionId"); return this; } + /** + * List of features that the child and parent tenancies will have links for. Link with + * feature CORE will always be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the child and parent tenancies will have links for. Link with + * feature CORE will always be created. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -178,7 +200,8 @@ public CreateChildTenancyDetails build() { this.adminEmail, this.policyName, this.governanceStatus, - this.subscriptionId); + this.subscriptionId, + this.features); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -208,6 +231,9 @@ public Builder copy(CreateChildTenancyDetails model) { if (model.wasPropertyExplicitlySet("subscriptionId")) { this.subscriptionId(model.getSubscriptionId()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } return this; } } @@ -320,6 +346,23 @@ public String getSubscriptionId() { return subscriptionId; } + /** + * List of features that the child and parent tenancies will have links for. Link with feature + * CORE will always be created. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the child and parent tenancies will have links for. Link with feature + * CORE will always be created. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + @Override public String toString() { return this.toString(true); @@ -342,6 +385,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", policyName=").append(String.valueOf(this.policyName)); sb.append(", governanceStatus=").append(String.valueOf(this.governanceStatus)); sb.append(", subscriptionId=").append(String.valueOf(this.subscriptionId)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(")"); return sb.toString(); } @@ -363,6 +407,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.policyName, other.policyName) && java.util.Objects.equals(this.governanceStatus, other.governanceStatus) && java.util.Objects.equals(this.subscriptionId, other.subscriptionId) + && java.util.Objects.equals(this.features, other.features) && super.equals(other); } @@ -383,6 +428,7 @@ public int hashCode() { result = (result * PRIME) + (this.subscriptionId == null ? 43 : this.subscriptionId.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java index 72a8d5caf60..cc6f45fde1f 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/CreateSenderInvitationDetails.java @@ -29,6 +29,7 @@ public final class CreateSenderInvitationDetails "recipientEmailAddress", "displayName", "subjects", + "features", "freeformTags", "definedTags" }) @@ -38,6 +39,7 @@ public CreateSenderInvitationDetails( String recipientEmailAddress, String displayName, java.util.List subjects, + java.util.List features, java.util.Map freeformTags, java.util.Map> definedTags) { super(); @@ -46,6 +48,7 @@ public CreateSenderInvitationDetails( this.recipientEmailAddress = recipientEmailAddress; this.displayName = displayName; this.subjects = subjects; + this.features = features; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -129,6 +132,25 @@ public Builder subjects(java.util.List subjects) { this.__explicitlySet__.add("subjects"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -180,6 +202,7 @@ public CreateSenderInvitationDetails build() { this.recipientEmailAddress, this.displayName, this.subjects, + this.features, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -205,6 +228,9 @@ public Builder copy(CreateSenderInvitationDetails model) { if (model.wasPropertyExplicitlySet("subjects")) { this.subjects(model.getSubjects()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -289,6 +315,23 @@ public java.util.List getSubjects() { return subjects; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -343,6 +386,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", subjects=").append(String.valueOf(this.subjects)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -364,6 +408,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.subjects, other.subjects) + && java.util.Objects.equals(this.features, other.features) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -388,6 +433,7 @@ public int hashCode() { : this.recipientEmailAddress.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.subjects == null ? 43 : this.subjects.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java index cc41905d305..66599cc9c13 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Domain.java @@ -25,6 +25,7 @@ public final class Domain extends com.oracle.bmc.http.client.internal.Explicitly "id", "domainName", "ownerId", + "compartmentId", "lifecycleState", "status", "txtRecord", @@ -38,6 +39,7 @@ public Domain( String id, String domainName, String ownerId, + String compartmentId, LifecycleState lifecycleState, Status status, String txtRecord, @@ -50,6 +52,7 @@ public Domain( this.id = id; this.domainName = domainName; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.status = status; this.txtRecord = txtRecord; @@ -107,6 +110,21 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** The OCID of the tenancy that has started the registration process for this domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** Lifecycle state of the domain. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; @@ -254,6 +272,7 @@ public Domain build() { this.id, this.domainName, this.ownerId, + this.compartmentId, this.lifecycleState, this.status, this.txtRecord, @@ -279,6 +298,9 @@ public Builder copy(Domain model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -355,6 +377,19 @@ public String getOwnerId() { return ownerId; } + /** The OCID of the tenancy that has started the registration process for this domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + /** Lifecycle state of the domain. */ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Active("ACTIVE"), @@ -587,6 +622,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", domainName=").append(String.valueOf(this.domainName)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", txtRecord=").append(String.valueOf(this.txtRecord)); @@ -612,6 +648,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.domainName, other.domainName) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.txtRecord, other.txtRecord) @@ -630,6 +667,9 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java index bfea9a82635..e27d71ddf3c 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernance.java @@ -25,6 +25,7 @@ public final class DomainGovernance @java.beans.ConstructorProperties({ "id", "ownerId", + "compartmentId", "domainId", "lifecycleState", "isGovernanceEnabled", @@ -40,6 +41,7 @@ public final class DomainGovernance public DomainGovernance( String id, String ownerId, + String compartmentId, String domainId, LifecycleState lifecycleState, Boolean isGovernanceEnabled, @@ -54,6 +56,7 @@ public DomainGovernance( super(); this.id = id; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.domainId = domainId; this.lifecycleState = lifecycleState; this.isGovernanceEnabled = isGovernanceEnabled; @@ -99,6 +102,21 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** The OCID of the tenancy that owns this domain governance entity. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that owns this domain governance entity. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** The OCID of the domain associated with this domain governance entity. */ @com.fasterxml.jackson.annotation.JsonProperty("domainId") private String domainId; @@ -298,6 +316,7 @@ public DomainGovernance build() { new DomainGovernance( this.id, this.ownerId, + this.compartmentId, this.domainId, this.lifecycleState, this.isGovernanceEnabled, @@ -323,6 +342,9 @@ public Builder copy(DomainGovernance model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("domainId")) { this.domainId(model.getDomainId()); } @@ -395,6 +417,19 @@ public String getOwnerId() { return ownerId; } + /** The OCID of the tenancy that owns this domain governance entity. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that owns this domain governance entity. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + /** The OCID of the domain associated with this domain governance entity. */ @com.fasterxml.jackson.annotation.JsonProperty("domainId") private final String domainId; @@ -625,6 +660,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", domainId=").append(String.valueOf(this.domainId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isGovernanceEnabled=").append(String.valueOf(this.isGovernanceEnabled)); @@ -652,6 +688,7 @@ public boolean equals(Object o) { DomainGovernance other = (DomainGovernance) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.domainId, other.domainId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isGovernanceEnabled, other.isGovernanceEnabled) @@ -672,6 +709,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); result = (result * PRIME) diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java index c776ff67d2f..0bae4d92a9e 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainGovernanceSummary.java @@ -26,6 +26,7 @@ public final class DomainGovernanceSummary @java.beans.ConstructorProperties({ "id", "ownerId", + "compartmentId", "domainId", "lifecycleState", "isGovernanceEnabled", @@ -41,6 +42,7 @@ public final class DomainGovernanceSummary public DomainGovernanceSummary( String id, String ownerId, + String compartmentId, String domainId, DomainGovernance.LifecycleState lifecycleState, Boolean isGovernanceEnabled, @@ -55,6 +57,7 @@ public DomainGovernanceSummary( super(); this.id = id; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.domainId = domainId; this.lifecycleState = lifecycleState; this.isGovernanceEnabled = isGovernanceEnabled; @@ -100,6 +103,21 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** The OCID of the tenancy that has started the registration process for this domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** The OCID of the domain associated with this domain governance entity. */ @com.fasterxml.jackson.annotation.JsonProperty("domainId") private String domainId; @@ -299,6 +317,7 @@ public DomainGovernanceSummary build() { new DomainGovernanceSummary( this.id, this.ownerId, + this.compartmentId, this.domainId, this.lifecycleState, this.isGovernanceEnabled, @@ -324,6 +343,9 @@ public Builder copy(DomainGovernanceSummary model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("domainId")) { this.domainId(model.getDomainId()); } @@ -396,6 +418,19 @@ public String getOwnerId() { return ownerId; } + /** The OCID of the tenancy that has started the registration process for this domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + /** The OCID of the domain associated with this domain governance entity. */ @com.fasterxml.jackson.annotation.JsonProperty("domainId") private final String domainId; @@ -580,6 +615,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", domainId=").append(String.valueOf(this.domainId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", isGovernanceEnabled=").append(String.valueOf(this.isGovernanceEnabled)); @@ -607,6 +643,7 @@ public boolean equals(Object o) { DomainGovernanceSummary other = (DomainGovernanceSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.domainId, other.domainId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.isGovernanceEnabled, other.isGovernanceEnabled) @@ -627,6 +664,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.domainId == null ? 43 : this.domainId.hashCode()); result = (result * PRIME) diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java index 1bd80d5b985..e6b245141ab 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/DomainSummary.java @@ -25,6 +25,7 @@ public final class DomainSummary extends com.oracle.bmc.http.client.internal.Exp "id", "domainName", "ownerId", + "compartmentId", "lifecycleState", "status", "txtRecord", @@ -38,6 +39,7 @@ public DomainSummary( String id, String domainName, String ownerId, + String compartmentId, Domain.LifecycleState lifecycleState, Domain.Status status, String txtRecord, @@ -50,6 +52,7 @@ public DomainSummary( this.id = id; this.domainName = domainName; this.ownerId = ownerId; + this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; this.status = status; this.txtRecord = txtRecord; @@ -107,6 +110,21 @@ public Builder ownerId(String ownerId) { this.__explicitlySet__.add("ownerId"); return this; } + /** The OCID of the tenancy that has started the registration process for this domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } /** The lifecycle state of the domain. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private Domain.LifecycleState lifecycleState; @@ -254,6 +272,7 @@ public DomainSummary build() { this.id, this.domainName, this.ownerId, + this.compartmentId, this.lifecycleState, this.status, this.txtRecord, @@ -279,6 +298,9 @@ public Builder copy(DomainSummary model) { if (model.wasPropertyExplicitlySet("ownerId")) { this.ownerId(model.getOwnerId()); } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } @@ -355,6 +377,19 @@ public String getOwnerId() { return ownerId; } + /** The OCID of the tenancy that has started the registration process for this domain. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the tenancy that has started the registration process for this domain. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + /** The lifecycle state of the domain. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final Domain.LifecycleState lifecycleState; @@ -489,6 +524,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("id=").append(String.valueOf(this.id)); sb.append(", domainName=").append(String.valueOf(this.domainName)); sb.append(", ownerId=").append(String.valueOf(this.ownerId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", txtRecord=").append(String.valueOf(this.txtRecord)); @@ -514,6 +550,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.domainName, other.domainName) && java.util.Objects.equals(this.ownerId, other.ownerId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.txtRecord, other.txtRecord) @@ -532,6 +569,9 @@ public int hashCode() { result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.domainName == null ? 43 : this.domainName.hashCode()); result = (result * PRIME) + (this.ownerId == null ? 43 : this.ownerId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationFeature.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationFeature.java new file mode 100644 index 00000000000..46447b6fd3c --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationFeature.java @@ -0,0 +1,210 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.model; + +/** + * The feature model for sender invitation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = InvitationFeature.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class InvitationFeature + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"name", "recipientInvitationId", "status"}) + public InvitationFeature( + String name, String recipientInvitationId, SenderInvitationStatus status) { + super(); + this.name = name; + this.recipientInvitationId = recipientInvitationId; + this.status = status; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private String name; + + /** + * Name of the feature. + * + * @param name the value to set + * @return this builder + */ + public Builder name(String name) { + this.name = name; + this.__explicitlySet__.add("name"); + return this; + } + /** recipientInvitationId for this feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipientInvitationId") + private String recipientInvitationId; + + /** + * recipientInvitationId for this feature. + * + * @param recipientInvitationId the value to set + * @return this builder + */ + public Builder recipientInvitationId(String recipientInvitationId) { + this.recipientInvitationId = recipientInvitationId; + this.__explicitlySet__.add("recipientInvitationId"); + return this; + } + /** Status of the sender invitation. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private SenderInvitationStatus status; + + /** + * Status of the sender invitation. + * + * @param status the value to set + * @return this builder + */ + public Builder status(SenderInvitationStatus status) { + this.status = status; + this.__explicitlySet__.add("status"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public InvitationFeature build() { + InvitationFeature model = + new InvitationFeature(this.name, this.recipientInvitationId, this.status); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(InvitationFeature model) { + if (model.wasPropertyExplicitlySet("name")) { + this.name(model.getName()); + } + if (model.wasPropertyExplicitlySet("recipientInvitationId")) { + this.recipientInvitationId(model.getRecipientInvitationId()); + } + if (model.wasPropertyExplicitlySet("status")) { + this.status(model.getStatus()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("name") + private final String name; + + /** + * Name of the feature. + * + * @return the value + */ + public String getName() { + return name; + } + + /** recipientInvitationId for this feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("recipientInvitationId") + private final String recipientInvitationId; + + /** + * recipientInvitationId for this feature. + * + * @return the value + */ + public String getRecipientInvitationId() { + return recipientInvitationId; + } + + /** Status of the sender invitation. */ + @com.fasterxml.jackson.annotation.JsonProperty("status") + private final SenderInvitationStatus status; + + /** + * Status of the sender invitation. + * + * @return the value + */ + public SenderInvitationStatus getStatus() { + return status; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("InvitationFeature("); + sb.append("super=").append(super.toString()); + sb.append("name=").append(String.valueOf(this.name)); + sb.append(", recipientInvitationId=").append(String.valueOf(this.recipientInvitationId)); + sb.append(", status=").append(String.valueOf(this.status)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof InvitationFeature)) { + return false; + } + + InvitationFeature other = (InvitationFeature) o; + return java.util.Objects.equals(this.name, other.name) + && java.util.Objects.equals(this.recipientInvitationId, other.recipientInvitationId) + && java.util.Objects.equals(this.status, other.status) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); + result = + (result * PRIME) + + (this.recipientInvitationId == null + ? 43 + : this.recipientInvitationId.hashCode()); + result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java index b350be98983..7291f5e60c9 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/InvitationSubject.java @@ -9,6 +9,7 @@ public enum InvitationSubject implements com.oracle.bmc.http.internal.BmcEnum { Link("LINK"), Governance("GOVERNANCE"), + ExtendedFeatures("EXTENDED_FEATURES"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java index d6df2a53462..4e5739c3a8b 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/Link.java @@ -28,7 +28,8 @@ public final class Link extends com.oracle.bmc.http.client.internal.ExplicitlySe "lifecycleState", "timeCreated", "timeUpdated", - "timeTerminated" + "timeTerminated", + "feature" }) public Link( String id, @@ -37,7 +38,8 @@ public Link( LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Date timeUpdated, - java.util.Date timeTerminated) { + java.util.Date timeTerminated, + String feature) { super(); this.id = id; this.parentTenancyId = parentTenancyId; @@ -46,6 +48,7 @@ public Link( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeTerminated = timeTerminated; + this.feature = feature; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -155,6 +158,21 @@ public Builder timeTerminated(java.util.Date timeTerminated) { this.__explicitlySet__.add("timeTerminated"); return this; } + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -168,7 +186,8 @@ public Link build() { this.lifecycleState, this.timeCreated, this.timeUpdated, - this.timeTerminated); + this.timeTerminated, + this.feature); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -198,6 +217,9 @@ public Builder copy(Link model) { if (model.wasPropertyExplicitlySet("timeTerminated")) { this.timeTerminated(model.getTimeTerminated()); } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } return this; } } @@ -302,6 +324,19 @@ public java.util.Date getTimeTerminated() { return timeTerminated; } + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @return the value + */ + public String getFeature() { + return feature; + } + @Override public String toString() { return this.toString(true); @@ -324,6 +359,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); + sb.append(", feature=").append(String.valueOf(this.feature)); sb.append(")"); return sb.toString(); } @@ -345,6 +381,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) + && java.util.Objects.equals(this.feature, other.feature) && super.equals(other); } @@ -367,6 +404,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeTerminated == null ? 43 : this.timeTerminated.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeatureSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeatureSummary.java new file mode 100644 index 00000000000..15ecf052e5d --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeatureSummary.java @@ -0,0 +1,297 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.model; + +/** + * Result of a query request for a list of link features. Contains LinkFeature items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinkFeatureSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LinkFeatureSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "feature", + "displayName", + "description", + "partnerServiceConsoleUrl", + "userGuideUrl" + }) + public LinkFeatureSummary( + String feature, + String displayName, + String description, + String partnerServiceConsoleUrl, + String userGuideUrl) { + super(); + this.feature = feature; + this.displayName = displayName; + this.description = description; + this.partnerServiceConsoleUrl = partnerServiceConsoleUrl; + this.userGuideUrl = userGuideUrl; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + /** Display name of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * Display name of the feature. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** Description of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * Description of the feature. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** ConsoleUrl of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerServiceConsoleUrl") + private String partnerServiceConsoleUrl; + + /** + * ConsoleUrl of the feature. + * + * @param partnerServiceConsoleUrl the value to set + * @return this builder + */ + public Builder partnerServiceConsoleUrl(String partnerServiceConsoleUrl) { + this.partnerServiceConsoleUrl = partnerServiceConsoleUrl; + this.__explicitlySet__.add("partnerServiceConsoleUrl"); + return this; + } + /** UserGuideUrl of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("userGuideUrl") + private String userGuideUrl; + + /** + * UserGuideUrl of the feature. + * + * @param userGuideUrl the value to set + * @return this builder + */ + public Builder userGuideUrl(String userGuideUrl) { + this.userGuideUrl = userGuideUrl; + this.__explicitlySet__.add("userGuideUrl"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinkFeatureSummary build() { + LinkFeatureSummary model = + new LinkFeatureSummary( + this.feature, + this.displayName, + this.description, + this.partnerServiceConsoleUrl, + this.userGuideUrl); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinkFeatureSummary model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("partnerServiceConsoleUrl")) { + this.partnerServiceConsoleUrl(model.getPartnerServiceConsoleUrl()); + } + if (model.wasPropertyExplicitlySet("userGuideUrl")) { + this.userGuideUrl(model.getUserGuideUrl()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @return the value + */ + public String getFeature() { + return feature; + } + + /** Display name of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * Display name of the feature. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** Description of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * Description of the feature. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** ConsoleUrl of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("partnerServiceConsoleUrl") + private final String partnerServiceConsoleUrl; + + /** + * ConsoleUrl of the feature. + * + * @return the value + */ + public String getPartnerServiceConsoleUrl() { + return partnerServiceConsoleUrl; + } + + /** UserGuideUrl of the feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("userGuideUrl") + private final String userGuideUrl; + + /** + * UserGuideUrl of the feature. + * + * @return the value + */ + public String getUserGuideUrl() { + return userGuideUrl; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinkFeatureSummary("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", partnerServiceConsoleUrl=") + .append(String.valueOf(this.partnerServiceConsoleUrl)); + sb.append(", userGuideUrl=").append(String.valueOf(this.userGuideUrl)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinkFeatureSummary)) { + return false; + } + + LinkFeatureSummary other = (LinkFeatureSummary) o; + return java.util.Objects.equals(this.feature, other.feature) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals( + this.partnerServiceConsoleUrl, other.partnerServiceConsoleUrl) + && java.util.Objects.equals(this.userGuideUrl, other.userGuideUrl) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = + (result * PRIME) + + (this.partnerServiceConsoleUrl == null + ? 43 + : this.partnerServiceConsoleUrl.hashCode()); + result = (result * PRIME) + (this.userGuideUrl == null ? 43 : this.userGuideUrl.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeaturesCollection.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeaturesCollection.java new file mode 100644 index 00000000000..89a2aed6a89 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkFeaturesCollection.java @@ -0,0 +1,133 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.model; + +/** + * Result of a query request for a list of link features. Contains LinkFeature items.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinkFeaturesCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LinkFeaturesCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public LinkFeaturesCollection(java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Array containing LinkFeature items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Array containing LinkFeature items. + * + * @param items the value to set + * @return this builder + */ + public Builder items(java.util.List items) { + this.items = items; + this.__explicitlySet__.add("items"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinkFeaturesCollection build() { + LinkFeaturesCollection model = new LinkFeaturesCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinkFeaturesCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Array containing LinkFeature items. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Array containing LinkFeature items. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinkFeaturesCollection("); + sb.append("super=").append(super.toString()); + sb.append("items=").append(String.valueOf(this.items)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinkFeaturesCollection)) { + return false; + } + + LinkFeaturesCollection other = (LinkFeaturesCollection) o; + return java.util.Objects.equals(this.items, other.items) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java index 2e8e0cbffec..358048f1a91 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkSummary.java @@ -29,7 +29,8 @@ public final class LinkSummary extends com.oracle.bmc.http.client.internal.Expli "timeCreated", "timeUpdated", "timeTerminated", - "systemTags" + "systemTags", + "feature" }) public LinkSummary( String id, @@ -39,7 +40,8 @@ public LinkSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeTerminated, - java.util.Map> systemTags) { + java.util.Map> systemTags, + String feature) { super(); this.id = id; this.parentTenancyId = parentTenancyId; @@ -49,6 +51,7 @@ public LinkSummary( this.timeUpdated = timeUpdated; this.timeTerminated = timeTerminated; this.systemTags = systemTags; + this.feature = feature; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -177,6 +180,21 @@ public Builder systemTags(java.util.Map> s this.__explicitlySet__.add("systemTags"); return this; } + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -191,7 +209,8 @@ public LinkSummary build() { this.timeCreated, this.timeUpdated, this.timeTerminated, - this.systemTags); + this.systemTags, + this.feature); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -224,6 +243,9 @@ public Builder copy(LinkSummary model) { if (model.wasPropertyExplicitlySet("systemTags")) { this.systemTags(model.getSystemTags()); } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } return this; } } @@ -345,6 +367,19 @@ public java.util.Map> getSystemTags() { return systemTags; } + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @return the value + */ + public String getFeature() { + return feature; + } + @Override public String toString() { return this.toString(true); @@ -368,6 +403,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", feature=").append(String.valueOf(this.feature)); sb.append(")"); return sb.toString(); } @@ -390,6 +426,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.feature, other.feature) && super.equals(other); } @@ -413,6 +450,7 @@ public int hashCode() { (result * PRIME) + (this.timeTerminated == null ? 43 : this.timeTerminated.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkWithTenancyNames.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkWithTenancyNames.java new file mode 100644 index 00000000000..daa88317fdf --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/LinkWithTenancyNames.java @@ -0,0 +1,494 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.model; + +/** + * A link between a parent tenancy and a child tenancy, including the parent and child tenancy + * names.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = LinkWithTenancyNames.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class LinkWithTenancyNames + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "parentTenancyName", + "childTenancyName", + "id", + "parentTenancyId", + "childTenancyId", + "lifecycleState", + "timeCreated", + "timeUpdated", + "timeTerminated", + "feature" + }) + public LinkWithTenancyNames( + String parentTenancyName, + String childTenancyName, + String id, + String parentTenancyId, + String childTenancyId, + LifecycleState lifecycleState, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeTerminated, + String feature) { + super(); + this.parentTenancyName = parentTenancyName; + this.childTenancyName = childTenancyName; + this.id = id; + this.parentTenancyId = parentTenancyId; + this.childTenancyId = childTenancyId; + this.lifecycleState = lifecycleState; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.timeTerminated = timeTerminated; + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Name of the parent tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyName") + private String parentTenancyName; + + /** + * Name of the parent tenancy. + * + * @param parentTenancyName the value to set + * @return this builder + */ + public Builder parentTenancyName(String parentTenancyName) { + this.parentTenancyName = parentTenancyName; + this.__explicitlySet__.add("parentTenancyName"); + return this; + } + /** Name of the child tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyName") + private String childTenancyName; + + /** + * Name of the child tenancy. + * + * @param childTenancyName the value to set + * @return this builder + */ + public Builder childTenancyName(String childTenancyName) { + this.childTenancyName = childTenancyName; + this.__explicitlySet__.add("childTenancyName"); + return this; + } + /** OCID of the link. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * OCID of the link. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** OCID of the parent tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyId") + private String parentTenancyId; + + /** + * OCID of the parent tenancy. + * + * @param parentTenancyId the value to set + * @return this builder + */ + public Builder parentTenancyId(String parentTenancyId) { + this.parentTenancyId = parentTenancyId; + this.__explicitlySet__.add("parentTenancyId"); + return this; + } + /** OCID of the child tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyId") + private String childTenancyId; + + /** + * OCID of the child tenancy. + * + * @param childTenancyId the value to set + * @return this builder + */ + public Builder childTenancyId(String childTenancyId) { + this.childTenancyId = childTenancyId; + this.__explicitlySet__.add("childTenancyId"); + return this; + } + /** Lifecycle state of the link. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * Lifecycle state of the link. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** Date-time when this link was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * Date-time when this link was created. + * + * @param timeCreated the value to set + * @return this builder + */ + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + /** Date-time when this link was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * Date-time when this link was last updated. + * + * @param timeUpdated the value to set + * @return this builder + */ + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + /** Date-time when this link was terminated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTerminated") + private java.util.Date timeTerminated; + + /** + * Date-time when this link was terminated. + * + * @param timeTerminated the value to set + * @return this builder + */ + public Builder timeTerminated(java.util.Date timeTerminated) { + this.timeTerminated = timeTerminated; + this.__explicitlySet__.add("timeTerminated"); + return this; + } + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(String feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public LinkWithTenancyNames build() { + LinkWithTenancyNames model = + new LinkWithTenancyNames( + this.parentTenancyName, + this.childTenancyName, + this.id, + this.parentTenancyId, + this.childTenancyId, + this.lifecycleState, + this.timeCreated, + this.timeUpdated, + this.timeTerminated, + this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(LinkWithTenancyNames model) { + if (model.wasPropertyExplicitlySet("parentTenancyName")) { + this.parentTenancyName(model.getParentTenancyName()); + } + if (model.wasPropertyExplicitlySet("childTenancyName")) { + this.childTenancyName(model.getChildTenancyName()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("parentTenancyId")) { + this.parentTenancyId(model.getParentTenancyId()); + } + if (model.wasPropertyExplicitlySet("childTenancyId")) { + this.childTenancyId(model.getChildTenancyId()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeTerminated")) { + this.timeTerminated(model.getTimeTerminated()); + } + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Name of the parent tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyName") + private final String parentTenancyName; + + /** + * Name of the parent tenancy. + * + * @return the value + */ + public String getParentTenancyName() { + return parentTenancyName; + } + + /** Name of the child tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyName") + private final String childTenancyName; + + /** + * Name of the child tenancy. + * + * @return the value + */ + public String getChildTenancyName() { + return childTenancyName; + } + + /** OCID of the link. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * OCID of the link. + * + * @return the value + */ + public String getId() { + return id; + } + + /** OCID of the parent tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("parentTenancyId") + private final String parentTenancyId; + + /** + * OCID of the parent tenancy. + * + * @return the value + */ + public String getParentTenancyId() { + return parentTenancyId; + } + + /** OCID of the child tenancy. */ + @com.fasterxml.jackson.annotation.JsonProperty("childTenancyId") + private final String childTenancyId; + + /** + * OCID of the child tenancy. + * + * @return the value + */ + public String getChildTenancyId() { + return childTenancyId; + } + + /** Lifecycle state of the link. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * Lifecycle state of the link. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** Date-time when this link was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * Date-time when this link was created. + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** Date-time when this link was last updated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * Date-time when this link was last updated. + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** Date-time when this link was terminated. */ + @com.fasterxml.jackson.annotation.JsonProperty("timeTerminated") + private final java.util.Date timeTerminated; + + /** + * Date-time when this link was terminated. + * + * @return the value + */ + public java.util.Date getTimeTerminated() { + return timeTerminated; + } + + /** The feature associated with this link. Default value is CORE. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final String feature; + + /** + * The feature associated with this link. Default value is CORE. + * + * @return the value + */ + public String getFeature() { + return feature; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("LinkWithTenancyNames("); + sb.append("super=").append(super.toString()); + sb.append("parentTenancyName=").append(String.valueOf(this.parentTenancyName)); + sb.append(", childTenancyName=").append(String.valueOf(this.childTenancyName)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", parentTenancyId=").append(String.valueOf(this.parentTenancyId)); + sb.append(", childTenancyId=").append(String.valueOf(this.childTenancyId)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", timeTerminated=").append(String.valueOf(this.timeTerminated)); + sb.append(", feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof LinkWithTenancyNames)) { + return false; + } + + LinkWithTenancyNames other = (LinkWithTenancyNames) o; + return java.util.Objects.equals(this.parentTenancyName, other.parentTenancyName) + && java.util.Objects.equals(this.childTenancyName, other.childTenancyName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.parentTenancyId, other.parentTenancyId) + && java.util.Objects.equals(this.childTenancyId, other.childTenancyId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.timeTerminated, other.timeTerminated) + && java.util.Objects.equals(this.feature, other.feature) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.parentTenancyName == null ? 43 : this.parentTenancyName.hashCode()); + result = + (result * PRIME) + + (this.childTenancyName == null ? 43 : this.childTenancyName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.parentTenancyId == null ? 43 : this.parentTenancyId.hashCode()); + result = + (result * PRIME) + + (this.childTenancyId == null ? 43 : this.childTenancyId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = + (result * PRIME) + + (this.timeTerminated == null ? 43 : this.timeTerminated.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java index 349c245e738..60832aee309 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitation.java @@ -35,6 +35,7 @@ public final class RecipientInvitation "timeCreated", "timeUpdated", "recipientEmailAddress", + "features", "freeformTags", "definedTags", "systemTags" @@ -51,6 +52,7 @@ public RecipientInvitation( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List features, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -66,6 +68,7 @@ public RecipientInvitation( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.features = features; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -240,6 +243,25 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -316,6 +338,7 @@ public RecipientInvitation build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.features, this.freeformTags, this.definedTags, this.systemTags); @@ -360,6 +383,9 @@ public Builder copy(RecipientInvitation model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -525,6 +551,23 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -602,6 +645,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -630,6 +674,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.features, other.features) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -665,6 +710,7 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java index a1416ab936a..f533957b4d5 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/RecipientInvitationSummary.java @@ -35,6 +35,7 @@ public final class RecipientInvitationSummary "timeCreated", "timeUpdated", "recipientEmailAddress", + "features", "freeformTags", "definedTags", "systemTags" @@ -51,6 +52,7 @@ public RecipientInvitationSummary( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List features, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -66,6 +68,7 @@ public RecipientInvitationSummary( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.features = features; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -240,6 +243,25 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + * + * @param features the value to set + * @return this builder + */ + public Builder features(java.util.List features) { + this.features = features; + this.__explicitlySet__.add("features"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -316,6 +338,7 @@ public RecipientInvitationSummary build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.features, this.freeformTags, this.definedTags, this.systemTags); @@ -360,6 +383,9 @@ public Builder copy(RecipientInvitationSummary model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("features")) { + this.features(model.getFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -525,6 +551,23 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("features") + private final java.util.List features; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + * + * @return the value + */ + public java.util.List getFeatures() { + return features; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -602,6 +645,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", features=").append(String.valueOf(this.features)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -630,6 +674,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.features, other.features) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -665,6 +710,7 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = (result * PRIME) + (this.features == null ? 43 : this.features.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ReviveWorkflowInstanceDetails.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ReviveWorkflowInstanceDetails.java deleted file mode 100644 index ba50d89527f..00000000000 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/ReviveWorkflowInstanceDetails.java +++ /dev/null @@ -1,179 +0,0 @@ -/** - * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. - * 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. - */ -package com.oracle.bmc.tenantmanagercontrolplane.model; - -/** - * The parameters for reviving failed workflow
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ReviveWorkflowInstanceDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ReviveWorkflowInstanceDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"workflowInstanceId", "workflowInstanceName"}) - public ReviveWorkflowInstanceDetails(String workflowInstanceId, String workflowInstanceName) { - super(); - this.workflowInstanceId = workflowInstanceId; - this.workflowInstanceName = workflowInstanceName; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Id of failed workflow */ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceId") - private String workflowInstanceId; - - /** - * Id of failed workflow - * - * @param workflowInstanceId the value to set - * @return this builder - */ - public Builder workflowInstanceId(String workflowInstanceId) { - this.workflowInstanceId = workflowInstanceId; - this.__explicitlySet__.add("workflowInstanceId"); - return this; - } - /** Service specific workflow instance name */ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceName") - private String workflowInstanceName; - - /** - * Service specific workflow instance name - * - * @param workflowInstanceName the value to set - * @return this builder - */ - public Builder workflowInstanceName(String workflowInstanceName) { - this.workflowInstanceName = workflowInstanceName; - this.__explicitlySet__.add("workflowInstanceName"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ReviveWorkflowInstanceDetails build() { - ReviveWorkflowInstanceDetails model = - new ReviveWorkflowInstanceDetails( - this.workflowInstanceId, this.workflowInstanceName); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ReviveWorkflowInstanceDetails model) { - if (model.wasPropertyExplicitlySet("workflowInstanceId")) { - this.workflowInstanceId(model.getWorkflowInstanceId()); - } - if (model.wasPropertyExplicitlySet("workflowInstanceName")) { - this.workflowInstanceName(model.getWorkflowInstanceName()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Id of failed workflow */ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceId") - private final String workflowInstanceId; - - /** - * Id of failed workflow - * - * @return the value - */ - public String getWorkflowInstanceId() { - return workflowInstanceId; - } - - /** Service specific workflow instance name */ - @com.fasterxml.jackson.annotation.JsonProperty("workflowInstanceName") - private final String workflowInstanceName; - - /** - * Service specific workflow instance name - * - * @return the value - */ - public String getWorkflowInstanceName() { - return workflowInstanceName; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ReviveWorkflowInstanceDetails("); - sb.append("super=").append(super.toString()); - sb.append("workflowInstanceId=").append(String.valueOf(this.workflowInstanceId)); - sb.append(", workflowInstanceName=").append(String.valueOf(this.workflowInstanceName)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ReviveWorkflowInstanceDetails)) { - return false; - } - - ReviveWorkflowInstanceDetails other = (ReviveWorkflowInstanceDetails) o; - return java.util.Objects.equals(this.workflowInstanceId, other.workflowInstanceId) - && java.util.Objects.equals(this.workflowInstanceName, other.workflowInstanceName) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.workflowInstanceId == null - ? 43 - : this.workflowInstanceId.hashCode()); - result = - (result * PRIME) - + (this.workflowInstanceName == null - ? 43 - : this.workflowInstanceName.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java index 58e39393f46..4e911bd543a 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitation.java @@ -34,6 +34,7 @@ public final class SenderInvitation "timeCreated", "timeUpdated", "recipientEmailAddress", + "invitationFeatures", "freeformTags", "definedTags", "systemTags" @@ -50,6 +51,7 @@ public SenderInvitation( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List invitationFeatures, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -65,6 +67,7 @@ public SenderInvitation( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.invitationFeatures = invitationFeatures; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -239,6 +242,25 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + * + * @param invitationFeatures the value to set + * @return this builder + */ + public Builder invitationFeatures(java.util.List invitationFeatures) { + this.invitationFeatures = invitationFeatures; + this.__explicitlySet__.add("invitationFeatures"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -315,6 +337,7 @@ public SenderInvitation build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.invitationFeatures, this.freeformTags, this.definedTags, this.systemTags); @@ -359,6 +382,9 @@ public Builder copy(SenderInvitation model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("invitationFeatures")) { + this.invitationFeatures(model.getInvitationFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -524,6 +550,23 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private final java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + * + * @return the value + */ + public java.util.List getInvitationFeatures() { + return invitationFeatures; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -601,6 +644,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", invitationFeatures=").append(String.valueOf(this.invitationFeatures)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -629,6 +673,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.invitationFeatures, other.invitationFeatures) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -666,6 +711,11 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = + (result * PRIME) + + (this.invitationFeatures == null + ? 43 + : this.invitationFeatures.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java index bb91e0d1e79..d4c745650ff 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationStatus.java @@ -12,6 +12,7 @@ public enum SenderInvitationStatus implements com.oracle.bmc.http.internal.BmcEn Accepted("ACCEPTED"), Expired("EXPIRED"), Failed("FAILED"), + NotApplicable("NOT_APPLICABLE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java index 06dec334c51..a9f742d37be 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/model/SenderInvitationSummary.java @@ -35,6 +35,7 @@ public final class SenderInvitationSummary "timeCreated", "timeUpdated", "recipientEmailAddress", + "invitationFeatures", "freeformTags", "definedTags", "systemTags" @@ -51,6 +52,7 @@ public SenderInvitationSummary( java.util.Date timeCreated, java.util.Date timeUpdated, String recipientEmailAddress, + java.util.List invitationFeatures, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags) { @@ -66,6 +68,7 @@ public SenderInvitationSummary( this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.recipientEmailAddress = recipientEmailAddress; + this.invitationFeatures = invitationFeatures; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; @@ -240,6 +243,25 @@ public Builder recipientEmailAddress(String recipientEmailAddress) { this.__explicitlySet__.add("recipientEmailAddress"); return this; } + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one + * link, of that type. + * + * @param invitationFeatures the value to set + * @return this builder + */ + public Builder invitationFeatures(java.util.List invitationFeatures) { + this.invitationFeatures = invitationFeatures; + this.__explicitlySet__.add("invitationFeatures"); + return this; + } /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists * for cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -316,6 +338,7 @@ public SenderInvitationSummary build() { this.timeCreated, this.timeUpdated, this.recipientEmailAddress, + this.invitationFeatures, this.freeformTags, this.definedTags, this.systemTags); @@ -360,6 +383,9 @@ public Builder copy(SenderInvitationSummary model) { if (model.wasPropertyExplicitlySet("recipientEmailAddress")) { this.recipientEmailAddress(model.getRecipientEmailAddress()); } + if (model.wasPropertyExplicitlySet("invitationFeatures")) { + this.invitationFeatures(model.getInvitationFeatures()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -525,6 +551,23 @@ public String getRecipientEmailAddress() { return recipientEmailAddress; } + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + */ + @com.fasterxml.jackson.annotation.JsonProperty("invitationFeatures") + private final java.util.List invitationFeatures; + + /** + * List of features that the invitation is being sent for. Each feature would create one link, + * of that type. + * + * @return the value + */ + public java.util.List getInvitationFeatures() { + return invitationFeatures; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -602,6 +645,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", recipientEmailAddress=").append(String.valueOf(this.recipientEmailAddress)); + sb.append(", invitationFeatures=").append(String.valueOf(this.invitationFeatures)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); @@ -630,6 +674,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.recipientEmailAddress, other.recipientEmailAddress) + && java.util.Objects.equals(this.invitationFeatures, other.invitationFeatures) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) @@ -667,6 +712,11 @@ public int hashCode() { + (this.recipientEmailAddress == null ? 43 : this.recipientEmailAddress.hashCode()); + result = + (result * PRIME) + + (this.invitationFeatures == null + ? 43 + : this.invitationFeatures.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/GetLinkWithTenancyNamesRequest.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/GetLinkWithTenancyNamesRequest.java new file mode 100644 index 00000000000..748a177f434 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/GetLinkWithTenancyNamesRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.requests; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; +/** + * Example: Click here to see how to use + * GetLinkWithTenancyNamesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class GetLinkWithTenancyNamesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** OCID of the link to retrieve. */ + private String linkId; + + /** OCID of the link to retrieve. */ + public String getLinkId() { + return linkId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetLinkWithTenancyNamesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** OCID of the link to retrieve. */ + private String linkId = null; + + /** + * OCID of the link to retrieve. + * + * @param linkId the value to set + * @return this builder instance + */ + public Builder linkId(String linkId) { + this.linkId = linkId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetLinkWithTenancyNamesRequest o) { + linkId(o.getLinkId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetLinkWithTenancyNamesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of GetLinkWithTenancyNamesRequest + */ + public GetLinkWithTenancyNamesRequest build() { + GetLinkWithTenancyNamesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of GetLinkWithTenancyNamesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetLinkWithTenancyNamesRequest + */ + public GetLinkWithTenancyNamesRequest buildWithoutInvocationCallback() { + GetLinkWithTenancyNamesRequest request = new GetLinkWithTenancyNamesRequest(); + request.linkId = linkId; + request.opcRequestId = opcRequestId; + return request; + // new GetLinkWithTenancyNamesRequest(linkId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().linkId(linkId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",linkId=").append(String.valueOf(this.linkId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetLinkWithTenancyNamesRequest)) { + return false; + } + + GetLinkWithTenancyNamesRequest other = (GetLinkWithTenancyNamesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.linkId, other.linkId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.linkId == null ? 43 : this.linkId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinkFeaturesRequest.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinkFeaturesRequest.java new file mode 100644 index 00000000000..fa4b6ae53a1 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinkFeaturesRequest.java @@ -0,0 +1,192 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.requests; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; +/** + * Example: Click here to see how to use ListLinkFeaturesRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class ListLinkFeaturesRequest extends com.oracle.bmc.requests.BmcRequest { + + /** The ID of the compartment in which to list resources. */ + private String compartmentId; + + /** The ID of the compartment in which to list resources. */ + public String getCompartmentId() { + return compartmentId; + } + /** The client request ID for tracing. */ + private String opcRequestId; + + /** The client request ID for tracing. */ + public String getOpcRequestId() { + return opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListLinkFeaturesRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The ID of the compartment in which to list resources. */ + private String compartmentId = null; + + /** + * The ID of the compartment in which to list resources. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListLinkFeaturesRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListLinkFeaturesRequest as configured by this builder + * + *

Note that this method takes calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + *

This is the preferred method to build an instance. + * + * @return instance of ListLinkFeaturesRequest + */ + public ListLinkFeaturesRequest build() { + ListLinkFeaturesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Build the instance of ListLinkFeaturesRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListLinkFeaturesRequest + */ + public ListLinkFeaturesRequest buildWithoutInvocationCallback() { + ListLinkFeaturesRequest request = new ListLinkFeaturesRequest(); + request.compartmentId = compartmentId; + request.opcRequestId = opcRequestId; + return request; + // new ListLinkFeaturesRequest(compartmentId, opcRequestId); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder().compartmentId(compartmentId).opcRequestId(opcRequestId); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLinkFeaturesRequest)) { + return false; + } + + ListLinkFeaturesRequest other = (ListLinkFeaturesRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java index c3df9b35877..5468a9e3de2 100644 --- a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/requests/ListLinksRequest.java @@ -27,6 +27,13 @@ public String getParentTenancyId() { public String getChildTenancyId() { return childTenancyId; } + /** The feature associated with this link. */ + private String feature; + + /** The feature associated with this link. */ + public String getFeature() { + return feature; + } /** The lifecycle state of the resource. */ private com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState lifecycleState; @@ -103,6 +110,20 @@ public Builder childTenancyId(String childTenancyId) { return this; } + /** The feature associated with this link. */ + private String feature = null; + + /** + * The feature associated with this link. + * + * @param feature the value to set + * @return this builder instance + */ + public Builder feature(String feature) { + this.feature = feature; + return this; + } + /** The lifecycle state of the resource. */ private com.oracle.bmc.tenantmanagercontrolplane.model.LifecycleState lifecycleState = null; @@ -211,6 +232,7 @@ public Builder retryConfiguration( public Builder copy(ListLinksRequest o) { parentTenancyId(o.getParentTenancyId()); childTenancyId(o.getChildTenancyId()); + feature(o.getFeature()); lifecycleState(o.getLifecycleState()); opcRequestId(o.getOpcRequestId()); page(o.getPage()); @@ -252,14 +274,15 @@ public ListLinksRequest buildWithoutInvocationCallback() { ListLinksRequest request = new ListLinksRequest(); request.parentTenancyId = parentTenancyId; request.childTenancyId = childTenancyId; + request.feature = feature; request.lifecycleState = lifecycleState; request.opcRequestId = opcRequestId; request.page = page; request.limit = limit; request.sortOrder = sortOrder; return request; - // new ListLinksRequest(parentTenancyId, childTenancyId, lifecycleState, opcRequestId, - // page, limit, sortOrder); + // new ListLinksRequest(parentTenancyId, childTenancyId, feature, lifecycleState, + // opcRequestId, page, limit, sortOrder); } } @@ -272,6 +295,7 @@ public Builder toBuilder() { return new Builder() .parentTenancyId(parentTenancyId) .childTenancyId(childTenancyId) + .feature(feature) .lifecycleState(lifecycleState) .opcRequestId(opcRequestId) .page(page) @@ -295,6 +319,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",parentTenancyId=").append(String.valueOf(this.parentTenancyId)); sb.append(",childTenancyId=").append(String.valueOf(this.childTenancyId)); + sb.append(",feature=").append(String.valueOf(this.feature)); sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",page=").append(String.valueOf(this.page)); @@ -317,6 +342,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.parentTenancyId, other.parentTenancyId) && java.util.Objects.equals(this.childTenancyId, other.childTenancyId) + && java.util.Objects.equals(this.feature, other.feature) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.page, other.page) @@ -334,6 +360,7 @@ public int hashCode() { result = (result * PRIME) + (this.childTenancyId == null ? 43 : this.childTenancyId.hashCode()); + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/GetLinkWithTenancyNamesResponse.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/GetLinkWithTenancyNamesResponse.java new file mode 100644 index 00000000000..4e80e840f91 --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/GetLinkWithTenancyNamesResponse.java @@ -0,0 +1,219 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.responses; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class GetLinkWithTenancyNamesResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code LinkWithTenancyNames} instance. */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames; + + /** + * The returned {@code LinkWithTenancyNames} instance. + * + * @return the value + */ + public com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + getLinkWithTenancyNames() { + return linkWithTenancyNames; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "linkWithTenancyNames" + }) + private GetLinkWithTenancyNamesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.linkWithTenancyNames = linkWithTenancyNames; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetLinkWithTenancyNamesResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code LinkWithTenancyNames} instance. */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames; + + /** + * The returned {@code LinkWithTenancyNames} instance. + * + * @param linkWithTenancyNames the value to set + * @return this builder + */ + public Builder linkWithTenancyNames( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames + linkWithTenancyNames) { + this.linkWithTenancyNames = linkWithTenancyNames; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetLinkWithTenancyNamesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + linkWithTenancyNames(o.getLinkWithTenancyNames()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetLinkWithTenancyNamesResponse build() { + return new GetLinkWithTenancyNamesResponse( + __httpStatusCode__, headers, etag, opcRequestId, linkWithTenancyNames); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",linkWithTenancyNames=").append(String.valueOf(linkWithTenancyNames)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetLinkWithTenancyNamesResponse)) { + return false; + } + + GetLinkWithTenancyNamesResponse other = (GetLinkWithTenancyNamesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.linkWithTenancyNames, other.linkWithTenancyNames); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.linkWithTenancyNames == null + ? 43 + : this.linkWithTenancyNames.hashCode()); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/ListLinkFeaturesResponse.java b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/ListLinkFeaturesResponse.java new file mode 100644 index 00000000000..54aeadbb94c --- /dev/null +++ b/bmc-tenantmanagercontrolplane/src/main/java/com/oracle/bmc/tenantmanagercontrolplane/responses/ListLinkFeaturesResponse.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. + * 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. + */ +package com.oracle.bmc.tenantmanagercontrolplane.responses; + +import com.oracle.bmc.tenantmanagercontrolplane.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230401") +public class ListLinkFeaturesResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the next batch of items. + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code LinkFeaturesCollection} instance. */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection; + + /** + * The returned {@code LinkFeaturesCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + getLinkFeaturesCollection() { + return linkFeaturesCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcNextPage", + "opcRequestId", + "linkFeaturesCollection" + }) + private ListLinkFeaturesResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcNextPage, + String opcRequestId, + com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection) { + super(__httpStatusCode__, headers); + this.opcNextPage = opcNextPage; + this.opcRequestId = opcRequestId; + this.linkFeaturesCollection = linkFeaturesCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + */ + private String opcNextPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the next batch of items. + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code LinkFeaturesCollection} instance. */ + private com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection; + + /** + * The returned {@code LinkFeaturesCollection} instance. + * + * @param linkFeaturesCollection the value to set + * @return this builder + */ + public Builder linkFeaturesCollection( + com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection + linkFeaturesCollection) { + this.linkFeaturesCollection = linkFeaturesCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListLinkFeaturesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcNextPage(o.getOpcNextPage()); + opcRequestId(o.getOpcRequestId()); + linkFeaturesCollection(o.getLinkFeaturesCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListLinkFeaturesResponse build() { + return new ListLinkFeaturesResponse( + __httpStatusCode__, headers, opcNextPage, opcRequestId, linkFeaturesCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",opcNextPage=").append(String.valueOf(opcNextPage)); + sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); + sb.append(",linkFeaturesCollection=").append(String.valueOf(linkFeaturesCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListLinkFeaturesResponse)) { + return false; + } + + ListLinkFeaturesResponse other = (ListLinkFeaturesResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcNextPage, other.opcNextPage) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.linkFeaturesCollection, other.linkFeaturesCollection); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.opcNextPage == null ? 43 : this.opcNextPage.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.linkFeaturesCollection == null + ? 43 + : this.linkFeaturesCollection.hashCode()); + return result; + } +} diff --git a/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json b/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json index 6d34285c14a..0d5f77d1d18 100644 --- a/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json +++ b/bmc-tenantmanagercontrolplane/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-tenantmanagercontrolplane/reflect-config.json @@ -443,6 +443,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.InvitationFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.InvitationFeature$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.tenantmanagercontrolplane.model.InvitationSubject", @@ -483,6 +497,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeatureSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeatureSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.LinkFeaturesCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.tenantmanagercontrolplane.model.LinkSummary", @@ -497,6 +539,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.tenantmanagercontrolplane.model.LinkWithTenancyNames$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.tenantmanagercontrolplane.model.OperationStatus", @@ -693,20 +749,6 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.tenantmanagercontrolplane.model.ReviveWorkflowInstanceDetails", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.tenantmanagercontrolplane.model.ReviveWorkflowInstanceDetails$Builder", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true - }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.tenantmanagercontrolplane.model.SenderInvitation", diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 8b99c82f846..e2207bf2d1d 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 258059eeb1c..6ba0b356625 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 459bb8816dd..667d455f086 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index dbde4127e24..69483692393 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index ed0c59493af..553b313222b 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 742facd36e2..4266745b9e7 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index e57a4425f45..11c4521e24f 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index fa57d328371..65113f422de 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 80f667798e7..263ec9634a0 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 057103b9b2d..2e87d7868e4 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 5e6d17c4ec2..b616070fa24 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml index 01475b80737..aff295dc80e 100644 --- a/bmc-wlms/pom.xml +++ b/bmc-wlms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-wlms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 52fe6dbdf3a..52a67e4446a 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml index 9a73317df83..37672549941 100644 --- a/bmc-zpr/pom.xml +++ b/bmc-zpr/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 ../pom.xml oci-java-sdk-zpr @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.89.1 + 3.90.0 \ No newline at end of file diff --git a/pom.xml b/pom.xml index c0f0e769219..495901b50dc 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.89.1 + 3.90.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure