diff --git a/CHANGELOG.md b/CHANGELOG.md index a1ac531e95a..bf476a34335 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 1.12.6 - 2020-02-11 +### Added +- Support for listing supported database versions for Autonomous Database Serverless, and selecting a version at provisioning time in the Database service +- Support for TCP proxy protocol versions on listener connection configurations in the Load Balancer service +- Support for calling the Notifications service in alternate realms +- Support for calling Oracle Cloud Infrastructure services in the eu-amsterdam-1 and me-jeddah-1 regions + ## 1.12.5 - 2020-02-04 ### Added - Support for the Data Science service diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index bcd52ccf579..d30ab631996 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 1.12.5 + 1.12.6 ../pom.xml @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 com.oracle.oci.sdk oci-java-sdk-audit - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-containerengine - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-core - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-database - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-dns - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-email - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-filestorage - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-identity - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-resourcesearch - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-waas - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-streaming - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-monitoring - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-ons - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-budget - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-workrequests - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-limits - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-functions - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-events - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-dts - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-oce - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-oda - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-analytics - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-integration - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-marketplace - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-apigateway - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-applicationmigration - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-dataflow - 1.12.5 + 1.12.6 false com.oracle.oci.sdk oci-java-sdk-datascience - 1.12.5 + 1.12.6 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 8131b05e333..6db4479871b 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 605cd651a78..8c9c355bfd5 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml diff --git a/bmc-common/src/main/java/com/oracle/bmc/Region.java b/bmc-common/src/main/java/com/oracle/bmc/Region.java index c93d48b923b..1f0d3001065 100644 --- a/bmc-common/src/main/java/com/oracle/bmc/Region.java +++ b/bmc-common/src/main/java/com/oracle/bmc/Region.java @@ -37,8 +37,10 @@ public final class Region implements Serializable, Comparable { public static final Region AP_SYDNEY_1 = register("ap-sydney-1", Realm.OC1, "syd"); public static final Region AP_TOKYO_1 = register("ap-tokyo-1", Realm.OC1, "nrt"); public static final Region CA_TORONTO_1 = register("ca-toronto-1", Realm.OC1, "yyz"); + public static final Region EU_AMSTERDAM_1 = register("eu-amsterdam-1", Realm.OC1, "ams"); public static final Region EU_FRANKFURT_1 = register("eu-frankfurt-1", Realm.OC1, "fra"); public static final Region EU_ZURICH_1 = register("eu-zurich-1", Realm.OC1, "zrh"); + public static final Region ME_JEDDAH_1 = register("me-jeddah-1", Realm.OC1, "jed"); public static final Region SA_SAOPAULO_1 = register("sa-saopaulo-1", Realm.OC1, "gru"); public static final Region UK_LONDON_1 = register("uk-london-1", Realm.OC1, "lhr"); public static final Region US_ASHBURN_1 = register("us-ashburn-1", Realm.OC1, "iad"); diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 130fa7c9fb9..b53a848d51a 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 1390bf9d2db..d45a31cce16 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.12.5 + 1.12.6 diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index efeb032e3da..627da7d7d36 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.12.5 + 1.12.6 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 6788eb3a501..020b60433d1 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java @@ -777,7 +777,9 @@ ListAutonomousDatabaseBackupsResponse listAutonomousDatabaseBackups( ListAutonomousDatabasesResponse listAutonomousDatabases(ListAutonomousDatabasesRequest request); /** - * Gets a list of supported Autonomous Database versions. Note that preview version software is only available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). + * Gets a list of supported Autonomous Database versions. Note that preview version software is only available for + * databases with [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). + * * @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. @@ -785,6 +787,15 @@ ListAutonomousDatabaseBackupsResponse listAutonomousDatabaseBackups( ListAutonomousDbPreviewVersionsResponse listAutonomousDbPreviewVersions( ListAutonomousDbPreviewVersionsRequest request); + /** + * Gets a list of supported Autonomous Database versions. + * @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. + */ + ListAutonomousDbVersionsResponse listAutonomousDbVersions( + ListAutonomousDbVersionsRequest request); + /** * Gets a list of the shapes that can be used to launch a new Autonomous Exadata Infrastructure DB system. The shape determines resources to allocate to the DB system (CPU cores, memory and storage). * @param request The request object containing the details to send diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java index 97f9cc0075c..1105cb36275 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsync.java @@ -1348,7 +1348,9 @@ java.util.concurrent.Future listAutonomousDatab handler); /** - * Gets a list of supported Autonomous Database versions. Note that preview version software is only available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). + * Gets a list of supported Autonomous Database versions. Note that preview version software is only available for + * databases with [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). + * * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -1365,6 +1367,22 @@ java.util.concurrent.Future listAutonomousDatab ListAutonomousDbPreviewVersionsResponse> handler); + /** + * Gets a list of supported Autonomous Database versions. + * + * @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 listAutonomousDbVersions( + ListAutonomousDbVersionsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse> + handler); + /** * Gets a list of the shapes that can be used to launch a new Autonomous Exadata Infrastructure DB system. The shape determines resources to allocate to the DB system (CPU cores, memory and storage). * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index 87b3c042cc4..3bccc0f0dac 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java @@ -6467,6 +6467,82 @@ public java.util.concurrent.Future get() { } } + @Override + public java.util.concurrent.Future listAutonomousDbVersions( + final ListAutonomousDbVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse> + handler) { + LOG.trace("Called async listAutonomousDbVersions"); + final ListAutonomousDbVersionsRequest interceptedRequest = + ListAutonomousDbVersionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAutonomousDbVersionsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListAutonomousDbVersionsResponse> + transformer = ListAutonomousDbVersionsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse> + handlerToUse = handler; + if (handler != null + && this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + handlerToUse = + new com.oracle.bmc.util.internal.RefreshAuthTokenWrappingAsyncHandler< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handler) { + @Override + public void retryCall() { + final com.oracle.bmc.util.internal.Consumer + onSuccess = + new com.oracle.bmc.http.internal.SuccessConsumer<>( + this, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + new com.oracle.bmc.http.internal.ErrorConsumer<>( + this, interceptedRequest); + client.get(ib, interceptedRequest, onSuccess, onError); + } + }; + } + + final com.oracle.bmc.util.internal.Consumer onSuccess = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.SuccessConsumer<>( + handlerToUse, transformer, interceptedRequest); + final com.oracle.bmc.util.internal.Consumer onError = + (handler == null) + ? null + : new com.oracle.bmc.http.internal.ErrorConsumer<>( + handlerToUse, interceptedRequest); + + java.util.concurrent.Future responseFuture = + client.get(ib, interceptedRequest, onSuccess, onError); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenTransformingFuture< + javax.ws.rs.core.Response, ListAutonomousDbVersionsResponse>( + responseFuture, + transformer, + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + new com.google.common.base.Supplier< + java.util.concurrent.Future>() { + @Override + public java.util.concurrent.Future get() { + return client.get(ib, interceptedRequest, onSuccess, onError); + } + }); + } else { + return new com.oracle.bmc.util.internal.TransformingFuture<>( + responseFuture, transformer); + } + } + @Override public java.util.concurrent.Future listAutonomousExadataInfrastructureShapes( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java index 9618ec6cd00..36f9bdda1e0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseClient.java @@ -2700,6 +2700,35 @@ public ListAutonomousDbPreviewVersionsResponse listAutonomousDbPreviewVersions( }); } + @Override + public ListAutonomousDbVersionsResponse listAutonomousDbVersions( + ListAutonomousDbVersionsRequest request) { + LOG.trace("Called listAutonomousDbVersions"); + final ListAutonomousDbVersionsRequest interceptedRequest = + ListAutonomousDbVersionsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListAutonomousDbVersionsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListAutonomousDbVersionsConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + return retrier.execute( + interceptedRequest, + retryRequest -> { + final com.oracle.bmc.retrier.TokenRefreshRetrier tokenRefreshRetrier = + new com.oracle.bmc.retrier.TokenRefreshRetrier( + authenticationDetailsProvider); + return tokenRefreshRetrier.execute( + retryRequest, + retriedRequest -> { + javax.ws.rs.core.Response response = client.get(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ListAutonomousExadataInfrastructureShapesResponse listAutonomousExadataInfrastructureShapes( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java index 6be7493cdb1..57695405ba7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabasePaginators.java @@ -780,6 +780,123 @@ public ListAutonomousDbPreviewVersionsResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listAutonomousDbVersions 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 listAutonomousDbVersionsResponseIterator( + final ListAutonomousDbVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListAutonomousDbVersionsRequest.Builder, ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse>( + new com.google.common.base.Supplier() { + @Override + public ListAutonomousDbVersionsRequest.Builder get() { + return ListAutonomousDbVersionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListAutonomousDbVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDbVersionsRequest.Builder>, + ListAutonomousDbVersionsRequest>() { + @Override + public ListAutonomousDbVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDbVersionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse>() { + @Override + public ListAutonomousDbVersionsResponse apply( + ListAutonomousDbVersionsRequest request) { + return client.listAutonomousDbVersions(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.AutonomousDbVersionSummary} objects + * contained in responses from the listAutonomousDbVersions 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.database.model.AutonomousDbVersionSummary} objects + * contained in responses received from the service. + */ + public Iterable + listAutonomousDbVersionsRecordIterator(final ListAutonomousDbVersionsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListAutonomousDbVersionsRequest.Builder, ListAutonomousDbVersionsRequest, + ListAutonomousDbVersionsResponse, + com.oracle.bmc.database.model.AutonomousDbVersionSummary>( + new com.google.common.base.Supplier() { + @Override + public ListAutonomousDbVersionsRequest.Builder get() { + return ListAutonomousDbVersionsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListAutonomousDbVersionsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDbVersionsRequest.Builder>, + ListAutonomousDbVersionsRequest>() { + @Override + public ListAutonomousDbVersionsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListAutonomousDbVersionsRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListAutonomousDbVersionsRequest, ListAutonomousDbVersionsResponse>() { + @Override + public ListAutonomousDbVersionsResponse apply( + ListAutonomousDbVersionsRequest request) { + return client.listAutonomousDbVersions(request); + } + }, + new com.google.common.base.Function< + ListAutonomousDbVersionsResponse, + java.util.List< + com.oracle.bmc.database.model.AutonomousDbVersionSummary>>() { + @Override + public java.util.List + apply(ListAutonomousDbVersionsResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listAutonomousExadataInfrastructureShapes operation. This iterable * will fetch more data from the server as needed. @@ -1046,6 +1163,122 @@ public ListAutonomousExadataInfrastructuresResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listBackupDestination 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 listBackupDestinationResponseIterator( + final ListBackupDestinationRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListBackupDestinationRequest.Builder, ListBackupDestinationRequest, + ListBackupDestinationResponse>( + new com.google.common.base.Supplier() { + @Override + public ListBackupDestinationRequest.Builder get() { + return ListBackupDestinationRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListBackupDestinationResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBackupDestinationRequest.Builder>, + ListBackupDestinationRequest>() { + @Override + public ListBackupDestinationRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBackupDestinationRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListBackupDestinationRequest, ListBackupDestinationResponse>() { + @Override + public ListBackupDestinationResponse apply( + ListBackupDestinationRequest request) { + return client.listBackupDestination(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.BackupDestinationSummary} objects + * contained in responses from the listBackupDestination 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.database.model.BackupDestinationSummary} objects + * contained in responses received from the service. + */ + public Iterable + listBackupDestinationRecordIterator(final ListBackupDestinationRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListBackupDestinationRequest.Builder, ListBackupDestinationRequest, + ListBackupDestinationResponse, + com.oracle.bmc.database.model.BackupDestinationSummary>( + new com.google.common.base.Supplier() { + @Override + public ListBackupDestinationRequest.Builder get() { + return ListBackupDestinationRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListBackupDestinationResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBackupDestinationRequest.Builder>, + ListBackupDestinationRequest>() { + @Override + public ListBackupDestinationRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListBackupDestinationRequest.Builder> + input) { + if (input.getToken() == null) { + return input.getRequestBuilder().build(); + } else { + return input.getRequestBuilder() + .page(input.getToken().orNull()) + .build(); + } + } + }, + new com.google.common.base.Function< + ListBackupDestinationRequest, ListBackupDestinationResponse>() { + @Override + public ListBackupDestinationResponse apply( + ListBackupDestinationRequest request) { + return client.listBackupDestination(request); + } + }, + new com.google.common.base.Function< + ListBackupDestinationResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListBackupDestinationResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listBackups operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java index a926391855d..1ac0bdd5e01 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDatabasesConverter.java @@ -93,6 +93,14 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( request.getDbWorkload().getValue())); } + if (request.getDbVersion() != null) { + target = + target.queryParam( + "dbVersion", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDbVersion())); + } + if (request.getIsFreeTier() != null) { target = target.queryParam( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDbVersionsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDbVersionsConverter.java new file mode 100644 index 00000000000..4b2262bf843 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListAutonomousDbVersionsConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.database.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.database.model.*; +import com.oracle.bmc.database.requests.*; +import com.oracle.bmc.database.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.extern.slf4j.Slf4j +public class ListAutonomousDbVersionsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static ListAutonomousDbVersionsRequest interceptRequest( + ListAutonomousDbVersionsRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + ListAutonomousDbVersionsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("autonomousDbVersions"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getLimit() != null) { + target = + target.queryParam( + "limit", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLimit())); + } + + if (request.getPage() != null) { + target = + target.queryParam( + "page", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getPage())); + } + + if (request.getDbWorkload() != null) { + target = + target.queryParam( + "dbWorkload", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDbWorkload().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, ListAutonomousDbVersionsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListAutonomousDbVersionsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, ListAutonomousDbVersionsResponse>() { + @Override + public ListAutonomousDbVersionsResponse apply( + javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for ListAutonomousDbVersionsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + AutonomousDbVersionSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + ListAutonomousDbVersionsResponse.Builder builder = + ListAutonomousDbVersionsResponse.builder(); + + builder.items(response.getItem()); + + com.google.common.base.Optional> + opcRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-request-id"); + if (opcRequestIdHeader.isPresent()) { + builder.opcRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-request-id", + opcRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + + ListAutonomousDbVersionsResponse responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupDestinationConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupDestinationConverter.java index 7f40e284ff9..71242d753b2 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupDestinationConverter.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListBackupDestinationConverter.java @@ -126,6 +126,18 @@ public ListBackupDestinationResponse apply( String.class)); } + com.google.common.base.Optional> + opcNextPageHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-next-page"); + if (opcNextPageHeader.isPresent()) { + builder.opcNextPage( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-next-page", + opcNextPageHeader.get().get(0), + String.class)); + } + ListBackupDestinationResponse responseWrapper = builder.build(); ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java index bb85f49be6b..7222e6aff32 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabase.java @@ -516,7 +516,7 @@ public static LifecycleState create(String key) { Integer dataStorageSizeInTBs; /** - * True if the database uses the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option. + * True if the database uses [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") @@ -555,8 +555,8 @@ public static LifecycleState create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("connectionUrls") AutonomousDatabaseConnectionUrls connectionUrls; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ @lombok.extern.slf4j.Slf4j @@ -603,8 +603,8 @@ public static LicenseModel create(String key) { } }; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") @@ -698,8 +698,9 @@ public static DbWorkload create(String key) { DbWorkload dbWorkload; /** - * The client IP access control list (ACL). This feature is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * The client IP access control list (ACL). This feature is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. This is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + *

