diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml
index d18f2f91896..6ad17fddce3 100644
--- a/bmc-computecloudatcustomer/pom.xml
+++ b/bmc-computecloudatcustomer/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
oci-java-sdk-computecloudatcustomer
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
\ No newline at end of file
diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml
index aa31c4c5533..ac536a58b8f 100644
--- a/bmc-computeinstanceagent/pom.xml
+++ b/bmc-computeinstanceagent/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
oci-java-sdk-computeinstanceagent
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml
index 6ddb3c19e2e..75522c812e1 100644
--- a/bmc-containerengine/pom.xml
+++ b/bmc-containerengine/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml
index b0060f2ae7e..3fb78096f02 100644
--- a/bmc-containerinstances/pom.xml
+++ b/bmc-containerinstances/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
oci-java-sdk-containerinstances
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
\ No newline at end of file
diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml
index 3f8ed66c6f9..ef598368a1a 100644
--- a/bmc-core/pom.xml
+++ b/bmc-core/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
@@ -18,12 +18,12 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
com.oracle.oci.sdk
oci-java-sdk-workrequests
- 3.43.2
+ 3.44.0
diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml
index f0992197ce7..006df2fcd13 100644
--- a/bmc-dashboardservice/pom.xml
+++ b/bmc-dashboardservice/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
oci-java-sdk-dashboardservice
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
\ No newline at end of file
diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml
index 536618e22a6..685f8bb59da 100644
--- a/bmc-database/pom.xml
+++ b/bmc-database/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
@@ -18,12 +18,12 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
com.oracle.oci.sdk
oci-java-sdk-workrequests
- 3.43.2
+ 3.44.0
diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml
index 2f287418569..e8881cb909f 100644
--- a/bmc-databasemanagement/pom.xml
+++ b/bmc-databasemanagement/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
oci-java-sdk-databasemanagement
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml
index 322c1f77247..1fd17603a8d 100644
--- a/bmc-databasemigration/pom.xml
+++ b/bmc-databasemigration/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.43.2
+ 3.44.0
../pom.xml
oci-java-sdk-databasemigration
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.43.2
+ 3.44.0
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java
index 1c8ad441337..189d5090308 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java
@@ -12,7 +12,7 @@
* operations. 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: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
public interface DatabaseMigration extends AutoCloseable {
/** Rebuilds the client from scratch. Useful to refresh certificates. */
@@ -94,22 +94,6 @@ public interface DatabaseMigration extends AutoCloseable {
*/
AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsRequest request);
- /**
- * Used to configure an ODMS Agent Compartment ID.
- *
- * @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
- * ChangeAgentCompartment API.
- */
- ChangeAgentCompartmentResponse changeAgentCompartment(ChangeAgentCompartmentRequest request);
-
/**
* Used to change the Database Connection compartment.
*
@@ -209,21 +193,6 @@ ChangeMigrationCompartmentResponse changeMigrationCompartment(
*/
CreateMigrationResponse createMigration(CreateMigrationRequest request);
- /**
- * Delete the ODMS Agent represented by the specified ODMS Agent ID.
- *
- * @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 DeleteAgent API.
- */
- DeleteAgentResponse deleteAgent(DeleteAgentRequest request);
-
/**
* Deletes the Database Connection represented by the specified connection ID.
*
@@ -303,21 +272,6 @@ ChangeMigrationCompartmentResponse changeMigrationCompartment(
*/
GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request);
- /**
- * Display the ODMS Agent configuration.
- *
- * @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 GetAgent API.
- */
- GetAgentResponse getAgent(GetAgentRequest request);
-
/**
* Display Database Connection details.
*
@@ -394,37 +348,6 @@ ChangeMigrationCompartmentResponse changeMigrationCompartment(
*/
GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request);
- /**
- * Get details of the ODMS Agent Images available to install on-premises.
- *
- * @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 ListAgentImages
- * API.
- */
- ListAgentImagesResponse listAgentImages(ListAgentImagesRequest request);
-
- /**
- * Display the name of all the existing ODMS Agents in the server.
- *
- * @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 ListAgents API.
- */
- ListAgentsResponse listAgents(ListAgentsRequest request);
-
/**
* List all Database Connections.
*
@@ -645,21 +568,6 @@ ListMigrationObjectTypesResponse listMigrationObjectTypes(
*/
StartMigrationResponse startMigration(StartMigrationRequest request);
- /**
- * Modifies the ODMS Agent represented by the given ODMS Agent ID.
- *
- * @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 UpdateAgent API.
- */
- UpdateAgentResponse updateAgent(UpdateAgentRequest request);
-
/**
* Update Database Connection resource details.
*
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java
index 0177ba8718a..b2da7079693 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java
@@ -11,7 +11,7 @@
* Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration
* operations.
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
public interface DatabaseMigrationAsync extends AutoCloseable {
/** Rebuilds the client from scratch. Useful to refresh certificates. */
@@ -92,22 +92,6 @@ java.util.concurrent.Future addMigrationObjects(
AddMigrationObjectsRequest, AddMigrationObjectsResponse>
handler);
- /**
- * Used to configure an ODMS Agent Compartment ID.
- *
- * @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 changeAgentCompartment(
- ChangeAgentCompartmentRequest request,
- com.oracle.bmc.responses.AsyncHandler<
- ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse>
- handler);
-
/**
* Used to change the Database Connection compartment.
*
@@ -203,20 +187,6 @@ java.util.concurrent.Future createMigration(
com.oracle.bmc.responses.AsyncHandler
handler);
- /**
- * Delete the ODMS Agent represented by the specified ODMS Agent ID.
- *
- * @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 deleteAgent(
- DeleteAgentRequest request,
- com.oracle.bmc.responses.AsyncHandler handler);
-
/**
* Deletes the Database Connection represented by the specified connection ID.
*
@@ -292,20 +262,6 @@ java.util.concurrent.Future getAdvisorReport(
com.oracle.bmc.responses.AsyncHandler
handler);
- /**
- * Display the ODMS Agent configuration.
- *
- * @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 getAgent(
- GetAgentRequest request,
- com.oracle.bmc.responses.AsyncHandler handler);
-
/**
* Display Database Connection details.
*
@@ -381,35 +337,6 @@ java.util.concurrent.Future getWorkRequest(
com.oracle.bmc.responses.AsyncHandler
handler);
- /**
- * Get details of the ODMS Agent Images available to install on-premises.
- *
- * @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 listAgentImages(
- ListAgentImagesRequest request,
- com.oracle.bmc.responses.AsyncHandler
- handler);
-
- /**
- * Display the name of all the existing ODMS Agents in the server.
- *
- * @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 listAgents(
- ListAgentsRequest request,
- com.oracle.bmc.responses.AsyncHandler handler);
-
/**
* List all Database Connections.
*
@@ -625,20 +552,6 @@ java.util.concurrent.Future startMigration(
com.oracle.bmc.responses.AsyncHandler
handler);
- /**
- * Modifies the ODMS Agent represented by the given ODMS Agent ID.
- *
- * @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 updateAgent(
- UpdateAgentRequest request,
- com.oracle.bmc.responses.AsyncHandler handler);
-
/**
* Update Database Connection resource details.
*
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java
index 9d4d82e8ff3..c55eb050c34 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java
@@ -25,7 +25,7 @@
* 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: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
public class DatabaseMigrationAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient
implements DatabaseMigrationAsync {
/** Service instance for DatabaseMigration. */
@@ -135,10 +135,10 @@ public java.util.concurrent.Future abortJob(
.serviceDetails(
"DatabaseMigration",
"AbortJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/AbortJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/AbortJob")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AbortJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("actions")
@@ -172,10 +172,10 @@ public java.util.concurrent.Future addMigrationObje
.serviceDetails(
"DatabaseMigration",
"AddMigrationObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/AddMigrationObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/AddMigrationObjects")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AddMigrationObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -189,41 +189,6 @@ public java.util.concurrent.Future addMigrationObje
.callAsync(handler);
}
- @Override
- public java.util.concurrent.Future changeAgentCompartment(
- ChangeAgentCompartmentRequest request,
- final com.oracle.bmc.responses.AsyncHandler<
- ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse>
- handler) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
- Objects.requireNonNull(
- request.getChangeAgentCompartmentDetails(),
- "changeAgentCompartmentDetails is required");
-
- return clientCall(request, ChangeAgentCompartmentResponse::builder)
- .logger(LOG, "changeAgentCompartment")
- .serviceDetails(
- "DatabaseMigration",
- "ChangeAgentCompartment",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment")
- .method(com.oracle.bmc.http.client.Method.POST)
- .requestBuilder(ChangeAgentCompartmentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .appendPathParam("actions")
- .appendPathParam("changeCompartment")
- .accept("application/json")
- .appendHeader("opc-retry-token", request.getOpcRetryToken())
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .appendHeader("if-match", request.getIfMatch())
- .hasBody()
- .handleResponseHeaderString(
- "opc-request-id", ChangeAgentCompartmentResponse.Builder::opcRequestId)
- .callAsync(handler);
- }
-
@Override
public java.util.concurrent.Future
changeConnectionCompartment(
@@ -243,10 +208,10 @@ public java.util.concurrent.Future changeAgentCo
.serviceDetails(
"DatabaseMigration",
"ChangeConnectionCompartment",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ChangeConnectionCompartment")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ChangeConnectionCompartment")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ChangeConnectionCompartmentRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.appendPathParam("actions")
@@ -280,10 +245,10 @@ public java.util.concurrent.Future changeAgentCo
.serviceDetails(
"DatabaseMigration",
"ChangeMigrationCompartment",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/ChangeMigrationCompartment")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/ChangeMigrationCompartment")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ChangeMigrationCompartmentRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -314,10 +279,10 @@ public java.util.concurrent.Future cloneMigration(
.serviceDetails(
"DatabaseMigration",
"CloneMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/CloneMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CloneMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CloneMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -352,10 +317,10 @@ public java.util.concurrent.Future connectionDiag
.serviceDetails(
"DatabaseMigration",
"ConnectionDiagnostics",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ConnectionDiagnostics")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ConnectionDiagnostics")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ConnectionDiagnosticsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.appendPathParam("actions")
@@ -387,7 +352,7 @@ public java.util.concurrent.Future createConnection(
.serviceDetails("DatabaseMigration", "CreateConnection", "")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
@@ -415,10 +380,13 @@ public java.util.concurrent.Future createMigration(
return clientCall(request, CreateMigrationResponse::builder)
.logger(LOG, "createMigration")
- .serviceDetails("DatabaseMigration", "CreateMigration", "")
+ .serviceDetails(
+ "DatabaseMigration",
+ "CreateMigration",
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CreateMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
@@ -435,35 +403,6 @@ public java.util.concurrent.Future createMigration(
.callAsync(handler);
}
- @Override
- public java.util.concurrent.Future deleteAgent(
- DeleteAgentRequest request,
- final com.oracle.bmc.responses.AsyncHandler
- handler) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
-
- return clientCall(request, DeleteAgentResponse::builder)
- .logger(LOG, "deleteAgent")
- .serviceDetails(
- "DatabaseMigration",
- "DeleteAgent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgent")
- .method(com.oracle.bmc.http.client.Method.DELETE)
- .requestBuilder(DeleteAgentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .appendHeader("if-match", request.getIfMatch())
- .handleResponseHeaderString(
- "opc-request-id", DeleteAgentResponse.Builder::opcRequestId)
- .handleResponseHeaderString(
- "opc-work-request-id", DeleteAgentResponse.Builder::opcWorkRequestId)
- .callAsync(handler);
- }
-
@Override
public java.util.concurrent.Future deleteConnection(
DeleteConnectionRequest request,
@@ -478,10 +417,10 @@ public java.util.concurrent.Future deleteConnection(
.serviceDetails(
"DatabaseMigration",
"DeleteConnection",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/DeleteConnection")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/DeleteConnection")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.accept("application/json")
@@ -507,10 +446,10 @@ public java.util.concurrent.Future deleteJob(
.serviceDetails(
"DatabaseMigration",
"DeleteJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/DeleteJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteJob")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.accept("application/json")
@@ -535,10 +474,10 @@ public java.util.concurrent.Future deleteMigration(
.serviceDetails(
"DatabaseMigration",
"DeleteMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/DeleteMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/DeleteMigration")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.accept("application/json")
@@ -565,10 +504,10 @@ public java.util.concurrent.Future evaluateMigration(
.serviceDetails(
"DatabaseMigration",
"EvaluateMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/EvaluateMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/EvaluateMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(EvaluateMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -602,10 +541,10 @@ public java.util.concurrent.Future getAdvisorReport(
.serviceDetails(
"DatabaseMigration",
"GetAdvisorReport",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetAdvisorReport")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetAdvisorReport")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetAdvisorReportRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("advisorReport")
@@ -620,36 +559,6 @@ public java.util.concurrent.Future getAdvisorReport(
.callAsync(handler);
}
- @Override
- public java.util.concurrent.Future getAgent(
- GetAgentRequest request,
- final com.oracle.bmc.responses.AsyncHandler
- handler) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
-
- return clientCall(request, GetAgentResponse::builder)
- .logger(LOG, "getAgent")
- .serviceDetails(
- "DatabaseMigration",
- "GetAgent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgent")
- .method(com.oracle.bmc.http.client.Method.GET)
- .requestBuilder(GetAgentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .handleBody(
- com.oracle.bmc.databasemigration.model.Agent.class,
- GetAgentResponse.Builder::agent)
- .handleResponseHeaderString(
- "opc-request-id", GetAgentResponse.Builder::opcRequestId)
- .handleResponseHeaderString("etag", GetAgentResponse.Builder::etag)
- .callAsync(handler);
- }
-
@Override
public java.util.concurrent.Future getConnection(
GetConnectionRequest request,
@@ -663,10 +572,10 @@ public java.util.concurrent.Future getConnection(
.serviceDetails(
"DatabaseMigration",
"GetConnection",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/GetConnection")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/GetConnection")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.accept("application/json")
@@ -692,10 +601,10 @@ public java.util.concurrent.Future getJob(
.serviceDetails(
"DatabaseMigration",
"GetJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJob")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.accept("application/json")
@@ -722,10 +631,10 @@ public java.util.concurrent.Future getJobOutputCont
.serviceDetails(
"DatabaseMigration",
"GetJobOutputContent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobOutputContent")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJobOutputContent")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobOutputContentRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("output")
@@ -752,10 +661,10 @@ public java.util.concurrent.Future getMigration(
.serviceDetails(
"DatabaseMigration",
"GetMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/GetMigration")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.accept("application/json")
@@ -784,10 +693,10 @@ public java.util.concurrent.Future getWorkRequest(
.serviceDetails(
"DatabaseMigration",
"GetWorkRequest",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequest")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequest/GetWorkRequest")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetWorkRequestRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.accept("application/json")
@@ -800,74 +709,6 @@ public java.util.concurrent.Future getWorkRequest(
.callAsync(handler);
}
- @Override
- public java.util.concurrent.Future listAgentImages(
- ListAgentImagesRequest request,
- final com.oracle.bmc.responses.AsyncHandler<
- ListAgentImagesRequest, ListAgentImagesResponse>
- handler) {
-
- return clientCall(request, ListAgentImagesResponse::builder)
- .logger(LOG, "listAgentImages")
- .serviceDetails(
- "DatabaseMigration",
- "ListAgentImages",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentImageSummary/ListAgentImages")
- .method(com.oracle.bmc.http.client.Method.GET)
- .requestBuilder(ListAgentImagesRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agentImages")
- .appendQueryParam("limit", request.getLimit())
- .appendQueryParam("page", request.getPage())
- .appendEnumQueryParam("sortOrder", request.getSortOrder())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .handleBody(
- com.oracle.bmc.databasemigration.model.AgentImageCollection.class,
- ListAgentImagesResponse.Builder::agentImageCollection)
- .handleResponseHeaderString(
- "opc-request-id", ListAgentImagesResponse.Builder::opcRequestId)
- .handleResponseHeaderString(
- "opc-next-page", ListAgentImagesResponse.Builder::opcNextPage)
- .callAsync(handler);
- }
-
- @Override
- public java.util.concurrent.Future listAgents(
- ListAgentsRequest request,
- final com.oracle.bmc.responses.AsyncHandler
- handler) {
- Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
-
- return clientCall(request, ListAgentsResponse::builder)
- .logger(LOG, "listAgents")
- .serviceDetails(
- "DatabaseMigration",
- "ListAgents",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentSummary/ListAgents")
- .method(com.oracle.bmc.http.client.Method.GET)
- .requestBuilder(ListAgentsRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendQueryParam("compartmentId", request.getCompartmentId())
- .appendQueryParam("limit", request.getLimit())
- .appendQueryParam("page", request.getPage())
- .appendEnumQueryParam("sortBy", request.getSortBy())
- .appendEnumQueryParam("sortOrder", request.getSortOrder())
- .appendQueryParam("displayName", request.getDisplayName())
- .appendEnumQueryParam("lifecycleState", request.getLifecycleState())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .handleBody(
- com.oracle.bmc.databasemigration.model.AgentCollection.class,
- ListAgentsResponse.Builder::agentCollection)
- .handleResponseHeaderString(
- "opc-request-id", ListAgentsResponse.Builder::opcRequestId)
- .handleResponseHeaderString(
- "opc-next-page", ListAgentsResponse.Builder::opcNextPage)
- .callAsync(handler);
- }
-
@Override
public java.util.concurrent.Future listConnections(
ListConnectionsRequest request,
@@ -881,12 +722,21 @@ public java.util.concurrent.Future listConnections(
.serviceDetails(
"DatabaseMigration",
"ListConnections",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ConnectionSummary/ListConnections")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ConnectionSummary/ListConnections")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListConnectionsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendQueryParam("compartmentId", request.getCompartmentId())
+ .appendListQueryParam(
+ "technologyType",
+ request.getTechnologyType(),
+ com.oracle.bmc.util.internal.CollectionFormatType.Multi)
+ .appendListQueryParam(
+ "connectionType",
+ request.getConnectionType(),
+ com.oracle.bmc.util.internal.CollectionFormatType.Multi)
+ .appendQueryParam("sourceConnectionId", request.getSourceConnectionId())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
@@ -919,10 +769,10 @@ public java.util.concurrent.Future listExcludedObje
.serviceDetails(
"DatabaseMigration",
"ListExcludedObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ExcludedObjectSummary/ListExcludedObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ExcludedObjectSummary/ListExcludedObjects")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListExcludedObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("excludedObjects")
@@ -964,10 +814,10 @@ public java.util.concurrent.Future listJobOutputs(
.serviceDetails(
"DatabaseMigration",
"ListJobOutputs",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobOutputSummary/ListJobOutputs")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobOutputSummary/ListJobOutputs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobOutputsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("output")
@@ -997,10 +847,10 @@ public java.util.concurrent.Future listJobs(
.serviceDetails(
"DatabaseMigration",
"ListJobs",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobSummary/ListJobs")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobSummary/ListJobs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendQueryParam("migrationId", request.getMigrationId())
.appendQueryParam("displayName", request.getDisplayName())
@@ -1026,21 +876,23 @@ public java.util.concurrent.Future listMigrati
final com.oracle.bmc.responses.AsyncHandler<
ListMigrationObjectTypesRequest, ListMigrationObjectTypesResponse>
handler) {
+ Objects.requireNonNull(request.getConnectionType(), "connectionType is required");
return clientCall(request, ListMigrationObjectTypesResponse::builder)
.logger(LOG, "listMigrationObjectTypes")
.serviceDetails(
"DatabaseMigration",
"ListMigrationObjectTypes",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectTypeSummary/ListMigrationObjectTypes")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectTypeSummary/ListMigrationObjectTypes")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListMigrationObjectTypesRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrationObjectTypes")
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
+ .appendEnumQueryParam("connectionType", request.getConnectionType())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.handleBody(
@@ -1069,10 +921,10 @@ public java.util.concurrent.Future listMigrationOb
.serviceDetails(
"DatabaseMigration",
"ListMigrationObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectCollection/ListMigrationObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectCollection/ListMigrationObjects")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListMigrationObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("migrationObjects")
@@ -1104,10 +956,10 @@ public java.util.concurrent.Future listMigrations(
.serviceDetails(
"DatabaseMigration",
"ListMigrations",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationSummary/ListMigrations")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationSummary/ListMigrations")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListMigrationsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("displayName", request.getDisplayName())
@@ -1143,10 +995,10 @@ public java.util.concurrent.Future listWorkReques
.serviceDetails(
"DatabaseMigration",
"ListWorkRequestErrors",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestError/ListWorkRequestErrors")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestError/ListWorkRequestErrors")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestErrorsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.appendPathParam("errors")
@@ -1180,10 +1032,10 @@ public java.util.concurrent.Future listWorkRequestL
.serviceDetails(
"DatabaseMigration",
"ListWorkRequestLogs",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestLogEntry/ListWorkRequestLogs")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestLogEntry/ListWorkRequestLogs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestLogsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.appendPathParam("logs")
@@ -1216,10 +1068,10 @@ public java.util.concurrent.Future listWorkRequests(
.serviceDetails(
"DatabaseMigration",
"ListWorkRequests",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestSummary/ListWorkRequests")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestSummary/ListWorkRequests")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("resourceId", request.getResourceId())
@@ -1257,10 +1109,10 @@ public java.util.concurrent.Future removeMigrati
.serviceDetails(
"DatabaseMigration",
"RemoveMigrationObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RemoveMigrationObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RemoveMigrationObjects")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RemoveMigrationObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -1287,10 +1139,10 @@ public java.util.concurrent.Future resumeJob(
.serviceDetails(
"DatabaseMigration",
"ResumeJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/ResumeJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ResumeJob")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ResumeJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("actions")
@@ -1323,10 +1175,10 @@ public java.util.concurrent.Future retrieveSupp
.serviceDetails(
"DatabaseMigration",
"RetrieveSupportedPhases",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RetrieveSupportedPhases")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RetrieveSupportedPhases")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RetrieveSupportedPhasesRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -1355,10 +1207,10 @@ public java.util.concurrent.Future startMigration(
.serviceDetails(
"DatabaseMigration",
"StartMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/StartMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/StartMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(StartMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -1379,40 +1231,6 @@ public java.util.concurrent.Future startMigration(
.callAsync(handler);
}
- @Override
- public java.util.concurrent.Future updateAgent(
- UpdateAgentRequest request,
- final com.oracle.bmc.responses.AsyncHandler
- handler) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
- Objects.requireNonNull(request.getUpdateAgentDetails(), "updateAgentDetails is required");
-
- return clientCall(request, UpdateAgentResponse::builder)
- .logger(LOG, "updateAgent")
- .serviceDetails(
- "DatabaseMigration",
- "UpdateAgent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent")
- .method(com.oracle.bmc.http.client.Method.PUT)
- .requestBuilder(UpdateAgentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .appendHeader("opc-retry-token", request.getOpcRetryToken())
- .appendHeader("if-match", request.getIfMatch())
- .hasBody()
- .handleBody(
- com.oracle.bmc.databasemigration.model.Agent.class,
- UpdateAgentResponse.Builder::agent)
- .handleResponseHeaderString(
- "opc-request-id", UpdateAgentResponse.Builder::opcRequestId)
- .handleResponseHeaderString("etag", UpdateAgentResponse.Builder::etag)
- .callAsync(handler);
- }
-
@Override
public java.util.concurrent.Future updateConnection(
UpdateConnectionRequest request,
@@ -1429,10 +1247,10 @@ public java.util.concurrent.Future updateConnection(
.serviceDetails(
"DatabaseMigration",
"UpdateConnection",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/UpdateConnection")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/UpdateConnection")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.accept("application/json")
@@ -1460,10 +1278,10 @@ public java.util.concurrent.Future updateJob(
.serviceDetails(
"DatabaseMigration",
"UpdateJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/UpdateJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/UpdateJob")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.accept("application/json")
@@ -1495,10 +1313,10 @@ public java.util.concurrent.Future updateMigration(
.serviceDetails(
"DatabaseMigration",
"UpdateMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/UpdateMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/UpdateMigration")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.accept("application/json")
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java
index 5cf37b17570..dde1d9af049 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java
@@ -12,7 +12,7 @@
import java.util.Objects;
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
public class DatabaseMigrationClient extends com.oracle.bmc.http.internal.BaseSyncClient
implements DatabaseMigration {
/** Service instance for DatabaseMigration. */
@@ -158,10 +158,10 @@ public AbortJobResponse abortJob(AbortJobRequest request) {
.serviceDetails(
"DatabaseMigration",
"AbortJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/AbortJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/AbortJob")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AbortJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("actions")
@@ -192,10 +192,10 @@ public AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsReques
.serviceDetails(
"DatabaseMigration",
"AddMigrationObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/AddMigrationObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/AddMigrationObjects")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(AddMigrationObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -210,39 +210,6 @@ public AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsReques
.callSync();
}
- @Override
- public ChangeAgentCompartmentResponse changeAgentCompartment(
- ChangeAgentCompartmentRequest request) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
- Objects.requireNonNull(
- request.getChangeAgentCompartmentDetails(),
- "changeAgentCompartmentDetails is required");
-
- return clientCall(request, ChangeAgentCompartmentResponse::builder)
- .logger(LOG, "changeAgentCompartment")
- .serviceDetails(
- "DatabaseMigration",
- "ChangeAgentCompartment",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment")
- .method(com.oracle.bmc.http.client.Method.POST)
- .requestBuilder(ChangeAgentCompartmentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .appendPathParam("actions")
- .appendPathParam("changeCompartment")
- .accept("application/json")
- .appendHeader("opc-retry-token", request.getOpcRetryToken())
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .appendHeader("if-match", request.getIfMatch())
- .operationUsesDefaultRetries()
- .hasBody()
- .handleResponseHeaderString(
- "opc-request-id", ChangeAgentCompartmentResponse.Builder::opcRequestId)
- .callSync();
- }
-
@Override
public ChangeConnectionCompartmentResponse changeConnectionCompartment(
ChangeConnectionCompartmentRequest request) {
@@ -257,10 +224,10 @@ public ChangeConnectionCompartmentResponse changeConnectionCompartment(
.serviceDetails(
"DatabaseMigration",
"ChangeConnectionCompartment",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ChangeConnectionCompartment")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ChangeConnectionCompartment")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ChangeConnectionCompartmentRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.appendPathParam("actions")
@@ -290,10 +257,10 @@ public ChangeMigrationCompartmentResponse changeMigrationCompartment(
.serviceDetails(
"DatabaseMigration",
"ChangeMigrationCompartment",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/ChangeMigrationCompartment")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/ChangeMigrationCompartment")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ChangeMigrationCompartmentRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -321,10 +288,10 @@ public CloneMigrationResponse cloneMigration(CloneMigrationRequest request) {
.serviceDetails(
"DatabaseMigration",
"CloneMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/CloneMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CloneMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CloneMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -357,10 +324,10 @@ public ConnectionDiagnosticsResponse connectionDiagnostics(
.serviceDetails(
"DatabaseMigration",
"ConnectionDiagnostics",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ConnectionDiagnostics")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ConnectionDiagnostics")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ConnectionDiagnosticsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.appendPathParam("actions")
@@ -389,7 +356,7 @@ public CreateConnectionResponse createConnection(CreateConnectionRequest request
.serviceDetails("DatabaseMigration", "CreateConnection", "")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
@@ -414,10 +381,13 @@ public CreateMigrationResponse createMigration(CreateMigrationRequest request) {
return clientCall(request, CreateMigrationResponse::builder)
.logger(LOG, "createMigration")
- .serviceDetails("DatabaseMigration", "CreateMigration", "")
+ .serviceDetails(
+ "DatabaseMigration",
+ "CreateMigration",
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CreateMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(CreateMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.accept("application/json")
.appendHeader("opc-retry-token", request.getOpcRetryToken())
@@ -435,33 +405,6 @@ public CreateMigrationResponse createMigration(CreateMigrationRequest request) {
.callSync();
}
- @Override
- public DeleteAgentResponse deleteAgent(DeleteAgentRequest request) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
-
- return clientCall(request, DeleteAgentResponse::builder)
- .logger(LOG, "deleteAgent")
- .serviceDetails(
- "DatabaseMigration",
- "DeleteAgent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgent")
- .method(com.oracle.bmc.http.client.Method.DELETE)
- .requestBuilder(DeleteAgentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .appendHeader("if-match", request.getIfMatch())
- .operationUsesDefaultRetries()
- .handleResponseHeaderString(
- "opc-request-id", DeleteAgentResponse.Builder::opcRequestId)
- .handleResponseHeaderString(
- "opc-work-request-id", DeleteAgentResponse.Builder::opcWorkRequestId)
- .callSync();
- }
-
@Override
public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request) {
@@ -472,10 +415,10 @@ public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request
.serviceDetails(
"DatabaseMigration",
"DeleteConnection",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/DeleteConnection")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/DeleteConnection")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.accept("application/json")
@@ -499,10 +442,10 @@ public DeleteJobResponse deleteJob(DeleteJobRequest request) {
.serviceDetails(
"DatabaseMigration",
"DeleteJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/DeleteJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteJob")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.accept("application/json")
@@ -524,10 +467,10 @@ public DeleteMigrationResponse deleteMigration(DeleteMigrationRequest request) {
.serviceDetails(
"DatabaseMigration",
"DeleteMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/DeleteMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/DeleteMigration")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.accept("application/json")
@@ -551,10 +494,10 @@ public EvaluateMigrationResponse evaluateMigration(EvaluateMigrationRequest requ
.serviceDetails(
"DatabaseMigration",
"EvaluateMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/EvaluateMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/EvaluateMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(EvaluateMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -585,10 +528,10 @@ public GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request
.serviceDetails(
"DatabaseMigration",
"GetAdvisorReport",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetAdvisorReport")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetAdvisorReport")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetAdvisorReportRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("advisorReport")
@@ -604,34 +547,6 @@ public GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request
.callSync();
}
- @Override
- public GetAgentResponse getAgent(GetAgentRequest request) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
-
- return clientCall(request, GetAgentResponse::builder)
- .logger(LOG, "getAgent")
- .serviceDetails(
- "DatabaseMigration",
- "GetAgent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgent")
- .method(com.oracle.bmc.http.client.Method.GET)
- .requestBuilder(GetAgentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .operationUsesDefaultRetries()
- .handleBody(
- com.oracle.bmc.databasemigration.model.Agent.class,
- GetAgentResponse.Builder::agent)
- .handleResponseHeaderString(
- "opc-request-id", GetAgentResponse.Builder::opcRequestId)
- .handleResponseHeaderString("etag", GetAgentResponse.Builder::etag)
- .callSync();
- }
-
@Override
public GetConnectionResponse getConnection(GetConnectionRequest request) {
@@ -642,10 +557,10 @@ public GetConnectionResponse getConnection(GetConnectionRequest request) {
.serviceDetails(
"DatabaseMigration",
"GetConnection",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/GetConnection")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/GetConnection")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.accept("application/json")
@@ -670,10 +585,10 @@ public GetJobResponse getJob(GetJobRequest request) {
.serviceDetails(
"DatabaseMigration",
"GetJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJob")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.accept("application/json")
@@ -697,10 +612,10 @@ public GetJobOutputContentResponse getJobOutputContent(GetJobOutputContentReques
.serviceDetails(
"DatabaseMigration",
"GetJobOutputContent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobOutputContent")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJobOutputContent")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetJobOutputContentRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("output")
@@ -725,10 +640,10 @@ public GetMigrationResponse getMigration(GetMigrationRequest request) {
.serviceDetails(
"DatabaseMigration",
"GetMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/GetMigration")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.accept("application/json")
@@ -754,10 +669,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) {
.serviceDetails(
"DatabaseMigration",
"GetWorkRequest",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequest")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequest/GetWorkRequest")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(GetWorkRequestRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.accept("application/json")
@@ -771,69 +686,6 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) {
.callSync();
}
- @Override
- public ListAgentImagesResponse listAgentImages(ListAgentImagesRequest request) {
-
- return clientCall(request, ListAgentImagesResponse::builder)
- .logger(LOG, "listAgentImages")
- .serviceDetails(
- "DatabaseMigration",
- "ListAgentImages",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentImageSummary/ListAgentImages")
- .method(com.oracle.bmc.http.client.Method.GET)
- .requestBuilder(ListAgentImagesRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agentImages")
- .appendQueryParam("limit", request.getLimit())
- .appendQueryParam("page", request.getPage())
- .appendEnumQueryParam("sortOrder", request.getSortOrder())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .operationUsesDefaultRetries()
- .handleBody(
- com.oracle.bmc.databasemigration.model.AgentImageCollection.class,
- ListAgentImagesResponse.Builder::agentImageCollection)
- .handleResponseHeaderString(
- "opc-request-id", ListAgentImagesResponse.Builder::opcRequestId)
- .handleResponseHeaderString(
- "opc-next-page", ListAgentImagesResponse.Builder::opcNextPage)
- .callSync();
- }
-
- @Override
- public ListAgentsResponse listAgents(ListAgentsRequest request) {
- Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
-
- return clientCall(request, ListAgentsResponse::builder)
- .logger(LOG, "listAgents")
- .serviceDetails(
- "DatabaseMigration",
- "ListAgents",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentSummary/ListAgents")
- .method(com.oracle.bmc.http.client.Method.GET)
- .requestBuilder(ListAgentsRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendQueryParam("compartmentId", request.getCompartmentId())
- .appendQueryParam("limit", request.getLimit())
- .appendQueryParam("page", request.getPage())
- .appendEnumQueryParam("sortBy", request.getSortBy())
- .appendEnumQueryParam("sortOrder", request.getSortOrder())
- .appendQueryParam("displayName", request.getDisplayName())
- .appendEnumQueryParam("lifecycleState", request.getLifecycleState())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .operationUsesDefaultRetries()
- .handleBody(
- com.oracle.bmc.databasemigration.model.AgentCollection.class,
- ListAgentsResponse.Builder::agentCollection)
- .handleResponseHeaderString(
- "opc-request-id", ListAgentsResponse.Builder::opcRequestId)
- .handleResponseHeaderString(
- "opc-next-page", ListAgentsResponse.Builder::opcNextPage)
- .callSync();
- }
-
@Override
public ListConnectionsResponse listConnections(ListConnectionsRequest request) {
Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
@@ -843,12 +695,21 @@ public ListConnectionsResponse listConnections(ListConnectionsRequest request) {
.serviceDetails(
"DatabaseMigration",
"ListConnections",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ConnectionSummary/ListConnections")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ConnectionSummary/ListConnections")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListConnectionsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendQueryParam("compartmentId", request.getCompartmentId())
+ .appendListQueryParam(
+ "technologyType",
+ request.getTechnologyType(),
+ com.oracle.bmc.util.internal.CollectionFormatType.Multi)
+ .appendListQueryParam(
+ "connectionType",
+ request.getConnectionType(),
+ com.oracle.bmc.util.internal.CollectionFormatType.Multi)
+ .appendQueryParam("sourceConnectionId", request.getSourceConnectionId())
.appendQueryParam("displayName", request.getDisplayName())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
@@ -878,10 +739,10 @@ public ListExcludedObjectsResponse listExcludedObjects(ListExcludedObjectsReques
.serviceDetails(
"DatabaseMigration",
"ListExcludedObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ExcludedObjectSummary/ListExcludedObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ExcludedObjectSummary/ListExcludedObjects")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListExcludedObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("excludedObjects")
@@ -920,10 +781,10 @@ public ListJobOutputsResponse listJobOutputs(ListJobOutputsRequest request) {
.serviceDetails(
"DatabaseMigration",
"ListJobOutputs",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobOutputSummary/ListJobOutputs")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobOutputSummary/ListJobOutputs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobOutputsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("output")
@@ -951,10 +812,10 @@ public ListJobsResponse listJobs(ListJobsRequest request) {
.serviceDetails(
"DatabaseMigration",
"ListJobs",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobSummary/ListJobs")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobSummary/ListJobs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListJobsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendQueryParam("migrationId", request.getMigrationId())
.appendQueryParam("displayName", request.getDisplayName())
@@ -978,21 +839,23 @@ public ListJobsResponse listJobs(ListJobsRequest request) {
@Override
public ListMigrationObjectTypesResponse listMigrationObjectTypes(
ListMigrationObjectTypesRequest request) {
+ Objects.requireNonNull(request.getConnectionType(), "connectionType is required");
return clientCall(request, ListMigrationObjectTypesResponse::builder)
.logger(LOG, "listMigrationObjectTypes")
.serviceDetails(
"DatabaseMigration",
"ListMigrationObjectTypes",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectTypeSummary/ListMigrationObjectTypes")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectTypeSummary/ListMigrationObjectTypes")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListMigrationObjectTypesRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrationObjectTypes")
.appendEnumQueryParam("sortBy", request.getSortBy())
.appendEnumQueryParam("sortOrder", request.getSortOrder())
.appendQueryParam("limit", request.getLimit())
.appendQueryParam("page", request.getPage())
+ .appendEnumQueryParam("connectionType", request.getConnectionType())
.accept("application/json")
.appendHeader("opc-request-id", request.getOpcRequestId())
.operationUsesDefaultRetries()
@@ -1018,10 +881,10 @@ public ListMigrationObjectsResponse listMigrationObjects(ListMigrationObjectsReq
.serviceDetails(
"DatabaseMigration",
"ListMigrationObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectCollection/ListMigrationObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectCollection/ListMigrationObjects")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListMigrationObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("migrationObjects")
@@ -1050,10 +913,10 @@ public ListMigrationsResponse listMigrations(ListMigrationsRequest request) {
.serviceDetails(
"DatabaseMigration",
"ListMigrations",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationSummary/ListMigrations")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationSummary/ListMigrations")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListMigrationsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("displayName", request.getDisplayName())
@@ -1087,10 +950,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors(
.serviceDetails(
"DatabaseMigration",
"ListWorkRequestErrors",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestError/ListWorkRequestErrors")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestError/ListWorkRequestErrors")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestErrorsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.appendPathParam("errors")
@@ -1121,10 +984,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques
.serviceDetails(
"DatabaseMigration",
"ListWorkRequestLogs",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestLogEntry/ListWorkRequestLogs")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestLogEntry/ListWorkRequestLogs")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestLogsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendPathParam(request.getWorkRequestId())
.appendPathParam("logs")
@@ -1154,10 +1017,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request
.serviceDetails(
"DatabaseMigration",
"ListWorkRequests",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestSummary/ListWorkRequests")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestSummary/ListWorkRequests")
.method(com.oracle.bmc.http.client.Method.GET)
.requestBuilder(ListWorkRequestsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("workRequests")
.appendQueryParam("compartmentId", request.getCompartmentId())
.appendQueryParam("resourceId", request.getResourceId())
@@ -1193,10 +1056,10 @@ public RemoveMigrationObjectsResponse removeMigrationObjects(
.serviceDetails(
"DatabaseMigration",
"RemoveMigrationObjects",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RemoveMigrationObjects")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RemoveMigrationObjects")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RemoveMigrationObjectsRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -1221,10 +1084,10 @@ public ResumeJobResponse resumeJob(ResumeJobRequest request) {
.serviceDetails(
"DatabaseMigration",
"ResumeJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/ResumeJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ResumeJob")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(ResumeJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.appendPathParam("actions")
@@ -1255,10 +1118,10 @@ public RetrieveSupportedPhasesResponse retrieveSupportedPhases(
.serviceDetails(
"DatabaseMigration",
"RetrieveSupportedPhases",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RetrieveSupportedPhases")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RetrieveSupportedPhases")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(RetrieveSupportedPhasesRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -1284,10 +1147,10 @@ public StartMigrationResponse startMigration(StartMigrationRequest request) {
.serviceDetails(
"DatabaseMigration",
"StartMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/StartMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/StartMigration")
.method(com.oracle.bmc.http.client.Method.POST)
.requestBuilder(StartMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.appendPathParam("actions")
@@ -1309,38 +1172,6 @@ public StartMigrationResponse startMigration(StartMigrationRequest request) {
.callSync();
}
- @Override
- public UpdateAgentResponse updateAgent(UpdateAgentRequest request) {
-
- Validate.notBlank(request.getAgentId(), "agentId must not be blank");
- Objects.requireNonNull(request.getUpdateAgentDetails(), "updateAgentDetails is required");
-
- return clientCall(request, UpdateAgentResponse::builder)
- .logger(LOG, "updateAgent")
- .serviceDetails(
- "DatabaseMigration",
- "UpdateAgent",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent")
- .method(com.oracle.bmc.http.client.Method.PUT)
- .requestBuilder(UpdateAgentRequest::builder)
- .basePath("/20210929")
- .appendPathParam("agents")
- .appendPathParam(request.getAgentId())
- .accept("application/json")
- .appendHeader("opc-request-id", request.getOpcRequestId())
- .appendHeader("opc-retry-token", request.getOpcRetryToken())
- .appendHeader("if-match", request.getIfMatch())
- .operationUsesDefaultRetries()
- .hasBody()
- .handleBody(
- com.oracle.bmc.databasemigration.model.Agent.class,
- UpdateAgentResponse.Builder::agent)
- .handleResponseHeaderString(
- "opc-request-id", UpdateAgentResponse.Builder::opcRequestId)
- .handleResponseHeaderString("etag", UpdateAgentResponse.Builder::etag)
- .callSync();
- }
-
@Override
public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request) {
@@ -1353,10 +1184,10 @@ public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request
.serviceDetails(
"DatabaseMigration",
"UpdateConnection",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/UpdateConnection")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/UpdateConnection")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateConnectionRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("connections")
.appendPathParam(request.getConnectionId())
.accept("application/json")
@@ -1382,10 +1213,10 @@ public UpdateJobResponse updateJob(UpdateJobRequest request) {
.serviceDetails(
"DatabaseMigration",
"UpdateJob",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/UpdateJob")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/UpdateJob")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateJobRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("jobs")
.appendPathParam(request.getJobId())
.accept("application/json")
@@ -1414,10 +1245,10 @@ public UpdateMigrationResponse updateMigration(UpdateMigrationRequest request) {
.serviceDetails(
"DatabaseMigration",
"UpdateMigration",
- "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/UpdateMigration")
+ "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/UpdateMigration")
.method(com.oracle.bmc.http.client.Method.PUT)
.requestBuilder(UpdateMigrationRequest::builder)
- .basePath("/20210929")
+ .basePath("/20230518")
.appendPathParam("migrations")
.appendPathParam(request.getMigrationId())
.accept("application/json")
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java
index e3b20487756..231101f95ac 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java
@@ -33,7 +33,7 @@
* handled so we can iterate until there are no more responses or no more resources/records
* available.
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
public class DatabaseMigrationPaginators {
private final DatabaseMigration client;
@@ -41,235 +41,6 @@ public DatabaseMigrationPaginators(DatabaseMigration client) {
this.client = client;
}
- /**
- * Creates a new iterable which will iterate over the responses received from the
- * listAgentImages 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 listAgentImagesResponseIterator(
- final ListAgentImagesRequest request) {
- return new com.oracle.bmc.paginator.internal.ResponseIterable<
- ListAgentImagesRequest.Builder, ListAgentImagesRequest, ListAgentImagesResponse>(
- new java.util.function.Supplier() {
- @Override
- public ListAgentImagesRequest.Builder get() {
- return ListAgentImagesRequest.builder().copy(request);
- }
- },
- new java.util.function.Function() {
- @Override
- public String apply(ListAgentImagesResponse response) {
- return response.getOpcNextPage();
- }
- },
- new java.util.function.Function<
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentImagesRequest.Builder>,
- ListAgentImagesRequest>() {
- @Override
- public ListAgentImagesRequest apply(
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentImagesRequest.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 ListAgentImagesResponse apply(ListAgentImagesRequest request) {
- return client.listAgentImages(request);
- }
- });
- }
-
- /**
- * Creates a new iterable which will iterate over the {@link
- * com.oracle.bmc.databasemigration.model.AgentImageSummary} objects contained in responses from
- * the listAgentImages 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.databasemigration.model.AgentImageSummary} objects contained in responses
- * received from the service.
- */
- public Iterable
- listAgentImagesRecordIterator(final ListAgentImagesRequest request) {
- return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
- ListAgentImagesRequest.Builder,
- ListAgentImagesRequest,
- ListAgentImagesResponse,
- com.oracle.bmc.databasemigration.model.AgentImageSummary>(
- new java.util.function.Supplier() {
- @Override
- public ListAgentImagesRequest.Builder get() {
- return ListAgentImagesRequest.builder().copy(request);
- }
- },
- new java.util.function.Function() {
- @Override
- public String apply(ListAgentImagesResponse response) {
- return response.getOpcNextPage();
- }
- },
- new java.util.function.Function<
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentImagesRequest.Builder>,
- ListAgentImagesRequest>() {
- @Override
- public ListAgentImagesRequest apply(
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentImagesRequest.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 ListAgentImagesResponse apply(ListAgentImagesRequest request) {
- return client.listAgentImages(request);
- }
- },
- new java.util.function.Function<
- ListAgentImagesResponse,
- java.util.List<
- com.oracle.bmc.databasemigration.model.AgentImageSummary>>() {
- @Override
- public java.util.List
- apply(ListAgentImagesResponse response) {
- return response.getAgentImageCollection().getItems();
- }
- });
- }
-
- /**
- * Creates a new iterable which will iterate over the responses received from the listAgents
- * 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 listAgentsResponseIterator(
- final ListAgentsRequest request) {
- return new com.oracle.bmc.paginator.internal.ResponseIterable<
- ListAgentsRequest.Builder, ListAgentsRequest, ListAgentsResponse>(
- new java.util.function.Supplier() {
- @Override
- public ListAgentsRequest.Builder get() {
- return ListAgentsRequest.builder().copy(request);
- }
- },
- new java.util.function.Function() {
- @Override
- public String apply(ListAgentsResponse response) {
- return response.getOpcNextPage();
- }
- },
- new java.util.function.Function<
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentsRequest.Builder>,
- ListAgentsRequest>() {
- @Override
- public ListAgentsRequest apply(
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentsRequest.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 ListAgentsResponse apply(ListAgentsRequest request) {
- return client.listAgents(request);
- }
- });
- }
-
- /**
- * Creates a new iterable which will iterate over the {@link
- * com.oracle.bmc.databasemigration.model.AgentSummary} objects contained in responses from the
- * listAgents 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.databasemigration.model.AgentSummary} objects contained in responses
- * received from the service.
- */
- public Iterable listAgentsRecordIterator(
- final ListAgentsRequest request) {
- return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
- ListAgentsRequest.Builder,
- ListAgentsRequest,
- ListAgentsResponse,
- com.oracle.bmc.databasemigration.model.AgentSummary>(
- new java.util.function.Supplier() {
- @Override
- public ListAgentsRequest.Builder get() {
- return ListAgentsRequest.builder().copy(request);
- }
- },
- new java.util.function.Function() {
- @Override
- public String apply(ListAgentsResponse response) {
- return response.getOpcNextPage();
- }
- },
- new java.util.function.Function<
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentsRequest.Builder>,
- ListAgentsRequest>() {
- @Override
- public ListAgentsRequest apply(
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListAgentsRequest.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 ListAgentsResponse apply(ListAgentsRequest request) {
- return client.listAgents(request);
- }
- },
- new java.util.function.Function<
- ListAgentsResponse,
- java.util.List>() {
- @Override
- public java.util.List
- apply(ListAgentsResponse response) {
- return response.getAgentCollection().getItems();
- }
- });
- }
-
/**
* Creates a new iterable which will iterate over the responses received from the
* listConnections operation. This iterable will fetch more data from the server as needed.
@@ -859,127 +630,6 @@ public ListMigrationObjectTypesResponse apply(
});
}
- /**
- * Creates a new iterable which will iterate over the responses received from the
- * listMigrationObjects 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 listMigrationObjectsResponseIterator(
- final ListMigrationObjectsRequest request) {
- return new com.oracle.bmc.paginator.internal.ResponseIterable<
- ListMigrationObjectsRequest.Builder,
- ListMigrationObjectsRequest,
- ListMigrationObjectsResponse>(
- new java.util.function.Supplier() {
- @Override
- public ListMigrationObjectsRequest.Builder get() {
- return ListMigrationObjectsRequest.builder().copy(request);
- }
- },
- new java.util.function.Function() {
- @Override
- public String apply(ListMigrationObjectsResponse response) {
- return response.getOpcNextPage();
- }
- },
- new java.util.function.Function<
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListMigrationObjectsRequest.Builder>,
- ListMigrationObjectsRequest>() {
- @Override
- public ListMigrationObjectsRequest apply(
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListMigrationObjectsRequest.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<
- ListMigrationObjectsRequest, ListMigrationObjectsResponse>() {
- @Override
- public ListMigrationObjectsResponse apply(ListMigrationObjectsRequest request) {
- return client.listMigrationObjects(request);
- }
- });
- }
-
- /**
- * Creates a new iterable which will iterate over the {@link
- * com.oracle.bmc.databasemigration.model.MigrationObjectSummary} objects contained in responses
- * from the listMigrationObjects 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.databasemigration.model.MigrationObjectSummary} objects contained in
- * responses received from the service.
- */
- public Iterable
- listMigrationObjectsRecordIterator(final ListMigrationObjectsRequest request) {
- return new com.oracle.bmc.paginator.internal.ResponseRecordIterable<
- ListMigrationObjectsRequest.Builder,
- ListMigrationObjectsRequest,
- ListMigrationObjectsResponse,
- com.oracle.bmc.databasemigration.model.MigrationObjectSummary>(
- new java.util.function.Supplier() {
- @Override
- public ListMigrationObjectsRequest.Builder get() {
- return ListMigrationObjectsRequest.builder().copy(request);
- }
- },
- new java.util.function.Function() {
- @Override
- public String apply(ListMigrationObjectsResponse response) {
- return response.getOpcNextPage();
- }
- },
- new java.util.function.Function<
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListMigrationObjectsRequest.Builder>,
- ListMigrationObjectsRequest>() {
- @Override
- public ListMigrationObjectsRequest apply(
- com.oracle.bmc.paginator.internal.RequestBuilderAndToken<
- ListMigrationObjectsRequest.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<
- ListMigrationObjectsRequest, ListMigrationObjectsResponse>() {
- @Override
- public ListMigrationObjectsResponse apply(ListMigrationObjectsRequest request) {
- return client.listMigrationObjects(request);
- }
- },
- new java.util.function.Function<
- ListMigrationObjectsResponse,
- java.util.List<
- com.oracle.bmc.databasemigration.model.MigrationObjectSummary>>() {
- @Override
- public java.util.List<
- com.oracle.bmc.databasemigration.model.MigrationObjectSummary>
- apply(ListMigrationObjectsResponse response) {
- return response.getMigrationObjectCollection().getItems();
- }
- });
- }
-
/**
* Creates a new iterable which will iterate over the responses received from the listMigrations
* operation. This iterable will fetch more data from the server as needed.
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java
index 73a814dbb47..537a9e12e5f 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java
@@ -14,7 +14,7 @@
* The default configuration used is defined by {@link
* com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}.
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
public class DatabaseMigrationWaiters {
private final java.util.concurrent.ExecutorService executorService;
private final DatabaseMigration client;
@@ -29,112 +29,13 @@ public DatabaseMigrationWaiters(
* 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
+ * @param targetStates 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 forAgent(
- GetAgentRequest request,
- com.oracle.bmc.databasemigration.model.LifecycleStates... 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 forAgent(
- 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 forAgent(
- GetAgentRequest request,
- com.oracle.bmc.databasemigration.model.LifecycleStates 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 forAgent(
- 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 forAgent(
- GetAgentRequest request,
- com.oracle.bmc.waiter.TerminationStrategy terminationStrategy,
- com.oracle.bmc.waiter.DelayStrategy delayStrategy,
- com.oracle.bmc.databasemigration.model.LifecycleStates... 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 forAgent(
- com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy),
- request,
- targetStates);
- }
-
- // Helper method to create a new Waiter for Agent.
- private com.oracle.bmc.waiter.Waiter forAgent(
- com.oracle.bmc.waiter.BmcGenericWaiter waiter,
- final GetAgentRequest request,
- final com.oracle.bmc.databasemigration.model.LifecycleStates... 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() {
- @Override
- public GetAgentResponse apply(GetAgentRequest request) {
- return client.getAgent(request);
- }
- },
- new java.util.function.Predicate() {
- @Override
- public boolean test(GetAgentResponse response) {
- return targetStatesSet.contains(
- response.getAgent().getLifecycleState());
- }
- },
- targetStatesSet.contains(
- com.oracle.bmc.databasemigration.model.LifecycleStates.Deleted)),
- 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 forConnection(
GetConnectionRequest request,
- com.oracle.bmc.databasemigration.model.LifecycleStates... targetStates) {
+ com.oracle.bmc.databasemigration.model.Connection.LifecycleState... targetStates) {
com.oracle.bmc.util.internal.Validate.notEmpty(
targetStates, "At least one targetState must be provided");
com.oracle.bmc.util.internal.Validate.noNullElements(
@@ -155,7 +56,7 @@ public com.oracle.bmc.waiter.Waiter
*/
public com.oracle.bmc.waiter.Waiter forConnection(
GetConnectionRequest request,
- com.oracle.bmc.databasemigration.model.LifecycleStates targetState,
+ com.oracle.bmc.databasemigration.model.Connection.LifecycleState targetState,
com.oracle.bmc.waiter.TerminationStrategy terminationStrategy,
com.oracle.bmc.waiter.DelayStrategy delayStrategy) {
com.oracle.bmc.util.internal.Validate.notNull(
@@ -175,17 +76,17 @@ public com.oracle.bmc.waiter.Waiter
* @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
+ * @return a new {@code com.oracle.bmc.waiter.Waiter} instance
*/
public com.oracle.bmc.waiter.Waiter forConnection(
GetConnectionRequest request,
com.oracle.bmc.waiter.TerminationStrategy terminationStrategy,
com.oracle.bmc.waiter.DelayStrategy delayStrategy,
- com.oracle.bmc.databasemigration.model.LifecycleStates... targetStates) {
+ com.oracle.bmc.databasemigration.model.Connection.LifecycleState... targetStates) {
com.oracle.bmc.util.internal.Validate.notEmpty(
- targetStates, "At least one targetState must be provided");
+ targetStates, "At least one target state must be provided");
com.oracle.bmc.util.internal.Validate.noNullElements(
- targetStates, "Null targetState values are not permitted");
+ targetStates, "Null target states are not permitted");
return forConnection(
com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy),
@@ -197,8 +98,9 @@ public com.oracle.bmc.waiter.Waiter
private com.oracle.bmc.waiter.Waiter forConnection(
com.oracle.bmc.waiter.BmcGenericWaiter waiter,
final GetConnectionRequest request,
- final com.oracle.bmc.databasemigration.model.LifecycleStates... targetStates) {
- final java.util.Set
+ final com.oracle.bmc.databasemigration.model.Connection.LifecycleState...
+ targetStates) {
+ final java.util.Set
targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates));
return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>(
@@ -220,7 +122,8 @@ public boolean test(GetConnectionResponse response) {
}
},
targetStatesSet.contains(
- com.oracle.bmc.databasemigration.model.LifecycleStates.Deleted)),
+ com.oracle.bmc.databasemigration.model.Connection.LifecycleState
+ .Deleted)),
request);
}
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java
index eddb32dd1c3..83a8ab8dd86 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Migration tablespace settings valid for ADB-D target type using auto create feature
+ * Auto create tablespace settings that are valid for Dedicated Autonomous Databases.
* 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,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = ADBDedicatedAutoCreateTablespaceDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonTypeInfo(
@@ -27,12 +27,16 @@
public final class ADBDedicatedAutoCreateTablespaceDetails extends TargetTypeTablespaceDetails {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
- /** True to auto-create tablespace in the target Database. */
+ /**
+ * Set this property to true to auto-create tablespaces in the target Database. Note: This
+ * is not applicable for Autonomous Database Serverless databases.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate")
private Boolean isAutoCreate;
/**
- * True to auto-create tablespace in the target Database.
+ * Set this property to true to auto-create tablespaces in the target Database. Note: This
+ * is not applicable for Autonomous Database Serverless databases.
*
* @param isAutoCreate the value to set
* @return this builder
@@ -42,12 +46,12 @@ public Builder isAutoCreate(Boolean isAutoCreate) {
this.__explicitlySet__.add("isAutoCreate");
return this;
}
- /** True set tablespace to big file. */
+ /** Set this property to true to enable tablespace of the type big file. */
@com.fasterxml.jackson.annotation.JsonProperty("isBigFile")
private Boolean isBigFile;
/**
- * True set tablespace to big file.
+ * Set this property to true to enable tablespace of the type big file.
*
* @param isBigFile the value to set
* @return this builder
@@ -57,12 +61,16 @@ public Builder isBigFile(Boolean isBigFile) {
this.__explicitlySet__.add("isBigFile");
return this;
}
- /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */
+ /**
+ * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set
+ * to true.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs")
private Integer extendSizeInMBs;
/**
- * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true.
+ * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set
+ * to true.
*
* @param extendSizeInMBs the value to set
* @return this builder
@@ -144,12 +152,16 @@ public ADBDedicatedAutoCreateTablespaceDetails(
this.blockSizeInKBs = blockSizeInKBs;
}
- /** True to auto-create tablespace in the target Database. */
+ /**
+ * Set this property to true to auto-create tablespaces in the target Database. Note: This is
+ * not applicable for Autonomous Database Serverless databases.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate")
private final Boolean isAutoCreate;
/**
- * True to auto-create tablespace in the target Database.
+ * Set this property to true to auto-create tablespaces in the target Database. Note: This is
+ * not applicable for Autonomous Database Serverless databases.
*
* @return the value
*/
@@ -157,12 +169,12 @@ public Boolean getIsAutoCreate() {
return isAutoCreate;
}
- /** True set tablespace to big file. */
+ /** Set this property to true to enable tablespace of the type big file. */
@com.fasterxml.jackson.annotation.JsonProperty("isBigFile")
private final Boolean isBigFile;
/**
- * True set tablespace to big file.
+ * Set this property to true to enable tablespace of the type big file.
*
* @return the value
*/
@@ -170,12 +182,16 @@ public Boolean getIsBigFile() {
return isBigFile;
}
- /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */
+ /**
+ * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to
+ * true.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs")
private final Integer extendSizeInMBs;
/**
- * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true.
+ * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to
+ * true.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java
index 62bed22a839..06f4a8eb73e 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Migration tablespace settings valid for ADB-D target type using remap feature
+ * Remap tablespace settings that are valid for Dedicated Autonomous Databases.
* 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,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = ADBDedicatedRemapTargetTablespaceDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonTypeInfo(
@@ -28,13 +28,15 @@ public final class ADBDedicatedRemapTargetTablespaceDetails extends TargetTypeTa
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
/**
- * Name of tablespace at target to which the source database tablespace need to be remapped.
+ * Name of the tablespace on the target database to which the source database tablespace is
+ * to be remapped.
*/
@com.fasterxml.jackson.annotation.JsonProperty("remapTarget")
private String remapTarget;
/**
- * Name of tablespace at target to which the source database tablespace need to be remapped.
+ * Name of the tablespace on the target database to which the source database tablespace is
+ * to be remapped.
*
* @param remapTarget the value to set
* @return this builder
@@ -81,12 +83,16 @@ public ADBDedicatedRemapTargetTablespaceDetails(String remapTarget) {
this.remapTarget = remapTarget;
}
- /** Name of tablespace at target to which the source database tablespace need to be remapped. */
+ /**
+ * Name of the tablespace on the target database to which the source database tablespace is to
+ * be remapped.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("remapTarget")
private final String remapTarget;
/**
- * Name of tablespace at target to which the source database tablespace need to be remapped.
+ * Name of the tablespace on the target database to which the source database tablespace is to
+ * be remapped.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java
index b6699207197..5eec3fe76e5 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java
@@ -5,7 +5,8 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Migration tablespace settings valid for ADB-D target type using remap feature
+ * Migration tablespace settings valid for Autonomous Database Serverless target type using remap
+ * feature.
* 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,7 +16,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = ADBServerlesTablespaceDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonTypeInfo(
@@ -28,13 +29,15 @@ public final class ADBServerlesTablespaceDetails extends TargetTypeTablespaceDet
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
/**
- * Name of tablespace at target to which the source database tablespace need to be remapped.
+ * Name of the tablespace on the target database to which the source database tablespace is
+ * to be remapped.
*/
@com.fasterxml.jackson.annotation.JsonProperty("remapTarget")
private RemapTarget remapTarget;
/**
- * Name of tablespace at target to which the source database tablespace need to be remapped.
+ * Name of the tablespace on the target database to which the source database tablespace is
+ * to be remapped.
*
* @param remapTarget the value to set
* @return this builder
@@ -81,7 +84,10 @@ public ADBServerlesTablespaceDetails(RemapTarget remapTarget) {
this.remapTarget = remapTarget;
}
- /** Name of tablespace at target to which the source database tablespace need to be remapped. */
+ /**
+ * Name of the tablespace on the target database to which the source database tablespace is to
+ * be remapped.
+ */
public enum RemapTarget implements com.oracle.bmc.http.internal.BmcEnum {
Data("DATA"),
@@ -126,12 +132,16 @@ public static RemapTarget create(String key) {
return UnknownEnumValue;
}
};
- /** Name of tablespace at target to which the source database tablespace need to be remapped. */
+ /**
+ * Name of the tablespace on the target database to which the source database tablespace is to
+ * be remapped.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("remapTarget")
private final RemapTarget remapTarget;
/**
- * Name of tablespace at target to which the source database tablespace need to be remapped.
+ * Name of the tablespace on the target database to which the source database tablespace is to
+ * be remapped.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java
index 35426af1a3f..2238a3fd845 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java
@@ -15,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminCredentials.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java
index e434bf6578c..d479977602d 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Pre-Migration advisor report details.
+ * Premigration Advisor report details.
* 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,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdvisorReport.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
@@ -56,12 +56,12 @@ public Builder reportLocationDetails(AdvisorReportLocationDetails reportLocation
this.__explicitlySet__.add("reportLocationDetails");
return this;
}
- /** Pre-Migration advisor result. */
+ /** Premigration Advisor result. */
@com.fasterxml.jackson.annotation.JsonProperty("result")
private AdvisorResults result;
/**
- * Pre-Migration advisor result.
+ * Premigration Advisor result.
*
* @param result the value to set
* @return this builder
@@ -190,12 +190,12 @@ public AdvisorReportLocationDetails getReportLocationDetails() {
return reportLocationDetails;
}
- /** Pre-Migration advisor result. */
+ /** Premigration Advisor result. */
@com.fasterxml.jackson.annotation.JsonProperty("result")
private final AdvisorResults result;
/**
- * Pre-Migration advisor result.
+ * Premigration Advisor result.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java
index 258d9566425..5b473ae0730 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java
@@ -5,8 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any.
- *
+ * Details to access Premigration Advisor report in the specified Object Storage bucket.
* 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
@@ -16,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = AdvisorReportBucketDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
@@ -34,12 +33,12 @@ public AdvisorReportBucketDetails(String bucketName, String namespace, String ob
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
- /** Name of the bucket containing the Pre-Migration Advisor report. */
+ /** Name of the bucket containing the Premigration Advisor report. */
@com.fasterxml.jackson.annotation.JsonProperty("bucketName")
private String bucketName;
/**
- * Name of the bucket containing the Pre-Migration Advisor report.
+ * Name of the bucket containing the Premigration Advisor report.
*
* @param bucketName the value to set
* @return this builder
@@ -64,12 +63,12 @@ public Builder namespace(String namespace) {
this.__explicitlySet__.add("namespace");
return this;
}
- /** Pre-Migration Advisor report object name. */
+ /** Premigration Advisor report object name. */
@com.fasterxml.jackson.annotation.JsonProperty("objectName")
private String objectName;
/**
- * Pre-Migration Advisor report object name.
+ * Premigration Advisor report object name.
*
* @param objectName the value to set
* @return this builder
@@ -117,12 +116,12 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
- /** Name of the bucket containing the Pre-Migration Advisor report. */
+ /** Name of the bucket containing the Premigration Advisor report. */
@com.fasterxml.jackson.annotation.JsonProperty("bucketName")
private final String bucketName;
/**
- * Name of the bucket containing the Pre-Migration Advisor report.
+ * Name of the bucket containing the Premigration Advisor report.
*
* @return the value
*/
@@ -143,12 +142,12 @@ public String getNamespace() {
return namespace;
}
- /** Pre-Migration Advisor report object name. */
+ /** Premigration Advisor report object name. */
@com.fasterxml.jackson.annotation.JsonProperty("objectName")
private final String objectName;
/**
- * Pre-Migration Advisor report object name.
+ * Premigration Advisor report object name.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java
index 9691b0aeda3..50512280e35 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Details to access Pre-Migration Advisor report.
+ * Details to access Premigration Advisor report.
* 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,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = AdvisorReportLocationDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
@@ -43,14 +43,14 @@ public Builder objectStorageDetails(AdvisorReportBucketDetails objectStorageDeta
return this;
}
/**
- * Path in the Source Registered Connection where the Pre-Migration advisor report can be
+ * File system path on the Source Database host where the Premigration Advisor report can be
* accessed.
*/
@com.fasterxml.jackson.annotation.JsonProperty("locationInSource")
private String locationInSource;
/**
- * Path in the Source Registered Connection where the Pre-Migration advisor report can be
+ * File system path on the Source Database host where the Premigration Advisor report can be
* accessed.
*
* @param locationInSource the value to set
@@ -104,14 +104,14 @@ public AdvisorReportBucketDetails getObjectStorageDetails() {
}
/**
- * Path in the Source Registered Connection where the Pre-Migration advisor report can be
+ * File system path on the Source Database host where the Premigration Advisor report can be
* accessed.
*/
@com.fasterxml.jackson.annotation.JsonProperty("locationInSource")
private final String locationInSource;
/**
- * Path in the Source Registered Connection where the Pre-Migration advisor report can be
+ * File system path on the Source Database host where the Premigration Advisor report can be
* accessed.
*
* @return the value
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java
index 642133e5887..67b84c7a4c3 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/** Pre-Migration advisor result. */
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
public enum AdvisorResults implements com.oracle.bmc.http.internal.BmcEnum {
Fatal("FATAL"),
Blocker("BLOCKER"),
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java
deleted file mode 100644
index dd72880efca..00000000000
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java
+++ /dev/null
@@ -1,632 +0,0 @@
-/**
- * Copyright (c) 2016, 2024, 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.databasemigration.model;
-
-/**
- * ODMS Agent Details
- * 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: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Agent.Builder.class)
-@com.fasterxml.jackson.annotation.JsonFilter(
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class Agent extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
- @Deprecated
- @java.beans.ConstructorProperties({
- "id",
- "displayName",
- "compartmentId",
- "streamId",
- "publicKey",
- "version",
- "timeCreated",
- "timeUpdated",
- "lifecycleState",
- "lifecycleDetails",
- "freeformTags",
- "definedTags",
- "systemTags"
- })
- public Agent(
- String id,
- String displayName,
- String compartmentId,
- String streamId,
- String publicKey,
- String version,
- java.util.Date timeCreated,
- java.util.Date timeUpdated,
- LifecycleStates lifecycleState,
- String lifecycleDetails,
- java.util.Map freeformTags,
- java.util.Map> definedTags,
- java.util.Map> systemTags) {
- super();
- this.id = id;
- this.displayName = displayName;
- this.compartmentId = compartmentId;
- this.streamId = streamId;
- this.publicKey = publicKey;
- this.version = version;
- this.timeCreated = timeCreated;
- this.timeUpdated = timeUpdated;
- this.lifecycleState = lifecycleState;
- this.lifecycleDetails = lifecycleDetails;
- this.freeformTags = freeformTags;
- this.definedTags = definedTags;
- this.systemTags = systemTags;
- }
-
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** The OCID of the resource */
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
-
- /**
- * The OCID of the resource
- *
- * @param id the value to set
- * @return this builder
- */
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
- return this;
- }
- /** ODMS Agent name */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private String displayName;
-
- /**
- * ODMS Agent name
- *
- * @param displayName the value to set
- * @return this builder
- */
- public Builder displayName(String displayName) {
- this.displayName = displayName;
- this.__explicitlySet__.add("displayName");
- return this;
- }
- /** OCID of the compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private String compartmentId;
-
- /**
- * OCID of the compartment
- *
- * @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 Stream */
- @com.fasterxml.jackson.annotation.JsonProperty("streamId")
- private String streamId;
-
- /**
- * The OCID of the Stream
- *
- * @param streamId the value to set
- * @return this builder
- */
- public Builder streamId(String streamId) {
- this.streamId = streamId;
- this.__explicitlySet__.add("streamId");
- return this;
- }
- /** ODMS Agent public key. */
- @com.fasterxml.jackson.annotation.JsonProperty("publicKey")
- private String publicKey;
-
- /**
- * ODMS Agent public key.
- *
- * @param publicKey the value to set
- * @return this builder
- */
- public Builder publicKey(String publicKey) {
- this.publicKey = publicKey;
- this.__explicitlySet__.add("publicKey");
- return this;
- }
- /** ODMS Agent version */
- @com.fasterxml.jackson.annotation.JsonProperty("version")
- private String version;
-
- /**
- * ODMS Agent version
- *
- * @param version the value to set
- * @return this builder
- */
- public Builder version(String version) {
- this.version = version;
- this.__explicitlySet__.add("version");
- return this;
- }
- /** The time the Agent was created. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
-
- /**
- * The time the Agent was created. An RFC3339 formatted datetime string.
- *
- * @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;
- }
- /** The time of the last Agent details update. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
- private java.util.Date timeUpdated;
-
- /**
- * The time of the last Agent details update. An RFC3339 formatted datetime string.
- *
- * @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;
- }
- /** The current state of the ODMS on-premises Agent. */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleStates lifecycleState;
-
- /**
- * The current state of the ODMS on-premises Agent.
- *
- * @param lifecycleState the value to set
- * @return this builder
- */
- public Builder lifecycleState(LifecycleStates lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
- return this;
- }
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- *
- * @param lifecycleDetails the value to set
- * @return this builder
- */
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- 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"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists
- * for cross-compatibility only. Example: {@code {"bar-key": "value"}}
- *
- * @param freeformTags the value to set
- * @return this builder
- */
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
- return this;
- }
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- *
- * @param definedTags the value to set
- * @return this builder
- */
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
- return this;
- }
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private java.util.Map> systemTags;
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- *
- * @param systemTags the value to set
- * @return this builder
- */
- public Builder systemTags(java.util.Map> systemTags) {
- this.systemTags = systemTags;
- this.__explicitlySet__.add("systemTags");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- private final java.util.Set __explicitlySet__ = new java.util.HashSet();
-
- public Agent build() {
- Agent model =
- new Agent(
- this.id,
- this.displayName,
- this.compartmentId,
- this.streamId,
- this.publicKey,
- this.version,
- this.timeCreated,
- this.timeUpdated,
- this.lifecycleState,
- this.lifecycleDetails,
- this.freeformTags,
- this.definedTags,
- this.systemTags);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(Agent model) {
- if (model.wasPropertyExplicitlySet("id")) {
- this.id(model.getId());
- }
- if (model.wasPropertyExplicitlySet("displayName")) {
- this.displayName(model.getDisplayName());
- }
- if (model.wasPropertyExplicitlySet("compartmentId")) {
- this.compartmentId(model.getCompartmentId());
- }
- if (model.wasPropertyExplicitlySet("streamId")) {
- this.streamId(model.getStreamId());
- }
- if (model.wasPropertyExplicitlySet("publicKey")) {
- this.publicKey(model.getPublicKey());
- }
- if (model.wasPropertyExplicitlySet("version")) {
- this.version(model.getVersion());
- }
- if (model.wasPropertyExplicitlySet("timeCreated")) {
- this.timeCreated(model.getTimeCreated());
- }
- if (model.wasPropertyExplicitlySet("timeUpdated")) {
- this.timeUpdated(model.getTimeUpdated());
- }
- if (model.wasPropertyExplicitlySet("lifecycleState")) {
- this.lifecycleState(model.getLifecycleState());
- }
- if (model.wasPropertyExplicitlySet("lifecycleDetails")) {
- this.lifecycleDetails(model.getLifecycleDetails());
- }
- if (model.wasPropertyExplicitlySet("freeformTags")) {
- this.freeformTags(model.getFreeformTags());
- }
- if (model.wasPropertyExplicitlySet("definedTags")) {
- this.definedTags(model.getDefinedTags());
- }
- if (model.wasPropertyExplicitlySet("systemTags")) {
- this.systemTags(model.getSystemTags());
- }
- 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 resource */
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private final String id;
-
- /**
- * The OCID of the resource
- *
- * @return the value
- */
- public String getId() {
- return id;
- }
-
- /** ODMS Agent name */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private final String displayName;
-
- /**
- * ODMS Agent name
- *
- * @return the value
- */
- public String getDisplayName() {
- return displayName;
- }
-
- /** OCID of the compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private final String compartmentId;
-
- /**
- * OCID of the compartment
- *
- * @return the value
- */
- public String getCompartmentId() {
- return compartmentId;
- }
-
- /** The OCID of the Stream */
- @com.fasterxml.jackson.annotation.JsonProperty("streamId")
- private final String streamId;
-
- /**
- * The OCID of the Stream
- *
- * @return the value
- */
- public String getStreamId() {
- return streamId;
- }
-
- /** ODMS Agent public key. */
- @com.fasterxml.jackson.annotation.JsonProperty("publicKey")
- private final String publicKey;
-
- /**
- * ODMS Agent public key.
- *
- * @return the value
- */
- public String getPublicKey() {
- return publicKey;
- }
-
- /** ODMS Agent version */
- @com.fasterxml.jackson.annotation.JsonProperty("version")
- private final String version;
-
- /**
- * ODMS Agent version
- *
- * @return the value
- */
- public String getVersion() {
- return version;
- }
-
- /** The time the Agent was created. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private final java.util.Date timeCreated;
-
- /**
- * The time the Agent was created. An RFC3339 formatted datetime string.
- *
- * @return the value
- */
- public java.util.Date getTimeCreated() {
- return timeCreated;
- }
-
- /** The time of the last Agent details update. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
- private final java.util.Date timeUpdated;
-
- /**
- * The time of the last Agent details update. An RFC3339 formatted datetime string.
- *
- * @return the value
- */
- public java.util.Date getTimeUpdated() {
- return timeUpdated;
- }
-
- /** The current state of the ODMS on-premises Agent. */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private final LifecycleStates lifecycleState;
-
- /**
- * The current state of the ODMS on-premises Agent.
- *
- * @return the value
- */
- public LifecycleStates getLifecycleState() {
- return lifecycleState;
- }
-
- /**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private final String lifecycleDetails;
-
- /**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
- *
- * @return the value
- */
- public String getLifecycleDetails() {
- return lifecycleDetails;
- }
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private final java.util.Map freeformTags;
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
- *
- * @return the value
- */
- public java.util.Map getFreeformTags() {
- return freeformTags;
- }
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private final java.util.Map> definedTags;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
- *
- * @return the value
- */
- public java.util.Map> getDefinedTags() {
- return definedTags;
- }
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private final java.util.Map> systemTags;
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- *
- * @return the value
- */
- public java.util.Map> getSystemTags() {
- return systemTags;
- }
-
- @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("Agent(");
- sb.append("super=").append(super.toString());
- sb.append("id=").append(String.valueOf(this.id));
- sb.append(", displayName=").append(String.valueOf(this.displayName));
- sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
- sb.append(", streamId=").append(String.valueOf(this.streamId));
- sb.append(", publicKey=").append(String.valueOf(this.publicKey));
- sb.append(", version=").append(String.valueOf(this.version));
- sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
- sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated));
- sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState));
- sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails));
- 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(")");
- return sb.toString();
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (!(o instanceof Agent)) {
- return false;
- }
-
- Agent other = (Agent) o;
- return java.util.Objects.equals(this.id, other.id)
- && java.util.Objects.equals(this.displayName, other.displayName)
- && java.util.Objects.equals(this.compartmentId, other.compartmentId)
- && java.util.Objects.equals(this.streamId, other.streamId)
- && java.util.Objects.equals(this.publicKey, other.publicKey)
- && java.util.Objects.equals(this.version, other.version)
- && java.util.Objects.equals(this.timeCreated, other.timeCreated)
- && java.util.Objects.equals(this.timeUpdated, other.timeUpdated)
- && java.util.Objects.equals(this.lifecycleState, other.lifecycleState)
- && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails)
- && java.util.Objects.equals(this.freeformTags, other.freeformTags)
- && java.util.Objects.equals(this.definedTags, other.definedTags)
- && java.util.Objects.equals(this.systemTags, other.systemTags)
- && 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.displayName == null ? 43 : this.displayName.hashCode());
- result =
- (result * PRIME)
- + (this.compartmentId == null ? 43 : this.compartmentId.hashCode());
- result = (result * PRIME) + (this.streamId == null ? 43 : this.streamId.hashCode());
- result = (result * PRIME) + (this.publicKey == null ? 43 : this.publicKey.hashCode());
- result = (result * PRIME) + (this.version == null ? 43 : this.version.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
- result =
- (result * PRIME)
- + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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) + super.hashCode();
- return result;
- }
-}
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java
deleted file mode 100644
index 022dd0ab20b..00000000000
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/**
- * Copyright (c) 2016, 2024, 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.databasemigration.model;
-
-/**
- * Results of an ODMS Agent Image search. Contains AgentImageSummary 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: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
- builder = AgentImageCollection.Builder.class)
-@com.fasterxml.jackson.annotation.JsonFilter(
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class AgentImageCollection
- extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
- @Deprecated
- @java.beans.ConstructorProperties({"items"})
- public AgentImageCollection(java.util.List items) {
- super();
- this.items = items;
- }
-
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** Items in collection. */
- @com.fasterxml.jackson.annotation.JsonProperty("items")
- private java.util.List items;
-
- /**
- * Items in collection.
- *
- * @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 AgentImageCollection build() {
- AgentImageCollection model = new AgentImageCollection(this.items);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(AgentImageCollection 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);
- }
-
- /** Items in collection. */
- @com.fasterxml.jackson.annotation.JsonProperty("items")
- private final java.util.List items;
-
- /**
- * Items in collection.
- *
- * @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("AgentImageCollection(");
- 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 AgentImageCollection)) {
- return false;
- }
-
- AgentImageCollection other = (AgentImageCollection) 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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java
deleted file mode 100644
index e86cc3a4cba..00000000000
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java
+++ /dev/null
@@ -1,594 +0,0 @@
-/**
- * Copyright (c) 2016, 2024, 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.databasemigration.model;
-
-/**
- * ODMS Agent Details
- * 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: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AgentSummary.Builder.class)
-@com.fasterxml.jackson.annotation.JsonFilter(
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class AgentSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
- @Deprecated
- @java.beans.ConstructorProperties({
- "id",
- "displayName",
- "compartmentId",
- "streamId",
- "version",
- "timeCreated",
- "timeUpdated",
- "lifecycleState",
- "lifecycleDetails",
- "freeformTags",
- "definedTags",
- "systemTags"
- })
- public AgentSummary(
- String id,
- String displayName,
- String compartmentId,
- String streamId,
- String version,
- java.util.Date timeCreated,
- java.util.Date timeUpdated,
- LifecycleStates lifecycleState,
- String lifecycleDetails,
- java.util.Map freeformTags,
- java.util.Map> definedTags,
- java.util.Map> systemTags) {
- super();
- this.id = id;
- this.displayName = displayName;
- this.compartmentId = compartmentId;
- this.streamId = streamId;
- this.version = version;
- this.timeCreated = timeCreated;
- this.timeUpdated = timeUpdated;
- this.lifecycleState = lifecycleState;
- this.lifecycleDetails = lifecycleDetails;
- this.freeformTags = freeformTags;
- this.definedTags = definedTags;
- this.systemTags = systemTags;
- }
-
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** The OCID of the resource */
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
-
- /**
- * The OCID of the resource
- *
- * @param id the value to set
- * @return this builder
- */
- public Builder id(String id) {
- this.id = id;
- this.__explicitlySet__.add("id");
- return this;
- }
- /** ODMS Agent name */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private String displayName;
-
- /**
- * ODMS Agent name
- *
- * @param displayName the value to set
- * @return this builder
- */
- public Builder displayName(String displayName) {
- this.displayName = displayName;
- this.__explicitlySet__.add("displayName");
- return this;
- }
- /** OCID of the compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private String compartmentId;
-
- /**
- * OCID of the compartment
- *
- * @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 Stream */
- @com.fasterxml.jackson.annotation.JsonProperty("streamId")
- private String streamId;
-
- /**
- * The OCID of the Stream
- *
- * @param streamId the value to set
- * @return this builder
- */
- public Builder streamId(String streamId) {
- this.streamId = streamId;
- this.__explicitlySet__.add("streamId");
- return this;
- }
- /** ODMS Agent version */
- @com.fasterxml.jackson.annotation.JsonProperty("version")
- private String version;
-
- /**
- * ODMS Agent version
- *
- * @param version the value to set
- * @return this builder
- */
- public Builder version(String version) {
- this.version = version;
- this.__explicitlySet__.add("version");
- return this;
- }
- /** The time the Agent was created. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
-
- /**
- * The time the Agent was created. An RFC3339 formatted datetime string.
- *
- * @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;
- }
- /** The time of the last Agent details update. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
- private java.util.Date timeUpdated;
-
- /**
- * The time of the last Agent details update. An RFC3339 formatted datetime string.
- *
- * @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;
- }
- /** The current state of the ODMS on-premises Agent. */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleStates lifecycleState;
-
- /**
- * The current state of the ODMS on-premises Agent.
- *
- * @param lifecycleState the value to set
- * @return this builder
- */
- public Builder lifecycleState(LifecycleStates lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
- return this;
- }
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- *
- * @param lifecycleDetails the value to set
- * @return this builder
- */
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- 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"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists
- * for cross-compatibility only. Example: {@code {"bar-key": "value"}}
- *
- * @param freeformTags the value to set
- * @return this builder
- */
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
- return this;
- }
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- *
- * @param definedTags the value to set
- * @return this builder
- */
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
- return this;
- }
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private java.util.Map> systemTags;
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- *
- * @param systemTags the value to set
- * @return this builder
- */
- public Builder systemTags(java.util.Map> systemTags) {
- this.systemTags = systemTags;
- this.__explicitlySet__.add("systemTags");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- private final java.util.Set __explicitlySet__ = new java.util.HashSet();
-
- public AgentSummary build() {
- AgentSummary model =
- new AgentSummary(
- this.id,
- this.displayName,
- this.compartmentId,
- this.streamId,
- this.version,
- this.timeCreated,
- this.timeUpdated,
- this.lifecycleState,
- this.lifecycleDetails,
- this.freeformTags,
- this.definedTags,
- this.systemTags);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(AgentSummary model) {
- if (model.wasPropertyExplicitlySet("id")) {
- this.id(model.getId());
- }
- if (model.wasPropertyExplicitlySet("displayName")) {
- this.displayName(model.getDisplayName());
- }
- if (model.wasPropertyExplicitlySet("compartmentId")) {
- this.compartmentId(model.getCompartmentId());
- }
- if (model.wasPropertyExplicitlySet("streamId")) {
- this.streamId(model.getStreamId());
- }
- if (model.wasPropertyExplicitlySet("version")) {
- this.version(model.getVersion());
- }
- if (model.wasPropertyExplicitlySet("timeCreated")) {
- this.timeCreated(model.getTimeCreated());
- }
- if (model.wasPropertyExplicitlySet("timeUpdated")) {
- this.timeUpdated(model.getTimeUpdated());
- }
- if (model.wasPropertyExplicitlySet("lifecycleState")) {
- this.lifecycleState(model.getLifecycleState());
- }
- if (model.wasPropertyExplicitlySet("lifecycleDetails")) {
- this.lifecycleDetails(model.getLifecycleDetails());
- }
- if (model.wasPropertyExplicitlySet("freeformTags")) {
- this.freeformTags(model.getFreeformTags());
- }
- if (model.wasPropertyExplicitlySet("definedTags")) {
- this.definedTags(model.getDefinedTags());
- }
- if (model.wasPropertyExplicitlySet("systemTags")) {
- this.systemTags(model.getSystemTags());
- }
- 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 resource */
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private final String id;
-
- /**
- * The OCID of the resource
- *
- * @return the value
- */
- public String getId() {
- return id;
- }
-
- /** ODMS Agent name */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private final String displayName;
-
- /**
- * ODMS Agent name
- *
- * @return the value
- */
- public String getDisplayName() {
- return displayName;
- }
-
- /** OCID of the compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private final String compartmentId;
-
- /**
- * OCID of the compartment
- *
- * @return the value
- */
- public String getCompartmentId() {
- return compartmentId;
- }
-
- /** The OCID of the Stream */
- @com.fasterxml.jackson.annotation.JsonProperty("streamId")
- private final String streamId;
-
- /**
- * The OCID of the Stream
- *
- * @return the value
- */
- public String getStreamId() {
- return streamId;
- }
-
- /** ODMS Agent version */
- @com.fasterxml.jackson.annotation.JsonProperty("version")
- private final String version;
-
- /**
- * ODMS Agent version
- *
- * @return the value
- */
- public String getVersion() {
- return version;
- }
-
- /** The time the Agent was created. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private final java.util.Date timeCreated;
-
- /**
- * The time the Agent was created. An RFC3339 formatted datetime string.
- *
- * @return the value
- */
- public java.util.Date getTimeCreated() {
- return timeCreated;
- }
-
- /** The time of the last Agent details update. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
- private final java.util.Date timeUpdated;
-
- /**
- * The time of the last Agent details update. An RFC3339 formatted datetime string.
- *
- * @return the value
- */
- public java.util.Date getTimeUpdated() {
- return timeUpdated;
- }
-
- /** The current state of the ODMS on-premises Agent. */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private final LifecycleStates lifecycleState;
-
- /**
- * The current state of the ODMS on-premises Agent.
- *
- * @return the value
- */
- public LifecycleStates getLifecycleState() {
- return lifecycleState;
- }
-
- /**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private final String lifecycleDetails;
-
- /**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
- *
- * @return the value
- */
- public String getLifecycleDetails() {
- return lifecycleDetails;
- }
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private final java.util.Map freeformTags;
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
- *
- * @return the value
- */
- public java.util.Map getFreeformTags() {
- return freeformTags;
- }
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private final java.util.Map> definedTags;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
- *
- * @return the value
- */
- public java.util.Map> getDefinedTags() {
- return definedTags;
- }
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private final java.util.Map> systemTags;
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- *
- * @return the value
- */
- public java.util.Map> getSystemTags() {
- return systemTags;
- }
-
- @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("AgentSummary(");
- sb.append("super=").append(super.toString());
- sb.append("id=").append(String.valueOf(this.id));
- sb.append(", displayName=").append(String.valueOf(this.displayName));
- sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
- sb.append(", streamId=").append(String.valueOf(this.streamId));
- sb.append(", version=").append(String.valueOf(this.version));
- sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
- sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated));
- sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState));
- sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails));
- 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(")");
- return sb.toString();
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (!(o instanceof AgentSummary)) {
- return false;
- }
-
- AgentSummary other = (AgentSummary) o;
- return java.util.Objects.equals(this.id, other.id)
- && java.util.Objects.equals(this.displayName, other.displayName)
- && java.util.Objects.equals(this.compartmentId, other.compartmentId)
- && java.util.Objects.equals(this.streamId, other.streamId)
- && java.util.Objects.equals(this.version, other.version)
- && java.util.Objects.equals(this.timeCreated, other.timeCreated)
- && java.util.Objects.equals(this.timeUpdated, other.timeUpdated)
- && java.util.Objects.equals(this.lifecycleState, other.lifecycleState)
- && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails)
- && java.util.Objects.equals(this.freeformTags, other.freeformTags)
- && java.util.Objects.equals(this.definedTags, other.definedTags)
- && java.util.Objects.equals(this.systemTags, other.systemTags)
- && 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.displayName == null ? 43 : this.displayName.hashCode());
- result =
- (result * PRIME)
- + (this.compartmentId == null ? 43 : this.compartmentId.hashCode());
- result = (result * PRIME) + (this.streamId == null ? 43 : this.streamId.hashCode());
- result = (result * PRIME) + (this.version == null ? 43 : this.version.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.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
- result =
- (result * PRIME)
- + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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) + super.hashCode();
- return result;
- }
-}
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java
deleted file mode 100644
index 0a87eb08c25..00000000000
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java
+++ /dev/null
@@ -1,180 +0,0 @@
-/**
- * Copyright (c) 2016, 2024, 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.databasemigration.model;
-
-/**
- * AWS S3 bucket details used for source Connection resources with RDS_ORACLE type. Only supported
- * for source Connection resources with RDS_ORACLE 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: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AwsS3Details.Builder.class)
-@com.fasterxml.jackson.annotation.JsonFilter(
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class AwsS3Details extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
- @Deprecated
- @java.beans.ConstructorProperties({"name", "region"})
- public AwsS3Details(String name, String region) {
- super();
- this.name = name;
- this.region = region;
- }
-
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** S3 bucket name. */
- @com.fasterxml.jackson.annotation.JsonProperty("name")
- private String name;
-
- /**
- * S3 bucket name.
- *
- * @param name the value to set
- * @return this builder
- */
- public Builder name(String name) {
- this.name = name;
- this.__explicitlySet__.add("name");
- return this;
- }
- /**
- * AWS region code where the S3 bucket is located. Region code should match the documented
- * available regions:
- * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
- */
- @com.fasterxml.jackson.annotation.JsonProperty("region")
- private String region;
-
- /**
- * AWS region code where the S3 bucket is located. Region code should match the documented
- * available regions:
- * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
- *
- * @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 AwsS3Details build() {
- AwsS3Details model = new AwsS3Details(this.name, this.region);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(AwsS3Details model) {
- if (model.wasPropertyExplicitlySet("name")) {
- this.name(model.getName());
- }
- 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);
- }
-
- /** S3 bucket name. */
- @com.fasterxml.jackson.annotation.JsonProperty("name")
- private final String name;
-
- /**
- * S3 bucket name.
- *
- * @return the value
- */
- public String getName() {
- return name;
- }
-
- /**
- * AWS region code where the S3 bucket is located. Region code should match the documented
- * available regions:
- * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
- */
- @com.fasterxml.jackson.annotation.JsonProperty("region")
- private final String region;
-
- /**
- * AWS region code where the S3 bucket is located. Region code should match the documented
- * available regions:
- * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
- *
- * @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("AwsS3Details(");
- sb.append("super=").append(super.toString());
- sb.append("name=").append(String.valueOf(this.name));
- 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 AwsS3Details)) {
- return false;
- }
-
- AwsS3Details other = (AwsS3Details) o;
- return java.util.Objects.equals(this.name, other.name)
- && 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.name == null ? 43 : this.name.hashCode());
- result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode());
- result = (result * PRIME) + super.hashCode();
- return result;
- }
-}
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java
index abe35d192c4..cca59243f38 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Change Database Connection compartment details.
+ * Details for changing the compartment for a Connection.
* 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,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = ChangeConnectionCompartmentDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
@@ -31,12 +31,12 @@ public ChangeConnectionCompartmentDetails(String compartmentId) {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
- /** The OCID of the compartment to move the resource to. */
+ /** The OCID of the compartment. */
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
/**
- * The OCID of the compartment to move the resource to.
+ * The OCID of the compartment.
*
* @param compartmentId the value to set
* @return this builder
@@ -77,12 +77,12 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
- /** The OCID of the compartment to move the resource to. */
+ /** The OCID of the compartment. */
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private final String compartmentId;
/**
- * The OCID of the compartment to move the resource to.
+ * The OCID of the compartment.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java
index 17003873428..9d2814092f6 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Change Migration compartment details.
+ * Details pertaining to change of a migration's compartment.
* 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,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = ChangeMigrationCompartmentDetails.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
@@ -31,12 +31,12 @@ public ChangeMigrationCompartmentDetails(String compartmentId) {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
- /** The OCID of the compartment to move the resource to. */
+ /** The OCID of the resource being referenced. */
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
/**
- * The OCID of the compartment to move the resource to.
+ * The OCID of the resource being referenced.
*
* @param compartmentId the value to set
* @return this builder
@@ -77,12 +77,12 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
- /** The OCID of the compartment to move the resource to. */
+ /** The OCID of the resource being referenced. */
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private final String compartmentId;
/**
- * The OCID of the compartment to move the resource to.
+ * The OCID of the resource being referenced.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java
index 50b0cccff5f..e1f96333534 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Details that will override an existing Migration configuration that will be cloned.
+ * Customizable details when performing cloning of a migration.
* 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,319 +15,59 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
- builder = CloneMigrationDetails.Builder.class)
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "databaseCombination",
+ defaultImpl = CloneMigrationDetails.class)
+@com.fasterxml.jackson.annotation.JsonSubTypes({
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = OracleCloneMigrationDetails.class,
+ name = "ORACLE"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = MySqlCloneMigrationDetails.class,
+ name = "MYSQL")
+})
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class CloneMigrationDetails
+public class CloneMigrationDetails
extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"displayName",
"compartmentId",
- "agentId",
"sourceDatabaseConnectionId",
- "sourceContainerDatabaseConnectionId",
"targetDatabaseConnectionId",
- "excludeObjects",
- "includeObjects",
- "vaultDetails",
"freeformTags",
"definedTags"
})
- public CloneMigrationDetails(
+ protected CloneMigrationDetails(
String displayName,
String compartmentId,
- String agentId,
String sourceDatabaseConnectionId,
- String sourceContainerDatabaseConnectionId,
String targetDatabaseConnectionId,
- java.util.List excludeObjects,
- java.util.List includeObjects,
- CreateVaultDetails vaultDetails,
java.util.Map freeformTags,
java.util.Map> definedTags) {
super();
this.displayName = displayName;
this.compartmentId = compartmentId;
- this.agentId = agentId;
this.sourceDatabaseConnectionId = sourceDatabaseConnectionId;
- this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId;
this.targetDatabaseConnectionId = targetDatabaseConnectionId;
- this.excludeObjects = excludeObjects;
- this.includeObjects = includeObjects;
- this.vaultDetails = vaultDetails;
this.freeformTags = freeformTags;
this.definedTags = definedTags;
}
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** Migration Display Name */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private String displayName;
-
- /**
- * Migration Display Name
- *
- * @param displayName the value to set
- * @return this builder
- */
- public Builder displayName(String displayName) {
- this.displayName = displayName;
- this.__explicitlySet__.add("displayName");
- return this;
- }
- /** OCID of the compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private String compartmentId;
-
- /**
- * OCID of the compartment
- *
- * @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 registered on-premises ODMS Agent. Only valid for Offline Logical
- * Migrations.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("agentId")
- private String agentId;
-
- /**
- * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Logical
- * Migrations.
- *
- * @param agentId the value to set
- * @return this builder
- */
- public Builder agentId(String agentId) {
- this.agentId = agentId;
- this.__explicitlySet__.add("agentId");
- return this;
- }
- /** The OCID of the Source Database Connection. */
- @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId")
- private String sourceDatabaseConnectionId;
-
- /**
- * The OCID of the Source Database Connection.
- *
- * @param sourceDatabaseConnectionId the value to set
- * @return this builder
- */
- public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) {
- this.sourceDatabaseConnectionId = sourceDatabaseConnectionId;
- this.__explicitlySet__.add("sourceDatabaseConnectionId");
- return this;
- }
- /**
- * The OCID of the Source Container Database Connection. Only used for Online migrations.
- * Only Connections of type Non-Autonomous can be used as source container databases.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId")
- private String sourceContainerDatabaseConnectionId;
-
- /**
- * The OCID of the Source Container Database Connection. Only used for Online migrations.
- * Only Connections of type Non-Autonomous can be used as source container databases.
- *
- * @param sourceContainerDatabaseConnectionId the value to set
- * @return this builder
- */
- public Builder sourceContainerDatabaseConnectionId(
- String sourceContainerDatabaseConnectionId) {
- this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId;
- this.__explicitlySet__.add("sourceContainerDatabaseConnectionId");
- return this;
- }
- /** The OCID of the Target Database Connection. */
- @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId")
- private String targetDatabaseConnectionId;
-
- /**
- * The OCID of the Target Database Connection.
- *
- * @param targetDatabaseConnectionId the value to set
- * @return this builder
- */
- public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) {
- this.targetDatabaseConnectionId = targetDatabaseConnectionId;
- this.__explicitlySet__.add("targetDatabaseConnectionId");
- return this;
- }
- /**
- * Database objects to exclude from migration, cannot be specified alongside
- * 'includeObjects'
- */
- @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects")
- private java.util.List excludeObjects;
-
- /**
- * Database objects to exclude from migration, cannot be specified alongside
- * 'includeObjects'
- *
- * @param excludeObjects the value to set
- * @return this builder
- */
- public Builder excludeObjects(java.util.List excludeObjects) {
- this.excludeObjects = excludeObjects;
- this.__explicitlySet__.add("excludeObjects");
- return this;
- }
- /**
- * Database objects to include from migration, cannot be specified alongside
- * 'excludeObjects'
- */
- @com.fasterxml.jackson.annotation.JsonProperty("includeObjects")
- private java.util.List includeObjects;
-
- /**
- * Database objects to include from migration, cannot be specified alongside
- * 'excludeObjects'
- *
- * @param includeObjects the value to set
- * @return this builder
- */
- public Builder includeObjects(java.util.List includeObjects) {
- this.includeObjects = includeObjects;
- this.__explicitlySet__.add("includeObjects");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails")
- private CreateVaultDetails vaultDetails;
-
- public Builder vaultDetails(CreateVaultDetails vaultDetails) {
- this.vaultDetails = vaultDetails;
- this.__explicitlySet__.add("vaultDetails");
- 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"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists
- * for cross-compatibility only. Example: {@code {"bar-key": "value"}}
- *
- * @param freeformTags the value to set
- * @return this builder
- */
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
- return this;
- }
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- *
- * @param definedTags the value to set
- * @return this builder
- */
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- private final java.util.Set __explicitlySet__ = new java.util.HashSet();
-
- public CloneMigrationDetails build() {
- CloneMigrationDetails model =
- new CloneMigrationDetails(
- this.displayName,
- this.compartmentId,
- this.agentId,
- this.sourceDatabaseConnectionId,
- this.sourceContainerDatabaseConnectionId,
- this.targetDatabaseConnectionId,
- this.excludeObjects,
- this.includeObjects,
- this.vaultDetails,
- this.freeformTags,
- this.definedTags);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(CloneMigrationDetails model) {
- if (model.wasPropertyExplicitlySet("displayName")) {
- this.displayName(model.getDisplayName());
- }
- if (model.wasPropertyExplicitlySet("compartmentId")) {
- this.compartmentId(model.getCompartmentId());
- }
- if (model.wasPropertyExplicitlySet("agentId")) {
- this.agentId(model.getAgentId());
- }
- if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) {
- this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId());
- }
- if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) {
- this.sourceContainerDatabaseConnectionId(
- model.getSourceContainerDatabaseConnectionId());
- }
- if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) {
- this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId());
- }
- if (model.wasPropertyExplicitlySet("excludeObjects")) {
- this.excludeObjects(model.getExcludeObjects());
- }
- if (model.wasPropertyExplicitlySet("includeObjects")) {
- this.includeObjects(model.getIncludeObjects());
- }
- if (model.wasPropertyExplicitlySet("vaultDetails")) {
- this.vaultDetails(model.getVaultDetails());
- }
- if (model.wasPropertyExplicitlySet("freeformTags")) {
- this.freeformTags(model.getFreeformTags());
- }
- if (model.wasPropertyExplicitlySet("definedTags")) {
- this.definedTags(model.getDefinedTags());
- }
- return this;
- }
- }
-
- /** Create a new builder. */
- public static Builder builder() {
- return new Builder();
- }
-
- public Builder toBuilder() {
- return new Builder().copy(this);
- }
-
- /** Migration Display Name */
+ /**
+ * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("displayName")
private final String displayName;
/**
- * Migration Display Name
+ * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
*
* @return the value
*/
@@ -335,12 +75,12 @@ public String getDisplayName() {
return displayName;
}
- /** OCID of the compartment */
+ /** The OCID of the resource being referenced. */
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private final String compartmentId;
/**
- * OCID of the compartment
+ * The OCID of the resource being referenced.
*
* @return the value
*/
@@ -348,27 +88,12 @@ public String getCompartmentId() {
return compartmentId;
}
- /**
- * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Logical Migrations.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("agentId")
- private final String agentId;
-
- /**
- * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Logical Migrations.
- *
- * @return the value
- */
- public String getAgentId() {
- return agentId;
- }
-
- /** The OCID of the Source Database Connection. */
+ /** The OCID of the resource being referenced. */
@com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId")
private final String sourceDatabaseConnectionId;
/**
- * The OCID of the Source Database Connection.
+ * The OCID of the resource being referenced.
*
* @return the value
*/
@@ -376,29 +101,12 @@ public String getSourceDatabaseConnectionId() {
return sourceDatabaseConnectionId;
}
- /**
- * The OCID of the Source Container Database Connection. Only used for Online migrations. Only
- * Connections of type Non-Autonomous can be used as source container databases.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId")
- private final String sourceContainerDatabaseConnectionId;
-
- /**
- * The OCID of the Source Container Database Connection. Only used for Online migrations. Only
- * Connections of type Non-Autonomous can be used as source container databases.
- *
- * @return the value
- */
- public String getSourceContainerDatabaseConnectionId() {
- return sourceContainerDatabaseConnectionId;
- }
-
- /** The OCID of the Target Database Connection. */
+ /** The OCID of the resource being referenced. */
@com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId")
private final String targetDatabaseConnectionId;
/**
- * The OCID of the Target Database Connection.
+ * The OCID of the resource being referenced.
*
* @return the value
*/
@@ -407,52 +115,17 @@ public String getTargetDatabaseConnectionId() {
}
/**
- * Database objects to exclude from migration, cannot be specified alongside 'includeObjects'
- */
- @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects")
- private final java.util.List excludeObjects;
-
- /**
- * Database objects to exclude from migration, cannot be specified alongside 'includeObjects'
- *
- * @return the value
- */
- public java.util.List getExcludeObjects() {
- return excludeObjects;
- }
-
- /**
- * Database objects to include from migration, cannot be specified alongside 'excludeObjects'
- */
- @com.fasterxml.jackson.annotation.JsonProperty("includeObjects")
- private final java.util.List includeObjects;
-
- /**
- * Database objects to include from migration, cannot be specified alongside 'excludeObjects'
- *
- * @return the value
- */
- public java.util.List getIncludeObjects() {
- return includeObjects;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails")
- private final CreateVaultDetails vaultDetails;
-
- public CreateVaultDetails getVaultDetails() {
- return vaultDetails;
- }
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
+ * 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 Tags. Example: {"Department":
+ * "Finance"}
*/
@com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
private final java.util.Map freeformTags;
/**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
+ * 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 Tags. Example: {"Department":
+ * "Finance"}
*
* @return the value
*/
@@ -494,16 +167,10 @@ public String toString(boolean includeByteArrayContents) {
sb.append("super=").append(super.toString());
sb.append("displayName=").append(String.valueOf(this.displayName));
sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
- sb.append(", agentId=").append(String.valueOf(this.agentId));
sb.append(", sourceDatabaseConnectionId=")
.append(String.valueOf(this.sourceDatabaseConnectionId));
- sb.append(", sourceContainerDatabaseConnectionId=")
- .append(String.valueOf(this.sourceContainerDatabaseConnectionId));
sb.append(", targetDatabaseConnectionId=")
.append(String.valueOf(this.targetDatabaseConnectionId));
- sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects));
- sb.append(", includeObjects=").append(String.valueOf(this.includeObjects));
- sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails));
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
sb.append(")");
@@ -522,17 +189,10 @@ public boolean equals(Object o) {
CloneMigrationDetails other = (CloneMigrationDetails) o;
return java.util.Objects.equals(this.displayName, other.displayName)
&& java.util.Objects.equals(this.compartmentId, other.compartmentId)
- && java.util.Objects.equals(this.agentId, other.agentId)
&& java.util.Objects.equals(
this.sourceDatabaseConnectionId, other.sourceDatabaseConnectionId)
- && java.util.Objects.equals(
- this.sourceContainerDatabaseConnectionId,
- other.sourceContainerDatabaseConnectionId)
&& java.util.Objects.equals(
this.targetDatabaseConnectionId, other.targetDatabaseConnectionId)
- && java.util.Objects.equals(this.excludeObjects, other.excludeObjects)
- && java.util.Objects.equals(this.includeObjects, other.includeObjects)
- && java.util.Objects.equals(this.vaultDetails, other.vaultDetails)
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
&& super.equals(other);
@@ -546,29 +206,16 @@ public int hashCode() {
result =
(result * PRIME)
+ (this.compartmentId == null ? 43 : this.compartmentId.hashCode());
- result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode());
result =
(result * PRIME)
+ (this.sourceDatabaseConnectionId == null
? 43
: this.sourceDatabaseConnectionId.hashCode());
- result =
- (result * PRIME)
- + (this.sourceContainerDatabaseConnectionId == null
- ? 43
- : this.sourceContainerDatabaseConnectionId.hashCode());
result =
(result * PRIME)
+ (this.targetDatabaseConnectionId == null
? 43
: this.targetDatabaseConnectionId.hashCode());
- result =
- (result * PRIME)
- + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode());
- result =
- (result * PRIME)
- + (this.includeObjects == null ? 43 : this.includeObjects.hashCode());
- result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CompatibilityOption.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CompatibilityOption.java
new file mode 100644
index 00000000000..1a837bd7809
--- /dev/null
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CompatibilityOption.java
@@ -0,0 +1,71 @@
+/**
+ * Copyright (c) 2016, 2024, 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.databasemigration.model;
+
+/**
+ * Compatibility option. FORCE_INNODB - Change CREATE TABLE statements to use the InnoDB storage
+ * engine for any tables that do not already use it. SKIP_INVALID_ACCOUNTS - Remove user accounts
+ * created with external authentication plugins that are not supported in MySQL HeatWave Service.
+ * STRIP_DEFINERS - Remove the DEFINER clause from views, routines, events, and triggers, so these
+ * objects are created with the default definer. STRIP_RESTRICTED_GRANTS - Remove specific
+ * privileges that are restricted by MySQL HeatWave Service from GRANT statements, so users and
+ * their roles cannot be given these privileges STRIP_TABLESPACES - Remove the TABLESPACE clause
+ * from CREATE TABLE statements, so all tables are created in their default tablespaces.
+ * IGNORE_WILDCARD_GRANTS - Ignore errors from grants on schemas with wildcards, which are
+ * interpreted differently in systems where the partial_revokes system variable is enabled.
+ * STRIP_INVALID_GRANTS - Strip grant statements which would fail when users are loaded. Such as
+ * grants referring to a specific routine which does not exist.
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
+public enum CompatibilityOption implements com.oracle.bmc.http.internal.BmcEnum {
+ ForceInnodb("FORCE_INNODB"),
+ SkipInvalidAccounts("SKIP_INVALID_ACCOUNTS"),
+ StripDefiners("STRIP_DEFINERS"),
+ StripRestrictedGrants("STRIP_RESTRICTED_GRANTS"),
+ StripTablespaces("STRIP_TABLESPACES"),
+ IgnoreWildcardGrants("IGNORE_WILDCARD_GRANTS"),
+ StripInvalidGrants("STRIP_INVALID_GRANTS"),
+
+ /**
+ * 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(CompatibilityOption.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (CompatibilityOption v : CompatibilityOption.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ CompatibilityOption(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static CompatibilityOption create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'CompatibilityOption', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+}
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectDescriptor.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectDescriptor.java
deleted file mode 100644
index cc942960427..00000000000
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectDescriptor.java
+++ /dev/null
@@ -1,248 +0,0 @@
-/**
- * Copyright (c) 2016, 2024, 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.databasemigration.model;
-
-/**
- * Connect Descriptor details.
- * 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: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
- builder = ConnectDescriptor.Builder.class)
-@com.fasterxml.jackson.annotation.JsonFilter(
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class ConnectDescriptor
- extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
- @Deprecated
- @java.beans.ConstructorProperties({"host", "port", "databaseServiceName", "connectString"})
- public ConnectDescriptor(
- String host, Integer port, String databaseServiceName, String connectString) {
- super();
- this.host = host;
- this.port = port;
- this.databaseServiceName = databaseServiceName;
- this.connectString = connectString;
- }
-
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** Host of the connect descriptor. */
- @com.fasterxml.jackson.annotation.JsonProperty("host")
- private String host;
-
- /**
- * Host of the connect descriptor.
- *
- * @param host the value to set
- * @return this builder
- */
- public Builder host(String host) {
- this.host = host;
- this.__explicitlySet__.add("host");
- return this;
- }
- /** Port of the connect descriptor. */
- @com.fasterxml.jackson.annotation.JsonProperty("port")
- private Integer port;
-
- /**
- * Port of the connect descriptor.
- *
- * @param port the value to set
- * @return this builder
- */
- public Builder port(Integer port) {
- this.port = port;
- this.__explicitlySet__.add("port");
- return this;
- }
- /** Database service name. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName")
- private String databaseServiceName;
-
- /**
- * Database service name.
- *
- * @param databaseServiceName the value to set
- * @return this builder
- */
- public Builder databaseServiceName(String databaseServiceName) {
- this.databaseServiceName = databaseServiceName;
- this.__explicitlySet__.add("databaseServiceName");
- return this;
- }
- /** Connect string. */
- @com.fasterxml.jackson.annotation.JsonProperty("connectString")
- private String connectString;
-
- /**
- * Connect string.
- *
- * @param connectString the value to set
- * @return this builder
- */
- public Builder connectString(String connectString) {
- this.connectString = connectString;
- this.__explicitlySet__.add("connectString");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- private final java.util.Set __explicitlySet__ = new java.util.HashSet();
-
- public ConnectDescriptor build() {
- ConnectDescriptor model =
- new ConnectDescriptor(
- this.host, this.port, this.databaseServiceName, this.connectString);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(ConnectDescriptor model) {
- if (model.wasPropertyExplicitlySet("host")) {
- this.host(model.getHost());
- }
- if (model.wasPropertyExplicitlySet("port")) {
- this.port(model.getPort());
- }
- if (model.wasPropertyExplicitlySet("databaseServiceName")) {
- this.databaseServiceName(model.getDatabaseServiceName());
- }
- if (model.wasPropertyExplicitlySet("connectString")) {
- this.connectString(model.getConnectString());
- }
- return this;
- }
- }
-
- /** Create a new builder. */
- public static Builder builder() {
- return new Builder();
- }
-
- public Builder toBuilder() {
- return new Builder().copy(this);
- }
-
- /** Host of the connect descriptor. */
- @com.fasterxml.jackson.annotation.JsonProperty("host")
- private final String host;
-
- /**
- * Host of the connect descriptor.
- *
- * @return the value
- */
- public String getHost() {
- return host;
- }
-
- /** Port of the connect descriptor. */
- @com.fasterxml.jackson.annotation.JsonProperty("port")
- private final Integer port;
-
- /**
- * Port of the connect descriptor.
- *
- * @return the value
- */
- public Integer getPort() {
- return port;
- }
-
- /** Database service name. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName")
- private final String databaseServiceName;
-
- /**
- * Database service name.
- *
- * @return the value
- */
- public String getDatabaseServiceName() {
- return databaseServiceName;
- }
-
- /** Connect string. */
- @com.fasterxml.jackson.annotation.JsonProperty("connectString")
- private final String connectString;
-
- /**
- * Connect string.
- *
- * @return the value
- */
- public String getConnectString() {
- return connectString;
- }
-
- @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("ConnectDescriptor(");
- sb.append("super=").append(super.toString());
- sb.append("host=").append(String.valueOf(this.host));
- sb.append(", port=").append(String.valueOf(this.port));
- sb.append(", databaseServiceName=").append(String.valueOf(this.databaseServiceName));
- sb.append(", connectString=").append(String.valueOf(this.connectString));
- sb.append(")");
- return sb.toString();
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (!(o instanceof ConnectDescriptor)) {
- return false;
- }
-
- ConnectDescriptor other = (ConnectDescriptor) o;
- return java.util.Objects.equals(this.host, other.host)
- && java.util.Objects.equals(this.port, other.port)
- && java.util.Objects.equals(this.databaseServiceName, other.databaseServiceName)
- && java.util.Objects.equals(this.connectString, other.connectString)
- && super.equals(other);
- }
-
- @Override
- public int hashCode() {
- final int PRIME = 59;
- int result = 1;
- result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode());
- result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode());
- result =
- (result * PRIME)
- + (this.databaseServiceName == null
- ? 43
- : this.databaseServiceName.hashCode());
- result =
- (result * PRIME)
- + (this.connectString == null ? 43 : this.connectString.hashCode());
- result = (result * PRIME) + super.hashCode();
- return result;
- }
-}
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java
index 71c41331a7e..45aa8f84a9f 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Database Connection resource used for migrations.
+ * Represents the common details required for creating a new connection.
* 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,560 +15,102 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Connection.Builder.class)
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "connectionType",
+ defaultImpl = Connection.class)
+@com.fasterxml.jackson.annotation.JsonSubTypes({
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = MysqlConnection.class,
+ name = "MYSQL"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = OracleConnection.class,
+ name = "ORACLE")
+})
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class Connection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+public class Connection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"id",
- "compartmentId",
- "databaseType",
- "manualDatabaseSubType",
- "isDedicated",
"displayName",
- "databaseId",
- "connectDescriptor",
- "credentialsSecretId",
- "certificateTdn",
- "sshDetails",
- "adminCredentials",
- "replicationCredentials",
- "privateEndpoint",
- "vaultDetails",
+ "description",
+ "compartmentId",
+ "freeformTags",
+ "definedTags",
+ "systemTags",
"lifecycleState",
"lifecycleDetails",
"timeCreated",
"timeUpdated",
- "freeformTags",
- "definedTags",
- "systemTags",
- "nsgIds"
+ "vaultId",
+ "keyId",
+ "subnetId",
+ "ingressIps",
+ "nsgIds",
+ "username",
+ "password",
+ "replicationUsername",
+ "replicationPassword",
+ "secretId",
+ "privateEndpointId"
})
- public Connection(
+ protected Connection(
String id,
- String compartmentId,
- DatabaseConnectionTypes databaseType,
- DatabaseManualConnectionSubTypes manualDatabaseSubType,
- Boolean isDedicated,
String displayName,
- String databaseId,
- ConnectDescriptor connectDescriptor,
- String credentialsSecretId,
- String certificateTdn,
- SshDetails sshDetails,
- AdminCredentials adminCredentials,
- AdminCredentials replicationCredentials,
- PrivateEndpointDetails privateEndpoint,
- VaultDetails vaultDetails,
- LifecycleStates lifecycleState,
- String lifecycleDetails,
- java.util.Date timeCreated,
- java.util.Date timeUpdated,
+ String description,
+ String compartmentId,
java.util.Map freeformTags,
java.util.Map> definedTags,
java.util.Map> systemTags,
- java.util.List nsgIds) {
+ LifecycleState lifecycleState,
+ String lifecycleDetails,
+ java.util.Date timeCreated,
+ java.util.Date timeUpdated,
+ String vaultId,
+ String keyId,
+ String subnetId,
+ java.util.List ingressIps,
+ java.util.List nsgIds,
+ String username,
+ String password,
+ String replicationUsername,
+ String replicationPassword,
+ String secretId,
+ String privateEndpointId) {
super();
this.id = id;
- this.compartmentId = compartmentId;
- this.databaseType = databaseType;
- this.manualDatabaseSubType = manualDatabaseSubType;
- this.isDedicated = isDedicated;
this.displayName = displayName;
- this.databaseId = databaseId;
- this.connectDescriptor = connectDescriptor;
- this.credentialsSecretId = credentialsSecretId;
- this.certificateTdn = certificateTdn;
- this.sshDetails = sshDetails;
- this.adminCredentials = adminCredentials;
- this.replicationCredentials = replicationCredentials;
- this.privateEndpoint = privateEndpoint;
- this.vaultDetails = vaultDetails;
+ this.description = description;
+ this.compartmentId = compartmentId;
+ this.freeformTags = freeformTags;
+ this.definedTags = definedTags;
+ this.systemTags = systemTags;
this.lifecycleState = lifecycleState;
this.lifecycleDetails = lifecycleDetails;
this.timeCreated = timeCreated;
this.timeUpdated = timeUpdated;
- this.freeformTags = freeformTags;
- this.definedTags = definedTags;
- this.systemTags = systemTags;
+ this.vaultId = vaultId;
+ this.keyId = keyId;
+ this.subnetId = subnetId;
+ this.ingressIps = ingressIps;
this.nsgIds = nsgIds;
+ this.username = username;
+ this.password = password;
+ this.replicationUsername = replicationUsername;
+ this.replicationPassword = replicationPassword;
+ this.secretId = secretId;
+ this.privateEndpointId = privateEndpointId;
}
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** The OCID of the resource */
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
-
- /**
- * The OCID of the resource
- *
- * @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 compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private String compartmentId;
-
- /**
- * OCID of the compartment
- *
- * @param compartmentId the value to set
- * @return this builder
- */
- public Builder compartmentId(String compartmentId) {
- this.compartmentId = compartmentId;
- this.__explicitlySet__.add("compartmentId");
- return this;
- }
- /** Database connection type. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseType")
- private DatabaseConnectionTypes databaseType;
-
- /**
- * Database connection type.
- *
- * @param databaseType the value to set
- * @return this builder
- */
- public Builder databaseType(DatabaseConnectionTypes databaseType) {
- this.databaseType = databaseType;
- this.__explicitlySet__.add("databaseType");
- return this;
- }
- /**
- * Database manual connection subtype. This value can only be specified for manual
- * connections.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType")
- private DatabaseManualConnectionSubTypes manualDatabaseSubType;
-
- /**
- * Database manual connection subtype. This value can only be specified for manual
- * connections.
- *
- * @param manualDatabaseSubType the value to set
- * @return this builder
- */
- public Builder manualDatabaseSubType(
- DatabaseManualConnectionSubTypes manualDatabaseSubType) {
- this.manualDatabaseSubType = manualDatabaseSubType;
- this.__explicitlySet__.add("manualDatabaseSubType");
- return this;
- }
- /**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous
- * Connections.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("isDedicated")
- private Boolean isDedicated;
-
- /**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous
- * Connections.
- *
- * @param isDedicated the value to set
- * @return this builder
- */
- public Builder isDedicated(Boolean isDedicated) {
- this.isDedicated = isDedicated;
- this.__explicitlySet__.add("isDedicated");
- return this;
- }
- /** Database Connection display name identifier. */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private String displayName;
-
- /**
- * Database Connection display name identifier.
- *
- * @param displayName the value to set
- * @return this builder
- */
- public Builder displayName(String displayName) {
- this.displayName = displayName;
- this.__explicitlySet__.add("displayName");
- return this;
- }
- /** The OCID of the cloud database. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
- private String databaseId;
-
- /**
- * The OCID of the cloud database.
- *
- * @param databaseId the value to set
- * @return this builder
- */
- public Builder databaseId(String databaseId) {
- this.databaseId = databaseId;
- this.__explicitlySet__.add("databaseId");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor")
- private ConnectDescriptor connectDescriptor;
-
- public Builder connectDescriptor(ConnectDescriptor connectDescriptor) {
- this.connectDescriptor = connectDescriptor;
- this.__explicitlySet__.add("connectDescriptor");
- return this;
- }
- /** OCID of the Secret in the OCI vault containing the Database Connection credentials. */
- @com.fasterxml.jackson.annotation.JsonProperty("credentialsSecretId")
- private String credentialsSecretId;
-
- /**
- * OCID of the Secret in the OCI vault containing the Database Connection credentials.
- *
- * @param credentialsSecretId the value to set
- * @return this builder
- */
- public Builder credentialsSecretId(String credentialsSecretId) {
- this.credentialsSecretId = credentialsSecretId;
- this.__explicitlySet__.add("credentialsSecretId");
- return this;
- }
- /**
- * This name is the distinguished name used while creating the certificate on target
- * database.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn")
- private String certificateTdn;
-
- /**
- * This name is the distinguished name used while creating the certificate on target
- * database.
- *
- * @param certificateTdn the value to set
- * @return this builder
- */
- public Builder certificateTdn(String certificateTdn) {
- this.certificateTdn = certificateTdn;
- this.__explicitlySet__.add("certificateTdn");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("sshDetails")
- private SshDetails sshDetails;
-
- public Builder sshDetails(SshDetails sshDetails) {
- this.sshDetails = sshDetails;
- this.__explicitlySet__.add("sshDetails");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials")
- private AdminCredentials adminCredentials;
-
- public Builder adminCredentials(AdminCredentials adminCredentials) {
- this.adminCredentials = adminCredentials;
- this.__explicitlySet__.add("adminCredentials");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials")
- private AdminCredentials replicationCredentials;
-
- public Builder replicationCredentials(AdminCredentials replicationCredentials) {
- this.replicationCredentials = replicationCredentials;
- this.__explicitlySet__.add("replicationCredentials");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint")
- private PrivateEndpointDetails privateEndpoint;
-
- public Builder privateEndpoint(PrivateEndpointDetails privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
- this.__explicitlySet__.add("privateEndpoint");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails")
- private VaultDetails vaultDetails;
-
- public Builder vaultDetails(VaultDetails vaultDetails) {
- this.vaultDetails = vaultDetails;
- this.__explicitlySet__.add("vaultDetails");
- return this;
- }
- /** The current state of the Connection resource. */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleStates lifecycleState;
-
- /**
- * The current state of the Connection resource.
- *
- * @param lifecycleState the value to set
- * @return this builder
- */
- public Builder lifecycleState(LifecycleStates lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
- return this;
- }
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- *
- * @param lifecycleDetails the value to set
- * @return this builder
- */
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- return this;
- }
- /** The time the Connection resource was created. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
-
- /**
- * The time the Connection resource was created. An RFC3339 formatted datetime string.
- *
- * @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;
- }
- /**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
- private java.util.Date timeUpdated;
-
- /**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
- *
- * @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;
- }
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists
- * for cross-compatibility only. Example: {@code {"bar-key": "value"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists
- * for cross-compatibility only. Example: {@code {"bar-key": "value"}}
- *
- * @param freeformTags the value to set
- * @return this builder
- */
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
- return this;
- }
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- *
- * @param definedTags the value to set
- * @return this builder
- */
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
- return this;
- }
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private java.util.Map> systemTags;
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- *
- * @param systemTags the value to set
- * @return this builder
- */
- public Builder systemTags(java.util.Map> systemTags) {
- this.systemTags = systemTags;
- this.__explicitlySet__.add("systemTags");
- return this;
- }
- /**
- * An array of Network Security Group OCIDs used to define network access for Connections.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("nsgIds")
- private java.util.List nsgIds;
-
- /**
- * An array of Network Security Group OCIDs used to define network access for Connections.
- *
- * @param nsgIds the value to set
- * @return this builder
- */
- public Builder nsgIds(java.util.List nsgIds) {
- this.nsgIds = nsgIds;
- this.__explicitlySet__.add("nsgIds");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- private final java.util.Set __explicitlySet__ = new java.util.HashSet();
-
- public Connection build() {
- Connection model =
- new Connection(
- this.id,
- this.compartmentId,
- this.databaseType,
- this.manualDatabaseSubType,
- this.isDedicated,
- this.displayName,
- this.databaseId,
- this.connectDescriptor,
- this.credentialsSecretId,
- this.certificateTdn,
- this.sshDetails,
- this.adminCredentials,
- this.replicationCredentials,
- this.privateEndpoint,
- this.vaultDetails,
- this.lifecycleState,
- this.lifecycleDetails,
- this.timeCreated,
- this.timeUpdated,
- this.freeformTags,
- this.definedTags,
- this.systemTags,
- this.nsgIds);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(Connection model) {
- if (model.wasPropertyExplicitlySet("id")) {
- this.id(model.getId());
- }
- if (model.wasPropertyExplicitlySet("compartmentId")) {
- this.compartmentId(model.getCompartmentId());
- }
- if (model.wasPropertyExplicitlySet("databaseType")) {
- this.databaseType(model.getDatabaseType());
- }
- if (model.wasPropertyExplicitlySet("manualDatabaseSubType")) {
- this.manualDatabaseSubType(model.getManualDatabaseSubType());
- }
- if (model.wasPropertyExplicitlySet("isDedicated")) {
- this.isDedicated(model.getIsDedicated());
- }
- if (model.wasPropertyExplicitlySet("displayName")) {
- this.displayName(model.getDisplayName());
- }
- if (model.wasPropertyExplicitlySet("databaseId")) {
- this.databaseId(model.getDatabaseId());
- }
- if (model.wasPropertyExplicitlySet("connectDescriptor")) {
- this.connectDescriptor(model.getConnectDescriptor());
- }
- if (model.wasPropertyExplicitlySet("credentialsSecretId")) {
- this.credentialsSecretId(model.getCredentialsSecretId());
- }
- if (model.wasPropertyExplicitlySet("certificateTdn")) {
- this.certificateTdn(model.getCertificateTdn());
- }
- if (model.wasPropertyExplicitlySet("sshDetails")) {
- this.sshDetails(model.getSshDetails());
- }
- if (model.wasPropertyExplicitlySet("adminCredentials")) {
- this.adminCredentials(model.getAdminCredentials());
- }
- if (model.wasPropertyExplicitlySet("replicationCredentials")) {
- this.replicationCredentials(model.getReplicationCredentials());
- }
- if (model.wasPropertyExplicitlySet("privateEndpoint")) {
- this.privateEndpoint(model.getPrivateEndpoint());
- }
- if (model.wasPropertyExplicitlySet("vaultDetails")) {
- this.vaultDetails(model.getVaultDetails());
- }
- if (model.wasPropertyExplicitlySet("lifecycleState")) {
- this.lifecycleState(model.getLifecycleState());
- }
- if (model.wasPropertyExplicitlySet("lifecycleDetails")) {
- this.lifecycleDetails(model.getLifecycleDetails());
- }
- if (model.wasPropertyExplicitlySet("timeCreated")) {
- this.timeCreated(model.getTimeCreated());
- }
- if (model.wasPropertyExplicitlySet("timeUpdated")) {
- this.timeUpdated(model.getTimeUpdated());
- }
- if (model.wasPropertyExplicitlySet("freeformTags")) {
- this.freeformTags(model.getFreeformTags());
- }
- if (model.wasPropertyExplicitlySet("definedTags")) {
- this.definedTags(model.getDefinedTags());
- }
- if (model.wasPropertyExplicitlySet("systemTags")) {
- this.systemTags(model.getSystemTags());
- }
- if (model.wasPropertyExplicitlySet("nsgIds")) {
- this.nsgIds(model.getNsgIds());
- }
- 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 resource */
+ /** The OCID of the connection being referenced. */
@com.fasterxml.jackson.annotation.JsonProperty("id")
private final String id;
/**
- * The OCID of the resource
+ * The OCID of the connection being referenced.
*
* @return the value
*/
@@ -576,181 +118,180 @@ public String getId() {
return id;
}
- /** OCID of the compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private final String compartmentId;
-
/**
- * OCID of the compartment
- *
- * @return the value
+ * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
*/
- public String getCompartmentId() {
- return compartmentId;
- }
-
- /** Database connection type. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseType")
- private final DatabaseConnectionTypes databaseType;
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ private final String displayName;
/**
- * Database connection type.
+ * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
*
* @return the value
*/
- public DatabaseConnectionTypes getDatabaseType() {
- return databaseType;
+ public String getDisplayName() {
+ return displayName;
}
/**
- * Database manual connection subtype. This value can only be specified for manual connections.
+ * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
*/
- @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType")
- private final DatabaseManualConnectionSubTypes manualDatabaseSubType;
+ @com.fasterxml.jackson.annotation.JsonProperty("description")
+ private final String description;
/**
- * Database manual connection subtype. This value can only be specified for manual connections.
+ * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
*
* @return the value
*/
- public DatabaseManualConnectionSubTypes getManualDatabaseSubType() {
- return manualDatabaseSubType;
+ public String getDescription() {
+ return description;
}
- /**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("isDedicated")
- private final Boolean isDedicated;
+ /** The OCID of the compartment. */
+ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
+ private final String compartmentId;
/**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections.
+ * The OCID of the compartment.
*
* @return the value
*/
- public Boolean getIsDedicated() {
- return isDedicated;
+ public String getCompartmentId() {
+ return compartmentId;
}
- /** Database Connection display name identifier. */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private final String displayName;
-
/**
- * Database Connection display name identifier.
- *
- * @return the value
+ * 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 Tags. Example: {"Department":
+ * "Finance"}
*/
- public String getDisplayName() {
- return displayName;
- }
-
- /** The OCID of the cloud database. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
- private final String databaseId;
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ private final java.util.Map freeformTags;
/**
- * The OCID of the cloud database.
+ * 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 Tags. Example: {"Department":
+ * "Finance"}
*
* @return the value
*/
- public String getDatabaseId() {
- return databaseId;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor")
- private final ConnectDescriptor connectDescriptor;
-
- public ConnectDescriptor getConnectDescriptor() {
- return connectDescriptor;
+ public java.util.Map getFreeformTags() {
+ return freeformTags;
}
- /** OCID of the Secret in the OCI vault containing the Database Connection credentials. */
- @com.fasterxml.jackson.annotation.JsonProperty("credentialsSecretId")
- private final String credentialsSecretId;
+ /**
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
+ * {@code {"foo-namespace": {"bar-key": "value"}}}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ private final java.util.Map> definedTags;
/**
- * OCID of the Secret in the OCI vault containing the Database Connection credentials.
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
+ * {@code {"foo-namespace": {"bar-key": "value"}}}
*
* @return the value
*/
- public String getCredentialsSecretId() {
- return credentialsSecretId;
+ public java.util.Map> getDefinedTags() {
+ return definedTags;
}
/**
- * This name is the distinguished name used while creating the certificate on target database.
+ * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
+ * {"orcl-cloud": {"free-tier-retained": "true"}}}
*/
- @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn")
- private final String certificateTdn;
+ @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
+ private final java.util.Map> systemTags;
/**
- * This name is the distinguished name used while creating the certificate on target database.
+ * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
+ * {"orcl-cloud": {"free-tier-retained": "true"}}}
*
* @return the value
*/
- public String getCertificateTdn() {
- return certificateTdn;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("sshDetails")
- private final SshDetails sshDetails;
-
- public SshDetails getSshDetails() {
- return sshDetails;
+ public java.util.Map> getSystemTags() {
+ return systemTags;
}
- @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials")
- private final AdminCredentials adminCredentials;
+ /** The Connection's current lifecycle state. */
+ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum {
+ Creating("CREATING"),
+ Updating("UPDATING"),
+ Active("ACTIVE"),
+ Inactive("INACTIVE"),
+ Deleting("DELETING"),
+ Deleted("DELETED"),
+ Failed("FAILED"),
- public AdminCredentials getAdminCredentials() {
- return adminCredentials;
- }
-
- @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials")
- private final AdminCredentials replicationCredentials;
+ /**
+ * 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);
- public AdminCredentials getReplicationCredentials() {
- return replicationCredentials;
- }
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(LifecycleState.class);
- @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint")
- private final PrivateEndpointDetails privateEndpoint;
+ private final String value;
+ private static java.util.Map map;
- public PrivateEndpointDetails getPrivateEndpoint() {
- return privateEndpoint;
- }
+ static {
+ map = new java.util.HashMap<>();
+ for (LifecycleState v : LifecycleState.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
- @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails")
- private final VaultDetails vaultDetails;
+ LifecycleState(String value) {
+ this.value = value;
+ }
- public VaultDetails getVaultDetails() {
- return vaultDetails;
- }
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
- /** The current state of the Connection resource. */
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static LifecycleState create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
+ /** The Connection's current lifecycle state. */
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private final LifecycleStates lifecycleState;
+ private final LifecycleState lifecycleState;
/**
- * The current state of the Connection resource.
+ * The Connection's current lifecycle state.
*
* @return the value
*/
- public LifecycleStates getLifecycleState() {
+ public LifecycleState getLifecycleState() {
return lifecycleState;
}
/**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
+ * The message describing the current state of the connection's lifecycle in detail. For
+ * example, can be used to provide actionable information for a connection in a Failed state.
*/
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
private final String lifecycleDetails;
/**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
+ * The message describing the current state of the connection's lifecycle in detail. For
+ * example, can be used to provide actionable information for a connection in a Failed state.
*
* @return the value
*/
@@ -758,12 +299,16 @@ public String getLifecycleDetails() {
return lifecycleDetails;
}
- /** The time the Connection resource was created. An RFC3339 formatted datetime string. */
+ /**
+ * The time when this resource was created. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private final java.util.Date timeCreated;
/**
- * The time the Connection resource was created. An RFC3339 formatted datetime string.
+ * The time when this resource was created. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
*
* @return the value
*/
@@ -772,15 +317,15 @@ public java.util.Date getTimeCreated() {
}
/**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
+ * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
*/
@com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
private final java.util.Date timeUpdated;
/**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
+ * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
*
* @return the value
*/
@@ -788,55 +333,56 @@ public java.util.Date getTimeUpdated() {
return timeUpdated;
}
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private final java.util.Map freeformTags;
+ /** OCI resource ID. */
+ @com.fasterxml.jackson.annotation.JsonProperty("vaultId")
+ private final String vaultId;
/**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
+ * OCI resource ID.
*
* @return the value
*/
- public java.util.Map getFreeformTags() {
- return freeformTags;
+ public String getVaultId() {
+ return vaultId;
}
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private final java.util.Map> definedTags;
+ /** The OCID of the key used in cryptographic operations. */
+ @com.fasterxml.jackson.annotation.JsonProperty("keyId")
+ private final String keyId;
/**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
+ * The OCID of the key used in cryptographic operations.
*
* @return the value
*/
- public java.util.Map> getDefinedTags() {
- return definedTags;
+ public String getKeyId() {
+ return keyId;
}
+ /** OCI resource ID. */
+ @com.fasterxml.jackson.annotation.JsonProperty("subnetId")
+ private final String subnetId;
+
/**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
+ * OCI resource ID.
+ *
+ * @return the value
*/
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private final java.util.Map> systemTags;
+ public String getSubnetId() {
+ return subnetId;
+ }
+
+ /** List of ingress IP addresses from where to connect to this connection's privateIp. */
+ @com.fasterxml.jackson.annotation.JsonProperty("ingressIps")
+ private final java.util.List ingressIps;
/**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
+ * List of ingress IP addresses from where to connect to this connection's privateIp.
*
* @return the value
*/
- public java.util.Map> getSystemTags() {
- return systemTags;
+ public java.util.List getIngressIps() {
+ return ingressIps;
}
/** An array of Network Security Group OCIDs used to define network access for Connections. */
@@ -852,6 +398,84 @@ public java.util.List getNsgIds() {
return nsgIds;
}
+ /** The username (credential) used when creating or updating this resource. */
+ @com.fasterxml.jackson.annotation.JsonProperty("username")
+ private final String username;
+
+ /**
+ * The username (credential) used when creating or updating this resource.
+ *
+ * @return the value
+ */
+ public String getUsername() {
+ return username;
+ }
+
+ /** The password (credential) used when creating or updating this resource. */
+ @com.fasterxml.jackson.annotation.JsonProperty("password")
+ private final String password;
+
+ /**
+ * The password (credential) used when creating or updating this resource.
+ *
+ * @return the value
+ */
+ public String getPassword() {
+ return password;
+ }
+
+ /** The username (credential) used when creating or updating this resource. */
+ @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername")
+ private final String replicationUsername;
+
+ /**
+ * The username (credential) used when creating or updating this resource.
+ *
+ * @return the value
+ */
+ public String getReplicationUsername() {
+ return replicationUsername;
+ }
+
+ /** The password (credential) used when creating or updating this resource. */
+ @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword")
+ private final String replicationPassword;
+
+ /**
+ * The password (credential) used when creating or updating this resource.
+ *
+ * @return the value
+ */
+ public String getReplicationPassword() {
+ return replicationPassword;
+ }
+
+ /** The OCID of the resource being referenced. */
+ @com.fasterxml.jackson.annotation.JsonProperty("secretId")
+ private final String secretId;
+
+ /**
+ * The OCID of the resource being referenced.
+ *
+ * @return the value
+ */
+ public String getSecretId() {
+ return secretId;
+ }
+
+ /** The OCID of the resource being referenced. */
+ @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointId")
+ private final String privateEndpointId;
+
+ /**
+ * The OCID of the resource being referenced.
+ *
+ * @return the value
+ */
+ public String getPrivateEndpointId() {
+ return privateEndpointId;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -868,28 +492,27 @@ public String toString(boolean includeByteArrayContents) {
sb.append("Connection(");
sb.append("super=").append(super.toString());
sb.append("id=").append(String.valueOf(this.id));
- sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
- sb.append(", databaseType=").append(String.valueOf(this.databaseType));
- sb.append(", manualDatabaseSubType=").append(String.valueOf(this.manualDatabaseSubType));
- sb.append(", isDedicated=").append(String.valueOf(this.isDedicated));
sb.append(", displayName=").append(String.valueOf(this.displayName));
- sb.append(", databaseId=").append(String.valueOf(this.databaseId));
- sb.append(", connectDescriptor=").append(String.valueOf(this.connectDescriptor));
- sb.append(", credentialsSecretId=").append(String.valueOf(this.credentialsSecretId));
- sb.append(", certificateTdn=").append(String.valueOf(this.certificateTdn));
- sb.append(", sshDetails=").append(String.valueOf(this.sshDetails));
- sb.append(", adminCredentials=").append(String.valueOf(this.adminCredentials));
- sb.append(", replicationCredentials=").append(String.valueOf(this.replicationCredentials));
- sb.append(", privateEndpoint=").append(String.valueOf(this.privateEndpoint));
- sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails));
+ sb.append(", description=").append(String.valueOf(this.description));
+ sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
+ 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(", lifecycleState=").append(String.valueOf(this.lifecycleState));
sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails));
sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated));
- 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(", vaultId=").append(String.valueOf(this.vaultId));
+ sb.append(", keyId=").append(String.valueOf(this.keyId));
+ sb.append(", subnetId=").append(String.valueOf(this.subnetId));
+ sb.append(", ingressIps=").append(String.valueOf(this.ingressIps));
sb.append(", nsgIds=").append(String.valueOf(this.nsgIds));
+ sb.append(", username=").append(String.valueOf(this.username));
+ sb.append(", password=").append("");
+ sb.append(", replicationUsername=").append(String.valueOf(this.replicationUsername));
+ sb.append(", replicationPassword=").append("");
+ sb.append(", secretId=").append(String.valueOf(this.secretId));
+ sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId));
sb.append(")");
return sb.toString();
}
@@ -905,29 +528,27 @@ public boolean equals(Object o) {
Connection other = (Connection) o;
return java.util.Objects.equals(this.id, other.id)
- && java.util.Objects.equals(this.compartmentId, other.compartmentId)
- && java.util.Objects.equals(this.databaseType, other.databaseType)
- && java.util.Objects.equals(this.manualDatabaseSubType, other.manualDatabaseSubType)
- && java.util.Objects.equals(this.isDedicated, other.isDedicated)
&& java.util.Objects.equals(this.displayName, other.displayName)
- && java.util.Objects.equals(this.databaseId, other.databaseId)
- && java.util.Objects.equals(this.connectDescriptor, other.connectDescriptor)
- && java.util.Objects.equals(this.credentialsSecretId, other.credentialsSecretId)
- && java.util.Objects.equals(this.certificateTdn, other.certificateTdn)
- && java.util.Objects.equals(this.sshDetails, other.sshDetails)
- && java.util.Objects.equals(this.adminCredentials, other.adminCredentials)
- && java.util.Objects.equals(
- this.replicationCredentials, other.replicationCredentials)
- && java.util.Objects.equals(this.privateEndpoint, other.privateEndpoint)
- && java.util.Objects.equals(this.vaultDetails, other.vaultDetails)
+ && java.util.Objects.equals(this.description, other.description)
+ && java.util.Objects.equals(this.compartmentId, other.compartmentId)
+ && 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.lifecycleState, other.lifecycleState)
&& java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails)
&& java.util.Objects.equals(this.timeCreated, other.timeCreated)
&& java.util.Objects.equals(this.timeUpdated, other.timeUpdated)
- && 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.vaultId, other.vaultId)
+ && java.util.Objects.equals(this.keyId, other.keyId)
+ && java.util.Objects.equals(this.subnetId, other.subnetId)
+ && java.util.Objects.equals(this.ingressIps, other.ingressIps)
&& java.util.Objects.equals(this.nsgIds, other.nsgIds)
+ && java.util.Objects.equals(this.username, other.username)
+ && java.util.Objects.equals(this.password, other.password)
+ && java.util.Objects.equals(this.replicationUsername, other.replicationUsername)
+ && java.util.Objects.equals(this.replicationPassword, other.replicationPassword)
+ && java.util.Objects.equals(this.secretId, other.secretId)
+ && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId)
&& super.equals(other);
}
@@ -936,54 +557,43 @@ public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.id == null ? 43 : this.id.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.compartmentId == null ? 43 : this.compartmentId.hashCode());
- result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.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.manualDatabaseSubType == null
- ? 43
- : this.manualDatabaseSubType.hashCode());
- result = (result * PRIME) + (this.isDedicated == null ? 43 : this.isDedicated.hashCode());
- result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
- result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode());
+ + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
result =
(result * PRIME)
- + (this.connectDescriptor == null ? 43 : this.connectDescriptor.hashCode());
+ + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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.vaultId == null ? 43 : this.vaultId.hashCode());
+ result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode());
+ result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode());
+ result = (result * PRIME) + (this.ingressIps == null ? 43 : this.ingressIps.hashCode());
+ result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode());
+ result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode());
+ result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode());
result =
(result * PRIME)
- + (this.credentialsSecretId == null
+ + (this.replicationUsername == null
? 43
- : this.credentialsSecretId.hashCode());
+ : this.replicationUsername.hashCode());
result =
(result * PRIME)
- + (this.certificateTdn == null ? 43 : this.certificateTdn.hashCode());
- result = (result * PRIME) + (this.sshDetails == null ? 43 : this.sshDetails.hashCode());
- result =
- (result * PRIME)
- + (this.adminCredentials == null ? 43 : this.adminCredentials.hashCode());
- result =
- (result * PRIME)
- + (this.replicationCredentials == null
+ + (this.replicationPassword == null
? 43
- : this.replicationCredentials.hashCode());
- result =
- (result * PRIME)
- + (this.privateEndpoint == null ? 43 : this.privateEndpoint.hashCode());
- result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.hashCode());
+ : this.replicationPassword.hashCode());
+ result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode());
result =
(result * PRIME)
- + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
- result =
- (result * PRIME)
- + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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());
- result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
- result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode());
- result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode());
+ + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java
index 766b9caf608..5b7b91e19ed 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Results of a Database Connection search. Contains DatabaseConnectionSummary items.
+ * Array of connection summary objects.
* 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,7 +15,7 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = ConnectionCollection.Builder.class)
@com.fasterxml.jackson.annotation.JsonFilter(
@@ -31,12 +31,12 @@ public ConnectionCollection(java.util.List items) {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
- /** Items in collection. */
+ /** An array of Connection summaries. */
@com.fasterxml.jackson.annotation.JsonProperty("items")
private java.util.List items;
/**
- * Items in collection.
+ * An array of Connection summaries.
*
* @param items the value to set
* @return this builder
@@ -76,12 +76,12 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
- /** Items in collection. */
+ /** An array of Connection summaries. */
@com.fasterxml.jackson.annotation.JsonProperty("items")
private final java.util.List items;
/**
- * Items in collection.
+ * An array of Connection summaries.
*
* @return the value
*/
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java
index 83f7cea0912..6268443ef48 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java
@@ -5,7 +5,7 @@
package com.oracle.bmc.databasemigration.model;
/**
- * Database Connection Summary.
+ * Represents the parameters common for all connections in list operation.
* 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,431 +15,131 @@
* into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
* null}).
*/
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
-@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
- builder = ConnectionSummary.Builder.class)
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "connectionType",
+ defaultImpl = ConnectionSummary.class)
+@com.fasterxml.jackson.annotation.JsonSubTypes({
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = OracleConnectionSummary.class,
+ name = "ORACLE"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = MysqlConnectionSummary.class,
+ name = "MYSQL")
+})
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
-public final class ConnectionSummary
- extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+public class ConnectionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
@java.beans.ConstructorProperties({
"id",
- "compartmentId",
- "databaseType",
- "manualDatabaseSubType",
- "isDedicated",
"displayName",
- "databaseId",
- "timeCreated",
- "timeUpdated",
- "lifecycleState",
- "lifecycleDetails",
+ "description",
+ "compartmentId",
"freeformTags",
"definedTags",
"systemTags",
+ "lifecycleState",
+ "lifecycleDetails",
+ "timeCreated",
+ "timeUpdated",
+ "vaultId",
+ "keyId",
+ "subnetId",
+ "ingressIps",
"nsgIds"
})
- public ConnectionSummary(
+ protected ConnectionSummary(
String id,
- String compartmentId,
- DatabaseConnectionTypes databaseType,
- DatabaseManualConnectionSubTypes manualDatabaseSubType,
- Boolean isDedicated,
String displayName,
- String databaseId,
- java.util.Date timeCreated,
- java.util.Date timeUpdated,
- LifecycleStates lifecycleState,
- String lifecycleDetails,
+ String description,
+ String compartmentId,
java.util.Map freeformTags,
java.util.Map> definedTags,
java.util.Map> systemTags,
+ Connection.LifecycleState lifecycleState,
+ String lifecycleDetails,
+ java.util.Date timeCreated,
+ java.util.Date timeUpdated,
+ String vaultId,
+ String keyId,
+ String subnetId,
+ java.util.List ingressIps,
java.util.List nsgIds) {
super();
this.id = id;
- this.compartmentId = compartmentId;
- this.databaseType = databaseType;
- this.manualDatabaseSubType = manualDatabaseSubType;
- this.isDedicated = isDedicated;
this.displayName = displayName;
- this.databaseId = databaseId;
- this.timeCreated = timeCreated;
- this.timeUpdated = timeUpdated;
- this.lifecycleState = lifecycleState;
- this.lifecycleDetails = lifecycleDetails;
+ this.description = description;
+ this.compartmentId = compartmentId;
this.freeformTags = freeformTags;
this.definedTags = definedTags;
this.systemTags = systemTags;
+ this.lifecycleState = lifecycleState;
+ this.lifecycleDetails = lifecycleDetails;
+ this.timeCreated = timeCreated;
+ this.timeUpdated = timeUpdated;
+ this.vaultId = vaultId;
+ this.keyId = keyId;
+ this.subnetId = subnetId;
+ this.ingressIps = ingressIps;
this.nsgIds = nsgIds;
}
- @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
- public static class Builder {
- /** The OCID of the resource */
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private String id;
-
- /**
- * The OCID of the resource
- *
- * @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 compartment */
- @com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
- private String compartmentId;
-
- /**
- * OCID of the compartment
- *
- * @param compartmentId the value to set
- * @return this builder
- */
- public Builder compartmentId(String compartmentId) {
- this.compartmentId = compartmentId;
- this.__explicitlySet__.add("compartmentId");
- return this;
- }
- /** Database connection type. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseType")
- private DatabaseConnectionTypes databaseType;
-
- /**
- * Database connection type.
- *
- * @param databaseType the value to set
- * @return this builder
- */
- public Builder databaseType(DatabaseConnectionTypes databaseType) {
- this.databaseType = databaseType;
- this.__explicitlySet__.add("databaseType");
- return this;
- }
- /**
- * Database manual connection subtype. This value can only be specified for manual
- * connections.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType")
- private DatabaseManualConnectionSubTypes manualDatabaseSubType;
-
- /**
- * Database manual connection subtype. This value can only be specified for manual
- * connections.
- *
- * @param manualDatabaseSubType the value to set
- * @return this builder
- */
- public Builder manualDatabaseSubType(
- DatabaseManualConnectionSubTypes manualDatabaseSubType) {
- this.manualDatabaseSubType = manualDatabaseSubType;
- this.__explicitlySet__.add("manualDatabaseSubType");
- return this;
- }
- /**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous
- * Connections.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("isDedicated")
- private Boolean isDedicated;
-
- /**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous
- * Connections.
- *
- * @param isDedicated the value to set
- * @return this builder
- */
- public Builder isDedicated(Boolean isDedicated) {
- this.isDedicated = isDedicated;
- this.__explicitlySet__.add("isDedicated");
- return this;
- }
- /** Database Connection display name identifier. */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private String displayName;
-
- /**
- * Database Connection display name identifier.
- *
- * @param displayName the value to set
- * @return this builder
- */
- public Builder displayName(String displayName) {
- this.displayName = displayName;
- this.__explicitlySet__.add("displayName");
- return this;
- }
- /** The OCID of the cloud database. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
- private String databaseId;
-
- /**
- * The OCID of the cloud database.
- *
- * @param databaseId the value to set
- * @return this builder
- */
- public Builder databaseId(String databaseId) {
- this.databaseId = databaseId;
- this.__explicitlySet__.add("databaseId");
- return this;
- }
- /** The time the Connection resource was created. An RFC3339 formatted datetime string. */
- @com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
- private java.util.Date timeCreated;
-
- /**
- * The time the Connection resource was created. An RFC3339 formatted datetime string.
- *
- * @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;
- }
- /**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
- private java.util.Date timeUpdated;
-
- /**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
- *
- * @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;
- }
- /** The current state of the Connection resource. */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private LifecycleStates lifecycleState;
-
- /**
- * The current state of the Connection resource.
- *
- * @param lifecycleState the value to set
- * @return this builder
- */
- public Builder lifecycleState(LifecycleStates lifecycleState) {
- this.lifecycleState = lifecycleState;
- this.__explicitlySet__.add("lifecycleState");
- return this;
- }
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private String lifecycleDetails;
-
- /**
- * A message describing the current state in more detail. For example, can be used to
- * provide actionable information for a resource in Failed state.
- *
- * @param lifecycleDetails the value to set
- * @return this builder
- */
- public Builder lifecycleDetails(String lifecycleDetails) {
- this.lifecycleDetails = lifecycleDetails;
- this.__explicitlySet__.add("lifecycleDetails");
- 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"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private java.util.Map freeformTags;
-
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists
- * for cross-compatibility only. Example: {@code {"bar-key": "value"}}
- *
- * @param freeformTags the value to set
- * @return this builder
- */
- public Builder freeformTags(java.util.Map freeformTags) {
- this.freeformTags = freeformTags;
- this.__explicitlySet__.add("freeformTags");
- return this;
- }
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private java.util.Map> definedTags;
-
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace.
- * Example: {@code {"foo-namespace": {"bar-key": "value"}}}
- *
- * @param definedTags the value to set
- * @return this builder
- */
- public Builder definedTags(
- java.util.Map> definedTags) {
- this.definedTags = definedTags;
- this.__explicitlySet__.add("definedTags");
- return this;
- }
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private java.util.Map> systemTags;
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- *
- * @param systemTags the value to set
- * @return this builder
- */
- public Builder systemTags(java.util.Map> systemTags) {
- this.systemTags = systemTags;
- this.__explicitlySet__.add("systemTags");
- return this;
- }
- /**
- * An array of Network Security Group OCIDs used to define network access for Connections.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("nsgIds")
- private java.util.List nsgIds;
-
- /**
- * An array of Network Security Group OCIDs used to define network access for Connections.
- *
- * @param nsgIds the value to set
- * @return this builder
- */
- public Builder nsgIds(java.util.List nsgIds) {
- this.nsgIds = nsgIds;
- this.__explicitlySet__.add("nsgIds");
- return this;
- }
-
- @com.fasterxml.jackson.annotation.JsonIgnore
- private final java.util.Set __explicitlySet__ = new java.util.HashSet();
-
- public ConnectionSummary build() {
- ConnectionSummary model =
- new ConnectionSummary(
- this.id,
- this.compartmentId,
- this.databaseType,
- this.manualDatabaseSubType,
- this.isDedicated,
- this.displayName,
- this.databaseId,
- this.timeCreated,
- this.timeUpdated,
- this.lifecycleState,
- this.lifecycleDetails,
- this.freeformTags,
- this.definedTags,
- this.systemTags,
- this.nsgIds);
- for (String explicitlySetProperty : this.__explicitlySet__) {
- model.markPropertyAsExplicitlySet(explicitlySetProperty);
- }
- return model;
- }
+ /** The OCID of the connection being referenced. */
+ @com.fasterxml.jackson.annotation.JsonProperty("id")
+ private final String id;
- @com.fasterxml.jackson.annotation.JsonIgnore
- public Builder copy(ConnectionSummary model) {
- if (model.wasPropertyExplicitlySet("id")) {
- this.id(model.getId());
- }
- if (model.wasPropertyExplicitlySet("compartmentId")) {
- this.compartmentId(model.getCompartmentId());
- }
- if (model.wasPropertyExplicitlySet("databaseType")) {
- this.databaseType(model.getDatabaseType());
- }
- if (model.wasPropertyExplicitlySet("manualDatabaseSubType")) {
- this.manualDatabaseSubType(model.getManualDatabaseSubType());
- }
- if (model.wasPropertyExplicitlySet("isDedicated")) {
- this.isDedicated(model.getIsDedicated());
- }
- if (model.wasPropertyExplicitlySet("displayName")) {
- this.displayName(model.getDisplayName());
- }
- if (model.wasPropertyExplicitlySet("databaseId")) {
- this.databaseId(model.getDatabaseId());
- }
- if (model.wasPropertyExplicitlySet("timeCreated")) {
- this.timeCreated(model.getTimeCreated());
- }
- if (model.wasPropertyExplicitlySet("timeUpdated")) {
- this.timeUpdated(model.getTimeUpdated());
- }
- if (model.wasPropertyExplicitlySet("lifecycleState")) {
- this.lifecycleState(model.getLifecycleState());
- }
- if (model.wasPropertyExplicitlySet("lifecycleDetails")) {
- this.lifecycleDetails(model.getLifecycleDetails());
- }
- if (model.wasPropertyExplicitlySet("freeformTags")) {
- this.freeformTags(model.getFreeformTags());
- }
- if (model.wasPropertyExplicitlySet("definedTags")) {
- this.definedTags(model.getDefinedTags());
- }
- if (model.wasPropertyExplicitlySet("systemTags")) {
- this.systemTags(model.getSystemTags());
- }
- if (model.wasPropertyExplicitlySet("nsgIds")) {
- this.nsgIds(model.getNsgIds());
- }
- return this;
- }
+ /**
+ * The OCID of the connection being referenced.
+ *
+ * @return the value
+ */
+ public String getId() {
+ return id;
}
- /** Create a new builder. */
- public static Builder builder() {
- return new Builder();
- }
+ /**
+ * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("displayName")
+ private final String displayName;
- public Builder toBuilder() {
- return new Builder().copy(this);
+ /**
+ * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
+ *
+ * @return the value
+ */
+ public String getDisplayName() {
+ return displayName;
}
- /** The OCID of the resource */
- @com.fasterxml.jackson.annotation.JsonProperty("id")
- private final String id;
+ /**
+ * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("description")
+ private final String description;
/**
- * The OCID of the resource
+ * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering
+ * confidential information.
*
* @return the value
*/
- public String getId() {
- return id;
+ public String getDescription() {
+ return description;
}
- /** OCID of the compartment */
+ /** The OCID of the compartment. */
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private final String compartmentId;
/**
- * OCID of the compartment
+ * The OCID of the compartment.
*
* @return the value
*/
@@ -447,81 +147,99 @@ public String getCompartmentId() {
return compartmentId;
}
- /** Database connection type. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseType")
- private final DatabaseConnectionTypes databaseType;
+ /**
+ * 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 Tags. Example: {"Department":
+ * "Finance"}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
+ private final java.util.Map freeformTags;
/**
- * Database connection type.
+ * 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 Tags. Example: {"Department":
+ * "Finance"}
*
* @return the value
*/
- public DatabaseConnectionTypes getDatabaseType() {
- return databaseType;
+ public java.util.Map getFreeformTags() {
+ return freeformTags;
}
/**
- * Database manual connection subtype. This value can only be specified for manual connections.
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
+ * {@code {"foo-namespace": {"bar-key": "value"}}}
*/
- @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType")
- private final DatabaseManualConnectionSubTypes manualDatabaseSubType;
+ @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
+ private final java.util.Map> definedTags;
/**
- * Database manual connection subtype. This value can only be specified for manual connections.
+ * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
+ * {@code {"foo-namespace": {"bar-key": "value"}}}
*
* @return the value
*/
- public DatabaseManualConnectionSubTypes getManualDatabaseSubType() {
- return manualDatabaseSubType;
+ public java.util.Map> getDefinedTags() {
+ return definedTags;
}
/**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections.
+ * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
+ * {"orcl-cloud": {"free-tier-retained": "true"}}}
*/
- @com.fasterxml.jackson.annotation.JsonProperty("isDedicated")
- private final Boolean isDedicated;
+ @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
+ private final java.util.Map> systemTags;
/**
- * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections.
+ * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
+ * {"orcl-cloud": {"free-tier-retained": "true"}}}
*
* @return the value
*/
- public Boolean getIsDedicated() {
- return isDedicated;
+ public java.util.Map> getSystemTags() {
+ return systemTags;
}
- /** Database Connection display name identifier. */
- @com.fasterxml.jackson.annotation.JsonProperty("displayName")
- private final String displayName;
+ /** Lifecycle state for connection. */
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
+ private final Connection.LifecycleState lifecycleState;
/**
- * Database Connection display name identifier.
+ * Lifecycle state for connection.
*
* @return the value
*/
- public String getDisplayName() {
- return displayName;
+ public Connection.LifecycleState getLifecycleState() {
+ return lifecycleState;
}
- /** The OCID of the cloud database. */
- @com.fasterxml.jackson.annotation.JsonProperty("databaseId")
- private final String databaseId;
+ /**
+ * A message describing the current state in more detail. For example, can be used to provide
+ * actionable information for a resource in Failed state.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
+ private final String lifecycleDetails;
/**
- * The OCID of the cloud database.
+ * A message describing the current state in more detail. For example, can be used to provide
+ * actionable information for a resource in Failed state.
*
* @return the value
*/
- public String getDatabaseId() {
- return databaseId;
+ public String getLifecycleDetails() {
+ return lifecycleDetails;
}
- /** The time the Connection resource was created. An RFC3339 formatted datetime string. */
+ /**
+ * The time when this resource was created. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
+ */
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private final java.util.Date timeCreated;
/**
- * The time the Connection resource was created. An RFC3339 formatted datetime string.
+ * The time when this resource was created. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
*
* @return the value
*/
@@ -530,15 +248,15 @@ public java.util.Date getTimeCreated() {
}
/**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
+ * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
*/
@com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
private final java.util.Date timeUpdated;
/**
- * The time of the last Connection resource details update. An RFC3339 formatted datetime
- * string.
+ * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code
+ * 2016-08-25T21:10:29.600Z}.
*
* @return the value
*/
@@ -546,85 +264,56 @@ public java.util.Date getTimeUpdated() {
return timeUpdated;
}
- /** The current state of the Connection resource. */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
- private final LifecycleStates lifecycleState;
+ /** OCI resource ID. */
+ @com.fasterxml.jackson.annotation.JsonProperty("vaultId")
+ private final String vaultId;
/**
- * The current state of the Connection resource.
+ * OCI resource ID.
*
* @return the value
*/
- public LifecycleStates getLifecycleState() {
- return lifecycleState;
+ public String getVaultId() {
+ return vaultId;
}
- /**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
- */
- @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
- private final String lifecycleDetails;
+ /** The OCID of the key used in cryptographic operations. */
+ @com.fasterxml.jackson.annotation.JsonProperty("keyId")
+ private final String keyId;
/**
- * A message describing the current state in more detail. For example, can be used to provide
- * actionable information for a resource in Failed state.
+ * The OCID of the key used in cryptographic operations.
*
* @return the value
*/
- public String getLifecycleDetails() {
- return lifecycleDetails;
+ public String getKeyId() {
+ return keyId;
}
- /**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
- private final java.util.Map freeformTags;
+ /** OCI resource ID. */
+ @com.fasterxml.jackson.annotation.JsonProperty("subnetId")
+ private final String subnetId;
/**
- * Simple key-value pair that is applied without any predefined name, type or scope. Exists for
- * cross-compatibility only. Example: {@code {"bar-key": "value"}}
+ * OCI resource ID.
*
* @return the value
*/
- public java.util.Map getFreeformTags() {
- return freeformTags;
+ public String getSubnetId() {
+ return subnetId;
}
- /**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("definedTags")
- private final java.util.Map> definedTags;
+ /** List of ingress IP addresses from where to connect to this connection's privateIp. */
+ @com.fasterxml.jackson.annotation.JsonProperty("ingressIps")
+ private final java.util.List ingressIps;
/**
- * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
- * {@code {"foo-namespace": {"bar-key": "value"}}}
+ * List of ingress IP addresses from where to connect to this connection's privateIp.
*
* @return the value
*/
- public java.util.Map> getDefinedTags() {
- return definedTags;
- }
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- */
- @com.fasterxml.jackson.annotation.JsonProperty("systemTags")
- private final java.util.Map> systemTags;
-
- /**
- * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code
- * {"orcl-cloud": {"free-tier-retained": "true"}}}
- *
- * @return the value
- */
- public java.util.Map> getSystemTags() {
- return systemTags;
+ public java.util.List getIngressIps() {
+ return ingressIps;
}
/** An array of Network Security Group OCIDs used to define network access for Connections. */
@@ -656,19 +345,20 @@ public String toString(boolean includeByteArrayContents) {
sb.append("ConnectionSummary(");
sb.append("super=").append(super.toString());
sb.append("id=").append(String.valueOf(this.id));
- sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
- sb.append(", databaseType=").append(String.valueOf(this.databaseType));
- sb.append(", manualDatabaseSubType=").append(String.valueOf(this.manualDatabaseSubType));
- sb.append(", isDedicated=").append(String.valueOf(this.isDedicated));
sb.append(", displayName=").append(String.valueOf(this.displayName));
- sb.append(", databaseId=").append(String.valueOf(this.databaseId));
- sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
- sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated));
- sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState));
- sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails));
+ sb.append(", description=").append(String.valueOf(this.description));
+ sb.append(", compartmentId=").append(String.valueOf(this.compartmentId));
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(", lifecycleState=").append(String.valueOf(this.lifecycleState));
+ sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails));
+ sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
+ sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated));
+ sb.append(", vaultId=").append(String.valueOf(this.vaultId));
+ sb.append(", keyId=").append(String.valueOf(this.keyId));
+ sb.append(", subnetId=").append(String.valueOf(this.subnetId));
+ sb.append(", ingressIps=").append(String.valueOf(this.ingressIps));
sb.append(", nsgIds=").append(String.valueOf(this.nsgIds));
sb.append(")");
return sb.toString();
@@ -685,19 +375,20 @@ public boolean equals(Object o) {
ConnectionSummary other = (ConnectionSummary) o;
return java.util.Objects.equals(this.id, other.id)
- && java.util.Objects.equals(this.compartmentId, other.compartmentId)
- && java.util.Objects.equals(this.databaseType, other.databaseType)
- && java.util.Objects.equals(this.manualDatabaseSubType, other.manualDatabaseSubType)
- && java.util.Objects.equals(this.isDedicated, other.isDedicated)
&& java.util.Objects.equals(this.displayName, other.displayName)
- && java.util.Objects.equals(this.databaseId, other.databaseId)
- && java.util.Objects.equals(this.timeCreated, other.timeCreated)
- && java.util.Objects.equals(this.timeUpdated, other.timeUpdated)
- && java.util.Objects.equals(this.lifecycleState, other.lifecycleState)
- && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails)
+ && java.util.Objects.equals(this.description, other.description)
+ && java.util.Objects.equals(this.compartmentId, other.compartmentId)
&& 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.lifecycleState, other.lifecycleState)
+ && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails)
+ && java.util.Objects.equals(this.timeCreated, other.timeCreated)
+ && java.util.Objects.equals(this.timeUpdated, other.timeUpdated)
+ && java.util.Objects.equals(this.vaultId, other.vaultId)
+ && java.util.Objects.equals(this.keyId, other.keyId)
+ && java.util.Objects.equals(this.subnetId, other.subnetId)
+ && java.util.Objects.equals(this.ingressIps, other.ingressIps)
&& java.util.Objects.equals(this.nsgIds, other.nsgIds)
&& super.equals(other);
}
@@ -707,29 +398,26 @@ public int hashCode() {
final int PRIME = 59;
int result = 1;
result = (result * PRIME) + (this.id == null ? 43 : this.id.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.compartmentId == null ? 43 : this.compartmentId.hashCode());
- result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode());
- result =
- (result * PRIME)
- + (this.manualDatabaseSubType == null
- ? 43
- : this.manualDatabaseSubType.hashCode());
- result = (result * PRIME) + (this.isDedicated == null ? 43 : this.isDedicated.hashCode());
- result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode());
- result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.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());
+ result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
+ result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode());
result =
(result * PRIME)
+ (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
result =
(result * PRIME)
+ (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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.timeCreated == null ? 43 : this.timeCreated.hashCode());
+ result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode());
+ result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode());
+ result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode());
+ result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode());
+ result = (result * PRIME) + (this.ingressIps == null ? 43 : this.ingressIps.hashCode());
result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseManualConnectionSubTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionType.java
similarity index 63%
rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseManualConnectionSubTypes.java
rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionType.java
index 193b889cbbd..8c025c28f8b 100644
--- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseManualConnectionSubTypes.java
+++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionType.java
@@ -4,11 +4,11 @@
*/
package com.oracle.bmc.databasemigration.model;
-/** Supported database manual connection subtypes */
-@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929")
-public enum DatabaseManualConnectionSubTypes implements com.oracle.bmc.http.internal.BmcEnum {
+/** The type of database connection. Example: ORACLE or MYSQL */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518")
+public enum ConnectionType implements com.oracle.bmc.http.internal.BmcEnum {
+ Mysql("MYSQL"),
Oracle("ORACLE"),
- RdsOracle("RDS_ORACLE"),
/**
* This value is used if a service returns a value for this enum that is not recognized by this
@@ -17,21 +17,21 @@ public enum DatabaseManualConnectionSubTypes implements com.oracle.bmc.http.inte
UnknownEnumValue(null);
private static final org.slf4j.Logger LOG =
- org.slf4j.LoggerFactory.getLogger(DatabaseManualConnectionSubTypes.class);
+ org.slf4j.LoggerFactory.getLogger(ConnectionType.class);
private final String value;
- private static java.util.Map map;
+ private static java.util.Map