* To add the whitelist VCN specific subnet or IP, use a semicoln ';' as a deliminator to add the VCN specific subnets or IPs. * Example: `[\"1.1.1.1\",\"1.1.1.0/24\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.1.1\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.0.0/16\"]` * @@ -708,7 +709,7 @@ public static DbWorkload create(String key) { java.util.List whitelistedIps; /** - * Indicates if auto scaling is enabled for the Autonomous Database CPU core count. Note that auto scaling is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * Indicates if auto scaling is enabled for the Autonomous Database CPU core count. Note that auto scaling is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java index f696bbba8a8..d410d31262e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java @@ -4,7 +4,7 @@ package com.oracle.bmc.database.model; /** - * The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. Note that these URLs are provided by the console only for [dedicated deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). + * The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. Note that these URLs are provided by the console only for databases on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). *

* Example: `{\"sqlDevWebUrl\": \"https:///ords...\", \"apexUrl\", \"https:///ords...\"}` * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java index d0ed028d2dc..de139b468b0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseSummary.java @@ -518,7 +518,7 @@ public static LifecycleState create(String key) { Integer dataStorageSizeInTBs; /** - * True if the database uses the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option. + * True if the database uses [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") @@ -557,8 +557,8 @@ public static LifecycleState create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("connectionUrls") AutonomousDatabaseConnectionUrls connectionUrls; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ @lombok.extern.slf4j.Slf4j @@ -605,8 +605,8 @@ public static LicenseModel create(String key) { } }; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") @@ -700,8 +700,9 @@ public static DbWorkload create(String key) { DbWorkload dbWorkload; /** - * The client IP access control list (ACL). This feature is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * The client IP access control list (ACL). This feature is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. This is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + *

* To add the whitelist VCN specific subnet or IP, use a semicoln ';' as a deliminator to add the VCN specific subnets or IPs. * Example: `[\"1.1.1.1\",\"1.1.1.0/24\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.1.1\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.0.0/16\"]` * @@ -710,7 +711,7 @@ public static DbWorkload create(String key) { java.util.List whitelistedIps; /** - * Indicates if auto scaling is enabled for the Autonomous Database CPU core count. Note that auto scaling is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * Indicates if auto scaling is enabled for the Autonomous Database CPU core count. Note that auto scaling is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbPreviewVersionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbPreviewVersionSummary.java index 27faf833628..e0c88758a97 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbPreviewVersionSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbPreviewVersionSummary.java @@ -4,7 +4,7 @@ package com.oracle.bmc.database.model; /** - * The Autonomous Database preview version. Note that preview version software is only available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). + * The Autonomous Database preview version. Note that preview version software is only available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbVersionSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbVersionSummary.java new file mode 100644 index 00000000000..0a7882d4052 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDbVersionSummary.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.database.model; + +/** + * The supported Autonomous Database version. + * + *
+ * 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take + * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} + * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) +@lombok.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = AutonomousDbVersionSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class AutonomousDbVersionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("version") + private String version; + + public Builder version(String version) { + this.version = version; + this.__explicitlySet__.add("version"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkload") + private DbWorkload dbWorkload; + + public Builder dbWorkload(DbWorkload dbWorkload) { + this.dbWorkload = dbWorkload; + this.__explicitlySet__.add("dbWorkload"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") + private Boolean isDedicated; + + public Builder isDedicated(Boolean isDedicated) { + this.isDedicated = isDedicated; + this.__explicitlySet__.add("isDedicated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("details") + private String details; + + public Builder details(String details) { + this.details = details; + this.__explicitlySet__.add("details"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public AutonomousDbVersionSummary build() { + AutonomousDbVersionSummary __instance__ = + new AutonomousDbVersionSummary(version, dbWorkload, isDedicated, details); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(AutonomousDbVersionSummary o) { + Builder copiedBuilder = + version(o.getVersion()) + .dbWorkload(o.getDbWorkload()) + .isDedicated(o.getIsDedicated()) + .details(o.getDetails()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * A valid Oracle Database version for Autonomous Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("version") + String version; + /** + * The Autonomous Database workload type. OLTP indicates an Autonomous Transaction Processing database and DW indicates an Autonomous Data Warehouse database. + **/ + @lombok.extern.slf4j.Slf4j + public enum DbWorkload { + Oltp("OLTP"), + Dw("DW"), + + /** + * 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 final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbWorkload v : DbWorkload.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DbWorkload(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbWorkload create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DbWorkload', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Autonomous Database workload type. OLTP indicates an Autonomous Transaction Processing database and DW indicates an Autonomous Data Warehouse database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbWorkload") + DbWorkload dbWorkload; + + /** + * True if the database uses [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") + Boolean isDedicated; + + /** + * A URL that points to a detailed description of the Autonomous Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("details") + String details; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java index bd03b980fb3..c42a7d5a204 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java @@ -134,8 +134,8 @@ public static DbWorkload create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ public enum LicenseModel { @@ -171,29 +171,29 @@ public static LicenseModel create(String key) { } }; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") LicenseModel licenseModel; /** - * If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). + * If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isPreviewVersionWithServiceTermsAccepted") Boolean isPreviewVersionWithServiceTermsAccepted; /** - * Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. Note that auto scaling is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. Note that auto scaling is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") Boolean isAutoScalingEnabled; /** - * True if the database uses the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option. + * True if the database is on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") @@ -206,7 +206,7 @@ public static LicenseModel create(String key) { String autonomousContainerDatabaseId; /** - * The client IP access control list (ACL). This feature is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * The client IP access control list (ACL). This feature is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. This is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. * To add the whitelist VCN specific subnet or IP, use a semicoln ';' as a deliminator to add the VCN specific subnets or IPs. * Example: `[\"1.1.1.1\",\"1.1.1.0/24\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.1.1\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.0.0/16\"]` @@ -233,10 +233,16 @@ public static LicenseModel create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("definedTags") java.util.Map> definedTags; + /** + * A valid Oracle Database version for Autonomous Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + String dbVersion; + /** * The source of the database: Use `NONE` for creating a new Autonomous Database. Use `DATABASE` for creating a new Autonomous Database by cloning an existing Autonomous Database. *

- * For Autonomous Databases using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), the following cloning options are available: Use `BACKUP_FROM_ID` for creating a new Autonomous Database from a specified backup. Use `BACKUP_FROM_TIMESTAMP` for creating a point-in-time Autonomous Database clone using backups. For more information, see [Cloning an Autonomous Database](https://docs.cloud.oracle.com/Content/Database/Tasks/adbcloning.htm). + * For Autonomous Databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), the following cloning options are available: Use `BACKUP_FROM_ID` for creating a new Autonomous Database from a specified backup. Use `BACKUP_FROM_TIMESTAMP` for creating a point-in-time Autonomous Database clone using backups. For more information, see [Cloning an Autonomous Database](https://docs.cloud.oracle.com/Content/Database/Tasks/adbcloning.htm). * **/ public enum Source { diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java index 18e3537d5c8..a1da970c2e6 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseCloneDetails.java @@ -178,6 +178,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") private String sourceId; @@ -218,6 +227,7 @@ public CreateAutonomousDatabaseCloneDetails build() { whitelistedIps, freeformTags, definedTags, + dbVersion, sourceId, cloneType); __instance__.__explicitlySet__.addAll(__explicitlySet__); @@ -244,6 +254,7 @@ public Builder copy(CreateAutonomousDatabaseCloneDetails o) { .whitelistedIps(o.getWhitelistedIps()) .freeformTags(o.getFreeformTags()) .definedTags(o.getDefinedTags()) + .dbVersion(o.getDbVersion()) .sourceId(o.getSourceId()) .cloneType(o.getCloneType()); @@ -277,6 +288,7 @@ public CreateAutonomousDatabaseCloneDetails( java.util.List whitelistedIps, java.util.Map freeformTags, java.util.Map> definedTags, + String dbVersion, String sourceId, CloneType cloneType) { super( @@ -295,7 +307,8 @@ public CreateAutonomousDatabaseCloneDetails( autonomousContainerDatabaseId, whitelistedIps, freeformTags, - definedTags); + definedTags, + dbVersion); this.sourceId = sourceId; this.cloneType = cloneType; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java index 3c32979e21f..8ffdd0f905f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseDetails.java @@ -178,6 +178,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -199,7 +208,8 @@ public CreateAutonomousDatabaseDetails build() { autonomousContainerDatabaseId, whitelistedIps, freeformTags, - definedTags); + definedTags, + dbVersion); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -223,7 +233,8 @@ public Builder copy(CreateAutonomousDatabaseDetails o) { .autonomousContainerDatabaseId(o.getAutonomousContainerDatabaseId()) .whitelistedIps(o.getWhitelistedIps()) .freeformTags(o.getFreeformTags()) - .definedTags(o.getDefinedTags()); + .definedTags(o.getDefinedTags()) + .dbVersion(o.getDbVersion()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -254,7 +265,8 @@ public CreateAutonomousDatabaseDetails( String autonomousContainerDatabaseId, java.util.List whitelistedIps, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + String dbVersion) { super( compartmentId, dbName, @@ -271,7 +283,8 @@ public CreateAutonomousDatabaseDetails( autonomousContainerDatabaseId, whitelistedIps, freeformTags, - definedTags); + definedTags, + dbVersion); } @com.fasterxml.jackson.annotation.JsonIgnore diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java index 51314779699..db49e3e6b29 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupDetails.java @@ -178,6 +178,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseBackupId") private String autonomousDatabaseBackupId; @@ -218,6 +227,7 @@ public CreateAutonomousDatabaseFromBackupDetails build() { whitelistedIps, freeformTags, definedTags, + dbVersion, autonomousDatabaseBackupId, cloneType); __instance__.__explicitlySet__.addAll(__explicitlySet__); @@ -244,6 +254,7 @@ public Builder copy(CreateAutonomousDatabaseFromBackupDetails o) { .whitelistedIps(o.getWhitelistedIps()) .freeformTags(o.getFreeformTags()) .definedTags(o.getDefinedTags()) + .dbVersion(o.getDbVersion()) .autonomousDatabaseBackupId(o.getAutonomousDatabaseBackupId()) .cloneType(o.getCloneType()); @@ -277,6 +288,7 @@ public CreateAutonomousDatabaseFromBackupDetails( java.util.List whitelistedIps, java.util.Map freeformTags, java.util.Map> definedTags, + String dbVersion, String autonomousDatabaseBackupId, CloneType cloneType) { super( @@ -295,7 +307,8 @@ public CreateAutonomousDatabaseFromBackupDetails( autonomousContainerDatabaseId, whitelistedIps, freeformTags, - definedTags); + definedTags, + dbVersion); this.autonomousDatabaseBackupId = autonomousDatabaseBackupId; this.cloneType = cloneType; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java index dfce862fb9b..95cc264b46a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseFromBackupTimestampDetails.java @@ -179,6 +179,15 @@ public Builder definedTags( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("dbVersion") + private String dbVersion; + + public Builder dbVersion(String dbVersion) { + this.dbVersion = dbVersion; + this.__explicitlySet__.add("dbVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("autonomousDatabaseId") private String autonomousDatabaseId; @@ -228,6 +237,7 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails build() { whitelistedIps, freeformTags, definedTags, + dbVersion, autonomousDatabaseId, timestamp, cloneType); @@ -255,6 +265,7 @@ public Builder copy(CreateAutonomousDatabaseFromBackupTimestampDetails o) { .whitelistedIps(o.getWhitelistedIps()) .freeformTags(o.getFreeformTags()) .definedTags(o.getDefinedTags()) + .dbVersion(o.getDbVersion()) .autonomousDatabaseId(o.getAutonomousDatabaseId()) .timestamp(o.getTimestamp()) .cloneType(o.getCloneType()); @@ -289,6 +300,7 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails( java.util.List whitelistedIps, java.util.Map freeformTags, java.util.Map> definedTags, + String dbVersion, String autonomousDatabaseId, java.util.Date timestamp, CloneType cloneType) { @@ -308,7 +320,8 @@ public CreateAutonomousDatabaseFromBackupTimestampDetails( autonomousContainerDatabaseId, whitelistedIps, freeformTags, - definedTags); + definedTags, + dbVersion); this.autonomousDatabaseId = autonomousDatabaseId; this.timestamp = timestamp; this.cloneType = cloneType; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java index fdedbb78403..cbbf3f8797c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateAutonomousDatabaseDetails.java @@ -234,8 +234,8 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("definedTags") java.util.Map> definedTags; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ public enum LicenseModel { @@ -271,15 +271,15 @@ public static LicenseModel create(String key) { } }; /** - * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database using the [dedicated deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm) option, this attribute must be null because the attribute is already set at the - * Autonomous Exadata Infrastructure level. When using the [serverless deployment](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#DeploymentTypes) option, if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + * The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on [dedicated Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adbddoverview.htm), this attribute must be null because the attribute is already set at the + * Autonomous Exadata Infrastructure level. When using [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. * **/ @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") LicenseModel licenseModel; /** - * The client IP access control list (ACL). This feature is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * The client IP access control list (ACL). This feature is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. This is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. To delete all the existing white listed IP\u2019s, use an array with a single empty string entry. * To add the whitelist VCN specific subnet or IP, use a semicoln ';' as a deliminator to add the VCN specific subnets or IPs. * Example: `[\"1.1.1.1\",\"1.1.1.0/24\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.1.1\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw\"]` @@ -289,7 +289,7 @@ public static LicenseModel create(String key) { java.util.List whitelistedIps; /** - * Indicates whether to enable or disable auto scaling for the Autonomous Database OCPU core count. Setting to `true` enables auto scaling. Setting to `false` disables auto scaling. The default value is true. Auto scaling is available for [serverless deployments](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. + * Indicates whether to enable or disable auto scaling for the Autonomous Database OCPU core count. Setting to `true` enables auto scaling. Setting to `false` disables auto scaling. The default value is true. Auto scaling is available for databases on [shared Exadata infrastructure](https://docs.cloud.oracle.com/Content/Database/Concepts/adboverview.htm#AEI) only. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isAutoScalingEnabled") diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesRequest.java index 6575d3be7a2..cf8fb47fb5e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDatabasesRequest.java @@ -128,6 +128,11 @@ public static SortOrder create(String key) { */ private AutonomousDatabaseSummary.DbWorkload dbWorkload; + /** + * A filter to return only autonomous database resources that match the specified dbVersion. + */ + private String dbVersion; + /** * Filter on the value of the resource's 'isFreeTier' property. A value of `true` returns only Always Free resources. * A value of `false` excludes Always Free resources from the returned results. Omitting this parameter returns both Always Free and paid resources. @@ -187,6 +192,7 @@ public Builder copy(ListAutonomousDatabasesRequest o) { sortOrder(o.getSortOrder()); lifecycleState(o.getLifecycleState()); dbWorkload(o.getDbWorkload()); + dbVersion(o.getDbVersion()); isFreeTier(o.getIsFreeTier()); displayName(o.getDisplayName()); opcRequestId(o.getOpcRequestId()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDbVersionsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDbVersionsRequest.java new file mode 100644 index 00000000000..774278ab8d8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListAutonomousDbVersionsRequest.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListAutonomousDbVersionsRequest extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * A filter to return only autonomous database resources that match the specified workload type. + */ + private AutonomousDatabaseSummary.DbWorkload dbWorkload; + + /** + * The sort order to use, either ascending (`ASC`) or descending (`DESC`). + */ + private SortOrder sortOrder; + + /** + * The sort order to use, either ascending (`ASC`) or descending (`DESC`). + **/ + public enum SortOrder { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new RuntimeException("Invalid SortOrder: " + key); + } + }; + + public static class Builder { + private com.oracle.bmc.util.internal.Consumer + invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * Set the invocation callback for the request to be built. + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.util.internal.Consumer + invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAutonomousDbVersionsRequest o) { + compartmentId(o.getCompartmentId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + dbWorkload(o.getDbWorkload()); + sortOrder(o.getSortOrder()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListAutonomousDbVersionsRequest as configured by this builder + * + * Note that this method takes calls to {@link Builder#invocationCallback(com.oracle.bmc.util.internal.Consumer)} into account, + * while the method {@link Builder#buildWithoutInvocationCallback} does not. + * + * This is the preferred method to build an instance. + * + * @return instance of ListAutonomousDbVersionsRequest + */ + public ListAutonomousDbVersionsRequest build() { + ListAutonomousDbVersionsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDbVersionsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDbVersionsResponse.java new file mode 100644 index 00000000000..7c95199520e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListAutonomousDbVersionsResponse.java @@ -0,0 +1,47 @@ +/** + * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListAutonomousDbVersionsResponse { + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the `page` parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + + /** + * A list of AutonomousDbVersionSummary instances. + */ + private java.util.List items; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ListAutonomousDbVersionsResponse o) { + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBackupDestinationResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBackupDestinationResponse.java index 5c74e4b6275..c07722dfc3c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBackupDestinationResponse.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListBackupDestinationResponse.java @@ -23,6 +23,15 @@ public class ListBackupDestinationResponse { */ private String opcRequestId; + /** + * For pagination of a list of items. When paging through a list, if this header appears in the response, + * then there are additional items still to get. Include this value as the `page` parameter for the + * subsequent GET request. For information about pagination, see + * [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). + * + */ + private String opcNextPage; + /** * A list of BackupDestinationSummary instances. */ @@ -36,6 +45,7 @@ public static class Builder { public Builder copy(ListBackupDestinationResponse o) { etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); items(o.getItems()); return this; diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 2e085b067f3..7b2efe8ce37 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index f64a9333468..2eabc0bd58e 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 527b9937ed1..a9acc020d27 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index e725e2e406b..0913678ff42 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index efb604d51c1..c69eb1cbe70 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 0e53e44cd7a..0c0c5771a04 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 852a9fdbcd6..2c9a657707b 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index c3decbe8fbf..c7303bc068e 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-examples @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.12.5 + 1.12.6 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 7280fc0d69a..56df48121c0 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 45d7140d1ce..97bdafcc0fb 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.12.5 + 1.12.6 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 27b0b69773e..a68cbc4c4ba 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index ee6be9e7e57..e0efe85b51d 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index b5a09c1e2b4..8ee9ef68c12 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 4127ce578c2..bee3295efba 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 2e80df947b1..94213466ec0 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 053d4d89b71..8b10d2cd389 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index 7de8defb1b5..6589b36c790 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ConnectionConfiguration.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ConnectionConfiguration.java index 45c7a286423..917b3a56a6e 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ConnectionConfiguration.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ConnectionConfiguration.java @@ -34,18 +34,30 @@ public Builder idleTimeout(Long idleTimeout) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("backendTcpProxyProtocolVersion") + private Integer backendTcpProxyProtocolVersion; + + public Builder backendTcpProxyProtocolVersion(Integer backendTcpProxyProtocolVersion) { + this.backendTcpProxyProtocolVersion = backendTcpProxyProtocolVersion; + this.__explicitlySet__.add("backendTcpProxyProtocolVersion"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ConnectionConfiguration build() { - ConnectionConfiguration __instance__ = new ConnectionConfiguration(idleTimeout); + ConnectionConfiguration __instance__ = + new ConnectionConfiguration(idleTimeout, backendTcpProxyProtocolVersion); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(ConnectionConfiguration o) { - Builder copiedBuilder = idleTimeout(o.getIdleTimeout()); + Builder copiedBuilder = + idleTimeout(o.getIdleTimeout()) + .backendTcpProxyProtocolVersion(o.getBackendTcpProxyProtocolVersion()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -72,6 +84,15 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("idleTimeout") Long idleTimeout; + /** + * The backend TCP Proxy Protocol version. + *

+ * Example: `1` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("backendTcpProxyProtocolVersion") + Integer backendTcpProxyProtocolVersion; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectRule.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectRule.java index 20602f33bb4..7f7b33ca96b 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectRule.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectRule.java @@ -7,7 +7,7 @@ * An object that represents the action of returning a specified response code and a redirect URI. Each RedirectRule * object is configured for a particular listener and a designated path. *

- * The default response code is `302 Moved Temporarily`. + * The default response code is `302 Found`. *

**NOTES:** * * This rule applies only to HTTP listeners. @@ -118,7 +118,7 @@ public RedirectRule( * * 307 * * 308 *

- * The default value is `302` (Moved Temporarily). + * The default value is `302` (Found). *

* Example: `301` * diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectUri.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectUri.java index e2d2f953494..a9e21417ea6 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectUri.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/RedirectUri.java @@ -205,10 +205,10 @@ public static Builder builder() { * __{path}/123__ appears as `/example/video/123` in the redirect URI if `/example/video` is the path in the * incoming HTTP request URI. *

- * __{path}123__ appears as `/example/video123` in the redirect URI if `/example/video is the path in the + * __{path}123__ appears as `/example/video123` in the redirect URI if `/example/video` is the path in the * incoming HTTP request URI. *

- * __/{host}/123__ appears as `/example.com/video/123` in the redirect URI if `example.com` is the hostname + * __/{host}/123__ appears as `/example.com/123` in the redirect URI if `example.com` is the hostname * in the incoming HTTP request URI. *

* __/{host}/{port}__ appears as `/example.com/123` in the redirect URI if `example.com` is the hostname and diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 1cb8137f11a..fb16be8be0f 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 836338a9262..88649769ce3 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 8ac2b93c944..7d95a8e1db8 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 1.12.5 + 1.12.6 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.12.5 + 1.12.6 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 1.12.5 + 1.12.6 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 539ee3167da..62138c1c418 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 1.12.5 + 1.12.6 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.12.5 + 1.12.6 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index de8a3a9dadf..e0778c9de78 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 1.12.5 + 1.12.6 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index de2aceb20cd..40ff06874ce 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index e8fa72a8e16..e57e6e11841 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index ffb8087d65d..15466495f15 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index ebd81905fdb..4e3abf85e13 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneAsyncClient.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneAsyncClient.java index c6713abe038..71790f22c54 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneAsyncClient.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneAsyncClient.java @@ -31,7 +31,7 @@ public class NotificationControlPlaneAsyncClient implements NotificationControlP com.oracle.bmc.Services.serviceBuilder() .serviceName("NOTIFICATIONCONTROLPLANE") .serviceEndpointPrefix("notification") - .serviceEndpointTemplate("https://notification.{region}.oraclecloud.com") + .serviceEndpointTemplate("https://notification.{region}.{secondLevelDomain}") .build(); @lombok.Getter(value = lombok.AccessLevel.PACKAGE) diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneClient.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneClient.java index 1bef214c389..c2adedca56a 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneClient.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationControlPlaneClient.java @@ -18,7 +18,7 @@ public class NotificationControlPlaneClient implements NotificationControlPlane com.oracle.bmc.Services.serviceBuilder() .serviceName("NOTIFICATIONCONTROLPLANE") .serviceEndpointPrefix("notification") - .serviceEndpointTemplate("https://notification.{region}.oraclecloud.com") + .serviceEndpointTemplate("https://notification.{region}.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlane.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlane.java index 315807aacbd..674d3009b3d 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlane.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlane.java @@ -119,7 +119,13 @@ ChangeSubscriptionCompartmentResponse changeSubscriptionCompartment( ListSubscriptionsResponse listSubscriptions(ListSubscriptionsRequest request); /** - * Publishes a message to the specified topic. Limits information follows. + * Publishes a message to the specified topic. + *

+ * The topic endpoint is required for this operation. + * To get the topic endpoint, use {@link #getTopic(GetTopicRequest) getTopic} + * and review the `apiEndpoint` value in the response ({@link NotificationTopic}). + *

+ * Limits information follows. *

* Message size limit per request: 64KB. *

diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsync.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsync.java index 70f192ca48f..51eb0827724 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsync.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsync.java @@ -175,7 +175,13 @@ java.util.concurrent.Future listSubscriptions( handler); /** - * Publishes a message to the specified topic. Limits information follows. + * Publishes a message to the specified topic. + *

+ * The topic endpoint is required for this operation. + * To get the topic endpoint, use {@link #getTopic(GetTopicRequest, Consumer, Consumer) getTopic} + * and review the `apiEndpoint` value in the response ({@link NotificationTopic}). + *

+ * Limits information follows. *

* Message size limit per request: 64KB. *

diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsyncClient.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsyncClient.java index 87ef1354ced..136f39b8024 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsyncClient.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneAsyncClient.java @@ -31,7 +31,7 @@ public class NotificationDataPlaneAsyncClient implements NotificationDataPlaneAs com.oracle.bmc.Services.serviceBuilder() .serviceName("NOTIFICATIONDATAPLANE") .serviceEndpointPrefix("notification") - .serviceEndpointTemplate("https://notification.{region}.oraclecloud.com") + .serviceEndpointTemplate("https://notification.{region}.{secondLevelDomain}") .build(); @lombok.Getter(value = lombok.AccessLevel.PACKAGE) diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneClient.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneClient.java index d9b583bbe29..602bff81201 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneClient.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/NotificationDataPlaneClient.java @@ -18,7 +18,7 @@ public class NotificationDataPlaneClient implements NotificationDataPlane { com.oracle.bmc.Services.serviceBuilder() .serviceName("NOTIFICATIONDATAPLANE") .serviceEndpointPrefix("notification") - .serviceEndpointTemplate("https://notification.{region}.oraclecloud.com") + .serviceEndpointTemplate("https://notification.{region}.{secondLevelDomain}") .build(); // attempt twice if it's instance principals, immediately failures will try to refresh the token private static final int MAX_IMMEDIATE_RETRIES_IF_USING_INSTANCE_PRINCIPALS = 2; diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopic.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopic.java index 21777fafa13..199966f2f4f 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopic.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopic.java @@ -275,7 +275,7 @@ public static LifecycleState create(String key) { java.util.Map> definedTags; /** - * The endpoint for managing topic subscriptions or publishing messages to the topic. + * The endpoint for managing subscriptions or publishing messages to the topic. * **/ @com.fasterxml.jackson.annotation.JsonProperty("apiEndpoint") diff --git a/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopicSummary.java b/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopicSummary.java index f3b475ff841..d33b496dd1e 100644 --- a/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopicSummary.java +++ b/bmc-ons/src/main/java/com/oracle/bmc/ons/model/NotificationTopicSummary.java @@ -275,7 +275,7 @@ public static LifecycleState create(String key) { java.util.Map> definedTags; /** - * The endpoint for managing topic subscriptions or publishing messages to the topic. + * The endpoint for managing subscriptions or publishing messages to the topic. * **/ @com.fasterxml.jackson.annotation.JsonProperty("apiEndpoint") diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 89af3015cee..e0df142c335 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 6963dd9e5b6..4bac50ead88 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 57ba5a4d2ee..7f736e25479 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-resourcesearch @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml index 5b9164760b7..50c47fbaada 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index b06c35ebbfe..590825d8e72 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 6eed4f680ff..d3b19e6b552 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index a5ffc5444b1..084d32f3101 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-waas @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 027420a8b10..c7d727ae55c 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.12.5 + 1.12.6 diff --git a/pom.xml b/pom.xml index 696fb39576a..603d8ad4cec 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 1.12.5 + 1.12.6 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure