diff --git a/CHANGELOG.md b/CHANGELOG.md index d124954dbfb..8895a600e27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 1.31.0 - 2021-02-02 +### Added +- Support for checking if a contact for Exadata infrastructure is valid in My Oracle Support in the Database service +- Support for checking if Exadata infrastructure is in a degraded state in the Database service +- Support for updating the operating system on a VM cluster in the Database service +- Support for external databases in the Database service +- Support for uploading objects to the infrequent access storage tier in the Object Storage service +- Support for changing the storage tier of existing objects in the Object Storage service +- Support for private templates in the Resource Manager service +- Support for multiple encryption domains on IPSec tunnels in the Networking service + +### Breaking Changes + - The return type of method `getArchivalState()` in `com.oracle.bmc.objectstorage.responses.GetObjectResponse` has been changed to `com.oracle.bmc.objectstorage.model.ArchivalState` in the Object Storage service + - The return type of method `getArchivalState()` in `com.oracle.bmc.objectstorage.responses.HeadObjectResponse` has been changed to `com.oracle.bmc.objectstorage.model.ArchivalState ` in the Object Storage service + - The method `public java.lang.String getEtag()` has been removed from `com.oracle.bmc.core.responses.ListAppCatalogListingResourceVersionsResponse` in the Core service + ## 1.30.1 - 2021-01-26 ### Added - Support for creating, managing, and using asymmetric keys in the Key Management service diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index 9e2617c9fb0..bedce90e0c1 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 1.30.1 + 1.31.0 ../pom.xml @@ -42,7 +42,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-audit - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-core - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-database - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-dns - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-email - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-identity - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-waas - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-ons - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-budget - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-limits - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-functions - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-events - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-dts - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-oce - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-oda - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-integration - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-applicationmigration - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-vault - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-bds - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-cims - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-logging - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-sch - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 1.30.1 + 1.31.0 false com.oracle.oci.sdk oci-java-sdk-rover - 1.30.1 + 1.31.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 96232b0deaf..dd6b75c5f28 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-budget/src/main/java/com/oracle/bmc/budget/BudgetAsyncClient.java b/bmc-budget/src/main/java/com/oracle/bmc/budget/BudgetAsyncClient.java index a83aaa7ffc2..f86a311914c 100644 --- a/bmc-budget/src/main/java/com/oracle/bmc/budget/BudgetAsyncClient.java +++ b/bmc-budget/src/main/java/com/oracle/bmc/budget/BudgetAsyncClient.java @@ -182,6 +182,43 @@ public BudgetAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public BudgetAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public BudgetAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public BudgetAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 30f10d56520..7d8a08533d3 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java index 3e12b63ce6c..63575c2951c 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/IncidentAsyncClient.java @@ -183,6 +183,43 @@ public IncidentAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public IncidentAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public IncidentAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public IncidentAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsyncClient.java b/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsyncClient.java index d98951be395..1eae128aa80 100644 --- a/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsyncClient.java +++ b/bmc-cims/src/main/java/com/oracle/bmc/cims/UserAsyncClient.java @@ -183,6 +183,43 @@ public UserAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public UserAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public UserAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public UserAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 475088b78b3..4acd268627b 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 4589c714e03..4867870451c 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsyncClient.java b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsyncClient.java index 050cd29219f..8ec50b6bc40 100644 --- a/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsyncClient.java +++ b/bmc-cloudguard/src/main/java/com/oracle/bmc/cloudguard/CloudGuardAsyncClient.java @@ -183,6 +183,43 @@ public CloudGuardAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public CloudGuardAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public CloudGuardAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public CloudGuardAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index e33f312cff8..7d053fa50c2 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -14,7 +14,7 @@ https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm - 1.64 + 1.68 @@ -94,7 +94,7 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 1.30.1 + 1.31.0 diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index 0c49dd43850..5d262b01fe0 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java index 30a8e00fc98..71d8eb0570d 100644 --- a/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java +++ b/bmc-computeinstanceagent/src/main/java/com/oracle/bmc/computeinstanceagent/ComputeInstanceAgentAsyncClient.java @@ -182,6 +182,43 @@ public ComputeInstanceAgentAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ComputeInstanceAgentAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public ComputeInstanceAgentAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public ComputeInstanceAgentAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 48e9d6facd4..3122d52059a 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/ContainerEngineAsyncClient.java b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/ContainerEngineAsyncClient.java index 4f7429697fa..3bcba02de37 100644 --- a/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/ContainerEngineAsyncClient.java +++ b/bmc-containerengine/src/main/java/com/oracle/bmc/containerengine/ContainerEngineAsyncClient.java @@ -183,6 +183,43 @@ public ContainerEngineAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ContainerEngineAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public ContainerEngineAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public ContainerEngineAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 36ef5da4875..8bfc2b3d304 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.30.1 + 1.31.0 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/Blockstorage.java b/bmc-core/src/main/java/com/oracle/bmc/core/Blockstorage.java index a6caed52fb4..cf64665b6a4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/Blockstorage.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/Blockstorage.java @@ -384,7 +384,9 @@ DeleteVolumeBackupPolicyAssignmentResponse deleteVolumeBackupPolicyAssignment( DeleteVolumeGroupResponse deleteVolumeGroup(DeleteVolumeGroupRequest request); /** - * Deletes a volume group backup. This operation deletes all the backups in the volume group. For more information, see [Volume Groups](https://docs.cloud.oracle.com/Content/Block/Concepts/volumegroups.htm). + * Deletes a volume group backup. This operation deletes all the backups in + * the volume group. For more information, see [Volume Groups](https://docs.cloud.oracle.com/Content/Block/Concepts/volumegroups.htm). + * * @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. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsync.java index 9e728b91e8f..5a3a23f592e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsync.java @@ -525,7 +525,9 @@ java.util.concurrent.Future deleteVolumeGroup( handler); /** - * Deletes a volume group backup. This operation deletes all the backups in the volume group. For more information, see [Volume Groups](https://docs.cloud.oracle.com/Content/Block/Concepts/volumegroups.htm). + * Deletes a volume group backup. This operation deletes all the backups in + * the volume group. For more information, see [Volume Groups](https://docs.cloud.oracle.com/Content/Block/Concepts/volumegroups.htm). + * * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java index dc284bf3efa..55d64925b2c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/BlockstorageAsyncClient.java @@ -182,6 +182,43 @@ public BlockstorageAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public BlockstorageAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public BlockstorageAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public BlockstorageAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java b/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java index f3d1e4fb4ac..701215d21cd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/Compute.java @@ -255,7 +255,7 @@ CreateComputeImageCapabilitySchemaResponse createComputeImageCapabilitySchema( * After the console connection has been created and is available, * you connect to the console using SSH. *

- * For more information about console access, see [Accessing the Console](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). + * For more information about instance console connections, see [Troubleshooting Instances Using Instance Console Connections](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -291,6 +291,7 @@ DeleteComputeImageCapabilitySchemaResponse deleteComputeImageCapabilitySchema( /** * Deletes the specified console history metadata and the console history data. + * * @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. @@ -602,12 +603,14 @@ GetWindowsInstanceInitialCredentialsResponse getWindowsInstanceInitialCredential * - **RESET** - Powers off the instance and then powers it back on. *

* - **SOFTSTOP** - Gracefully shuts down the instance by sending a shutdown command to the operating system. - * If the applications that run on the instance take a long time to shut down, they could be improperly stopped, resulting - * in data corruption. To avoid this, shut down the instance using the commands available in the OS before you softstop the + * After waiting 15 minutes for the OS to shut down, the instance is powered off. + * If the applications that run on the instance take more than 15 minutes to shut down, they could be improperly stopped, resulting + * in data corruption. To avoid this, manually shut down the instance using the commands available in the OS before you softstop the * instance. *

- * - **SOFTRESET** - Gracefully reboots the instance by sending a shutdown command to the operating system, and - * then powers the instance back on. + * - **SOFTRESET** - Gracefully reboots the instance by sending a shutdown command to the operating system. + * After waiting 15 minutes for the OS to shut down, the instance is powered off and + * then powered back on. *

* - **SENDDIAGNOSTICINTERRUPT** - For advanced users. **Warning: Sending a diagnostic interrupt to a live system can * cause data corruption or system failure.** Sends a diagnostic interrupt that causes the instance's @@ -616,6 +619,7 @@ GetWindowsInstanceInitialCredentialsResponse getWindowsInstanceInitialCredential * the crash. After the OS restarts, you can analyze the crash dump to diagnose the issue. For more information, see * [Sending a Diagnostic Interrupt](https://docs.cloud.oracle.com/Content/Compute/Tasks/sendingdiagnosticinterrupt.htm). *

+ * * For more information about managing instance lifecycle states, see * [Stopping and Starting an Instance](https://docs.cloud.oracle.com/Content/Compute/Tasks/restartinginstance.htm). * @@ -851,7 +855,7 @@ ListImageShapeCompatibilityEntriesResponse listImageShapeCompatibilityEntries( /** * Lists the console connections for the specified compartment or instance. *

- * For more information about console access, see [Accessing the Console](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). + * For more information about instance console connections, see [Troubleshooting Instances Using Instance Console Connections](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -990,6 +994,7 @@ UpdateComputeImageCapabilitySchemaResponse updateComputeImageCapabilitySchema( /** * Updates the display name of the image. Avoid entering confidential information. + * * @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. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java index 3d8c94da2a6..33a64f049a5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsync.java @@ -329,7 +329,7 @@ java.util.concurrent.Future createImage( * After the console connection has been created and is available, * you connect to the console using SSH. *

- * For more information about console access, see [Accessing the Console](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). + * For more information about instance console connections, see [Troubleshooting Instances Using Instance Console Connections](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). * * * @param request The request object containing the details to send @@ -386,6 +386,7 @@ java.util.concurrent.Future deleteAppCatal /** * Deletes the specified console history metadata and the console history data. * + * * @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 @@ -840,12 +841,14 @@ java.util.concurrent.Future getVolumeAttachment( * - **RESET** - Powers off the instance and then powers it back on. *

* - **SOFTSTOP** - Gracefully shuts down the instance by sending a shutdown command to the operating system. - * If the applications that run on the instance take a long time to shut down, they could be improperly stopped, resulting - * in data corruption. To avoid this, shut down the instance using the commands available in the OS before you softstop the + * After waiting 15 minutes for the OS to shut down, the instance is powered off. + * If the applications that run on the instance take more than 15 minutes to shut down, they could be improperly stopped, resulting + * in data corruption. To avoid this, manually shut down the instance using the commands available in the OS before you softstop the * instance. *

- * - **SOFTRESET** - Gracefully reboots the instance by sending a shutdown command to the operating system, and - * then powers the instance back on. + * - **SOFTRESET** - Gracefully reboots the instance by sending a shutdown command to the operating system. + * After waiting 15 minutes for the OS to shut down, the instance is powered off and + * then powered back on. *

* - **SENDDIAGNOSTICINTERRUPT** - For advanced users. **Warning: Sending a diagnostic interrupt to a live system can * cause data corruption or system failure.** Sends a diagnostic interrupt that causes the instance's @@ -854,6 +857,7 @@ java.util.concurrent.Future getVolumeAttachment( * the crash. After the OS restarts, you can analyze the crash dump to diagnose the issue. For more information, see * [Sending a Diagnostic Interrupt](https://docs.cloud.oracle.com/Content/Compute/Tasks/sendingdiagnosticinterrupt.htm). *

+ * * For more information about managing instance lifecycle states, see * [Stopping and Starting an Instance](https://docs.cloud.oracle.com/Content/Compute/Tasks/restartinginstance.htm). * @@ -1183,7 +1187,7 @@ java.util.concurrent.Future listImages( /** * Lists the console connections for the specified compartment or instance. *

- * For more information about console access, see [Accessing the Console](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). + * For more information about instance console connections, see [Troubleshooting Instances Using Instance Console Connections](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). * * * @param request The request object containing the details to send @@ -1389,6 +1393,7 @@ java.util.concurrent.Future updateDedicatedVmHost /** * Updates the display name of the image. Avoid entering confidential information. * + * * @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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java index d7666701bff..12b100b7637 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeAsyncClient.java @@ -182,6 +182,43 @@ public ComputeAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ComputeAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public ComputeAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public ComputeAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java index 73e44952e38..671ffe6b49c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagement.java @@ -292,7 +292,7 @@ ListInstancePoolInstancesResponse listInstancePoolInstances( ListInstancePoolsResponse listInstancePools(ListInstancePoolsRequest request); /** - * Performs the reset (power off and power on) action on the specified instance pool, + * Performs the reset (immediate power off and power on) action on the specified instance pool, * which performs the action on all the instances in the pool. * * @param request The request object containing the details to send @@ -306,6 +306,9 @@ ListInstancePoolInstancesResponse listInstancePoolInstances( /** * Performs the softreset (ACPI shutdown and power on) action on the specified instance pool, * which performs the action on all the instances in the pool. + *

+ * Softreset gracefully reboots the instances by sending a shutdown command to the operating systems. + * After waiting 15 minutes for the OS to shut down, the instances are powered off and then powered back on. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -328,7 +331,7 @@ ListInstancePoolInstancesResponse listInstancePoolInstances( StartInstancePoolResponse startInstancePool(StartInstancePoolRequest request); /** - * Performs the stop (power off) action on the specified instance pool, + * Performs the stop (immediate power off) action on the specified instance pool, * which performs the action on all the instances in the pool. * * @param request The request object containing the details to send diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java index 7054679aeda..a8d07e4eb75 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsync.java @@ -402,7 +402,7 @@ java.util.concurrent.Future listInstancePools( handler); /** - * Performs the reset (power off and power on) action on the specified instance pool, + * Performs the reset (immediate power off and power on) action on the specified instance pool, * which performs the action on all the instances in the pool. * * @@ -422,6 +422,9 @@ java.util.concurrent.Future resetInstancePool( /** * Performs the softreset (ACPI shutdown and power on) action on the specified instance pool, * which performs the action on all the instances in the pool. + *

+ * Softreset gracefully reboots the instances by sending a shutdown command to the operating systems. + * After waiting 15 minutes for the OS to shut down, the instances are powered off and then powered back on. * * * @param request The request object containing the details to send @@ -456,7 +459,7 @@ java.util.concurrent.Future startInstancePool( handler); /** - * Performs the stop (power off) action on the specified instance pool, + * Performs the stop (immediate power off) action on the specified instance pool, * which performs the action on all the instances in the pool. * * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java index a133285c1a7..75cf9bd9f79 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/ComputeManagementAsyncClient.java @@ -182,6 +182,43 @@ public ComputeManagementAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ComputeManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public ComputeManagementAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public ComputeManagementAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java index 31b29097ed7..b90ccbb2af9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/VirtualNetworkAsyncClient.java @@ -182,6 +182,43 @@ public VirtualNetworkAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public VirtualNetworkAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public VirtualNetworkAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public VirtualNetworkAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java index c331d9a4f0c..7f6e2fc1f62 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/internal/http/ListAppCatalogListingResourceVersionsConverter.java @@ -119,15 +119,6 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( builder.items(response.getItem()); - com.google.common.base.Optional> etagHeader = - com.oracle.bmc.http.internal.HeaderUtils.get( - headers, "etag"); - if (etagHeader.isPresent()) { - builder.etag( - com.oracle.bmc.http.internal.HeaderUtils.toValue( - "etag", etagHeader.get().get(0), String.class)); - } - com.google.common.base.Optional> opcNextPageHeader = com.oracle.bmc.http.internal.HeaderUtils.get( diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/AddSecurityRuleDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/AddSecurityRuleDetails.java index 6fb1ccc976e..81671f23e75 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/AddSecurityRuleDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/AddSecurityRuleDetails.java @@ -267,7 +267,9 @@ public static DestinationType create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("destinationType") DestinationType destinationType; /** - * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, or `INGRESS` for rules to allow inbound IP packets. + * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, + * or `INGRESS` for rules to allow inbound IP packets. + * **/ public enum Direction { Egress("EGRESS"), @@ -302,7 +304,9 @@ public static Direction create(String key) { } }; /** - * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, or `INGRESS` for rules to allow inbound IP packets. + * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, + * or `INGRESS` for rules to allow inbound IP packets. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("direction") Direction direction; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachIScsiVolumeDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachIScsiVolumeDetails.java index 3b01a9f9d7f..a2749e1d57f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachIScsiVolumeDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachIScsiVolumeDetails.java @@ -150,6 +150,7 @@ public AttachIScsiVolumeDetails( /** * Whether to use CHAP authentication for the volume attachment. Defaults to false. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("useChap") Boolean useChap; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachLoadBalancerDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachLoadBalancerDetails.java index e755993338b..6c9c48cc459 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachLoadBalancerDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/AttachLoadBalancerDetails.java @@ -113,7 +113,10 @@ public static Builder builder() { Integer port; /** - * Indicates which VNIC on each instance in the pool should be used to associate with the load balancer. Possible values are \"PrimaryVnic\" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool. + * Indicates which VNIC on each instance in the pool should be used to associate with the load balancer. + * Possible values are \"PrimaryVnic\" or the displayName of one of the secondary VNICs on the instance configuration + * that is associated with the instance pool. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("vnicSelection") String vnicSelection; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolume.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolume.java index fcc2d77d2ff..249c07db819 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolume.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolume.java @@ -333,7 +333,9 @@ public static Builder builder() { String imageId; /** - * Specifies whether the boot volume's data has finished copying from the source boot volume or boot volume backup. + * Specifies whether the boot volume's data has finished copying + * from the source boot volume or boot volume backup. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("isHydrated") Boolean isHydrated; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java index 0a1c4be2ab1..321a79eefbf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BootVolumeBackup.java @@ -326,6 +326,7 @@ public static Builder builder() { /** * The image OCID used to create the boot volume the backup is taken from. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("imageId") String imageId; @@ -409,6 +410,7 @@ public static LifecycleState create(String key) { String sourceBootVolumeBackupId; /** * Specifies whether the backup was created manually, or via scheduled backup policy. + * **/ @lombok.extern.slf4j.Slf4j public enum SourceType { @@ -455,6 +457,7 @@ public static SourceType create(String key) { }; /** * Specifies whether the backup was created manually, or via scheduled backup policy. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceType") SourceType sourceType; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteVirtualCircuitPublicPrefixesDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteVirtualCircuitPublicPrefixesDetails.java index f8e41a20f69..f1a0ad037c6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteVirtualCircuitPublicPrefixesDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/BulkDeleteVirtualCircuitPublicPrefixesDetails.java @@ -64,6 +64,7 @@ public static Builder builder() { /** * The public IP prefixes (CIDRs) to remove from the public virtual circuit. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("publicPrefixes") java.util.List publicPrefixes; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeNatGatewayCompartmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeNatGatewayCompartmentDetails.java index ed849b925fc..d001b72b720 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeNatGatewayCompartmentDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ChangeNatGatewayCompartmentDetails.java @@ -63,6 +63,7 @@ public static Builder builder() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the NAT gateway to. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Cpe.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Cpe.java index 07031cb5961..2178da34ed7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Cpe.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Cpe.java @@ -14,9 +14,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CpeDeviceConfigQuestion.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CpeDeviceConfigQuestion.java index 4cca986f999..efa9e33ffde 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CpeDeviceConfigQuestion.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CpeDeviceConfigQuestion.java @@ -93,6 +93,7 @@ public static Builder builder() { /** * A descriptive label for the question (for example, to display in a form in a graphical interface). + * Avoid entering confidential information. * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateClusterNetworkInstancePoolDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateClusterNetworkInstancePoolDetails.java index 4e5514eb5f6..af60d646dd8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateClusterNetworkInstancePoolDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateClusterNetworkInstancePoolDetails.java @@ -141,12 +141,6 @@ public static Builder builder() { /** * The number of instances that should be in the instance pool. - *

- * For cluster networks with 10 or more instances, the cluster network is created if the required - * number of instances is available and at least 95% of the instances in the pool launch - * successfully. For cluster networks with less than 10 instances, all instances in the pool must - * launch successfully. If the cluster network fails to launch, wait a few minutes, and then try - * creating it again. * **/ @com.fasterxml.jackson.annotation.JsonProperty("size") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCpeDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCpeDetails.java index 740c82959bb..13ffc46c8dd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCpeDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCpeDetails.java @@ -134,7 +134,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java index ad511ec8e88..d618f90a8f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateCrossConnectDetails.java @@ -175,6 +175,7 @@ public static Builder builder() { /** * The OCID of the cross-connect group to put this cross-connect in. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("crossConnectGroupId") String crossConnectGroupId; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDhcpDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDhcpDetails.java index 70e59d057a9..b1d4543fab1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDhcpDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDhcpDetails.java @@ -131,7 +131,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java index cbe248c0f46..25f8cdb5a8d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgAttachmentDetails.java @@ -93,7 +93,9 @@ public static Builder builder() { } /** - * A user-friendly name. Does not have to be unique. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique. Avoid entering + * confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgDetails.java index b07522651f7..b31b7de632e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateDrgDetails.java @@ -108,7 +108,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionDetails.java index 05035042518..910b87c7499 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionDetails.java @@ -187,7 +187,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionTunnelDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionTunnelDetails.java index 741dc377da5..7a310a16104 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionTunnelDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecConnectionTunnelDetails.java @@ -71,13 +71,28 @@ public Builder bgpSessionConfig(CreateIPSecTunnelBgpSessionDetails bgpSessionCon return this; } + @com.fasterxml.jackson.annotation.JsonProperty("encryptionDomainConfig") + private CreateIPSecTunnelEncryptionDomainDetails encryptionDomainConfig; + + public Builder encryptionDomainConfig( + CreateIPSecTunnelEncryptionDomainDetails encryptionDomainConfig) { + this.encryptionDomainConfig = encryptionDomainConfig; + this.__explicitlySet__.add("encryptionDomainConfig"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CreateIPSecConnectionTunnelDetails build() { CreateIPSecConnectionTunnelDetails __instance__ = new CreateIPSecConnectionTunnelDetails( - displayName, routing, ikeVersion, sharedSecret, bgpSessionConfig); + displayName, + routing, + ikeVersion, + sharedSecret, + bgpSessionConfig, + encryptionDomainConfig); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -89,7 +104,8 @@ public Builder copy(CreateIPSecConnectionTunnelDetails o) { .routing(o.getRouting()) .ikeVersion(o.getIkeVersion()) .sharedSecret(o.getSharedSecret()) - .bgpSessionConfig(o.getBgpSessionConfig()); + .bgpSessionConfig(o.getBgpSessionConfig()) + .encryptionDomainConfig(o.getEncryptionDomainConfig()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -117,6 +133,7 @@ public static Builder builder() { public enum Routing { Bgp("BGP"), Static("STATIC"), + Policy("POLICY"), ; private final String value; @@ -208,6 +225,9 @@ public static IkeVersion create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("bgpSessionConfig") CreateIPSecTunnelBgpSessionDetails bgpSessionConfig; + @com.fasterxml.jackson.annotation.JsonProperty("encryptionDomainConfig") + CreateIPSecTunnelEncryptionDomainDetails encryptionDomainConfig; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecTunnelEncryptionDomainDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecTunnelEncryptionDomainDetails.java new file mode 100644 index 00000000000..d5a92323c2b --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateIPSecTunnelEncryptionDomainDetails.java @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Request to enable a multi-encryption domain policy on the VPNaaS tunnel. + * The cross product of oracleTrafficSelector and cpeTrafficSelector can't be more than 50. + * + *
+ * 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 = CreateIPSecTunnelEncryptionDomainDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class CreateIPSecTunnelEncryptionDomainDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("oracleTrafficSelector") + private java.util.List oracleTrafficSelector; + + public Builder oracleTrafficSelector(java.util.List oracleTrafficSelector) { + this.oracleTrafficSelector = oracleTrafficSelector; + this.__explicitlySet__.add("oracleTrafficSelector"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpeTrafficSelector") + private java.util.List cpeTrafficSelector; + + public Builder cpeTrafficSelector(java.util.List cpeTrafficSelector) { + this.cpeTrafficSelector = cpeTrafficSelector; + this.__explicitlySet__.add("cpeTrafficSelector"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateIPSecTunnelEncryptionDomainDetails build() { + CreateIPSecTunnelEncryptionDomainDetails __instance__ = + new CreateIPSecTunnelEncryptionDomainDetails( + oracleTrafficSelector, cpeTrafficSelector); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateIPSecTunnelEncryptionDomainDetails o) { + Builder copiedBuilder = + oracleTrafficSelector(o.getOracleTrafficSelector()) + .cpeTrafficSelector(o.getCpeTrafficSelector()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleTrafficSelector") + java.util.List oracleTrafficSelector; + + /** + * Lists IPv4 or IPv6-enabled subnets in your on-premises network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpeTrafficSelector") + java.util.List cpeTrafficSelector; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java index b7448f1cf49..b413c780aea 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateImageDetails.java @@ -6,6 +6,7 @@ /** * Either instanceId or imageSourceDetails must be provided in addition to other required parameters. + * *
* 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 @@ -173,6 +174,7 @@ public static Builder builder() { /** * The OCID of the instance you want to use as the basis for the image. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("instanceId") String instanceId; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java index bd4ad5910b4..49d7cfeac05 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInstanceConfigurationBase.java @@ -60,7 +60,7 @@ public class CreateInstanceConfigurationBase { java.util.Map> definedTags; /** - * A user-friendly name for the instance configuration. Does not have to be unique, + * A user-friendly name for the instance configuration. Does not have to be unique, * and it's changeable. Avoid entering confidential information. * **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInternetGatewayDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInternetGatewayDetails.java index b68f7c4f3c0..20e09d89cae 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInternetGatewayDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateInternetGatewayDetails.java @@ -136,7 +136,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java index 4cef127bb9d..c49fc010acf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateLocalPeeringGatewayDetails.java @@ -121,6 +121,7 @@ public static Builder builder() { /** * The OCID of the compartment containing the local peering gateway (LPG). + * **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateRouteTableDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateRouteTableDetails.java index 93204a8cb4a..7d3846df1f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateRouteTableDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateRouteTableDetails.java @@ -136,7 +136,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; @@ -153,6 +155,7 @@ public static Builder builder() { /** * The collection of rules used for routing destination IPs to network devices. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("routeRules") java.util.List routeRules; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSecurityListDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSecurityListDetails.java index 546312901e1..8fa9b63679a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSecurityListDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSecurityListDetails.java @@ -148,7 +148,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateServiceGatewayDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateServiceGatewayDetails.java index f7fe8a855e5..8cbda8928ff 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateServiceGatewayDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateServiceGatewayDetails.java @@ -196,6 +196,7 @@ public static Builder builder() { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("vcnId") String vcnId; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSubnetDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSubnetDetails.java index 632b79c5a96..2ede03a6b6b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSubnetDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateSubnetDetails.java @@ -252,7 +252,9 @@ public static Builder builder() { String dhcpOptionsId; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java index 0dab1f86dfc..b96c1e5a702 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVcnDetails.java @@ -213,7 +213,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java index e4ed464cdf3..1697a292aee 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVirtualCircuitDetails.java @@ -232,7 +232,7 @@ public static Builder builder() { } /** - * The provisioned data rate of the connection. To get a list of the + * The provisioned data rate of the connection. To get a list of the * available bandwidth levels (that is, shapes), see * {@link #listFastConnectProviderVirtualCircuitBandwidthShapes(ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) listFastConnectProviderVirtualCircuitBandwidthShapes}. *

diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVlanDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVlanDetails.java index 445b9bcc382..a820a68930b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVlanDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVlanDetails.java @@ -202,7 +202,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A descriptive name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A descriptive name. Does not have to be unique, and it's changeable. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java index 3b59f95301b..3175a100c7f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupBackupDetails.java @@ -120,7 +120,10 @@ public static Builder builder() { } /** - * The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group. + * The OCID of the compartment that will contain the volume group + * backup. This parameter is optional, by default backup will be created in + * the same compartment and source volume group. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupDetails.java index 9f4218ab33b..6782e5a2bff 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CreateVolumeGroupDetails.java @@ -161,7 +161,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name for the volume group. Does not have to be + * unique, and it's changeable. Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java index fe6ea3ea27e..8ee0a157563 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnect.java @@ -21,9 +21,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -210,6 +207,7 @@ public static Builder builder() { /** * The OCID of the cross-connect group this cross-connect belongs to (if any). + * **/ @com.fasterxml.jackson.annotation.JsonProperty("crossConnectGroupId") String crossConnectGroupId; @@ -305,6 +303,7 @@ public static LifecycleState create(String key) { /** * The name of the FastConnect location where this cross-connect is installed. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("locationName") String locationName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java index e4bad2972db..c88409962f3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectGroup.java @@ -18,9 +18,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java index d5891f85d0a..1d031d1c901 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/CrossConnectMapping.java @@ -226,7 +226,7 @@ public static Builder builder() { String customerBgpPeeringIpv6; /** - * The IPv6 address for Oracle's end of the BGP session. Only subnet masks from /64 up to /127 are allowed. + * The IPv6 address for Oracle's end of the BGP session. Only subnet masks from /64 up to /127 are allowed. * If the session goes from Oracle to a customer's edge router, * the customer specifies this information. If the session goes from Oracle to * a provider's edge router, the provider specifies this. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DeleteVirtualCircuitPublicPrefixDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DeleteVirtualCircuitPublicPrefixDetails.java index cd957a4296c..8f414e35938 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DeleteVirtualCircuitPublicPrefixDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DeleteVirtualCircuitPublicPrefixDetails.java @@ -63,6 +63,7 @@ public static Builder builder() { /** * An individual public IP prefix (CIDR) to remove from the public virtual circuit. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("cidrBlock") String cidrBlock; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java index 8463aa11d05..73526f260df 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DhcpOptions.java @@ -20,9 +20,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Drg.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Drg.java index e4c6da902ef..19ba49cf64d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Drg.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Drg.java @@ -14,9 +14,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java index 8dbab2290b2..d4c87994e2d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/DrgAttachment.java @@ -7,9 +7,6 @@ /** * A link between a DRG and VCN. For more information, see * [Overview of the Networking Service](https://docs.cloud.oracle.com/Content/Network/Concepts/overview.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/EncryptionDomainConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/EncryptionDomainConfig.java new file mode 100644 index 00000000000..7b22b32f7cf --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/EncryptionDomainConfig.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Configuration information used by the encryption domain policy. + *
+ * 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 = EncryptionDomainConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EncryptionDomainConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("oracleTrafficSelector") + private java.util.List oracleTrafficSelector; + + public Builder oracleTrafficSelector(java.util.List oracleTrafficSelector) { + this.oracleTrafficSelector = oracleTrafficSelector; + this.__explicitlySet__.add("oracleTrafficSelector"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpeTrafficSelector") + private java.util.List cpeTrafficSelector; + + public Builder cpeTrafficSelector(java.util.List cpeTrafficSelector) { + this.cpeTrafficSelector = cpeTrafficSelector; + this.__explicitlySet__.add("cpeTrafficSelector"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EncryptionDomainConfig build() { + EncryptionDomainConfig __instance__ = + new EncryptionDomainConfig(oracleTrafficSelector, cpeTrafficSelector); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EncryptionDomainConfig o) { + Builder copiedBuilder = + oracleTrafficSelector(o.getOracleTrafficSelector()) + .cpeTrafficSelector(o.getCpeTrafficSelector()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleTrafficSelector") + java.util.List oracleTrafficSelector; + + /** + * Lists IPv4 or IPv6-enabled subnets in your on-premises network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpeTrafficSelector") + java.util.List cpeTrafficSelector; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ExportImageViaObjectStorageUriDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ExportImageViaObjectStorageUriDetails.java index 84b872ef971..38a8977f28d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ExportImageViaObjectStorageUriDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ExportImageViaObjectStorageUriDetails.java @@ -74,8 +74,10 @@ public ExportImageViaObjectStorageUriDetails(String destinationUri) { } /** - * The Object Storage URL to export the image to. See [Object Storage URLs](https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm#URLs) - * and [Using Pre-Authenticated Requests](https://docs.cloud.oracle.com/Content/Object/Tasks/usingpreauthenticatedrequests.htm) for constructing URLs for image import/export. + * The Object Storage URL to export the image to. See [Object + * Storage URLs](https://docs.cloud.oracle.com/Content/Compute/Tasks/imageimportexport.htm#URLs) + * and [Using Pre-Authenticated Requests](https://docs.cloud.oracle.com/Content/Object/Tasks/usingpreauthenticatedrequests.htm) + * for constructing URLs for image import/export. * **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationUri") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/FastConnectProviderServiceKey.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/FastConnectProviderServiceKey.java index 1e67dbad00a..52a993cecd3 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/FastConnectProviderServiceKey.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/FastConnectProviderServiceKey.java @@ -95,7 +95,7 @@ public static Builder builder() { String name; /** - * The provisioned data rate of the connection. To get a list of the + * The provisioned data rate of the connection. To get a list of the * available bandwidth levels (that is, shapes), see * {@link #listFastConnectProviderVirtualCircuitBandwidthShapes(ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) listFastConnectProviderVirtualCircuitBandwidthShapes}. *

diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnection.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnection.java index a5ad8f6f4d5..a53fab56cfc 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnection.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnection.java @@ -26,9 +26,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnectionTunnel.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnectionTunnel.java index 2fbd03e37ef..a11f8690f01 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnectionTunnel.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/IPSecConnectionTunnel.java @@ -110,6 +110,15 @@ public Builder bgpSessionInfo(BgpSessionInfo bgpSessionInfo) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("encryptionDomainConfig") + private EncryptionDomainConfig encryptionDomainConfig; + + public Builder encryptionDomainConfig(EncryptionDomainConfig encryptionDomainConfig) { + this.encryptionDomainConfig = encryptionDomainConfig; + this.__explicitlySet__.add("encryptionDomainConfig"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("routing") private Routing routing; @@ -152,6 +161,7 @@ public IPSecConnectionTunnel build() { lifecycleState, displayName, bgpSessionInfo, + encryptionDomainConfig, routing, timeCreated, timeStatusUpdated); @@ -171,6 +181,7 @@ public Builder copy(IPSecConnectionTunnel o) { .lifecycleState(o.getLifecycleState()) .displayName(o.getDisplayName()) .bgpSessionInfo(o.getBgpSessionInfo()) + .encryptionDomainConfig(o.getEncryptionDomainConfig()) .routing(o.getRouting()) .timeCreated(o.getTimeCreated()) .timeStatusUpdated(o.getTimeStatusUpdated()); @@ -225,6 +236,7 @@ public enum Status { Up("UP"), Down("DOWN"), DownForMaintenance("DOWN_FOR_MAINTENANCE"), + PartialUp("PARTIAL_UP"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -386,6 +398,9 @@ public static LifecycleState create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("bgpSessionInfo") BgpSessionInfo bgpSessionInfo; + + @com.fasterxml.jackson.annotation.JsonProperty("encryptionDomainConfig") + EncryptionDomainConfig encryptionDomainConfig; /** * The type of routing used for this tunnel (either BGP dynamic routing or static routing). * @@ -394,6 +409,7 @@ public static LifecycleState create(String key) { public enum Routing { Bgp("BGP"), Static("STATIC"), + Policy("POLICY"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java index 1b7839b1f7b..ba3976e39e9 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/IScsiVolumeAttachment.java @@ -285,16 +285,17 @@ public IScsiVolumeAttachment( } /** - * The Challenge-Handshake-Authentication-Protocol (CHAP) secret valid for the associated CHAP user name. + * The Challenge-Handshake-Authentication-Protocol (CHAP) secret + * valid for the associated CHAP user name. * (Also called the \"CHAP password\".) - *

* **/ @com.fasterxml.jackson.annotation.JsonProperty("chapSecret") String chapSecret; /** - * The volume's system-generated Challenge-Handshake-Authentication-Protocol (CHAP) user name. See [RFC 1994](https://tools.ietf.org/html/rfc1994) for more on CHAP. + * The volume's system-generated Challenge-Handshake-Authentication-Protocol + * (CHAP) user name. See [RFC 1994](https://tools.ietf.org/html/rfc1994) for more on CHAP. *

* Example: `ocid1.volume.oc1.phx.` * @@ -312,7 +313,8 @@ public IScsiVolumeAttachment( String ipv4; /** - * The target volume's iSCSI Qualified Name in the format defined by [RFC 3720](https://tools.ietf.org/html/rfc3720#page-32). + * The target volume's iSCSI Qualified Name in the format defined + * by [RFC 3720](https://tools.ietf.org/html/rfc3720#page-32). *

* Example: `iqn.2015-12.us.oracle.com:` * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ImageSourceDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ImageSourceDetails.java index 44737c65c3b..051e7145f84 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ImageSourceDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ImageSourceDetails.java @@ -46,7 +46,7 @@ public class ImageSourceDetails { @com.fasterxml.jackson.annotation.JsonProperty("operatingSystemVersion") String operatingSystemVersion; /** - * The format of the image to be imported. Only monolithic + * The format of the image to be imported. Only monolithic * images are supported. This attribute is not used for exported Oracle images with the OCI image format. * **/ @@ -83,7 +83,7 @@ public static SourceImageType create(String key) { } }; /** - * The format of the image to be imported. Only monolithic + * The format of the image to be imported. Only monolithic * images are supported. This attribute is not used for exported Oracle images with the OCI image format. * **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentConfig.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentConfig.java index 25fc5eb9175..bfefec8810d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentConfig.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentConfig.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Instance agent configuration on the instance + * Configuration options for the Oracle Cloud Agent software running on the instance. *
* 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 @@ -73,14 +73,15 @@ public static Builder builder() { } /** - * Whether the agent running on the instance can gather performance metrics and monitor the instance. + * Whether Oracle Cloud Agent can gather performance metrics and monitor the instance using the + * monitoring plugins. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isMonitoringDisabled") Boolean isMonitoringDisabled; /** - * Whether the agent running on the instance can run all the available management plugins. + * Whether Oracle Cloud Agent can run all the available management plugins. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isManagementDisabled") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentFeatures.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentFeatures.java index 4b39f00b1e9..fa091dfa9f0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentFeatures.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceAgentFeatures.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Instance agent features supported on the image + * Oracle Cloud Agent features supported on the image. *
* 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 @@ -73,14 +73,14 @@ public static Builder builder() { } /** - * Whether the agent running on the instance can gather performance metrics and monitor the instance. + * Whether Oracle Cloud Agent can gather performance metrics and monitor the instance. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isMonitoringSupported") Boolean isMonitoringSupported; /** - * Whether the agent running on the instance can run all the available management plugins + * Whether Oracle Cloud Agent can run all the available management plugins. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isManagementSupported") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationInstanceSourceViaImageDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationInstanceSourceViaImageDetails.java index 7ca9be664ed..990fb5418bb 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationInstanceSourceViaImageDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationInstanceSourceViaImageDetails.java @@ -88,7 +88,9 @@ public InstanceConfigurationInstanceSourceViaImageDetails( } /** - * The size of the boot volume in GBs. The minimum value is 50 GB and the maximum value is 16384 GB (16TB). + * The size of the boot volume in GBs. The minimum value is 50 GB and the maximum + * value is 16384 GB (16TB). + * **/ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") Long bootVolumeSizeInGBs; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationIscsiAttachVolumeDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationIscsiAttachVolumeDetails.java index 537d8220c46..a882369494a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationIscsiAttachVolumeDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationIscsiAttachVolumeDetails.java @@ -123,6 +123,7 @@ public InstanceConfigurationIscsiAttachVolumeDetails( /** * Whether to use CHAP authentication for the volume attachment. Defaults to false. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("useChap") Boolean useChap; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceAgentConfigDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceAgentConfigDetails.java index 7812b01dc7b..086720c54bd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceAgentConfigDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchInstanceAgentConfigDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Instance agent configuration options to choose for launching the instance + * Configuration options for the Oracle Cloud Agent software running on the instance. *
* 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 @@ -74,16 +74,16 @@ public static Builder builder() { } /** - * Whether the agent running on the instance can gather performance metrics and monitor the instance. - * Default value is false. + * Whether Oracle Cloud Agent can gather performance metrics and monitor the instance using the + * monitoring plugins. Default value is false (monitoring plugins are enabled). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isMonitoringDisabled") Boolean isMonitoringDisabled; /** - * Whether the agent running on the instance can run all the available management plugins. - * Default value is false. + * Whether Oracle Cloud Agent can run all the available management plugins. + * Default value is false (management plugins are enabled). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isManagementDisabled") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java index ca499685f9a..1db012495c4 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConfigurationLaunchOptions.java @@ -126,7 +126,7 @@ public static Builder builder() { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. @@ -183,7 +183,7 @@ public static BootVolumeType create(String key) { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. @@ -192,10 +192,10 @@ public static BootVolumeType create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeType") BootVolumeType bootVolumeType; /** - * Firmware used to boot VM. Select the option that matches your operating system. - * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating + * Firmware used to boot VM. Select the option that matches your operating system. + * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating * systems that boot using MBR style bootloaders. - * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the + * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the * default for Oracle-provided images. * **/ @@ -243,10 +243,10 @@ public static Firmware create(String key) { } }; /** - * Firmware used to boot VM. Select the option that matches your operating system. - * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating + * Firmware used to boot VM. Select the option that matches your operating system. + * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating * systems that boot using MBR style bootloaders. - * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the + * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the * default for Oracle-provided images. * **/ @@ -254,7 +254,7 @@ public static Firmware create(String key) { Firmware firmware; /** * Emulation type for the physical network interface card (NIC). - * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. + * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. * * `VFIO` - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. @@ -306,7 +306,7 @@ public static NetworkType create(String key) { }; /** * Emulation type for the physical network interface card (NIC). - * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. + * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. * * `VFIO` - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. @@ -319,7 +319,7 @@ public static NetworkType create(String key) { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. @@ -376,7 +376,7 @@ public static RemoteDataVolumeType create(String key) { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConsoleConnection.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConsoleConnection.java index 7b1779e936a..7aa9c6eeca8 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConsoleConnection.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceConsoleConnection.java @@ -8,8 +8,7 @@ * The `InstanceConsoleConnection` API provides you with console access to Compute instances, * enabling you to troubleshoot malfunctioning instances remotely. *

- * For more information about console access, see - * [Accessing the Console](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). + * For more information about instance console connections, see [Troubleshooting Instances Using Instance Console Connections](https://docs.cloud.oracle.com/Content/Compute/References/serialconsole.htm). * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolLoadBalancerAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolLoadBalancerAttachment.java index dd62ca5c778..88d7fe6c5bf 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolLoadBalancerAttachment.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolLoadBalancerAttachment.java @@ -162,7 +162,10 @@ public static Builder builder() { Integer port; /** - * Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. Possible values are \"PrimaryVnic\" or the displayName of one of the secondary VNICs on the instance configuration that is associated with the instance pool. + * Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. + * Possible values are \"PrimaryVnic\" or the displayName of one of the secondary VNICs on the instance configuration + * that is associated with the instance pool. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("vnicSelection") String vnicSelection; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java index 9ac397a7682..8cbfc07690d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstancePoolSummary.java @@ -176,7 +176,7 @@ public static Builder builder() { String compartmentId; /** - * The user-friendly name. Does not have to be unique. + * The user-friendly name. Does not have to be unique. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSourceViaImageDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSourceViaImageDetails.java index af4570b1ef3..e35095c906b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSourceViaImageDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSourceViaImageDetails.java @@ -99,6 +99,7 @@ public InstanceSourceViaImageDetails( /** * The size of the boot volume in GBs. Minimum value is 50 GB and maximum value is 16384 GB (16TB). + * **/ @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeSizeInGBs") Long bootVolumeSizeInGBs; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSummary.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSummary.java index 3a1cd2038cb..85a1ead6b23 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSummary.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InstanceSummary.java @@ -191,7 +191,7 @@ public static Builder builder() { String compartmentId; /** - * The user-friendly name. Does not have to be unique. + * The user-friendly name. Does not have to be unique. **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java index 73157b6ff12..4235e051105 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/InternetGateway.java @@ -12,9 +12,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java index c925b7f6247..08543e0742d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Ipv6.java @@ -236,7 +236,7 @@ public static Builder builder() { /** * The IPv6 address of the `IPv6` object. The address is within the private IPv6 CIDR block * of the VNIC's subnet (see the `ipv6CidrBlock` attribute for the {@link Subnet} - * object). + * object. *

* Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789` * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceAgentConfigDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceAgentConfigDetails.java index 58749317d9e..05c95def106 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceAgentConfigDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceAgentConfigDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Instance agent configuration options to choose for launching the instance + * Configuration options for the Oracle Cloud Agent software running on the instance. *
* 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 @@ -74,16 +74,16 @@ public static Builder builder() { } /** - * Whether the agent running on the instance can gather performance metrics and monitor the instance. - * Default value is false. + * Whether Oracle Cloud Agent can gather performance metrics and monitor the instance using the + * monitoring plugins. Default value is false (monitoring plugins are enabled). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isMonitoringDisabled") Boolean isMonitoringDisabled; /** - * Whether the agent running on the instance can run all the available management plugins. - * Default value is false. + * Whether Oracle Cloud Agent can run all the available management plugins. + * Default value is false (management plugins are enabled). * **/ @com.fasterxml.jackson.annotation.JsonProperty("isManagementDisabled") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java index c25ba902f68..20daae86e6f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchInstanceDetails.java @@ -526,7 +526,7 @@ public static Builder builder() { String subnetId; /** - * Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false. + * Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. **/ @com.fasterxml.jackson.annotation.JsonProperty("isPvEncryptionInTransitEnabled") Boolean isPvEncryptionInTransitEnabled; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java index 75dcee610e3..957f23e23b7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LaunchOptions.java @@ -124,7 +124,7 @@ public static Builder builder() { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle-provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. @@ -181,7 +181,7 @@ public static BootVolumeType create(String key) { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle-provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. @@ -190,10 +190,10 @@ public static BootVolumeType create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("bootVolumeType") BootVolumeType bootVolumeType; /** - * Firmware used to boot VM. Select the option that matches your operating system. - * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating + * Firmware used to boot VM. Select the option that matches your operating system. + * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating * systems that boot using MBR style bootloaders. - * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the + * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the * default for Oracle-provided images. * **/ @@ -241,10 +241,10 @@ public static Firmware create(String key) { } }; /** - * Firmware used to boot VM. Select the option that matches your operating system. - * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating + * Firmware used to boot VM. Select the option that matches your operating system. + * * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating * systems that boot using MBR style bootloaders. - * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the + * * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the * default for Oracle-provided images. * **/ @@ -252,7 +252,7 @@ public static Firmware create(String key) { Firmware firmware; /** * Emulation type for the physical network interface card (NIC). - * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. + * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. * * `VFIO` - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. @@ -304,7 +304,7 @@ public static NetworkType create(String key) { }; /** * Emulation type for the physical network interface card (NIC). - * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. + * * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. * * `VFIO` - Direct attached Virtual Function network controller. This is the networking type * when you launch an instance using hardware-assisted (SR-IOV) networking. * * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. @@ -317,7 +317,7 @@ public static NetworkType create(String key) { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle-provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. @@ -374,7 +374,7 @@ public static RemoteDataVolumeType create(String key) { * * `ISCSI` - ISCSI attached block storage device. * * `SCSI` - Emulated SCSI disk. * * `IDE` - Emulated IDE disk. - * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + * * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data * volumes on Oracle-provided images. * * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block * storage volumes on Oracle-provided images. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java index c0d234bab99..781ec5be8bd 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/LocalPeeringGateway.java @@ -14,9 +14,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/NatGateway.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/NatGateway.java index f81af188736..3592386ab06 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/NatGateway.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/NatGateway.java @@ -15,9 +15,6 @@ * administrator. If you are an administrator who needs to write * policies to give users access, see [Getting Started with * Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -222,7 +219,9 @@ public static Builder builder() { java.util.Map freeformTags; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the NAT gateway. + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * NAT gateway. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("id") String id; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java index 8f4fdae3a5d..a17860cc14e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/NetworkSecurityGroup.java @@ -43,9 +43,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PeerRegionForRemotePeering.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PeerRegionForRemotePeering.java index da81b82e26a..28b37936807 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/PeerRegionForRemotePeering.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PeerRegionForRemotePeering.java @@ -5,7 +5,9 @@ package com.oracle.bmc.core.model; /** - * Details about a region that supports remote VCN peering. For more information, see [VCN Peering](https://docs.cloud.oracle.com/Content/Network/Tasks/VCNpeering.htm). + * Details about a region that supports remote VCN peering. For more + * information, see [VCN Peering](https://docs.cloud.oracle.com/Content/Network/Tasks/VCNpeering.htm). + * *
* 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 diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PortRange.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PortRange.java index 91e66123886..1c1ea30d6e5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/PortRange.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PortRange.java @@ -77,6 +77,7 @@ public static Builder builder() { /** * The minimum port number. Must not be greater than the maximum port number. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("min") Integer min; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java index d4235a7818e..52ff8d85c04 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PrivateIp.java @@ -39,9 +39,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -353,7 +350,6 @@ public static Builder builder() { /** * The OCID of the VNIC the private IP is assigned to. The VNIC and private IP * must be in the same subnet. - *

* However, if the `PrivateIp` object is being used with a VLAN as part of * the Oracle Cloud VMware Solution, the `vnicId` is null. * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/PublicIp.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/PublicIp.java index f187888ef49..9a2012db886 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/PublicIp.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/PublicIp.java @@ -14,9 +14,6 @@ *

* For more information and comparison of the two types, * see [Public IP Addresses](https://docs.cloud.oracle.com/Content/Network/Tasks/managingpublicIPs.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/RemotePeeringConnection.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/RemotePeeringConnection.java index aea230e5d04..e2200dce51f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/RemotePeeringConnection.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/RemotePeeringConnection.java @@ -14,9 +14,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java index 3350c286630..41cf3dcfe1d 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/RouteTable.java @@ -12,9 +12,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -255,6 +252,7 @@ public static LifecycleState create(String key) { /** * The collection of rules for routing destination IPs to network devices. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("routeRules") java.util.List routeRules; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java index ae6eff74dd4..d40d7517628 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityList.java @@ -22,9 +22,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityRule.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityRule.java index 3d5587c5f22..031e7683609 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityRule.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/SecurityRule.java @@ -312,7 +312,9 @@ public static DestinationType create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("destinationType") DestinationType destinationType; /** - * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, or `INGRESS` for rules to allow inbound IP packets. + * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, + * or `INGRESS` for rules to allow inbound IP packets. + * **/ @lombok.extern.slf4j.Slf4j public enum Direction { @@ -358,7 +360,9 @@ public static Direction create(String key) { } }; /** - * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, or `INGRESS` for rules to allow inbound IP packets. + * Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, + * or `INGRESS` for rules to allow inbound IP packets. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("direction") Direction direction; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/ServiceGateway.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/ServiceGateway.java index d9447d87f0f..9497979eb1b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/ServiceGateway.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/ServiceGateway.java @@ -16,9 +16,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java index b41f6840b70..0210d305265 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Subnet.java @@ -14,9 +14,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/TunnelStatus.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/TunnelStatus.java index b04421e18ed..9db8007e72c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/TunnelStatus.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/TunnelStatus.java @@ -107,6 +107,7 @@ public enum LifecycleState { Up("UP"), Down("DOWN"), DownForMaintenance("DOWN_FOR_MAINTENANCE"), + PartialUp("PARTIAL_UP"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIPSecConnectionTunnelDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIPSecConnectionTunnelDetails.java index 13f7b32b4ae..468231781da 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIPSecConnectionTunnelDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIPSecConnectionTunnelDetails.java @@ -62,13 +62,27 @@ public Builder bgpSessionConfig(UpdateIPSecTunnelBgpSessionDetails bgpSessionCon return this; } + @com.fasterxml.jackson.annotation.JsonProperty("encryptionDomainConfig") + private UpdateIPSecTunnelEncryptionDomainDetails encryptionDomainConfig; + + public Builder encryptionDomainConfig( + UpdateIPSecTunnelEncryptionDomainDetails encryptionDomainConfig) { + this.encryptionDomainConfig = encryptionDomainConfig; + this.__explicitlySet__.add("encryptionDomainConfig"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateIPSecConnectionTunnelDetails build() { UpdateIPSecConnectionTunnelDetails __instance__ = new UpdateIPSecConnectionTunnelDetails( - displayName, routing, ikeVersion, bgpSessionConfig); + displayName, + routing, + ikeVersion, + bgpSessionConfig, + encryptionDomainConfig); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -79,7 +93,8 @@ public Builder copy(UpdateIPSecConnectionTunnelDetails o) { displayName(o.getDisplayName()) .routing(o.getRouting()) .ikeVersion(o.getIkeVersion()) - .bgpSessionConfig(o.getBgpSessionConfig()); + .bgpSessionConfig(o.getBgpSessionConfig()) + .encryptionDomainConfig(o.getEncryptionDomainConfig()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -107,6 +122,7 @@ public static Builder builder() { public enum Routing { Bgp("BGP"), Static("STATIC"), + Policy("POLICY"), ; private final String value; @@ -188,6 +204,9 @@ public static IkeVersion create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("bgpSessionConfig") UpdateIPSecTunnelBgpSessionDetails bgpSessionConfig; + @com.fasterxml.jackson.annotation.JsonProperty("encryptionDomainConfig") + UpdateIPSecTunnelEncryptionDomainDetails encryptionDomainConfig; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIPSecTunnelEncryptionDomainDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIPSecTunnelEncryptionDomainDetails.java new file mode 100644 index 00000000000..da7ab70e763 --- /dev/null +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateIPSecTunnelEncryptionDomainDetails.java @@ -0,0 +1,92 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.core.model; + +/** + * Request to enable a multi-encryption domain policy on the VPNaaS tunnel. + * The cross product of oracleTrafficSelector and cpeTrafficSelector can't be more than 50. + * + *
+ * 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 = UpdateIPSecTunnelEncryptionDomainDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateIPSecTunnelEncryptionDomainDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("oracleTrafficSelector") + private java.util.List oracleTrafficSelector; + + public Builder oracleTrafficSelector(java.util.List oracleTrafficSelector) { + this.oracleTrafficSelector = oracleTrafficSelector; + this.__explicitlySet__.add("oracleTrafficSelector"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("cpeTrafficSelector") + private java.util.List cpeTrafficSelector; + + public Builder cpeTrafficSelector(java.util.List cpeTrafficSelector) { + this.cpeTrafficSelector = cpeTrafficSelector; + this.__explicitlySet__.add("cpeTrafficSelector"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateIPSecTunnelEncryptionDomainDetails build() { + UpdateIPSecTunnelEncryptionDomainDetails __instance__ = + new UpdateIPSecTunnelEncryptionDomainDetails( + oracleTrafficSelector, cpeTrafficSelector); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateIPSecTunnelEncryptionDomainDetails o) { + Builder copiedBuilder = + oracleTrafficSelector(o.getOracleTrafficSelector()) + .cpeTrafficSelector(o.getCpeTrafficSelector()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("oracleTrafficSelector") + java.util.List oracleTrafficSelector; + + /** + * Lists IPv4 or IPv6-enabled subnets in your on-premises network. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("cpeTrafficSelector") + java.util.List cpeTrafficSelector; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceAgentConfigDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceAgentConfigDetails.java index c1fd0393b3e..c3a44f7fa96 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceAgentConfigDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateInstanceAgentConfigDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.core.model; /** - * Instance agent configuration options to choose for updating the instance + * Configuration options for the Oracle Cloud Agent software running on the instance. *
* 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 @@ -74,14 +74,15 @@ public static Builder builder() { } /** - * Whether the agent running on the instance can gather performance metrics and monitor the instance. + * Whether Oracle Cloud Agent can gather performance metrics and monitor the instance using the + * monitoring plugins. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isMonitoringDisabled") Boolean isMonitoringDisabled; /** - * Whether the agent running on the instance can run all the available management plugins + * Whether Oracle Cloud Agent can run all the available management plugins. * **/ @com.fasterxml.jackson.annotation.JsonProperty("isManagementDisabled") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java index bf076d37179..6d1349e891a 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateLaunchOptions.java @@ -224,14 +224,15 @@ public static NetworkType create(String key) { NetworkType networkType; /** - * Whether to enable in-transit encryption for the boot volume's paravirtualized attachment. + * Whether to enable in-transit encryption for the volume's paravirtualized attachment. + * To enable in-transit encryption for block volumes and boot volumes, this field must be set to `true`. *

* Data in transit is transferred over an internal and highly secure network. If you have specific * compliance requirements related to the encryption of the data while it is moving between the - * instance and the boot volume, you can enable in-transit encryption. In-transit encryption is - * not enabled by default. + * instance and the boot volume or the block volume, you can enable in-transit encryption. + * In-transit encryption is not enabled by default. *

- * All boot volumes are encrypted at rest. + * All boot volumes and block volumes are encrypted at rest. *

* For more information, see [Block Volume Encryption](https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm#Encrypti). * diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateRouteTableDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateRouteTableDetails.java index 005c3b56105..fdab4c7e095 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateRouteTableDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateRouteTableDetails.java @@ -123,6 +123,7 @@ public static Builder builder() { /** * The collection of rules used for routing destination IPs to network devices. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("routeRules") java.util.List routeRules; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java index c7f74e2a476..a74dfce0196 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/UpdateVirtualCircuitDetails.java @@ -264,7 +264,7 @@ public static Builder builder() { String gatewayId; /** * The provider's state in relation to this virtual circuit. Relevant only - * if the customer is using FastConnect via a provider. ACTIVE + * if the customer is using FastConnect via a provider. ACTIVE * means the provider has provisioned the virtual circuit from their * end. INACTIVE means the provider has not yet provisioned the virtual * circuit, or has de-provisioned it. @@ -306,7 +306,7 @@ public static ProviderState create(String key) { }; /** * The provider's state in relation to this virtual circuit. Relevant only - * if the customer is using FastConnect via a provider. ACTIVE + * if the customer is using FastConnect via a provider. ACTIVE * means the provider has provisioned the virtual circuit from their * end. INACTIVE means the provider has not yet provisioned the virtual * circuit, or has de-provisioned it. diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java index 5af187fb15e..990eff41b74 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vcn.java @@ -11,9 +11,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -337,7 +334,6 @@ public static Builder builder() { * value, Oracle provides a *different* CIDR for the `ipv6PublicCidrBlock`. Note that IPv6 * addressing is currently supported only in certain regions. See * [IPv6 Addresses](https://docs.cloud.oracle.com/Content/Network/Concepts/ipv6.htm). - *

* Example: `2001:0db8:0123::/48` * **/ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java index 15c0d475296..4bc23db54c0 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VirtualCircuit.java @@ -24,9 +24,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields @@ -350,7 +347,7 @@ public static Builder builder() { } /** - * The provisioned data rate of the connection. To get a list of the + * The provisioned data rate of the connection. To get a list of the * available bandwidth levels (that is, shapes), see * {@link #listFastConnectProviderVirtualCircuitBandwidthShapes(ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) listFastConnectProviderVirtualCircuitBandwidthShapes}. *

diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java index e2ce2de1a27..51be654b5c7 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Vnic.java @@ -26,9 +26,6 @@ * To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, * talk to an administrator. If you're an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). - *

- **Warning:** Oracle recommends that you avoid using any confidential information when you - * supply string values using the API. * *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VnicAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VnicAttachment.java index 500ac10a4b2..64e058bfe37 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VnicAttachment.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VnicAttachment.java @@ -330,6 +330,7 @@ public static LifecycleState create(String key) { /** * The OCID of the VNIC. Available after the attachment process is complete. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("vnicId") String vnicId; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/Volume.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/Volume.java index 2b24a011b3d..4acce9ed4f5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/Volume.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/Volume.java @@ -318,12 +318,14 @@ public static Builder builder() { /** * Specifies whether the cloned volume's data has finished copying from the source volume or backup. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("isHydrated") Boolean isHydrated; /** * The OCID of the Key Management key which is the master encryption key for the volume. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("kmsKeyId") String kmsKeyId; @@ -407,7 +409,9 @@ public static LifecycleState create(String key) { Long sizeInGBs; /** - * The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead. + * The size of the volume in MBs. This field is deprecated. Use + * sizeInGBs instead. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("sizeInMBs") Long sizeInMBs; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java index b12b0e5107c..d34cd8ecc34 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeAttachment.java @@ -103,7 +103,11 @@ public class VolumeAttachment { Boolean isReadOnly; /** - * Whether the attachment should be created in shareable mode. If an attachment is created in shareable mode, then other instances can attach the same volume, provided that they also create their attachments in shareable mode. Only certain volume types can be attached in shareable mode. Defaults to false if not specified. + * Whether the attachment should be created in shareable mode. If an attachment + * is created in shareable mode, then other instances can attach the same volume, provided + * that they also create their attachments in shareable mode. Only certain volume types can + * be attached in shareable mode. Defaults to false if not specified. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("isShareable") Boolean isShareable; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java index b386602f5f1..276f95c8329 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackup.java @@ -410,6 +410,7 @@ public static LifecycleState create(String key) { Long sizeInMBs; /** * Specifies whether the backup was created manually, or via scheduled backup policy. + * **/ @lombok.extern.slf4j.Slf4j public enum SourceType { @@ -456,6 +457,7 @@ public static SourceType create(String key) { }; /** * Specifies whether the backup was created manually, or via scheduled backup policy. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceType") SourceType sourceType; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupPolicyAssignment.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupPolicyAssignment.java index 98b89d74c58..210e0ca7011 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupPolicyAssignment.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupPolicyAssignment.java @@ -110,12 +110,14 @@ public static Builder builder() { /** * The OCID of the volume backup policy that has been assigned to the volume. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("policyId") String policyId; /** - * The date and time the volume backup policy was assigned to the volume. The format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339). + * The date and time the volume backup policy was assigned to the volume. The format is + * defined by [RFC3339](https://tools.ietf.org/html/rfc3339). * **/ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java index 3b3c0ffd762..c73de4f261f 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeBackupSchedule.java @@ -217,7 +217,10 @@ public static BackupType create(String key) { BackupType backupType; /** - * The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset. + * The number of seconds that the volume backup start + * time should be shifted from the default interval boundaries specified by + * the period. The volume backup start time is the frequency start time plus the offset. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("offsetSeconds") Integer offsetSeconds; @@ -276,11 +279,16 @@ public static Period create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("period") Period period; /** - * Indicates how the offset is defined. If value is `STRUCTURED`, then `hourOfDay`, `dayOfWeek`, `dayOfMonth`, and `month` fields are used and `offsetSeconds` will be ignored in requests and users should ignore its value from the responses. + * Indicates how the offset is defined. If value is `STRUCTURED`, + * then `hourOfDay`, `dayOfWeek`, `dayOfMonth`, and `month` fields are used + * and `offsetSeconds` will be ignored in requests and users should ignore its + * value from the responses. *

- * `hourOfDay` is applicable for periods `ONE_DAY`, `ONE_WEEK`, `ONE_MONTH` and `ONE_YEAR`. + * `hourOfDay` is applicable for periods `ONE_DAY`, + * `ONE_WEEK`, `ONE_MONTH` and `ONE_YEAR`. *

- * `dayOfWeek` is applicable for period `ONE_WEEK`. + * `dayOfWeek` is applicable for period + * `ONE_WEEK`. *

* `dayOfMonth` is applicable for periods `ONE_MONTH` and `ONE_YEAR`. *

@@ -288,9 +296,13 @@ public static Period create(String key) { *

* They will be ignored in the requests for inapplicable periods. *

- * If value is `NUMERIC_SECONDS`, then `offsetSeconds` will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses. + * If value is `NUMERIC_SECONDS`, then `offsetSeconds` + * will be used for both requests and responses and the structured fields will be + * ignored in the requests and users should ignore their values from the responses. *

- * For clients using older versions of Apis and not sending `offsetType` in their requests, the behaviour is just like `NUMERIC_SECONDS`. + * For clients using older versions of Apis and not sending `offsetType` in their + * requests, the behaviour is just like `NUMERIC_SECONDS`. + * **/ @lombok.extern.slf4j.Slf4j public enum OffsetType { @@ -336,11 +348,16 @@ public static OffsetType create(String key) { } }; /** - * Indicates how the offset is defined. If value is `STRUCTURED`, then `hourOfDay`, `dayOfWeek`, `dayOfMonth`, and `month` fields are used and `offsetSeconds` will be ignored in requests and users should ignore its value from the responses. + * Indicates how the offset is defined. If value is `STRUCTURED`, + * then `hourOfDay`, `dayOfWeek`, `dayOfMonth`, and `month` fields are used + * and `offsetSeconds` will be ignored in requests and users should ignore its + * value from the responses. *

- * `hourOfDay` is applicable for periods `ONE_DAY`, `ONE_WEEK`, `ONE_MONTH` and `ONE_YEAR`. + * `hourOfDay` is applicable for periods `ONE_DAY`, + * `ONE_WEEK`, `ONE_MONTH` and `ONE_YEAR`. *

- * `dayOfWeek` is applicable for period `ONE_WEEK`. + * `dayOfWeek` is applicable for period + * `ONE_WEEK`. *

* `dayOfMonth` is applicable for periods `ONE_MONTH` and `ONE_YEAR`. *

@@ -348,9 +365,13 @@ public static OffsetType create(String key) { *

* They will be ignored in the requests for inapplicable periods. *

- * If value is `NUMERIC_SECONDS`, then `offsetSeconds` will be used for both requests and responses and the structured fields will be ignored in the requests and users should ignore their values from the responses. + * If value is `NUMERIC_SECONDS`, then `offsetSeconds` + * will be used for both requests and responses and the structured fields will be + * ignored in the requests and users should ignore their values from the responses. *

- * For clients using older versions of Apis and not sending `offsetType` in their requests, the behaviour is just like `NUMERIC_SECONDS`. + * For clients using older versions of Apis and not sending `offsetType` in their + * requests, the behaviour is just like `NUMERIC_SECONDS`. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("offsetType") OffsetType offsetType; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroup.java index 5b2cb7f53e3..3501a4686a6 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroup.java @@ -222,7 +222,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name for the volume group. Does not have to be unique, and it's changeable. Avoid entering confidential information. + * A user-friendly name for the volume group. Does not have to be + * unique, and it's changeable. Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; @@ -325,7 +327,9 @@ public static LifecycleState create(String key) { java.util.List volumeIds; /** - * Specifies whether the newly created cloned volume group's data has finished copying from the source volume group or backup. + * Specifies whether the newly created cloned volume group's data has finished copying + * from the source volume group or backup. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("isHydrated") Boolean isHydrated; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java index 853ce2b5c6a..2bbcd76b234 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/model/VolumeGroupBackup.java @@ -277,7 +277,9 @@ public static Builder builder() { java.util.Map> definedTags; /** - * A user-friendly name for the volume group backup. Does not have to be unique and it's changeable. Avoid entering confidential information. + * A user-friendly name for the volume group backup. Does not have + * to be unique and it's changeable. Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; @@ -379,7 +381,9 @@ public static LifecycleState create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("sizeInGBs") Long sizeInGBs; /** - * Specifies whether the volume group backup was created manually, or via scheduled backup policy. + * Specifies whether the volume group backup was created manually, or via scheduled + * backup policy. + * **/ @lombok.extern.slf4j.Slf4j public enum SourceType { @@ -425,7 +429,9 @@ public static SourceType create(String key) { } }; /** - * Specifies whether the volume group backup was created manually, or via scheduled backup policy. + * Specifies whether the volume group backup was created manually, or via scheduled + * backup policy. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("sourceType") SourceType sourceType; @@ -497,8 +503,9 @@ public static Type create(String key) { /** * The aggregate size used by the volume group backup, in MBs. - * It is typically smaller than sizeInMBs, depending on the space - * consumed on the volume group and whether the volume backup is full or incremental. + *

+ * It is typically smaller than sizeInMBs, depending on the spaceconsumed + * on the volume group and whether the volume backup is full or incremental. * **/ @com.fasterxml.jackson.annotation.JsonProperty("uniqueSizeInMbs") @@ -506,8 +513,9 @@ public static Type create(String key) { /** * The aggregate size used by the volume group backup, in GBs. - * It is typically smaller than sizeInGBs, depending on the space - * consumed on the volume group and whether the volume backup is full or incremental. + *

+ * It is typically smaller than sizeInGBs, depending on the spaceconsumed + * on the volume group and whether the volume backup is full or incremental. * **/ @com.fasterxml.jackson.annotation.JsonProperty("uniqueSizeInGbs") diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/AddVcnCidrRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/AddVcnCidrRequest.java index d988316fa8e..355de939123 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/AddVcnCidrRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/AddVcnCidrRequest.java @@ -42,7 +42,7 @@ public class AddVcnCidrRequest extends com.oracle.bmc.requests.BmcRequest * The state value is case-insensitive. * */ diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVirtualCircuitsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVirtualCircuitsRequest.java index 879bd61bbf6..6f8c0e2264e 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVirtualCircuitsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVirtualCircuitsRequest.java @@ -143,7 +143,8 @@ public static SortOrder create(String key) { } }; /** - * A filter to return only resources that match the specified lifecycle state. The value is case insensitive. + * A filter to return only resources that match the specified lifecycle + * state. The value is case insensitive. * */ private VirtualCircuit.LifecycleState lifecycleState; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVlansRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVlansRequest.java index ea87f787639..5b236c8b682 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVlansRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVlansRequest.java @@ -155,7 +155,8 @@ public static SortOrder create(String key) { private String opcRequestId; /** - * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + * A filter to only return resources that match the given lifecycle + * state. The state value is case-insensitive. * */ private Vlan.LifecycleState lifecycleState; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeBackupsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeBackupsRequest.java index d09c6d092a5..5040ca2bbd5 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeBackupsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeBackupsRequest.java @@ -154,7 +154,8 @@ public static SortOrder create(String key) { } }; /** - * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + * A filter to only return resources that match the given lifecycle state. The state + * value is case-insensitive. * */ private VolumeBackup.LifecycleState lifecycleState; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeGroupsRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeGroupsRequest.java index 47e3a947c6d..dce340dd84c 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeGroupsRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumeGroupsRequest.java @@ -151,7 +151,9 @@ public static SortOrder create(String key) { } }; /** - * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + * A filter to only return resources that match the given lifecycle + * state. The state value is case-insensitive. + * */ private VolumeGroup.LifecycleState lifecycleState; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumesRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumesRequest.java index cafa1813d7e..041a48307f1 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumesRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ListVolumesRequest.java @@ -156,7 +156,8 @@ public static SortOrder create(String key) { private String volumeGroupId; /** - * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + * A filter to only return resources that match the given lifecycle state. The state + * value is case-insensitive. * */ private Volume.LifecycleState lifecycleState; diff --git a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ModifyVcnCidrRequest.java b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ModifyVcnCidrRequest.java index 6259a07ee5b..73e3508032b 100644 --- a/bmc-core/src/main/java/com/oracle/bmc/core/requests/ModifyVcnCidrRequest.java +++ b/bmc-core/src/main/java/com/oracle/bmc/core/requests/ModifyVcnCidrRequest.java @@ -42,7 +42,7 @@ public class ModifyVcnCidrRequest extends com.oracle.bmc.requests.BmcRequest com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 1.30.1 + 1.31.0 diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/Database.java b/bmc-database/src/main/java/com/oracle/bmc/database/Database.java index 086dd53dff0..6d53116e8ee 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 @@ -206,6 +206,51 @@ ChangeDbSystemCompartmentResponse changeDbSystemCompartment( ChangeExadataInfrastructureCompartmentResponse changeExadataInfrastructureCompartment( ChangeExadataInfrastructureCompartmentRequest request); + /** + * Move the {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails} + * and its dependent resources to the specified compartment. + * For more information about moving external container databases, see + * [Moving Database Resources to a Different Compartment](https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes). + * + * @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. + * + * Example: Click here to see how to use ChangeExternalContainerDatabaseCompartment API. + */ + ChangeExternalContainerDatabaseCompartmentResponse changeExternalContainerDatabaseCompartment( + ChangeExternalContainerDatabaseCompartmentRequest request); + + /** + * Move the external non-container database and its dependent resources to the specified compartment. + * For more information about moving external non-container databases, see + * [Moving Database Resources to a Different Compartment](https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes). + * + * @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. + * + * Example: Click here to see how to use ChangeExternalNonContainerDatabaseCompartment API. + */ + ChangeExternalNonContainerDatabaseCompartmentResponse + changeExternalNonContainerDatabaseCompartment( + ChangeExternalNonContainerDatabaseCompartmentRequest request); + + /** + * Move the {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} and + * its dependent resources to the specified compartment. + * For more information about moving external pluggable databases, see + * [Moving Database Resources to a Different Compartment](https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes). + * + * @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. + * + * Example: Click here to see how to use ChangeExternalPluggableDatabaseCompartment API. + */ + ChangeExternalPluggableDatabaseCompartmentResponse changeExternalPluggableDatabaseCompartment( + ChangeExternalPluggableDatabaseCompartmentRequest request); + /** * Move the key store resource to the specified compartment. * For more information about moving key stores, see @@ -233,6 +278,20 @@ ChangeKeyStoreCompartmentResponse changeKeyStoreCompartment( ChangeVmClusterCompartmentResponse changeVmClusterCompartment( ChangeVmClusterCompartmentRequest request); + /** + * Check the status of the external database connection specified in this connector. + * This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields. + * + * @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. + * + * Example: Click here to see how to use CheckExternalDatabaseConnectorConnectionStatus API. + */ + CheckExternalDatabaseConnectorConnectionStatusResponse + checkExternalDatabaseConnectorConnectionStatus( + CheckExternalDatabaseConnectorConnectionStatusRequest request); + /** * Changes the status of the standalone backup resource to `ACTIVE` after the backup is created from the on-premises database and placed in Oracle Cloud Infrastructure Object Storage. *

@@ -432,6 +491,53 @@ CreateExadataInfrastructureResponse createExadataInfrastructure( */ CreateExternalBackupJobResponse createExternalBackupJob(CreateExternalBackupJobRequest request); + /** + * Creates a new external container database resource. + * @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. + * + * Example: Click here to see how to use CreateExternalContainerDatabase API. + */ + CreateExternalContainerDatabaseResponse createExternalContainerDatabase( + CreateExternalContainerDatabaseRequest request); + + /** + * Creates a new external database connector. + * @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. + * + * Example: Click here to see how to use CreateExternalDatabaseConnector API. + */ + CreateExternalDatabaseConnectorResponse createExternalDatabaseConnector( + CreateExternalDatabaseConnectorRequest request); + + /** + * Creates a new ExternalNonContainerDatabase resource + * + * @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. + * + * Example: Click here to see how to use CreateExternalNonContainerDatabase API. + */ + CreateExternalNonContainerDatabaseResponse createExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request); + + /** + * Registers a new {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} + * resource. + * + * @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. + * + * Example: Click here to see how to use CreateExternalPluggableDatabase API. + */ + CreateExternalPluggableDatabaseResponse createExternalPluggableDatabase( + CreateExternalPluggableDatabaseRequest request); + /** * Creates a Key Store. * @@ -616,6 +722,59 @@ DeleteDatabaseSoftwareImageResponse deleteDatabaseSoftwareImage( DeleteExadataInfrastructureResponse deleteExadataInfrastructure( DeleteExadataInfrastructureRequest request); + /** + * Deletes the {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails} + * resource. Any external pluggable databases registered under this container database must be deleted in + * your Oracle Cloud Infrastructure tenancy prior to this operation. + * + * @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. + * + * Example: Click here to see how to use DeleteExternalContainerDatabase API. + */ + DeleteExternalContainerDatabaseResponse deleteExternalContainerDatabase( + DeleteExternalContainerDatabaseRequest request); + + /** + * Deletes an external database connector. + * Any services enabled using the external database connector must be + * deleted prior to this operation. + * + * @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. + * + * Example: Click here to see how to use DeleteExternalDatabaseConnector API. + */ + DeleteExternalDatabaseConnectorResponse deleteExternalDatabaseConnector( + DeleteExternalDatabaseConnectorRequest request); + + /** + * Deletes the Oracle Cloud Infrastructure resource representing an external non-container database. + * + * @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. + * + * Example: Click here to see how to use DeleteExternalNonContainerDatabase API. + */ + DeleteExternalNonContainerDatabaseResponse deleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request); + + /** + * Deletes the {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails}. + * resource. + * + * @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. + * + * Example: Click here to see how to use DeleteExternalPluggableDatabase API. + */ + DeleteExternalPluggableDatabaseResponse deleteExternalPluggableDatabase( + DeleteExternalPluggableDatabaseRequest request); + /** * Deletes a key store. * @@ -674,6 +833,49 @@ DeregisterAutonomousDatabaseDataSafeResponse deregisterAutonomousDatabaseDataSaf DisableAutonomousDatabaseOperationsInsightsResponse disableAutonomousDatabaseOperationsInsights( DisableAutonomousDatabaseOperationsInsightsRequest request); + /** + * Disable Database Management service for the external container database. + * + * @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. + * + * Example: Click here to see how to use DisableExternalContainerDatabaseDatabaseManagement API. + */ + DisableExternalContainerDatabaseDatabaseManagementResponse + disableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request); + + /** + * Disable Database Management Service for the external non-container database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * @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. + * + * Example: Click here to see how to use DisableExternalNonContainerDatabaseDatabaseManagement API. + */ + DisableExternalNonContainerDatabaseDatabaseManagementResponse + disableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request); + + /** + * Disable Database Management Service for the external pluggable database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * @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. + * + * Example: Click here to see how to use DisableExternalPluggableDatabaseDatabaseManagement API. + */ + DisableExternalPluggableDatabaseDatabaseManagementResponse + disableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request); + /** * Downloads the configuration file for the specified Exadata Cloud@Customer infrastructure. * @@ -710,6 +912,51 @@ DownloadVmClusterNetworkConfigFileResponse downloadVmClusterNetworkConfigFile( EnableAutonomousDatabaseOperationsInsightsResponse enableAutonomousDatabaseOperationsInsights( EnableAutonomousDatabaseOperationsInsightsRequest request); + /** + * Enables Database Management Service for the external container database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * @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. + * + * Example: Click here to see how to use EnableExternalContainerDatabaseDatabaseManagement API. + */ + EnableExternalContainerDatabaseDatabaseManagementResponse + enableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request); + + /** + * Enable Database Management Service for the external non-container database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * @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. + * + * Example: Click here to see how to use EnableExternalNonContainerDatabaseDatabaseManagement API. + */ + EnableExternalNonContainerDatabaseDatabaseManagementResponse + enableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request); + + /** + * Enable Database Management Service for the external pluggable database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * @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. + * + * Example: Click here to see how to use EnableExternalPluggableDatabaseDatabaseManagement API. + */ + EnableExternalPluggableDatabaseDatabaseManagementResponse + enableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request); + /** * Initiates a failover the specified Autonomous Database to a standby. * @@ -1162,6 +1409,52 @@ GetExadataInfrastructureOcpusResponse getExadataInfrastructureOcpus( */ GetExternalBackupJobResponse getExternalBackupJob(GetExternalBackupJobRequest request); + /** + * Gets information about the specified external container database. + * @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. + * + * Example: Click here to see how to use GetExternalContainerDatabase API. + */ + GetExternalContainerDatabaseResponse getExternalContainerDatabase( + GetExternalContainerDatabaseRequest request); + + /** + * Gets information about the specified external database connector. + * @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. + * + * Example: Click here to see how to use GetExternalDatabaseConnector API. + */ + GetExternalDatabaseConnectorResponse getExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request); + + /** + * Gets information about a specific external non-container database. + * @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. + * + * Example: Click here to see how to use GetExternalNonContainerDatabase API. + */ + GetExternalNonContainerDatabaseResponse getExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request); + + /** + * Gets information about a specific + * {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} resource. + * + * @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. + * + * Example: Click here to see how to use GetExternalPluggableDatabase API. + */ + GetExternalPluggableDatabaseResponse getExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request); + /** * Gets information about the specified key store. * @@ -1648,6 +1941,55 @@ ListDbSystemPatchHistoryEntriesResponse listDbSystemPatchHistoryEntries( ListExadataInfrastructuresResponse listExadataInfrastructures( ListExadataInfrastructuresRequest request); + /** + * Gets a list of the external container databases in the specified compartment. + * + * @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. + * + * Example: Click here to see how to use ListExternalContainerDatabases API. + */ + ListExternalContainerDatabasesResponse listExternalContainerDatabases( + ListExternalContainerDatabasesRequest request); + + /** + * Gets a list of the external database connectors in the specified compartment. + * + * @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. + * + * Example: Click here to see how to use ListExternalDatabaseConnectors API. + */ + ListExternalDatabaseConnectorsResponse listExternalDatabaseConnectors( + ListExternalDatabaseConnectorsRequest request); + + /** + * Gets a list of the ExternalNonContainerDatabases in the specified compartment. + * + * @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. + * + * Example: Click here to see how to use ListExternalNonContainerDatabases API. + */ + ListExternalNonContainerDatabasesResponse listExternalNonContainerDatabases( + ListExternalNonContainerDatabasesRequest request); + + /** + * Gets a list of the {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} + * resources in the specified compartment. + * + * @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. + * + * Example: Click here to see how to use ListExternalPluggableDatabases API. + */ + ListExternalPluggableDatabasesResponse listExternalPluggableDatabases( + ListExternalPluggableDatabasesRequest request); + /** * Gets a list of the flex components that can be used to launch a new DB system. The flex component determines resources to allocate to the DB system - Database Servers and Storage Servers. * @param request The request object containing the details to send @@ -1898,6 +2240,20 @@ RotateAutonomousDatabaseEncryptionKeyResponse rotateAutonomousDatabaseEncryption */ RotateVaultKeyResponse rotateVaultKey(RotateVaultKeyRequest request); + /** + * Scans for pluggable databases in the specified external container database. + * This operation will return un-registered pluggable databases in the `GetWorkRequest` operation. + * + * @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. + * + * Example: Click here to see how to use ScanExternalContainerDatabasePluggableDatabases API. + */ + ScanExternalContainerDatabasePluggableDatabasesResponse + scanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request); + /** * Starts the specified Autonomous Database. * @@ -2195,6 +2551,56 @@ UpdateExadataInfrastructureResponse updateExadataInfrastructure( */ UpdateExadataIormConfigResponse updateExadataIormConfig(UpdateExadataIormConfigRequest request); + /** + * Updates the properties of + * an {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails} resource, + * such as the display name. + * + * @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. + * + * Example: Click here to see how to use UpdateExternalContainerDatabase API. + */ + UpdateExternalContainerDatabaseResponse updateExternalContainerDatabase( + UpdateExternalContainerDatabaseRequest request); + + /** + * Updates the properties of an external database connector, such as the display name. + * @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. + * + * Example: Click here to see how to use UpdateExternalDatabaseConnector API. + */ + UpdateExternalDatabaseConnectorResponse updateExternalDatabaseConnector( + UpdateExternalDatabaseConnectorRequest request); + + /** + * Updates the properties of an external non-container database, such as the display name. + * @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. + * + * Example: Click here to see how to use UpdateExternalNonContainerDatabase API. + */ + UpdateExternalNonContainerDatabaseResponse updateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request); + + /** + * Updates the properties of an + * {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} resource, + * such as the display name. + * + * @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. + * + * Example: Click here to see how to use UpdateExternalPluggableDatabase API. + */ + UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( + UpdateExternalPluggableDatabaseRequest request); + /** * If no database is associated with the key store, edit the key store. * 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 377cf1506c5..5114908f2f1 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 @@ -286,6 +286,71 @@ java.util.concurrent.Future changeDbSystemCom ChangeExadataInfrastructureCompartmentResponse> handler); + /** + * Move the {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest, Consumer, Consumer) createExternalContainerDatabaseDetails} + * and its dependent resources to the specified compartment. + * For more information about moving external container databases, see + * [Moving Database Resources to a Different Compartment](https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes). + * + * + * @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 + changeExternalContainerDatabaseCompartment( + ChangeExternalContainerDatabaseCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalContainerDatabaseCompartmentRequest, + ChangeExternalContainerDatabaseCompartmentResponse> + handler); + + /** + * Move the external non-container database and its dependent resources to the specified compartment. + * For more information about moving external non-container databases, see + * [Moving Database Resources to a Different Compartment](https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes). + * + * + * @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 + changeExternalNonContainerDatabaseCompartment( + ChangeExternalNonContainerDatabaseCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeExternalNonContainerDatabaseCompartmentResponse> + handler); + + /** + * Move the {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest, Consumer, Consumer) createExternalPluggableDatabaseDetails} and + * its dependent resources to the specified compartment. + * For more information about moving external pluggable databases, see + * [Moving Database Resources to a Different Compartment](https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes). + * + * + * @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 + changeExternalPluggableDatabaseCompartment( + ChangeExternalPluggableDatabaseCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalPluggableDatabaseCompartmentRequest, + ChangeExternalPluggableDatabaseCompartmentResponse> + handler); + /** * Move the key store resource to the specified compartment. * For more information about moving key stores, see @@ -323,6 +388,26 @@ java.util.concurrent.Future changeVmClusterC ChangeVmClusterCompartmentRequest, ChangeVmClusterCompartmentResponse> handler); + /** + * Check the status of the external database connection specified in this connector. + * This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields. + * + * + * @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 + checkExternalDatabaseConnectorConnectionStatus( + CheckExternalDatabaseConnectorConnectionStatusRequest request, + com.oracle.bmc.responses.AsyncHandler< + CheckExternalDatabaseConnectorConnectionStatusRequest, + CheckExternalDatabaseConnectorConnectionStatusResponse> + handler); + /** * Changes the status of the standalone backup resource to `ACTIVE` after the backup is created from the on-premises database and placed in Oracle Cloud Infrastructure Object Storage. *

@@ -612,6 +697,81 @@ java.util.concurrent.Future createExternalBacku CreateExternalBackupJobRequest, CreateExternalBackupJobResponse> handler); + /** + * Creates a new external container database resource. + * + * @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 + createExternalContainerDatabase( + CreateExternalContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExternalContainerDatabaseRequest, + CreateExternalContainerDatabaseResponse> + handler); + + /** + * Creates a new external database connector. + * + * @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 + createExternalDatabaseConnector( + CreateExternalDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExternalDatabaseConnectorRequest, + CreateExternalDatabaseConnectorResponse> + handler); + + /** + * Creates a new ExternalNonContainerDatabase resource + * + * + * @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 + createExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse> + handler); + + /** + * Registers a new {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest, Consumer, Consumer) createExternalPluggableDatabaseDetails} + * resource. + * + * + * @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 + createExternalPluggableDatabase( + CreateExternalPluggableDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + CreateExternalPluggableDatabaseRequest, + CreateExternalPluggableDatabaseResponse> + handler); + /** * Creates a Key Store. * @@ -877,6 +1037,87 @@ java.util.concurrent.Future deleteExadataIn DeleteExadataInfrastructureRequest, DeleteExadataInfrastructureResponse> handler); + /** + * Deletes the {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest, Consumer, Consumer) createExternalContainerDatabaseDetails} + * resource. Any external pluggable databases registered under this container database must be deleted in + * your Oracle Cloud Infrastructure tenancy prior to this operation. + * + * + * @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 + deleteExternalContainerDatabase( + DeleteExternalContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalContainerDatabaseRequest, + DeleteExternalContainerDatabaseResponse> + handler); + + /** + * Deletes an external database connector. + * Any services enabled using the external database connector must be + * deleted prior to this operation. + * + * + * @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 + deleteExternalDatabaseConnector( + DeleteExternalDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalDatabaseConnectorRequest, + DeleteExternalDatabaseConnectorResponse> + handler); + + /** + * Deletes the Oracle Cloud Infrastructure resource representing an external non-container database. + * + * + * @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 + deleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse> + handler); + + /** + * Deletes the {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest, Consumer, Consumer) createExternalPluggableDatabaseDetails}. + * resource. + * + * + * @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 + deleteExternalPluggableDatabase( + DeleteExternalPluggableDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalPluggableDatabaseRequest, + DeleteExternalPluggableDatabaseResponse> + handler); + /** * Deletes a key store. * @@ -965,6 +1206,67 @@ java.util.concurrent.Future deleteVmClusterNetwo DisableAutonomousDatabaseOperationsInsightsResponse> handler); + /** + * Disable Database Management service for the external container database. + * + * + * @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 + disableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse> + handler); + + /** + * Disable Database Management Service for the external non-container database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * + * @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 + disableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + handler); + + /** + * Disable Database Management Service for the external pluggable database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * + * @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 + disableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + handler); + /** * Downloads the configuration file for the specified Exadata Cloud@Customer infrastructure. * @@ -1022,6 +1324,69 @@ java.util.concurrent.Future deleteVmClusterNetwo EnableAutonomousDatabaseOperationsInsightsResponse> handler); + /** + * Enables Database Management Service for the external container database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * + * @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 + enableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse> + handler); + + /** + * Enable Database Management Service for the external non-container database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * + * @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 + enableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> + handler); + + /** + * Enable Database Management Service for the external pluggable database. + * For more information about the Database Management Service, see + * [Database Management Service](https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm). + * + * + * @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 + enableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse> + handler); + /** * Initiates a failover the specified Autonomous Database to a standby. * @@ -1693,6 +2058,77 @@ java.util.concurrent.Future getExternalBackupJob( GetExternalBackupJobRequest, GetExternalBackupJobResponse> handler); + /** + * Gets information about the specified external container database. + * + * @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 getExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExternalContainerDatabaseRequest, + GetExternalContainerDatabaseResponse> + handler); + + /** + * Gets information about the specified external database connector. + * + * @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 getExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExternalDatabaseConnectorRequest, + GetExternalDatabaseConnectorResponse> + handler); + + /** + * Gets information about a specific external non-container database. + * + * @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 + getExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExternalNonContainerDatabaseRequest, + GetExternalNonContainerDatabaseResponse> + handler); + + /** + * Gets information about a specific + * {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest, Consumer, Consumer) createExternalPluggableDatabaseDetails} resource. + * + * + * @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 getExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetExternalPluggableDatabaseRequest, + GetExternalPluggableDatabaseResponse> + handler); + /** * Gets information about the specified key store. * @@ -2419,6 +2855,83 @@ java.util.concurrent.Future listExadataInfra ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse> handler); + /** + * Gets a list of the external container databases in the specified compartment. + * + * + * @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 + listExternalContainerDatabases( + ListExternalContainerDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListExternalContainerDatabasesRequest, + ListExternalContainerDatabasesResponse> + handler); + + /** + * Gets a list of the external database connectors in the specified compartment. + * + * + * @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 + listExternalDatabaseConnectors( + ListExternalDatabaseConnectorsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListExternalDatabaseConnectorsRequest, + ListExternalDatabaseConnectorsResponse> + handler); + + /** + * Gets a list of the ExternalNonContainerDatabases in the specified compartment. + * + * + * @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 + listExternalNonContainerDatabases( + ListExternalNonContainerDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse> + handler); + + /** + * Gets a list of the {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest, Consumer, Consumer) createExternalPluggableDatabaseDetails} + * resources in the specified compartment. + * + * + * @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 + listExternalPluggableDatabases( + ListExternalPluggableDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListExternalPluggableDatabasesRequest, + ListExternalPluggableDatabasesResponse> + handler); + /** * Gets a list of the flex components that can be used to launch a new DB system. The flex component determines resources to allocate to the DB system - Database Servers and Storage Servers. * @@ -2797,6 +3310,26 @@ java.util.concurrent.Future rotateVaultKey( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Scans for pluggable databases in the specified external container database. + * This operation will return un-registered pluggable databases in the `GetWorkRequest` operation. + * + * + * @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 + scanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse> + handler); + /** * Starts the specified Autonomous Database. * @@ -3240,6 +3773,84 @@ java.util.concurrent.Future updateExadataIormCo UpdateExadataIormConfigRequest, UpdateExadataIormConfigResponse> handler); + /** + * Updates the properties of + * an {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest, Consumer, Consumer) createExternalContainerDatabaseDetails} resource, + * such as the display name. + * + * + * @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 + updateExternalContainerDatabase( + UpdateExternalContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalContainerDatabaseRequest, + UpdateExternalContainerDatabaseResponse> + handler); + + /** + * Updates the properties of an external database connector, such as the display name. + * + * @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 + updateExternalDatabaseConnector( + UpdateExternalDatabaseConnectorRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalDatabaseConnectorRequest, + UpdateExternalDatabaseConnectorResponse> + handler); + + /** + * Updates the properties of an external non-container database, such as the display name. + * + * @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 + updateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse> + handler); + + /** + * Updates the properties of an + * {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest, Consumer, Consumer) createExternalPluggableDatabaseDetails} resource, + * such as the display name. + * + * + * @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 + updateExternalPluggableDatabase( + UpdateExternalPluggableDatabaseRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalPluggableDatabaseRequest, + UpdateExternalPluggableDatabaseResponse> + handler); + /** * If no database is associated with the key store, edit the key store. * 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 2b4afbb23be..750c51c215d 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 @@ -182,6 +182,43 @@ public DatabaseAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DatabaseAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DatabaseAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DatabaseAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } @@ -896,6 +934,156 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + changeExternalContainerDatabaseCompartment( + ChangeExternalContainerDatabaseCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeExternalContainerDatabaseCompartmentRequest, + ChangeExternalContainerDatabaseCompartmentResponse> + handler) { + LOG.trace("Called async changeExternalContainerDatabaseCompartment"); + final ChangeExternalContainerDatabaseCompartmentRequest interceptedRequest = + ChangeExternalContainerDatabaseCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeExternalContainerDatabaseCompartmentConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + ChangeExternalContainerDatabaseCompartmentResponse> + transformer = ChangeExternalContainerDatabaseCompartmentConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalContainerDatabaseCompartmentRequest, + ChangeExternalContainerDatabaseCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalContainerDatabaseCompartmentRequest, + ChangeExternalContainerDatabaseCompartmentResponse>, + java.util.concurrent.Future< + ChangeExternalContainerDatabaseCompartmentResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeExternalContainerDatabaseCompartmentRequest, + ChangeExternalContainerDatabaseCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeExternalNonContainerDatabaseCompartment( + ChangeExternalNonContainerDatabaseCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeExternalNonContainerDatabaseCompartmentResponse> + handler) { + LOG.trace("Called async changeExternalNonContainerDatabaseCompartment"); + final ChangeExternalNonContainerDatabaseCompartmentRequest interceptedRequest = + ChangeExternalNonContainerDatabaseCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeExternalNonContainerDatabaseCompartmentConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + ChangeExternalNonContainerDatabaseCompartmentResponse> + transformer = ChangeExternalNonContainerDatabaseCompartmentConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeExternalNonContainerDatabaseCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeExternalNonContainerDatabaseCompartmentResponse>, + java.util.concurrent.Future< + ChangeExternalNonContainerDatabaseCompartmentResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeExternalNonContainerDatabaseCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + changeExternalPluggableDatabaseCompartment( + ChangeExternalPluggableDatabaseCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeExternalPluggableDatabaseCompartmentRequest, + ChangeExternalPluggableDatabaseCompartmentResponse> + handler) { + LOG.trace("Called async changeExternalPluggableDatabaseCompartment"); + final ChangeExternalPluggableDatabaseCompartmentRequest interceptedRequest = + ChangeExternalPluggableDatabaseCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeExternalPluggableDatabaseCompartmentConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + ChangeExternalPluggableDatabaseCompartmentResponse> + transformer = ChangeExternalPluggableDatabaseCompartmentConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalPluggableDatabaseCompartmentRequest, + ChangeExternalPluggableDatabaseCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeExternalPluggableDatabaseCompartmentRequest, + ChangeExternalPluggableDatabaseCompartmentResponse>, + java.util.concurrent.Future< + ChangeExternalPluggableDatabaseCompartmentResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeExternalPluggableDatabaseCompartmentRequest, + ChangeExternalPluggableDatabaseCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future changeKeyStoreCompartment( ChangeKeyStoreCompartmentRequest request, @@ -984,6 +1172,57 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + checkExternalDatabaseConnectorConnectionStatus( + CheckExternalDatabaseConnectorConnectionStatusRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CheckExternalDatabaseConnectorConnectionStatusRequest, + CheckExternalDatabaseConnectorConnectionStatusResponse> + handler) { + LOG.trace("Called async checkExternalDatabaseConnectorConnectionStatus"); + final CheckExternalDatabaseConnectorConnectionStatusRequest interceptedRequest = + CheckExternalDatabaseConnectorConnectionStatusConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CheckExternalDatabaseConnectorConnectionStatusConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + CheckExternalDatabaseConnectorConnectionStatusResponse> + transformer = + CheckExternalDatabaseConnectorConnectionStatusConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + CheckExternalDatabaseConnectorConnectionStatusRequest, + CheckExternalDatabaseConnectorConnectionStatusResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CheckExternalDatabaseConnectorConnectionStatusRequest, + CheckExternalDatabaseConnectorConnectionStatusResponse>, + java.util.concurrent.Future< + CheckExternalDatabaseConnectorConnectionStatusResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CheckExternalDatabaseConnectorConnectionStatusRequest, + CheckExternalDatabaseConnectorConnectionStatusResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future completeExternalBackupJob( CompleteExternalBackupJobRequest request, @@ -1674,33 +1913,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future createKeyStore( - CreateKeyStoreRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateKeyStoreRequest, CreateKeyStoreResponse> - handler) { - LOG.trace("Called async createKeyStore"); - final CreateKeyStoreRequest interceptedRequest = - CreateKeyStoreConverter.interceptRequest(request); + public java.util.concurrent.Future + createExternalContainerDatabase( + CreateExternalContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExternalContainerDatabaseRequest, + CreateExternalContainerDatabaseResponse> + handler) { + LOG.trace("Called async createExternalContainerDatabase"); + final CreateExternalContainerDatabaseRequest interceptedRequest = + CreateExternalContainerDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateKeyStoreConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = CreateKeyStoreConverter.fromResponse(); + CreateExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateExternalContainerDatabaseResponse> + transformer = CreateExternalContainerDatabaseConverter.fromResponse(); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + CreateExternalContainerDatabaseRequest, + CreateExternalContainerDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - CreateKeyStoreRequest, CreateKeyStoreResponse>, - java.util.concurrent.Future> + CreateExternalContainerDatabaseRequest, + CreateExternalContainerDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateKeyStoreRequest, CreateKeyStoreResponse>( + CreateExternalContainerDatabaseRequest, + CreateExternalContainerDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1714,33 +1960,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future createVmCluster( - CreateVmClusterRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateVmClusterRequest, CreateVmClusterResponse> - handler) { - LOG.trace("Called async createVmCluster"); - final CreateVmClusterRequest interceptedRequest = - CreateVmClusterConverter.interceptRequest(request); + public java.util.concurrent.Future + createExternalDatabaseConnector( + CreateExternalDatabaseConnectorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExternalDatabaseConnectorRequest, + CreateExternalDatabaseConnectorResponse> + handler) { + LOG.trace("Called async createExternalDatabaseConnector"); + final CreateExternalDatabaseConnectorRequest interceptedRequest = + CreateExternalDatabaseConnectorConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateVmClusterConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = CreateVmClusterConverter.fromResponse(); + CreateExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateExternalDatabaseConnectorResponse> + transformer = CreateExternalDatabaseConnectorConverter.fromResponse(); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + CreateExternalDatabaseConnectorRequest, + CreateExternalDatabaseConnectorResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - CreateVmClusterRequest, CreateVmClusterResponse>, - java.util.concurrent.Future> + CreateExternalDatabaseConnectorRequest, + CreateExternalDatabaseConnectorResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateVmClusterRequest, CreateVmClusterResponse>( + CreateExternalDatabaseConnectorRequest, + CreateExternalDatabaseConnectorResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1754,35 +2007,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future createVmClusterNetwork( - CreateVmClusterNetworkRequest request, - final com.oracle.bmc.responses.AsyncHandler< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> - handler) { - LOG.trace("Called async createVmClusterNetwork"); - final CreateVmClusterNetworkRequest interceptedRequest = - CreateVmClusterNetworkConverter.interceptRequest(request); + public java.util.concurrent.Future + createExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse> + handler) { + LOG.trace("Called async createExternalNonContainerDatabase"); + final CreateExternalNonContainerDatabaseRequest interceptedRequest = + CreateExternalNonContainerDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - CreateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + CreateExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, CreateVmClusterNetworkResponse> - transformer = CreateVmClusterNetworkConverter.fromResponse(); + javax.ws.rs.core.Response, CreateExternalNonContainerDatabaseResponse> + transformer = CreateExternalNonContainerDatabaseConverter.fromResponse(); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.responses.AsyncHandler< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse>, - java.util.concurrent.Future> + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse>( + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1796,32 +2054,40 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future dbNodeAction( - DbNodeActionRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - LOG.trace("Called async dbNodeAction"); - final DbNodeActionRequest interceptedRequest = - DbNodeActionConverter.interceptRequest(request); + public java.util.concurrent.Future + createExternalPluggableDatabase( + CreateExternalPluggableDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateExternalPluggableDatabaseRequest, + CreateExternalPluggableDatabaseResponse> + handler) { + LOG.trace("Called async createExternalPluggableDatabase"); + final CreateExternalPluggableDatabaseRequest interceptedRequest = + CreateExternalPluggableDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DbNodeActionConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = DbNodeActionConverter.fromResponse(); + CreateExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateExternalPluggableDatabaseResponse> + transformer = CreateExternalPluggableDatabaseConverter.fromResponse(); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + CreateExternalPluggableDatabaseRequest, + CreateExternalPluggableDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DbNodeActionRequest, DbNodeActionResponse>, - java.util.concurrent.Future> + CreateExternalPluggableDatabaseRequest, + CreateExternalPluggableDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DbNodeActionRequest, DbNodeActionResponse>( + CreateExternalPluggableDatabaseRequest, + CreateExternalPluggableDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -1835,22 +2101,183 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future deleteAutonomousDatabase( - DeleteAutonomousDatabaseRequest request, + public java.util.concurrent.Future createKeyStore( + CreateKeyStoreRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> + CreateKeyStoreRequest, CreateKeyStoreResponse> handler) { - LOG.trace("Called async deleteAutonomousDatabase"); - final DeleteAutonomousDatabaseRequest interceptedRequest = - DeleteAutonomousDatabaseConverter.interceptRequest(request); + LOG.trace("Called async createKeyStore"); + final CreateKeyStoreRequest interceptedRequest = + CreateKeyStoreConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function< - javax.ws.rs.core.Response, DeleteAutonomousDatabaseResponse> - transformer = DeleteAutonomousDatabaseConverter.fromResponse(); + CreateKeyStoreConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateKeyStoreConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); - com.oracle.bmc.responses.AsyncHandler< - DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateKeyStoreRequest, CreateKeyStoreResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateKeyStoreRequest, CreateKeyStoreResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createVmCluster( + CreateVmClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterRequest, CreateVmClusterResponse> + handler) { + LOG.trace("Called async createVmCluster"); + final CreateVmClusterRequest interceptedRequest = + CreateVmClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVmClusterConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateVmClusterConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterRequest, CreateVmClusterResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateVmClusterRequest, CreateVmClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future createVmClusterNetwork( + CreateVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + handler) { + LOG.trace("Called async createVmClusterNetwork"); + final CreateVmClusterNetworkRequest interceptedRequest = + CreateVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, CreateVmClusterNetworkResponse> + transformer = CreateVmClusterNetworkConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future dbNodeAction( + DbNodeActionRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async dbNodeAction"); + final DbNodeActionRequest interceptedRequest = + DbNodeActionConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DbNodeActionConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DbNodeActionConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DbNodeActionRequest, DbNodeActionResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DbNodeActionRequest, DbNodeActionResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteAutonomousDatabase( + DeleteAutonomousDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> + handler) { + LOG.trace("Called async deleteAutonomousDatabase"); + final DeleteAutonomousDatabaseRequest interceptedRequest = + DeleteAutonomousDatabaseConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteAutonomousDatabaseConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteAutonomousDatabaseResponse> + transformer = DeleteAutonomousDatabaseConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> handlerToUse = handler; java.util.function.Function< @@ -2290,32 +2717,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future deleteKeyStore( - DeleteKeyStoreRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteKeyStoreRequest, DeleteKeyStoreResponse> - handler) { - LOG.trace("Called async deleteKeyStore"); - final DeleteKeyStoreRequest interceptedRequest = - DeleteKeyStoreConverter.interceptRequest(request); + public java.util.concurrent.Future + deleteExternalContainerDatabase( + DeleteExternalContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteExternalContainerDatabaseRequest, + DeleteExternalContainerDatabaseResponse> + handler) { + LOG.trace("Called async deleteExternalContainerDatabase"); + final DeleteExternalContainerDatabaseRequest interceptedRequest = + DeleteExternalContainerDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteKeyStoreConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = DeleteKeyStoreConverter.fromResponse(); + DeleteExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteExternalContainerDatabaseResponse> + transformer = DeleteExternalContainerDatabaseConverter.fromResponse(); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalContainerDatabaseRequest, + DeleteExternalContainerDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteKeyStoreRequest, DeleteKeyStoreResponse>, - java.util.concurrent.Future> + DeleteExternalContainerDatabaseRequest, + DeleteExternalContainerDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteKeyStoreRequest, DeleteKeyStoreResponse>( + DeleteExternalContainerDatabaseRequest, + DeleteExternalContainerDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2329,32 +2763,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future deleteVmCluster( - DeleteVmClusterRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteVmClusterRequest, DeleteVmClusterResponse> - handler) { - LOG.trace("Called async deleteVmCluster"); - final DeleteVmClusterRequest interceptedRequest = - DeleteVmClusterConverter.interceptRequest(request); + public java.util.concurrent.Future + deleteExternalDatabaseConnector( + DeleteExternalDatabaseConnectorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteExternalDatabaseConnectorRequest, + DeleteExternalDatabaseConnectorResponse> + handler) { + LOG.trace("Called async deleteExternalDatabaseConnector"); + final DeleteExternalDatabaseConnectorRequest interceptedRequest = + DeleteExternalDatabaseConnectorConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteVmClusterConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = DeleteVmClusterConverter.fromResponse(); + DeleteExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteExternalDatabaseConnectorResponse> + transformer = DeleteExternalDatabaseConnectorConverter.fromResponse(); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + DeleteExternalDatabaseConnectorRequest, + DeleteExternalDatabaseConnectorResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteVmClusterRequest, DeleteVmClusterResponse>, - java.util.concurrent.Future> + DeleteExternalDatabaseConnectorRequest, + DeleteExternalDatabaseConnectorResponse>, + java.util.concurrent.Future> futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteVmClusterRequest, DeleteVmClusterResponse>( + DeleteExternalDatabaseConnectorRequest, + DeleteExternalDatabaseConnectorResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2368,34 +2809,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future deleteVmClusterNetwork( - DeleteVmClusterNetworkRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> - handler) { - LOG.trace("Called async deleteVmClusterNetwork"); - final DeleteVmClusterNetworkRequest interceptedRequest = - DeleteVmClusterNetworkConverter.interceptRequest(request); + public java.util.concurrent.Future + deleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse> + handler) { + LOG.trace("Called async deleteExternalNonContainerDatabase"); + final DeleteExternalNonContainerDatabaseRequest interceptedRequest = + DeleteExternalNonContainerDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + DeleteExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, DeleteVmClusterNetworkResponse> - transformer = DeleteVmClusterNetworkConverter.fromResponse(); + javax.ws.rs.core.Response, DeleteExternalNonContainerDatabaseResponse> + transformer = DeleteExternalNonContainerDatabaseConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse>, - java.util.concurrent.Future> + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse>( + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2409,40 +2855,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - deregisterAutonomousDatabaseDataSafe( - DeregisterAutonomousDatabaseDataSafeRequest request, + public java.util.concurrent.Future + deleteExternalPluggableDatabase( + DeleteExternalPluggableDatabaseRequest request, final com.oracle.bmc.responses.AsyncHandler< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse> + DeleteExternalPluggableDatabaseRequest, + DeleteExternalPluggableDatabaseResponse> handler) { - LOG.trace("Called async deregisterAutonomousDatabaseDataSafe"); - final DeregisterAutonomousDatabaseDataSafeRequest interceptedRequest = - DeregisterAutonomousDatabaseDataSafeConverter.interceptRequest(request); + LOG.trace("Called async deleteExternalPluggableDatabase"); + final DeleteExternalPluggableDatabaseRequest interceptedRequest = + DeleteExternalPluggableDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeregisterAutonomousDatabaseDataSafeConverter.fromRequest( - client, interceptedRequest); + DeleteExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, DeregisterAutonomousDatabaseDataSafeResponse> - transformer = DeregisterAutonomousDatabaseDataSafeConverter.fromResponse(); + javax.ws.rs.core.Response, DeleteExternalPluggableDatabaseResponse> + transformer = DeleteExternalPluggableDatabaseConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse> + DeleteExternalPluggableDatabaseRequest, + DeleteExternalPluggableDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse>, - java.util.concurrent.Future> - futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + DeleteExternalPluggableDatabaseRequest, + DeleteExternalPluggableDatabaseResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse>( + DeleteExternalPluggableDatabaseRequest, + DeleteExternalPluggableDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2456,42 +2901,511 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - disableAutonomousDatabaseOperationsInsights( - DisableAutonomousDatabaseOperationsInsightsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse> - handler) { - LOG.trace("Called async disableAutonomousDatabaseOperationsInsights"); - final DisableAutonomousDatabaseOperationsInsightsRequest interceptedRequest = - DisableAutonomousDatabaseOperationsInsightsConverter.interceptRequest(request); + public java.util.concurrent.Future deleteKeyStore( + DeleteKeyStoreRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteKeyStoreRequest, DeleteKeyStoreResponse> + handler) { + LOG.trace("Called async deleteKeyStore"); + final DeleteKeyStoreRequest interceptedRequest = + DeleteKeyStoreConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteKeyStoreConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteKeyStoreConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteKeyStoreRequest, DeleteKeyStoreResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteKeyStoreRequest, DeleteKeyStoreResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteVmCluster( + DeleteVmClusterRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterRequest, DeleteVmClusterResponse> + handler) { + LOG.trace("Called async deleteVmCluster"); + final DeleteVmClusterRequest interceptedRequest = + DeleteVmClusterConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVmClusterConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteVmClusterConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterRequest, DeleteVmClusterResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteVmClusterRequest, DeleteVmClusterResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + handler) { + LOG.trace("Called async deleteVmClusterNetwork"); + final DeleteVmClusterNetworkRequest interceptedRequest = + DeleteVmClusterNetworkConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteVmClusterNetworkResponse> + transformer = DeleteVmClusterNetworkConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + deregisterAutonomousDatabaseDataSafe( + DeregisterAutonomousDatabaseDataSafeRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse> + handler) { + LOG.trace("Called async deregisterAutonomousDatabaseDataSafe"); + final DeregisterAutonomousDatabaseDataSafeRequest interceptedRequest = + DeregisterAutonomousDatabaseDataSafeConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeregisterAutonomousDatabaseDataSafeConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DeregisterAutonomousDatabaseDataSafeResponse> + transformer = DeregisterAutonomousDatabaseDataSafeConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + disableAutonomousDatabaseOperationsInsights( + DisableAutonomousDatabaseOperationsInsightsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse> + handler) { + LOG.trace("Called async disableAutonomousDatabaseOperationsInsights"); + final DisableAutonomousDatabaseOperationsInsightsRequest interceptedRequest = + DisableAutonomousDatabaseOperationsInsightsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableAutonomousDatabaseOperationsInsightsConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + DisableAutonomousDatabaseOperationsInsightsResponse> + transformer = DisableAutonomousDatabaseOperationsInsightsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse>, + java.util.concurrent.Future< + DisableAutonomousDatabaseOperationsInsightsResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + disableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse> + handler) { + LOG.trace("Called async disableExternalContainerDatabaseDatabaseManagement"); + final DisableExternalContainerDatabaseDatabaseManagementRequest interceptedRequest = + DisableExternalContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableExternalContainerDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + DisableExternalContainerDatabaseDatabaseManagementResponse> + transformer = + DisableExternalContainerDatabaseDatabaseManagementConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse>, + java.util.concurrent.Future< + DisableExternalContainerDatabaseDatabaseManagementResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future< + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + disableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + handler) { + LOG.trace("Called async disableExternalNonContainerDatabaseDatabaseManagement"); + final DisableExternalNonContainerDatabaseDatabaseManagementRequest interceptedRequest = + DisableExternalNonContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableExternalNonContainerDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + transformer = + DisableExternalNonContainerDatabaseDatabaseManagementConverter + .fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse>, + java.util.concurrent.Future< + DisableExternalNonContainerDatabaseDatabaseManagementResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + disableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + handler) { + LOG.trace("Called async disableExternalPluggableDatabaseDatabaseManagement"); + final DisableExternalPluggableDatabaseDatabaseManagementRequest interceptedRequest = + DisableExternalPluggableDatabaseDatabaseManagementConverter.interceptRequest( + request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableExternalPluggableDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + transformer = + DisableExternalPluggableDatabaseDatabaseManagementConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse>, + java.util.concurrent.Future< + DisableExternalPluggableDatabaseDatabaseManagementResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + downloadExadataInfrastructureConfigFile( + DownloadExadataInfrastructureConfigFileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadExadataInfrastructureConfigFileRequest, + DownloadExadataInfrastructureConfigFileResponse> + handler) { + LOG.trace("Called async downloadExadataInfrastructureConfigFile"); + final DownloadExadataInfrastructureConfigFileRequest interceptedRequest = + DownloadExadataInfrastructureConfigFileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadExadataInfrastructureConfigFileConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DownloadExadataInfrastructureConfigFileResponse> + transformer = DownloadExadataInfrastructureConfigFileConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + DownloadExadataInfrastructureConfigFileRequest, + DownloadExadataInfrastructureConfigFileResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DownloadExadataInfrastructureConfigFileRequest, + DownloadExadataInfrastructureConfigFileResponse>, + java.util.concurrent.Future< + DownloadExadataInfrastructureConfigFileResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DownloadExadataInfrastructureConfigFileRequest, + DownloadExadataInfrastructureConfigFileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + downloadVmClusterNetworkConfigFile( + DownloadVmClusterNetworkConfigFileRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DownloadVmClusterNetworkConfigFileRequest, + DownloadVmClusterNetworkConfigFileResponse> + handler) { + LOG.trace("Called async downloadVmClusterNetworkConfigFile"); + final DownloadVmClusterNetworkConfigFileRequest interceptedRequest = + DownloadVmClusterNetworkConfigFileConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DownloadVmClusterNetworkConfigFileConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, DownloadVmClusterNetworkConfigFileResponse> + transformer = DownloadVmClusterNetworkConfigFileConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + DownloadVmClusterNetworkConfigFileRequest, + DownloadVmClusterNetworkConfigFileResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DownloadVmClusterNetworkConfigFileRequest, + DownloadVmClusterNetworkConfigFileResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DownloadVmClusterNetworkConfigFileRequest, + DownloadVmClusterNetworkConfigFileResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + enableAutonomousDatabaseOperationsInsights( + EnableAutonomousDatabaseOperationsInsightsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse> + handler) { + LOG.trace("Called async enableAutonomousDatabaseOperationsInsights"); + final EnableAutonomousDatabaseOperationsInsightsRequest interceptedRequest = + EnableAutonomousDatabaseOperationsInsightsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DisableAutonomousDatabaseOperationsInsightsConverter.fromRequest( + EnableAutonomousDatabaseOperationsInsightsConverter.fromRequest( client, interceptedRequest); final com.google.common.base.Function< javax.ws.rs.core.Response, - DisableAutonomousDatabaseOperationsInsightsResponse> - transformer = DisableAutonomousDatabaseOperationsInsightsConverter.fromResponse(); + EnableAutonomousDatabaseOperationsInsightsResponse> + transformer = EnableAutonomousDatabaseOperationsInsightsConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse> + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse>, + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse>, java.util.concurrent.Future< - DisableAutonomousDatabaseOperationsInsightsResponse>> + EnableAutonomousDatabaseOperationsInsightsResponse>> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse>( + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2505,42 +3419,45 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - downloadExadataInfrastructureConfigFile( - DownloadExadataInfrastructureConfigFileRequest request, + public java.util.concurrent.Future + enableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request, final com.oracle.bmc.responses.AsyncHandler< - DownloadExadataInfrastructureConfigFileRequest, - DownloadExadataInfrastructureConfigFileResponse> + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse> handler) { - LOG.trace("Called async downloadExadataInfrastructureConfigFile"); - final DownloadExadataInfrastructureConfigFileRequest interceptedRequest = - DownloadExadataInfrastructureConfigFileConverter.interceptRequest(request); + LOG.trace("Called async enableExternalContainerDatabaseDatabaseManagement"); + final EnableExternalContainerDatabaseDatabaseManagementRequest interceptedRequest = + EnableExternalContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DownloadExadataInfrastructureConfigFileConverter.fromRequest( + EnableExternalContainerDatabaseDatabaseManagementConverter.fromRequest( client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, DownloadExadataInfrastructureConfigFileResponse> - transformer = DownloadExadataInfrastructureConfigFileConverter.fromResponse(); + javax.ws.rs.core.Response, + EnableExternalContainerDatabaseDatabaseManagementResponse> + transformer = + EnableExternalContainerDatabaseDatabaseManagementConverter.fromResponse(); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.responses.AsyncHandler< - DownloadExadataInfrastructureConfigFileRequest, - DownloadExadataInfrastructureConfigFileResponse> + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DownloadExadataInfrastructureConfigFileRequest, - DownloadExadataInfrastructureConfigFileResponse>, + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse>, java.util.concurrent.Future< - DownloadExadataInfrastructureConfigFileResponse>> + EnableExternalContainerDatabaseDatabaseManagementResponse>> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DownloadExadataInfrastructureConfigFileRequest, - DownloadExadataInfrastructureConfigFileResponse>( + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2554,40 +3471,46 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - downloadVmClusterNetworkConfigFile( - DownloadVmClusterNetworkConfigFileRequest request, + public java.util.concurrent.Future + enableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request, final com.oracle.bmc.responses.AsyncHandler< - DownloadVmClusterNetworkConfigFileRequest, - DownloadVmClusterNetworkConfigFileResponse> + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> handler) { - LOG.trace("Called async downloadVmClusterNetworkConfigFile"); - final DownloadVmClusterNetworkConfigFileRequest interceptedRequest = - DownloadVmClusterNetworkConfigFileConverter.interceptRequest(request); + LOG.trace("Called async enableExternalNonContainerDatabaseDatabaseManagement"); + final EnableExternalNonContainerDatabaseDatabaseManagementRequest interceptedRequest = + EnableExternalNonContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DownloadVmClusterNetworkConfigFileConverter.fromRequest(client, interceptedRequest); + EnableExternalNonContainerDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, DownloadVmClusterNetworkConfigFileResponse> - transformer = DownloadVmClusterNetworkConfigFileConverter.fromResponse(); + javax.ws.rs.core.Response, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> + transformer = + EnableExternalNonContainerDatabaseDatabaseManagementConverter + .fromResponse(); com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.responses.AsyncHandler< - DownloadVmClusterNetworkConfigFileRequest, - DownloadVmClusterNetworkConfigFileResponse> + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - DownloadVmClusterNetworkConfigFileRequest, - DownloadVmClusterNetworkConfigFileResponse>, - java.util.concurrent.Future> + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse>, + java.util.concurrent.Future< + EnableExternalNonContainerDatabaseDatabaseManagementResponse>> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - DownloadVmClusterNetworkConfigFileRequest, - DownloadVmClusterNetworkConfigFileResponse>( + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -2601,42 +3524,45 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - enableAutonomousDatabaseOperationsInsights( - EnableAutonomousDatabaseOperationsInsightsRequest request, + public java.util.concurrent.Future + enableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request, final com.oracle.bmc.responses.AsyncHandler< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse> + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse> handler) { - LOG.trace("Called async enableAutonomousDatabaseOperationsInsights"); - final EnableAutonomousDatabaseOperationsInsightsRequest interceptedRequest = - EnableAutonomousDatabaseOperationsInsightsConverter.interceptRequest(request); + LOG.trace("Called async enableExternalPluggableDatabaseDatabaseManagement"); + final EnableExternalPluggableDatabaseDatabaseManagementRequest interceptedRequest = + EnableExternalPluggableDatabaseDatabaseManagementConverter.interceptRequest( + request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - EnableAutonomousDatabaseOperationsInsightsConverter.fromRequest( + EnableExternalPluggableDatabaseDatabaseManagementConverter.fromRequest( client, interceptedRequest); final com.google.common.base.Function< javax.ws.rs.core.Response, - EnableAutonomousDatabaseOperationsInsightsResponse> - transformer = EnableAutonomousDatabaseOperationsInsightsConverter.fromResponse(); + EnableExternalPluggableDatabaseDatabaseManagementResponse> + transformer = + EnableExternalPluggableDatabaseDatabaseManagementConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); com.oracle.bmc.responses.AsyncHandler< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse> + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse>, + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse>, java.util.concurrent.Future< - EnableAutonomousDatabaseOperationsInsightsResponse>> + EnableExternalPluggableDatabaseDatabaseManagementResponse>> futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse>( + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -4064,37 +4990,204 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - getDbSystemPatchHistoryEntry( - GetDbSystemPatchHistoryEntryRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetDbSystemPatchHistoryEntryRequest, - GetDbSystemPatchHistoryEntryResponse> - handler) { - LOG.trace("Called async getDbSystemPatchHistoryEntry"); - final GetDbSystemPatchHistoryEntryRequest interceptedRequest = - GetDbSystemPatchHistoryEntryConverter.interceptRequest(request); + public java.util.concurrent.Future + getDbSystemPatchHistoryEntry( + GetDbSystemPatchHistoryEntryRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetDbSystemPatchHistoryEntryRequest, + GetDbSystemPatchHistoryEntryResponse> + handler) { + LOG.trace("Called async getDbSystemPatchHistoryEntry"); + final GetDbSystemPatchHistoryEntryRequest interceptedRequest = + GetDbSystemPatchHistoryEntryConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetDbSystemPatchHistoryEntryConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetDbSystemPatchHistoryEntryResponse> + transformer = GetDbSystemPatchHistoryEntryConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + GetDbSystemPatchHistoryEntryRequest, GetDbSystemPatchHistoryEntryResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetDbSystemPatchHistoryEntryRequest, + GetDbSystemPatchHistoryEntryResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetDbSystemPatchHistoryEntryRequest, GetDbSystemPatchHistoryEntryResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getExadataInfrastructure( + GetExadataInfrastructureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + handler) { + LOG.trace("Called async getExadataInfrastructure"); + final GetExadataInfrastructureRequest interceptedRequest = + GetExadataInfrastructureConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetExadataInfrastructureConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetExadataInfrastructureResponse> + transformer = GetExadataInfrastructureConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + getExadataInfrastructureOcpus( + GetExadataInfrastructureOcpusRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExadataInfrastructureOcpusRequest, + GetExadataInfrastructureOcpusResponse> + handler) { + LOG.trace("Called async getExadataInfrastructureOcpus"); + final GetExadataInfrastructureOcpusRequest interceptedRequest = + GetExadataInfrastructureOcpusConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetExadataInfrastructureOcpusConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetExadataInfrastructureOcpusResponse> + transformer = GetExadataInfrastructureOcpusConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + GetExadataInfrastructureOcpusRequest, GetExadataInfrastructureOcpusResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetExadataInfrastructureOcpusRequest, + GetExadataInfrastructureOcpusResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetExadataInfrastructureOcpusRequest, GetExadataInfrastructureOcpusResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getExadataIormConfig( + GetExadataIormConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExadataIormConfigRequest, GetExadataIormConfigResponse> + handler) { + LOG.trace("Called async getExadataIormConfig"); + final GetExadataIormConfigRequest interceptedRequest = + GetExadataIormConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetExadataIormConfigConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetExadataIormConfigResponse> + transformer = GetExadataIormConfigConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + GetExadataIormConfigRequest, GetExadataIormConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetExadataIormConfigRequest, GetExadataIormConfigResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetExadataIormConfigRequest, GetExadataIormConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getExternalBackupJob( + GetExternalBackupJobRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExternalBackupJobRequest, GetExternalBackupJobResponse> + handler) { + LOG.trace("Called async getExternalBackupJob"); + final GetExternalBackupJobRequest interceptedRequest = + GetExternalBackupJobConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetDbSystemPatchHistoryEntryConverter.fromRequest(client, interceptedRequest); + GetExternalBackupJobConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, GetDbSystemPatchHistoryEntryResponse> - transformer = GetDbSystemPatchHistoryEntryConverter.fromResponse(); + javax.ws.rs.core.Response, GetExternalBackupJobResponse> + transformer = GetExternalBackupJobConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - GetDbSystemPatchHistoryEntryRequest, GetDbSystemPatchHistoryEntryResponse> + GetExternalBackupJobRequest, GetExternalBackupJobResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetDbSystemPatchHistoryEntryRequest, - GetDbSystemPatchHistoryEntryResponse>, - java.util.concurrent.Future> + GetExternalBackupJobRequest, GetExternalBackupJobResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetDbSystemPatchHistoryEntryRequest, GetDbSystemPatchHistoryEntryResponse>( + GetExternalBackupJobRequest, GetExternalBackupJobResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -4108,34 +5201,37 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getExadataInfrastructure( - GetExadataInfrastructureRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - handler) { - LOG.trace("Called async getExadataInfrastructure"); - final GetExadataInfrastructureRequest interceptedRequest = - GetExadataInfrastructureConverter.interceptRequest(request); + public java.util.concurrent.Future + getExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExternalContainerDatabaseRequest, + GetExternalContainerDatabaseResponse> + handler) { + LOG.trace("Called async getExternalContainerDatabase"); + final GetExternalContainerDatabaseRequest interceptedRequest = + GetExternalContainerDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExadataInfrastructureConverter.fromRequest(client, interceptedRequest); + GetExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, GetExadataInfrastructureResponse> - transformer = GetExadataInfrastructureConverter.fromResponse(); + javax.ws.rs.core.Response, GetExternalContainerDatabaseResponse> + transformer = GetExternalContainerDatabaseConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse>, - java.util.concurrent.Future> + GetExternalContainerDatabaseRequest, + GetExternalContainerDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse>( + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -4149,37 +5245,37 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - getExadataInfrastructureOcpus( - GetExadataInfrastructureOcpusRequest request, + public java.util.concurrent.Future + getExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, final com.oracle.bmc.responses.AsyncHandler< - GetExadataInfrastructureOcpusRequest, - GetExadataInfrastructureOcpusResponse> + GetExternalDatabaseConnectorRequest, + GetExternalDatabaseConnectorResponse> handler) { - LOG.trace("Called async getExadataInfrastructureOcpus"); - final GetExadataInfrastructureOcpusRequest interceptedRequest = - GetExadataInfrastructureOcpusConverter.interceptRequest(request); + LOG.trace("Called async getExternalDatabaseConnector"); + final GetExternalDatabaseConnectorRequest interceptedRequest = + GetExternalDatabaseConnectorConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExadataInfrastructureOcpusConverter.fromRequest(client, interceptedRequest); + GetExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, GetExadataInfrastructureOcpusResponse> - transformer = GetExadataInfrastructureOcpusConverter.fromResponse(); + javax.ws.rs.core.Response, GetExternalDatabaseConnectorResponse> + transformer = GetExternalDatabaseConnectorConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - GetExadataInfrastructureOcpusRequest, GetExadataInfrastructureOcpusResponse> + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetExadataInfrastructureOcpusRequest, - GetExadataInfrastructureOcpusResponse>, - java.util.concurrent.Future> + GetExternalDatabaseConnectorRequest, + GetExternalDatabaseConnectorResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetExadataInfrastructureOcpusRequest, GetExadataInfrastructureOcpusResponse>( + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -4193,34 +5289,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getExadataIormConfig( - GetExadataIormConfigRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetExadataIormConfigRequest, GetExadataIormConfigResponse> - handler) { - LOG.trace("Called async getExadataIormConfig"); - final GetExadataIormConfigRequest interceptedRequest = - GetExadataIormConfigConverter.interceptRequest(request); + public java.util.concurrent.Future + getExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExternalNonContainerDatabaseRequest, + GetExternalNonContainerDatabaseResponse> + handler) { + LOG.trace("Called async getExternalNonContainerDatabase"); + final GetExternalNonContainerDatabaseRequest interceptedRequest = + GetExternalNonContainerDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExadataIormConfigConverter.fromRequest(client, interceptedRequest); + GetExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, GetExadataIormConfigResponse> - transformer = GetExadataIormConfigConverter.fromResponse(); + javax.ws.rs.core.Response, GetExternalNonContainerDatabaseResponse> + transformer = GetExternalNonContainerDatabaseConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - GetExadataIormConfigRequest, GetExadataIormConfigResponse> + GetExternalNonContainerDatabaseRequest, + GetExternalNonContainerDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetExadataIormConfigRequest, GetExadataIormConfigResponse>, - java.util.concurrent.Future> + GetExternalNonContainerDatabaseRequest, + GetExternalNonContainerDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetExadataIormConfigRequest, GetExadataIormConfigResponse>( + GetExternalNonContainerDatabaseRequest, + GetExternalNonContainerDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -4234,34 +5335,37 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future getExternalBackupJob( - GetExternalBackupJobRequest request, - final com.oracle.bmc.responses.AsyncHandler< - GetExternalBackupJobRequest, GetExternalBackupJobResponse> - handler) { - LOG.trace("Called async getExternalBackupJob"); - final GetExternalBackupJobRequest interceptedRequest = - GetExternalBackupJobConverter.interceptRequest(request); + public java.util.concurrent.Future + getExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetExternalPluggableDatabaseRequest, + GetExternalPluggableDatabaseResponse> + handler) { + LOG.trace("Called async getExternalPluggableDatabase"); + final GetExternalPluggableDatabaseRequest interceptedRequest = + GetExternalPluggableDatabaseConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExternalBackupJobConverter.fromRequest(client, interceptedRequest); + GetExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, GetExternalBackupJobResponse> - transformer = GetExternalBackupJobConverter.fromResponse(); + javax.ws.rs.core.Response, GetExternalPluggableDatabaseResponse> + transformer = GetExternalPluggableDatabaseConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - GetExternalBackupJobRequest, GetExternalBackupJobResponse> + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - GetExternalBackupJobRequest, GetExternalBackupJobResponse>, - java.util.concurrent.Future> + GetExternalPluggableDatabaseRequest, + GetExternalPluggableDatabaseResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - GetExternalBackupJobRequest, GetExternalBackupJobResponse>( + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -5802,8 +6906,165 @@ protected void beforeRetryAction() {} if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDbSystemPatchHistoryEntriesRequest, - ListDbSystemPatchHistoryEntriesResponse>( + ListDbSystemPatchHistoryEntriesRequest, + ListDbSystemPatchHistoryEntriesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listDbSystemPatches( + ListDbSystemPatchesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDbSystemPatchesRequest, ListDbSystemPatchesResponse> + handler) { + LOG.trace("Called async listDbSystemPatches"); + final ListDbSystemPatchesRequest interceptedRequest = + ListDbSystemPatchesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDbSystemPatchesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListDbSystemPatchesResponse> + transformer = ListDbSystemPatchesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemPatchesRequest, ListDbSystemPatchesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemPatchesRequest, ListDbSystemPatchesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDbSystemPatchesRequest, ListDbSystemPatchesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listDbSystemShapes( + ListDbSystemShapesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDbSystemShapesRequest, ListDbSystemShapesResponse> + handler) { + LOG.trace("Called async listDbSystemShapes"); + final ListDbSystemShapesRequest interceptedRequest = + ListDbSystemShapesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDbSystemShapesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListDbSystemShapesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemShapesRequest, ListDbSystemShapesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDbSystemShapesRequest, ListDbSystemShapesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listDbSystems( + ListDbSystemsRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listDbSystems"); + final ListDbSystemsRequest interceptedRequest = + ListDbSystemsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDbSystemsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListDbSystemsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDbSystemsRequest, ListDbSystemsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDbSystemsRequest, ListDbSystemsResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listDbVersions( + ListDbVersionsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListDbVersionsRequest, ListDbVersionsResponse> + handler) { + LOG.trace("Called async listDbVersions"); + final ListDbVersionsRequest interceptedRequest = + ListDbVersionsConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListDbVersionsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListDbVersionsConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListDbVersionsRequest, ListDbVersionsResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListDbVersionsRequest, ListDbVersionsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -5817,34 +7078,37 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future listDbSystemPatches( - ListDbSystemPatchesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDbSystemPatchesRequest, ListDbSystemPatchesResponse> - handler) { - LOG.trace("Called async listDbSystemPatches"); - final ListDbSystemPatchesRequest interceptedRequest = - ListDbSystemPatchesConverter.interceptRequest(request); + public java.util.concurrent.Future + listExadataInfrastructures( + ListExadataInfrastructuresRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExadataInfrastructuresRequest, + ListExadataInfrastructuresResponse> + handler) { + LOG.trace("Called async listExadataInfrastructures"); + final ListExadataInfrastructuresRequest interceptedRequest = + ListExadataInfrastructuresConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDbSystemPatchesConverter.fromRequest(client, interceptedRequest); + ListExadataInfrastructuresConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, ListDbSystemPatchesResponse> - transformer = ListDbSystemPatchesConverter.fromResponse(); + javax.ws.rs.core.Response, ListExadataInfrastructuresResponse> + transformer = ListExadataInfrastructuresConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - ListDbSystemPatchesRequest, ListDbSystemPatchesResponse> + ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDbSystemPatchesRequest, ListDbSystemPatchesResponse>, - java.util.concurrent.Future> + ListExadataInfrastructuresRequest, + ListExadataInfrastructuresResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDbSystemPatchesRequest, ListDbSystemPatchesResponse>( + ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -5858,32 +7122,38 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future listDbSystemShapes( - ListDbSystemShapesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDbSystemShapesRequest, ListDbSystemShapesResponse> - handler) { - LOG.trace("Called async listDbSystemShapes"); - final ListDbSystemShapesRequest interceptedRequest = - ListDbSystemShapesConverter.interceptRequest(request); + public java.util.concurrent.Future + listExternalContainerDatabases( + ListExternalContainerDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExternalContainerDatabasesRequest, + ListExternalContainerDatabasesResponse> + handler) { + LOG.trace("Called async listExternalContainerDatabases"); + final ListExternalContainerDatabasesRequest interceptedRequest = + ListExternalContainerDatabasesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDbSystemShapesConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = ListDbSystemShapesConverter.fromResponse(); + ListExternalContainerDatabasesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListExternalContainerDatabasesResponse> + transformer = ListExternalContainerDatabasesConverter.fromResponse(); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + ListExternalContainerDatabasesRequest, + ListExternalContainerDatabasesResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDbSystemShapesRequest, ListDbSystemShapesResponse>, - java.util.concurrent.Future> + ListExternalContainerDatabasesRequest, + ListExternalContainerDatabasesResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDbSystemShapesRequest, ListDbSystemShapesResponse>( + ListExternalContainerDatabasesRequest, ListExternalContainerDatabasesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -5897,31 +7167,38 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future listDbSystems( - ListDbSystemsRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - LOG.trace("Called async listDbSystems"); - final ListDbSystemsRequest interceptedRequest = - ListDbSystemsConverter.interceptRequest(request); + public java.util.concurrent.Future + listExternalDatabaseConnectors( + ListExternalDatabaseConnectorsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExternalDatabaseConnectorsRequest, + ListExternalDatabaseConnectorsResponse> + handler) { + LOG.trace("Called async listExternalDatabaseConnectors"); + final ListExternalDatabaseConnectorsRequest interceptedRequest = + ListExternalDatabaseConnectorsConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDbSystemsConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = ListDbSystemsConverter.fromResponse(); + ListExternalDatabaseConnectorsConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListExternalDatabaseConnectorsResponse> + transformer = ListExternalDatabaseConnectorsConverter.fromResponse(); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + ListExternalDatabaseConnectorsRequest, + ListExternalDatabaseConnectorsResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDbSystemsRequest, ListDbSystemsResponse>, - java.util.concurrent.Future> + ListExternalDatabaseConnectorsRequest, + ListExternalDatabaseConnectorsResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDbSystemsRequest, ListDbSystemsResponse>( + ListExternalDatabaseConnectorsRequest, ListExternalDatabaseConnectorsResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -5935,32 +7212,39 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future listDbVersions( - ListDbVersionsRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListDbVersionsRequest, ListDbVersionsResponse> - handler) { - LOG.trace("Called async listDbVersions"); - final ListDbVersionsRequest interceptedRequest = - ListDbVersionsConverter.interceptRequest(request); + public java.util.concurrent.Future + listExternalNonContainerDatabases( + ListExternalNonContainerDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse> + handler) { + LOG.trace("Called async listExternalNonContainerDatabases"); + final ListExternalNonContainerDatabasesRequest interceptedRequest = + ListExternalNonContainerDatabasesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListDbVersionsConverter.fromRequest(client, interceptedRequest); - final com.google.common.base.Function - transformer = ListDbVersionsConverter.fromResponse(); + ListExternalNonContainerDatabasesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListExternalNonContainerDatabasesResponse> + transformer = ListExternalNonContainerDatabasesConverter.fromResponse(); - com.oracle.bmc.responses.AsyncHandler + com.oracle.bmc.responses.AsyncHandler< + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListDbVersionsRequest, ListDbVersionsResponse>, - java.util.concurrent.Future> + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListDbVersionsRequest, ListDbVersionsResponse>( + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -5974,37 +7258,38 @@ protected void beforeRetryAction() {} } @Override - public java.util.concurrent.Future - listExadataInfrastructures( - ListExadataInfrastructuresRequest request, + public java.util.concurrent.Future + listExternalPluggableDatabases( + ListExternalPluggableDatabasesRequest request, final com.oracle.bmc.responses.AsyncHandler< - ListExadataInfrastructuresRequest, - ListExadataInfrastructuresResponse> + ListExternalPluggableDatabasesRequest, + ListExternalPluggableDatabasesResponse> handler) { - LOG.trace("Called async listExadataInfrastructures"); - final ListExadataInfrastructuresRequest interceptedRequest = - ListExadataInfrastructuresConverter.interceptRequest(request); + LOG.trace("Called async listExternalPluggableDatabases"); + final ListExternalPluggableDatabasesRequest interceptedRequest = + ListExternalPluggableDatabasesConverter.interceptRequest(request); final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - ListExadataInfrastructuresConverter.fromRequest(client, interceptedRequest); + ListExternalPluggableDatabasesConverter.fromRequest(client, interceptedRequest); final com.google.common.base.Function< - javax.ws.rs.core.Response, ListExadataInfrastructuresResponse> - transformer = ListExadataInfrastructuresConverter.fromResponse(); + javax.ws.rs.core.Response, ListExternalPluggableDatabasesResponse> + transformer = ListExternalPluggableDatabasesConverter.fromResponse(); com.oracle.bmc.responses.AsyncHandler< - ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse> + ListExternalPluggableDatabasesRequest, + ListExternalPluggableDatabasesResponse> handlerToUse = handler; java.util.function.Function< com.oracle.bmc.responses.AsyncHandler< - ListExadataInfrastructuresRequest, - ListExadataInfrastructuresResponse>, - java.util.concurrent.Future> + ListExternalPluggableDatabasesRequest, + ListExternalPluggableDatabasesResponse>, + java.util.concurrent.Future> futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); if (this.authenticationDetailsProvider instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< - ListExadataInfrastructuresRequest, ListExadataInfrastructuresResponse>( + ListExternalPluggableDatabasesRequest, ListExternalPluggableDatabasesResponse>( (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) this.authenticationDetailsProvider, handlerToUse, @@ -6960,6 +8245,57 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + scanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse> + handler) { + LOG.trace("Called async scanExternalContainerDatabasePluggableDatabases"); + final ScanExternalContainerDatabasePluggableDatabasesRequest interceptedRequest = + ScanExternalContainerDatabasePluggableDatabasesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScanExternalContainerDatabasePluggableDatabasesConverter.fromRequest( + client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, + ScanExternalContainerDatabasePluggableDatabasesResponse> + transformer = + ScanExternalContainerDatabasePluggableDatabasesConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse>, + java.util.concurrent.Future< + ScanExternalContainerDatabasePluggableDatabasesResponse>> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future startAutonomousDatabase( StartAutonomousDatabaseRequest request, @@ -8005,6 +9341,190 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future + updateExternalContainerDatabase( + UpdateExternalContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExternalContainerDatabaseRequest, + UpdateExternalContainerDatabaseResponse> + handler) { + LOG.trace("Called async updateExternalContainerDatabase"); + final UpdateExternalContainerDatabaseRequest interceptedRequest = + UpdateExternalContainerDatabaseConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalContainerDatabaseResponse> + transformer = UpdateExternalContainerDatabaseConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalContainerDatabaseRequest, + UpdateExternalContainerDatabaseResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalContainerDatabaseRequest, + UpdateExternalContainerDatabaseResponse>, + java.util.concurrent.Future> + futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateExternalContainerDatabaseRequest, + UpdateExternalContainerDatabaseResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateExternalDatabaseConnector( + UpdateExternalDatabaseConnectorRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExternalDatabaseConnectorRequest, + UpdateExternalDatabaseConnectorResponse> + handler) { + LOG.trace("Called async updateExternalDatabaseConnector"); + final UpdateExternalDatabaseConnectorRequest interceptedRequest = + UpdateExternalDatabaseConnectorConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalDatabaseConnectorResponse> + transformer = UpdateExternalDatabaseConnectorConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalDatabaseConnectorRequest, + UpdateExternalDatabaseConnectorResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalDatabaseConnectorRequest, + UpdateExternalDatabaseConnectorResponse>, + java.util.concurrent.Future> + futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateExternalDatabaseConnectorRequest, + UpdateExternalDatabaseConnectorResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse> + handler) { + LOG.trace("Called async updateExternalNonContainerDatabase"); + final UpdateExternalNonContainerDatabaseRequest interceptedRequest = + UpdateExternalNonContainerDatabaseConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalNonContainerDatabaseResponse> + transformer = UpdateExternalNonContainerDatabaseConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse>, + java.util.concurrent.Future> + futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future + updateExternalPluggableDatabase( + UpdateExternalPluggableDatabaseRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateExternalPluggableDatabaseRequest, + UpdateExternalPluggableDatabaseResponse> + handler) { + LOG.trace("Called async updateExternalPluggableDatabase"); + final UpdateExternalPluggableDatabaseRequest interceptedRequest = + UpdateExternalPluggableDatabaseConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalPluggableDatabaseResponse> + transformer = UpdateExternalPluggableDatabaseConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalPluggableDatabaseRequest, + UpdateExternalPluggableDatabaseResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateExternalPluggableDatabaseRequest, + UpdateExternalPluggableDatabaseResponse>, + java.util.concurrent.Future> + futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateExternalPluggableDatabaseRequest, + UpdateExternalPluggableDatabaseResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateKeyStore( UpdateKeyStoreRequest request, 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 4d3f30a207a..3e7560a948e 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 @@ -882,6 +882,120 @@ public ChangeExadataInfrastructureCompartmentResponse changeExadataInfrastructur }); } + @Override + public ChangeExternalContainerDatabaseCompartmentResponse + changeExternalContainerDatabaseCompartment( + ChangeExternalContainerDatabaseCompartmentRequest request) { + LOG.trace("Called changeExternalContainerDatabaseCompartment"); + final ChangeExternalContainerDatabaseCompartmentRequest interceptedRequest = + ChangeExternalContainerDatabaseCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeExternalContainerDatabaseCompartmentConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + ChangeExternalContainerDatabaseCompartmentResponse> + transformer = ChangeExternalContainerDatabaseCompartmentConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest.getChangeCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ChangeExternalNonContainerDatabaseCompartmentResponse + changeExternalNonContainerDatabaseCompartment( + ChangeExternalNonContainerDatabaseCompartmentRequest request) { + LOG.trace("Called changeExternalNonContainerDatabaseCompartment"); + final ChangeExternalNonContainerDatabaseCompartmentRequest interceptedRequest = + ChangeExternalNonContainerDatabaseCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeExternalNonContainerDatabaseCompartmentConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + ChangeExternalNonContainerDatabaseCompartmentResponse> + transformer = ChangeExternalNonContainerDatabaseCompartmentConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest.getChangeCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public ChangeExternalPluggableDatabaseCompartmentResponse + changeExternalPluggableDatabaseCompartment( + ChangeExternalPluggableDatabaseCompartmentRequest request) { + LOG.trace("Called changeExternalPluggableDatabaseCompartment"); + final ChangeExternalPluggableDatabaseCompartmentRequest interceptedRequest = + ChangeExternalPluggableDatabaseCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeExternalPluggableDatabaseCompartmentConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + ChangeExternalPluggableDatabaseCompartmentResponse> + transformer = ChangeExternalPluggableDatabaseCompartmentConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest.getChangeCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ChangeKeyStoreCompartmentResponse changeKeyStoreCompartment( ChangeKeyStoreCompartmentRequest request) { @@ -954,6 +1068,42 @@ public ChangeVmClusterCompartmentResponse changeVmClusterCompartment( }); } + @Override + public CheckExternalDatabaseConnectorConnectionStatusResponse + checkExternalDatabaseConnectorConnectionStatus( + CheckExternalDatabaseConnectorConnectionStatusRequest request) { + LOG.trace("Called checkExternalDatabaseConnectorConnectionStatus"); + final CheckExternalDatabaseConnectorConnectionStatusRequest interceptedRequest = + CheckExternalDatabaseConnectorConnectionStatusConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CheckExternalDatabaseConnectorConnectionStatusConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + CheckExternalDatabaseConnectorConnectionStatusResponse> + transformer = + CheckExternalDatabaseConnectorConnectionStatusConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CompleteExternalBackupJobResponse completeExternalBackupJob( CompleteExternalBackupJobRequest request) { @@ -1511,6 +1661,150 @@ public CreateExternalBackupJobResponse createExternalBackupJob( }); } + @Override + public CreateExternalContainerDatabaseResponse createExternalContainerDatabase( + CreateExternalContainerDatabaseRequest request) { + LOG.trace("Called createExternalContainerDatabase"); + final CreateExternalContainerDatabaseRequest interceptedRequest = + CreateExternalContainerDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, CreateExternalContainerDatabaseResponse> + transformer = CreateExternalContainerDatabaseConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getCreateExternalContainerDatabaseDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateExternalDatabaseConnectorResponse createExternalDatabaseConnector( + CreateExternalDatabaseConnectorRequest request) { + LOG.trace("Called createExternalDatabaseConnector"); + final CreateExternalDatabaseConnectorRequest interceptedRequest = + CreateExternalDatabaseConnectorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, CreateExternalDatabaseConnectorResponse> + transformer = CreateExternalDatabaseConnectorConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getCreateExternalDatabaseConnectorDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateExternalNonContainerDatabaseResponse createExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request) { + LOG.trace("Called createExternalNonContainerDatabase"); + final CreateExternalNonContainerDatabaseRequest interceptedRequest = + CreateExternalNonContainerDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, CreateExternalNonContainerDatabaseResponse> + transformer = CreateExternalNonContainerDatabaseConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getCreateExternalNonContainerDatabaseDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public CreateExternalPluggableDatabaseResponse createExternalPluggableDatabase( + CreateExternalPluggableDatabaseRequest request) { + LOG.trace("Called createExternalPluggableDatabase"); + final CreateExternalPluggableDatabaseRequest interceptedRequest = + CreateExternalPluggableDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, CreateExternalPluggableDatabaseResponse> + transformer = CreateExternalPluggableDatabaseConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getCreateExternalPluggableDatabaseDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateKeyStoreResponse createKeyStore(CreateKeyStoreRequest request) { LOG.trace("Called createKeyStore"); @@ -1971,6 +2265,130 @@ public DeleteExadataInfrastructureResponse deleteExadataInfrastructure( }); } + @Override + public DeleteExternalContainerDatabaseResponse deleteExternalContainerDatabase( + DeleteExternalContainerDatabaseRequest request) { + LOG.trace("Called deleteExternalContainerDatabase"); + final DeleteExternalContainerDatabaseRequest interceptedRequest = + DeleteExternalContainerDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteExternalContainerDatabaseResponse> + transformer = DeleteExternalContainerDatabaseConverter.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.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteExternalDatabaseConnectorResponse deleteExternalDatabaseConnector( + DeleteExternalDatabaseConnectorRequest request) { + LOG.trace("Called deleteExternalDatabaseConnector"); + final DeleteExternalDatabaseConnectorRequest interceptedRequest = + DeleteExternalDatabaseConnectorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteExternalDatabaseConnectorResponse> + transformer = DeleteExternalDatabaseConnectorConverter.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.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteExternalNonContainerDatabaseResponse deleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request) { + LOG.trace("Called deleteExternalNonContainerDatabase"); + final DeleteExternalNonContainerDatabaseRequest interceptedRequest = + DeleteExternalNonContainerDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteExternalNonContainerDatabaseResponse> + transformer = DeleteExternalNonContainerDatabaseConverter.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.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteExternalPluggableDatabaseResponse deleteExternalPluggableDatabase( + DeleteExternalPluggableDatabaseRequest request) { + LOG.trace("Called deleteExternalPluggableDatabase"); + final DeleteExternalPluggableDatabaseRequest interceptedRequest = + DeleteExternalPluggableDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, DeleteExternalPluggableDatabaseResponse> + transformer = DeleteExternalPluggableDatabaseConverter.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.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteKeyStoreResponse deleteKeyStore(DeleteKeyStoreRequest request) { LOG.trace("Called deleteKeyStore"); @@ -2023,26 +2441,133 @@ public DeleteVmClusterResponse deleteVmCluster(DeleteVmClusterRequest request) { retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeleteVmClusterNetworkResponse deleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request) { + LOG.trace("Called deleteVmClusterNetwork"); + final DeleteVmClusterNetworkRequest interceptedRequest = + DeleteVmClusterNetworkConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteVmClusterNetworkConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteVmClusterNetworkConverter.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.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DeregisterAutonomousDatabaseDataSafeResponse deregisterAutonomousDatabaseDataSafe( + DeregisterAutonomousDatabaseDataSafeRequest request) { + LOG.trace("Called deregisterAutonomousDatabaseDataSafe"); + final DeregisterAutonomousDatabaseDataSafeRequest interceptedRequest = + DeregisterAutonomousDatabaseDataSafeConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeregisterAutonomousDatabaseDataSafeConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, DeregisterAutonomousDatabaseDataSafeResponse> + transformer = DeregisterAutonomousDatabaseDataSafeConverter.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.post( + ib, + retriedRequest + .getDeregisterAutonomousDatabaseDataSafeDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public DisableAutonomousDatabaseOperationsInsightsResponse + disableAutonomousDatabaseOperationsInsights( + DisableAutonomousDatabaseOperationsInsightsRequest request) { + LOG.trace("Called disableAutonomousDatabaseOperationsInsights"); + final DisableAutonomousDatabaseOperationsInsightsRequest interceptedRequest = + DisableAutonomousDatabaseOperationsInsightsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DisableAutonomousDatabaseOperationsInsightsConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + DisableAutonomousDatabaseOperationsInsightsResponse> + transformer = DisableAutonomousDatabaseOperationsInsightsConverter.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.post(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public DeleteVmClusterNetworkResponse deleteVmClusterNetwork( - DeleteVmClusterNetworkRequest request) { - LOG.trace("Called deleteVmClusterNetwork"); - final DeleteVmClusterNetworkRequest interceptedRequest = - DeleteVmClusterNetworkConverter.interceptRequest(request); + public DisableExternalContainerDatabaseDatabaseManagementResponse + disableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request) { + LOG.trace("Called disableExternalContainerDatabaseDatabaseManagement"); + final DisableExternalContainerDatabaseDatabaseManagementRequest interceptedRequest = + DisableExternalContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeleteVmClusterNetworkConverter.fromRequest(client, interceptedRequest); - com.google.common.base.Function - transformer = DeleteVmClusterNetworkConverter.fromResponse(); + DisableExternalContainerDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + DisableExternalContainerDatabaseDatabaseManagementResponse> + transformer = + DisableExternalContainerDatabaseDatabaseManagementConverter.fromResponse(); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); return retrier.execute( interceptedRequest, retryRequest -> { @@ -2053,28 +2578,34 @@ public DeleteVmClusterNetworkResponse deleteVmClusterNetwork( retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.delete(ib, retriedRequest); + client.post(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public DeregisterAutonomousDatabaseDataSafeResponse deregisterAutonomousDatabaseDataSafe( - DeregisterAutonomousDatabaseDataSafeRequest request) { - LOG.trace("Called deregisterAutonomousDatabaseDataSafe"); - final DeregisterAutonomousDatabaseDataSafeRequest interceptedRequest = - DeregisterAutonomousDatabaseDataSafeConverter.interceptRequest(request); + public DisableExternalNonContainerDatabaseDatabaseManagementResponse + disableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request) { + LOG.trace("Called disableExternalNonContainerDatabaseDatabaseManagement"); + final DisableExternalNonContainerDatabaseDatabaseManagementRequest interceptedRequest = + DisableExternalNonContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DeregisterAutonomousDatabaseDataSafeConverter.fromRequest( + DisableExternalNonContainerDatabaseDatabaseManagementConverter.fromRequest( client, interceptedRequest); com.google.common.base.Function< - javax.ws.rs.core.Response, DeregisterAutonomousDatabaseDataSafeResponse> - transformer = DeregisterAutonomousDatabaseDataSafeConverter.fromResponse(); + javax.ws.rs.core.Response, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + transformer = + DisableExternalNonContainerDatabaseDatabaseManagementConverter + .fromResponse(); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); return retrier.execute( interceptedRequest, retryRequest -> { @@ -2085,34 +2616,33 @@ public DeregisterAutonomousDatabaseDataSafeResponse deregisterAutonomousDatabase retryRequest, retriedRequest -> { javax.ws.rs.core.Response response = - client.post( - ib, - retriedRequest - .getDeregisterAutonomousDatabaseDataSafeDetails(), - retriedRequest); + client.post(ib, retriedRequest); return transformer.apply(response); }); }); } @Override - public DisableAutonomousDatabaseOperationsInsightsResponse - disableAutonomousDatabaseOperationsInsights( - DisableAutonomousDatabaseOperationsInsightsRequest request) { - LOG.trace("Called disableAutonomousDatabaseOperationsInsights"); - final DisableAutonomousDatabaseOperationsInsightsRequest interceptedRequest = - DisableAutonomousDatabaseOperationsInsightsConverter.interceptRequest(request); + public DisableExternalPluggableDatabaseDatabaseManagementResponse + disableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request) { + LOG.trace("Called disableExternalPluggableDatabaseDatabaseManagement"); + final DisableExternalPluggableDatabaseDatabaseManagementRequest interceptedRequest = + DisableExternalPluggableDatabaseDatabaseManagementConverter.interceptRequest( + request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - DisableAutonomousDatabaseOperationsInsightsConverter.fromRequest( + DisableExternalPluggableDatabaseDatabaseManagementConverter.fromRequest( client, interceptedRequest); com.google.common.base.Function< javax.ws.rs.core.Response, - DisableAutonomousDatabaseOperationsInsightsResponse> - transformer = DisableAutonomousDatabaseOperationsInsightsConverter.fromResponse(); + DisableExternalPluggableDatabaseDatabaseManagementResponse> + transformer = + DisableExternalPluggableDatabaseDatabaseManagementConverter.fromResponse(); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); return retrier.execute( interceptedRequest, retryRequest -> { @@ -2228,6 +2758,130 @@ public DownloadVmClusterNetworkConfigFileResponse downloadVmClusterNetworkConfig }); } + @Override + public EnableExternalContainerDatabaseDatabaseManagementResponse + enableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request) { + LOG.trace("Called enableExternalContainerDatabaseDatabaseManagement"); + final EnableExternalContainerDatabaseDatabaseManagementRequest interceptedRequest = + EnableExternalContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableExternalContainerDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + EnableExternalContainerDatabaseDatabaseManagementResponse> + transformer = + EnableExternalContainerDatabaseDatabaseManagementConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getEnableExternalContainerDatabaseDatabaseManagementDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public EnableExternalNonContainerDatabaseDatabaseManagementResponse + enableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request) { + LOG.trace("Called enableExternalNonContainerDatabaseDatabaseManagement"); + final EnableExternalNonContainerDatabaseDatabaseManagementRequest interceptedRequest = + EnableExternalNonContainerDatabaseDatabaseManagementConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableExternalNonContainerDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> + transformer = + EnableExternalNonContainerDatabaseDatabaseManagementConverter + .fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getEnableExternalNonContainerDatabaseDatabaseManagementDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public EnableExternalPluggableDatabaseDatabaseManagementResponse + enableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request) { + LOG.trace("Called enableExternalPluggableDatabaseDatabaseManagement"); + final EnableExternalPluggableDatabaseDatabaseManagementRequest interceptedRequest = + EnableExternalPluggableDatabaseDatabaseManagementConverter.interceptRequest( + request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + EnableExternalPluggableDatabaseDatabaseManagementConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + EnableExternalPluggableDatabaseDatabaseManagementResponse> + transformer = + EnableExternalPluggableDatabaseDatabaseManagementConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getEnableExternalPluggableDatabaseDatabaseManagementDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public FailOverAutonomousDatabaseResponse failOverAutonomousDatabase( FailOverAutonomousDatabaseRequest request) { @@ -3256,15 +3910,131 @@ public GetDbSystemPatchHistoryEntryResponse getDbSystemPatchHistoryEntry( } @Override - public GetExadataInfrastructureResponse getExadataInfrastructure( - GetExadataInfrastructureRequest request) { - LOG.trace("Called getExadataInfrastructure"); - final GetExadataInfrastructureRequest interceptedRequest = - GetExadataInfrastructureConverter.interceptRequest(request); + public GetExadataInfrastructureResponse getExadataInfrastructure( + GetExadataInfrastructureRequest request) { + LOG.trace("Called getExadataInfrastructure"); + final GetExadataInfrastructureRequest interceptedRequest = + GetExadataInfrastructureConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetExadataInfrastructureConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetExadataInfrastructureConverter.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 GetExadataInfrastructureOcpusResponse getExadataInfrastructureOcpus( + GetExadataInfrastructureOcpusRequest request) { + LOG.trace("Called getExadataInfrastructureOcpus"); + final GetExadataInfrastructureOcpusRequest interceptedRequest = + GetExadataInfrastructureOcpusConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetExadataInfrastructureOcpusConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, GetExadataInfrastructureOcpusResponse> + transformer = GetExadataInfrastructureOcpusConverter.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 GetExadataIormConfigResponse getExadataIormConfig(GetExadataIormConfigRequest request) { + LOG.trace("Called getExadataIormConfig"); + final GetExadataIormConfigRequest interceptedRequest = + GetExadataIormConfigConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetExadataIormConfigConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetExadataIormConfigConverter.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 GetExternalBackupJobResponse getExternalBackupJob(GetExternalBackupJobRequest request) { + LOG.trace("Called getExternalBackupJob"); + final GetExternalBackupJobRequest interceptedRequest = + GetExternalBackupJobConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetExternalBackupJobConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetExternalBackupJobConverter.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 GetExternalContainerDatabaseResponse getExternalContainerDatabase( + GetExternalContainerDatabaseRequest request) { + LOG.trace("Called getExternalContainerDatabase"); + final GetExternalContainerDatabaseRequest interceptedRequest = + GetExternalContainerDatabaseConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExadataInfrastructureConverter.fromRequest(client, interceptedRequest); - com.google.common.base.Function - transformer = GetExadataInfrastructureConverter.fromResponse(); + GetExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, GetExternalContainerDatabaseResponse> + transformer = GetExternalContainerDatabaseConverter.fromResponse(); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -3285,16 +4055,16 @@ public GetExadataInfrastructureResponse getExadataInfrastructure( } @Override - public GetExadataInfrastructureOcpusResponse getExadataInfrastructureOcpus( - GetExadataInfrastructureOcpusRequest request) { - LOG.trace("Called getExadataInfrastructureOcpus"); - final GetExadataInfrastructureOcpusRequest interceptedRequest = - GetExadataInfrastructureOcpusConverter.interceptRequest(request); + public GetExternalDatabaseConnectorResponse getExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request) { + LOG.trace("Called getExternalDatabaseConnector"); + final GetExternalDatabaseConnectorRequest interceptedRequest = + GetExternalDatabaseConnectorConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExadataInfrastructureOcpusConverter.fromRequest(client, interceptedRequest); + GetExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); com.google.common.base.Function< - javax.ws.rs.core.Response, GetExadataInfrastructureOcpusResponse> - transformer = GetExadataInfrastructureOcpusConverter.fromResponse(); + javax.ws.rs.core.Response, GetExternalDatabaseConnectorResponse> + transformer = GetExternalDatabaseConnectorConverter.fromResponse(); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -3315,14 +4085,16 @@ public GetExadataInfrastructureOcpusResponse getExadataInfrastructureOcpus( } @Override - public GetExadataIormConfigResponse getExadataIormConfig(GetExadataIormConfigRequest request) { - LOG.trace("Called getExadataIormConfig"); - final GetExadataIormConfigRequest interceptedRequest = - GetExadataIormConfigConverter.interceptRequest(request); + public GetExternalNonContainerDatabaseResponse getExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request) { + LOG.trace("Called getExternalNonContainerDatabase"); + final GetExternalNonContainerDatabaseRequest interceptedRequest = + GetExternalNonContainerDatabaseConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExadataIormConfigConverter.fromRequest(client, interceptedRequest); - com.google.common.base.Function - transformer = GetExadataIormConfigConverter.fromResponse(); + GetExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, GetExternalNonContainerDatabaseResponse> + transformer = GetExternalNonContainerDatabaseConverter.fromResponse(); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -3343,14 +4115,16 @@ public GetExadataIormConfigResponse getExadataIormConfig(GetExadataIormConfigReq } @Override - public GetExternalBackupJobResponse getExternalBackupJob(GetExternalBackupJobRequest request) { - LOG.trace("Called getExternalBackupJob"); - final GetExternalBackupJobRequest interceptedRequest = - GetExternalBackupJobConverter.interceptRequest(request); + public GetExternalPluggableDatabaseResponse getExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request) { + LOG.trace("Called getExternalPluggableDatabase"); + final GetExternalPluggableDatabaseRequest interceptedRequest = + GetExternalPluggableDatabaseConverter.interceptRequest(request); com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = - GetExternalBackupJobConverter.fromRequest(client, interceptedRequest); - com.google.common.base.Function - transformer = GetExternalBackupJobConverter.fromResponse(); + GetExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, GetExternalPluggableDatabaseResponse> + transformer = GetExternalPluggableDatabaseConverter.fromResponse(); final com.oracle.bmc.retrier.BmcGenericRetrier retrier = com.oracle.bmc.retrier.Retriers.createPreferredRetrier( @@ -4589,6 +5363,126 @@ public ListExadataInfrastructuresResponse listExadataInfrastructures( }); } + @Override + public ListExternalContainerDatabasesResponse listExternalContainerDatabases( + ListExternalContainerDatabasesRequest request) { + LOG.trace("Called listExternalContainerDatabases"); + final ListExternalContainerDatabasesRequest interceptedRequest = + ListExternalContainerDatabasesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListExternalContainerDatabasesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, ListExternalContainerDatabasesResponse> + transformer = ListExternalContainerDatabasesConverter.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 ListExternalDatabaseConnectorsResponse listExternalDatabaseConnectors( + ListExternalDatabaseConnectorsRequest request) { + LOG.trace("Called listExternalDatabaseConnectors"); + final ListExternalDatabaseConnectorsRequest interceptedRequest = + ListExternalDatabaseConnectorsConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListExternalDatabaseConnectorsConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, ListExternalDatabaseConnectorsResponse> + transformer = ListExternalDatabaseConnectorsConverter.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 ListExternalNonContainerDatabasesResponse listExternalNonContainerDatabases( + ListExternalNonContainerDatabasesRequest request) { + LOG.trace("Called listExternalNonContainerDatabases"); + final ListExternalNonContainerDatabasesRequest interceptedRequest = + ListExternalNonContainerDatabasesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListExternalNonContainerDatabasesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, ListExternalNonContainerDatabasesResponse> + transformer = ListExternalNonContainerDatabasesConverter.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 ListExternalPluggableDatabasesResponse listExternalPluggableDatabases( + ListExternalPluggableDatabasesRequest request) { + LOG.trace("Called listExternalPluggableDatabases"); + final ListExternalPluggableDatabasesRequest interceptedRequest = + ListExternalPluggableDatabasesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListExternalPluggableDatabasesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, ListExternalPluggableDatabasesResponse> + transformer = ListExternalPluggableDatabasesConverter.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 ListFlexComponentsResponse listFlexComponents(ListFlexComponentsRequest request) { LOG.trace("Called listFlexComponents"); @@ -5277,6 +6171,42 @@ public RotateVaultKeyResponse rotateVaultKey(RotateVaultKeyRequest request) { }); } + @Override + public ScanExternalContainerDatabasePluggableDatabasesResponse + scanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request) { + LOG.trace("Called scanExternalContainerDatabasePluggableDatabases"); + final ScanExternalContainerDatabasePluggableDatabasesRequest interceptedRequest = + ScanExternalContainerDatabasePluggableDatabasesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ScanExternalContainerDatabasePluggableDatabasesConverter.fromRequest( + client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, + ScanExternalContainerDatabasePluggableDatabasesResponse> + transformer = + ScanExternalContainerDatabasePluggableDatabasesConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public StartAutonomousDatabaseResponse startAutonomousDatabase( StartAutonomousDatabaseRequest request) { @@ -6079,6 +7009,146 @@ public UpdateExadataIormConfigResponse updateExadataIormConfig( }); } + @Override + public UpdateExternalContainerDatabaseResponse updateExternalContainerDatabase( + UpdateExternalContainerDatabaseRequest request) { + LOG.trace("Called updateExternalContainerDatabase"); + final UpdateExternalContainerDatabaseRequest interceptedRequest = + UpdateExternalContainerDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalContainerDatabaseResponse> + transformer = UpdateExternalContainerDatabaseConverter.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.put( + ib, + retriedRequest + .getUpdateExternalContainerDatabaseDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateExternalDatabaseConnectorResponse updateExternalDatabaseConnector( + UpdateExternalDatabaseConnectorRequest request) { + LOG.trace("Called updateExternalDatabaseConnector"); + final UpdateExternalDatabaseConnectorRequest interceptedRequest = + UpdateExternalDatabaseConnectorConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalDatabaseConnectorConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalDatabaseConnectorResponse> + transformer = UpdateExternalDatabaseConnectorConverter.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.put( + ib, + retriedRequest + .getUpdateExternalDatabaseConnectorDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateExternalNonContainerDatabaseResponse updateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request) { + LOG.trace("Called updateExternalNonContainerDatabase"); + final UpdateExternalNonContainerDatabaseRequest interceptedRequest = + UpdateExternalNonContainerDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalNonContainerDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalNonContainerDatabaseResponse> + transformer = UpdateExternalNonContainerDatabaseConverter.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.put( + ib, + retriedRequest + .getUpdateExternalNonContainerDatabaseDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + + @Override + public UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( + UpdateExternalPluggableDatabaseRequest request) { + LOG.trace("Called updateExternalPluggableDatabase"); + final UpdateExternalPluggableDatabaseRequest interceptedRequest = + UpdateExternalPluggableDatabaseConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateExternalPluggableDatabaseConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateExternalPluggableDatabaseResponse> + transformer = UpdateExternalPluggableDatabaseConverter.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.put( + ib, + retriedRequest + .getUpdateExternalPluggableDatabaseDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateKeyStoreResponse updateKeyStore(UpdateKeyStoreRequest request) { LOG.trace("Called updateKeyStore"); 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 f4b8f31d13a..3275d2b3832 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 @@ -3883,6 +3883,513 @@ public ListExadataInfrastructuresResponse apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listExternalContainerDatabases 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 + listExternalContainerDatabasesResponseIterator( + final ListExternalContainerDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExternalContainerDatabasesRequest.Builder, + ListExternalContainerDatabasesRequest, ListExternalContainerDatabasesResponse>( + new com.google.common.base.Supplier< + ListExternalContainerDatabasesRequest.Builder>() { + @Override + public ListExternalContainerDatabasesRequest.Builder get() { + return ListExternalContainerDatabasesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalContainerDatabasesResponse, String>() { + @Override + public String apply(ListExternalContainerDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalContainerDatabasesRequest.Builder>, + ListExternalContainerDatabasesRequest>() { + @Override + public ListExternalContainerDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalContainerDatabasesRequest.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< + ListExternalContainerDatabasesRequest, + ListExternalContainerDatabasesResponse>() { + @Override + public ListExternalContainerDatabasesResponse apply( + ListExternalContainerDatabasesRequest request) { + return client.listExternalContainerDatabases(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.ExternalContainerDatabaseSummary} objects + * contained in responses from the listExternalContainerDatabases 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.ExternalContainerDatabaseSummary} objects + * contained in responses received from the service. + */ + public Iterable + listExternalContainerDatabasesRecordIterator( + final ListExternalContainerDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExternalContainerDatabasesRequest.Builder, + ListExternalContainerDatabasesRequest, ListExternalContainerDatabasesResponse, + com.oracle.bmc.database.model.ExternalContainerDatabaseSummary>( + new com.google.common.base.Supplier< + ListExternalContainerDatabasesRequest.Builder>() { + @Override + public ListExternalContainerDatabasesRequest.Builder get() { + return ListExternalContainerDatabasesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalContainerDatabasesResponse, String>() { + @Override + public String apply(ListExternalContainerDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalContainerDatabasesRequest.Builder>, + ListExternalContainerDatabasesRequest>() { + @Override + public ListExternalContainerDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalContainerDatabasesRequest.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< + ListExternalContainerDatabasesRequest, + ListExternalContainerDatabasesResponse>() { + @Override + public ListExternalContainerDatabasesResponse apply( + ListExternalContainerDatabasesRequest request) { + return client.listExternalContainerDatabases(request); + } + }, + new com.google.common.base.Function< + ListExternalContainerDatabasesResponse, + java.util.List< + com.oracle.bmc.database.model.ExternalContainerDatabaseSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model.ExternalContainerDatabaseSummary> + apply(ListExternalContainerDatabasesResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listExternalDatabaseConnectors 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 + listExternalDatabaseConnectorsResponseIterator( + final ListExternalDatabaseConnectorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExternalDatabaseConnectorsRequest.Builder, + ListExternalDatabaseConnectorsRequest, ListExternalDatabaseConnectorsResponse>( + new com.google.common.base.Supplier< + ListExternalDatabaseConnectorsRequest.Builder>() { + @Override + public ListExternalDatabaseConnectorsRequest.Builder get() { + return ListExternalDatabaseConnectorsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalDatabaseConnectorsResponse, String>() { + @Override + public String apply(ListExternalDatabaseConnectorsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalDatabaseConnectorsRequest.Builder>, + ListExternalDatabaseConnectorsRequest>() { + @Override + public ListExternalDatabaseConnectorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalDatabaseConnectorsRequest.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< + ListExternalDatabaseConnectorsRequest, + ListExternalDatabaseConnectorsResponse>() { + @Override + public ListExternalDatabaseConnectorsResponse apply( + ListExternalDatabaseConnectorsRequest request) { + return client.listExternalDatabaseConnectors(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary} objects + * contained in responses from the listExternalDatabaseConnectors 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.ExternalDatabaseConnectorSummary} objects + * contained in responses received from the service. + */ + public Iterable + listExternalDatabaseConnectorsRecordIterator( + final ListExternalDatabaseConnectorsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExternalDatabaseConnectorsRequest.Builder, + ListExternalDatabaseConnectorsRequest, ListExternalDatabaseConnectorsResponse, + com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary>( + new com.google.common.base.Supplier< + ListExternalDatabaseConnectorsRequest.Builder>() { + @Override + public ListExternalDatabaseConnectorsRequest.Builder get() { + return ListExternalDatabaseConnectorsRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalDatabaseConnectorsResponse, String>() { + @Override + public String apply(ListExternalDatabaseConnectorsResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalDatabaseConnectorsRequest.Builder>, + ListExternalDatabaseConnectorsRequest>() { + @Override + public ListExternalDatabaseConnectorsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalDatabaseConnectorsRequest.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< + ListExternalDatabaseConnectorsRequest, + ListExternalDatabaseConnectorsResponse>() { + @Override + public ListExternalDatabaseConnectorsResponse apply( + ListExternalDatabaseConnectorsRequest request) { + return client.listExternalDatabaseConnectors(request); + } + }, + new com.google.common.base.Function< + ListExternalDatabaseConnectorsResponse, + java.util.List< + com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model.ExternalDatabaseConnectorSummary> + apply(ListExternalDatabaseConnectorsResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listExternalNonContainerDatabases 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 + listExternalNonContainerDatabasesResponseIterator( + final ListExternalNonContainerDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExternalNonContainerDatabasesRequest.Builder, + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse>( + new com.google.common.base.Supplier< + ListExternalNonContainerDatabasesRequest.Builder>() { + @Override + public ListExternalNonContainerDatabasesRequest.Builder get() { + return ListExternalNonContainerDatabasesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalNonContainerDatabasesResponse, String>() { + @Override + public String apply(ListExternalNonContainerDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalNonContainerDatabasesRequest.Builder>, + ListExternalNonContainerDatabasesRequest>() { + @Override + public ListExternalNonContainerDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalNonContainerDatabasesRequest.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< + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse>() { + @Override + public ListExternalNonContainerDatabasesResponse apply( + ListExternalNonContainerDatabasesRequest request) { + return client.listExternalNonContainerDatabases(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary} objects + * contained in responses from the listExternalNonContainerDatabases 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.ExternalNonContainerDatabaseSummary} objects + * contained in responses received from the service. + */ + public Iterable + listExternalNonContainerDatabasesRecordIterator( + final ListExternalNonContainerDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExternalNonContainerDatabasesRequest.Builder, + ListExternalNonContainerDatabasesRequest, ListExternalNonContainerDatabasesResponse, + com.oracle.bmc.database.model.ExternalNonContainerDatabaseSummary>( + new com.google.common.base.Supplier< + ListExternalNonContainerDatabasesRequest.Builder>() { + @Override + public ListExternalNonContainerDatabasesRequest.Builder get() { + return ListExternalNonContainerDatabasesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalNonContainerDatabasesResponse, String>() { + @Override + public String apply(ListExternalNonContainerDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalNonContainerDatabasesRequest.Builder>, + ListExternalNonContainerDatabasesRequest>() { + @Override + public ListExternalNonContainerDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalNonContainerDatabasesRequest.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< + ListExternalNonContainerDatabasesRequest, + ListExternalNonContainerDatabasesResponse>() { + @Override + public ListExternalNonContainerDatabasesResponse apply( + ListExternalNonContainerDatabasesRequest request) { + return client.listExternalNonContainerDatabases(request); + } + }, + new com.google.common.base.Function< + ListExternalNonContainerDatabasesResponse, + java.util.List< + com.oracle.bmc.database.model + .ExternalNonContainerDatabaseSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model + .ExternalNonContainerDatabaseSummary> + apply(ListExternalNonContainerDatabasesResponse response) { + return response.getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the listExternalPluggableDatabases 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 + listExternalPluggableDatabasesResponseIterator( + final ListExternalPluggableDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListExternalPluggableDatabasesRequest.Builder, + ListExternalPluggableDatabasesRequest, ListExternalPluggableDatabasesResponse>( + new com.google.common.base.Supplier< + ListExternalPluggableDatabasesRequest.Builder>() { + @Override + public ListExternalPluggableDatabasesRequest.Builder get() { + return ListExternalPluggableDatabasesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalPluggableDatabasesResponse, String>() { + @Override + public String apply(ListExternalPluggableDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalPluggableDatabasesRequest.Builder>, + ListExternalPluggableDatabasesRequest>() { + @Override + public ListExternalPluggableDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalPluggableDatabasesRequest.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< + ListExternalPluggableDatabasesRequest, + ListExternalPluggableDatabasesResponse>() { + @Override + public ListExternalPluggableDatabasesResponse apply( + ListExternalPluggableDatabasesRequest request) { + return client.listExternalPluggableDatabases(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary} objects + * contained in responses from the listExternalPluggableDatabases 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.ExternalPluggableDatabaseSummary} objects + * contained in responses received from the service. + */ + public Iterable + listExternalPluggableDatabasesRecordIterator( + final ListExternalPluggableDatabasesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListExternalPluggableDatabasesRequest.Builder, + ListExternalPluggableDatabasesRequest, ListExternalPluggableDatabasesResponse, + com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary>( + new com.google.common.base.Supplier< + ListExternalPluggableDatabasesRequest.Builder>() { + @Override + public ListExternalPluggableDatabasesRequest.Builder get() { + return ListExternalPluggableDatabasesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function< + ListExternalPluggableDatabasesResponse, String>() { + @Override + public String apply(ListExternalPluggableDatabasesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalPluggableDatabasesRequest.Builder>, + ListExternalPluggableDatabasesRequest>() { + @Override + public ListExternalPluggableDatabasesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListExternalPluggableDatabasesRequest.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< + ListExternalPluggableDatabasesRequest, + ListExternalPluggableDatabasesResponse>() { + @Override + public ListExternalPluggableDatabasesResponse apply( + ListExternalPluggableDatabasesRequest request) { + return client.listExternalPluggableDatabases(request); + } + }, + new com.google.common.base.Function< + ListExternalPluggableDatabasesResponse, + java.util.List< + com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.database.model.ExternalPluggableDatabaseSummary> + apply(ListExternalPluggableDatabasesResponse response) { + return response.getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listFlexComponents operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java index 84861fc03d7..29d22f5d291 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseWaiters.java @@ -775,6 +775,198 @@ public ChangeExadataInfrastructureCompartmentResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeExternalContainerDatabaseCompartmentRequest, + ChangeExternalContainerDatabaseCompartmentResponse> + forChangeExternalContainerDatabaseCompartment( + ChangeExternalContainerDatabaseCompartmentRequest request) { + return forChangeExternalContainerDatabaseCompartment( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeExternalContainerDatabaseCompartmentRequest, + ChangeExternalContainerDatabaseCompartmentResponse> + forChangeExternalContainerDatabaseCompartment( + ChangeExternalContainerDatabaseCompartmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + ChangeExternalContainerDatabaseCompartmentResponse>() { + @Override + public ChangeExternalContainerDatabaseCompartmentResponse call() + throws Exception { + final ChangeExternalContainerDatabaseCompartmentResponse response = + client.changeExternalContainerDatabaseCompartment(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeExternalNonContainerDatabaseCompartmentResponse> + forChangeExternalNonContainerDatabaseCompartment( + ChangeExternalNonContainerDatabaseCompartmentRequest request) { + return forChangeExternalNonContainerDatabaseCompartment( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeExternalNonContainerDatabaseCompartmentResponse> + forChangeExternalNonContainerDatabaseCompartment( + ChangeExternalNonContainerDatabaseCompartmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + ChangeExternalNonContainerDatabaseCompartmentResponse>() { + @Override + public ChangeExternalNonContainerDatabaseCompartmentResponse call() + throws Exception { + final ChangeExternalNonContainerDatabaseCompartmentResponse response = + client.changeExternalNonContainerDatabaseCompartment(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeExternalPluggableDatabaseCompartmentRequest, + ChangeExternalPluggableDatabaseCompartmentResponse> + forChangeExternalPluggableDatabaseCompartment( + ChangeExternalPluggableDatabaseCompartmentRequest request) { + return forChangeExternalPluggableDatabaseCompartment( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ChangeExternalPluggableDatabaseCompartmentRequest, + ChangeExternalPluggableDatabaseCompartmentResponse> + forChangeExternalPluggableDatabaseCompartment( + ChangeExternalPluggableDatabaseCompartmentRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + ChangeExternalPluggableDatabaseCompartmentResponse>() { + @Override + public ChangeExternalPluggableDatabaseCompartmentResponse call() + throws Exception { + final ChangeExternalPluggableDatabaseCompartmentResponse response = + client.changeExternalPluggableDatabaseCompartment(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -893,6 +1085,70 @@ public ChangeVmClusterCompartmentResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + CheckExternalDatabaseConnectorConnectionStatusRequest, + CheckExternalDatabaseConnectorConnectionStatusResponse> + forCheckExternalDatabaseConnectorConnectionStatus( + CheckExternalDatabaseConnectorConnectionStatusRequest request) { + return forCheckExternalDatabaseConnectorConnectionStatus( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + CheckExternalDatabaseConnectorConnectionStatusRequest, + CheckExternalDatabaseConnectorConnectionStatusResponse> + forCheckExternalDatabaseConnectorConnectionStatus( + CheckExternalDatabaseConnectorConnectionStatusRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + CheckExternalDatabaseConnectorConnectionStatusResponse>() { + @Override + public CheckExternalDatabaseConnectorConnectionStatusResponse call() + throws Exception { + final CheckExternalDatabaseConnectorConnectionStatusResponse response = + client.checkExternalDatabaseConnectorConnectionStatus(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -1716,9 +1972,10 @@ public CreateExternalBackupJobResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCreateVmCluster(CreateVmClusterRequest request) { - return forCreateVmCluster( + public com.oracle.bmc.waiter.Waiter< + CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> + forCreateExternalContainerDatabase(CreateExternalContainerDatabaseRequest request) { + return forCreateExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -1732,9 +1989,10 @@ public CreateExternalBackupJobResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCreateVmCluster( - CreateVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> + forCreateExternalContainerDatabase( + CreateExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -1744,10 +2002,11 @@ public CreateExternalBackupJobResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateVmClusterResponse call() throws Exception { - final CreateVmClusterResponse response = client.createVmCluster(request); + public CreateExternalContainerDatabaseResponse call() throws Exception { + final CreateExternalContainerDatabaseResponse response = + client.createExternalContainerDatabase(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -1773,9 +2032,9 @@ public CreateVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> - forCreateVmClusterNetwork(CreateVmClusterNetworkRequest request) { - return forCreateVmClusterNetwork( + CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> + forCreateExternalDatabaseConnector(CreateExternalDatabaseConnectorRequest request) { + return forCreateExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -1790,9 +2049,9 @@ public CreateVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> - forCreateVmClusterNetwork( - CreateVmClusterNetworkRequest request, + CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> + forCreateExternalDatabaseConnector( + CreateExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -1802,11 +2061,11 @@ public CreateVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public CreateVmClusterNetworkResponse call() throws Exception { - final CreateVmClusterNetworkResponse response = - client.createVmClusterNetwork(request); + public CreateExternalDatabaseConnectorResponse call() throws Exception { + final CreateExternalDatabaseConnectorResponse response = + client.createExternalDatabaseConnector(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -1831,9 +2090,12 @@ public CreateVmClusterNetworkResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNodeAction( - DbNodeActionRequest request) { - return forDbNodeAction( + public com.oracle.bmc.waiter.Waiter< + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse> + forCreateExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request) { + return forCreateExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -1847,10 +2109,13 @@ public com.oracle.bmc.waiter.Waiter f * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNodeAction( - DbNodeActionRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseResponse> + forCreateExternalNonContainerDatabase( + CreateExternalNonContainerDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); @@ -1858,10 +2123,11 @@ public com.oracle.bmc.waiter.Waiter f return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DbNodeActionResponse call() throws Exception { - final DbNodeActionResponse response = client.dbNodeAction(request); + public CreateExternalNonContainerDatabaseResponse call() throws Exception { + final CreateExternalNonContainerDatabaseResponse response = + client.createExternalNonContainerDatabase(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -1887,9 +2153,9 @@ public DbNodeActionResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> - forDeleteAutonomousDatabase(DeleteAutonomousDatabaseRequest request) { - return forDeleteAutonomousDatabase( + CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> + forCreateExternalPluggableDatabase(CreateExternalPluggableDatabaseRequest request) { + return forCreateExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -1904,9 +2170,9 @@ public DbNodeActionResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> - forDeleteAutonomousDatabase( - DeleteAutonomousDatabaseRequest request, + CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> + forCreateExternalPluggableDatabase( + CreateExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -1916,11 +2182,11 @@ public DbNodeActionResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteAutonomousDatabaseResponse call() throws Exception { - final DeleteAutonomousDatabaseResponse response = - client.deleteAutonomousDatabase(request); + public CreateExternalPluggableDatabaseResponse call() throws Exception { + final CreateExternalPluggableDatabaseResponse response = + client.createExternalPluggableDatabase(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -1945,10 +2211,239 @@ public DeleteAutonomousDatabaseResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> - forDeleteAutonomousVmCluster(DeleteAutonomousVmClusterRequest request) { - return forDeleteAutonomousVmCluster( + public com.oracle.bmc.waiter.Waiter + forCreateVmCluster(CreateVmClusterRequest request) { + return forCreateVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forCreateVmCluster( + CreateVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public CreateVmClusterResponse call() throws Exception { + final CreateVmClusterResponse response = client.createVmCluster(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + forCreateVmClusterNetwork(CreateVmClusterNetworkRequest request) { + return forCreateVmClusterNetwork( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> + forCreateVmClusterNetwork( + CreateVmClusterNetworkRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public CreateVmClusterNetworkResponse call() throws Exception { + final CreateVmClusterNetworkResponse response = + client.createVmClusterNetwork(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forDbNodeAction( + DbNodeActionRequest request) { + return forDbNodeAction( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forDbNodeAction( + DbNodeActionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public DbNodeActionResponse call() throws Exception { + final DbNodeActionResponse response = client.dbNodeAction(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> + forDeleteAutonomousDatabase(DeleteAutonomousDatabaseRequest request) { + return forDeleteAutonomousDatabase( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> + forDeleteAutonomousDatabase( + DeleteAutonomousDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public DeleteAutonomousDatabaseResponse call() throws Exception { + final DeleteAutonomousDatabaseResponse response = + client.deleteAutonomousDatabase(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> + forDeleteAutonomousVmCluster(DeleteAutonomousVmClusterRequest request) { + return forDeleteAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2406,9 +2901,10 @@ public DeleteExadataInfrastructureResponse call() throws Exception { * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteVmCluster(DeleteVmClusterRequest request) { - return forDeleteVmCluster( + public com.oracle.bmc.waiter.Waiter< + DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> + forDeleteExternalContainerDatabase(DeleteExternalContainerDatabaseRequest request) { + return forDeleteExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2422,9 +2918,10 @@ public DeleteExadataInfrastructureResponse call() throws Exception { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forDeleteVmCluster( - DeleteVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> + forDeleteExternalContainerDatabase( + DeleteExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2434,10 +2931,11 @@ public DeleteExadataInfrastructureResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteVmClusterResponse call() throws Exception { - final DeleteVmClusterResponse response = client.deleteVmCluster(request); + public DeleteExternalContainerDatabaseResponse call() throws Exception { + final DeleteExternalContainerDatabaseResponse response = + client.deleteExternalContainerDatabase(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2463,9 +2961,9 @@ public DeleteVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> - forDeleteVmClusterNetwork(DeleteVmClusterNetworkRequest request) { - return forDeleteVmClusterNetwork( + DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> + forDeleteExternalDatabaseConnector(DeleteExternalDatabaseConnectorRequest request) { + return forDeleteExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2480,9 +2978,9 @@ public DeleteVmClusterResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> - forDeleteVmClusterNetwork( - DeleteVmClusterNetworkRequest request, + DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> + forDeleteExternalDatabaseConnector( + DeleteExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2492,11 +2990,11 @@ public DeleteVmClusterResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeleteVmClusterNetworkResponse call() throws Exception { - final DeleteVmClusterNetworkResponse response = - client.deleteVmClusterNetwork(request); + public DeleteExternalDatabaseConnectorResponse call() throws Exception { + final DeleteExternalDatabaseConnectorResponse response = + client.deleteExternalDatabaseConnector(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2522,11 +3020,11 @@ public DeleteVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse> - forDeregisterAutonomousDatabaseDataSafe( - DeregisterAutonomousDatabaseDataSafeRequest request) { - return forDeregisterAutonomousDatabaseDataSafe( + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse> + forDeleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request) { + return forDeleteExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2541,10 +3039,10 @@ public DeleteVmClusterNetworkResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DeregisterAutonomousDatabaseDataSafeRequest, - DeregisterAutonomousDatabaseDataSafeResponse> - forDeregisterAutonomousDatabaseDataSafe( - DeregisterAutonomousDatabaseDataSafeRequest request, + DeleteExternalNonContainerDatabaseRequest, + DeleteExternalNonContainerDatabaseResponse> + forDeleteExternalNonContainerDatabase( + DeleteExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2554,11 +3052,11 @@ public DeleteVmClusterNetworkResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { - final DeregisterAutonomousDatabaseDataSafeResponse response = - client.deregisterAutonomousDatabaseDataSafe(request); + public DeleteExternalNonContainerDatabaseResponse call() throws Exception { + final DeleteExternalNonContainerDatabaseResponse response = + client.deleteExternalNonContainerDatabase(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2584,11 +3082,9 @@ public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse> - forDisableAutonomousDatabaseOperationsInsights( - DisableAutonomousDatabaseOperationsInsightsRequest request) { - return forDisableAutonomousDatabaseOperationsInsights( + DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> + forDeleteExternalPluggableDatabase(DeleteExternalPluggableDatabaseRequest request) { + return forDeleteExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2603,10 +3099,9 @@ public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - DisableAutonomousDatabaseOperationsInsightsRequest, - DisableAutonomousDatabaseOperationsInsightsResponse> - forDisableAutonomousDatabaseOperationsInsights( - DisableAutonomousDatabaseOperationsInsightsRequest request, + DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> + forDeleteExternalPluggableDatabase( + DeleteExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2616,13 +3111,67 @@ public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - DisableAutonomousDatabaseOperationsInsightsResponse>() { + new java.util.concurrent.Callable() { @Override - public DisableAutonomousDatabaseOperationsInsightsResponse call() - throws Exception { - final DisableAutonomousDatabaseOperationsInsightsResponse response = - client.disableAutonomousDatabaseOperationsInsights(request); + public DeleteExternalPluggableDatabaseResponse call() throws Exception { + final DeleteExternalPluggableDatabaseResponse response = + client.deleteExternalPluggableDatabase(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDeleteVmCluster(DeleteVmClusterRequest request) { + return forDeleteVmCluster( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forDeleteVmCluster( + DeleteVmClusterRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public DeleteVmClusterResponse call() throws Exception { + final DeleteVmClusterResponse response = client.deleteVmCluster(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2648,11 +3197,9 @@ public DisableAutonomousDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse> - forEnableAutonomousDatabaseOperationsInsights( - EnableAutonomousDatabaseOperationsInsightsRequest request) { - return forEnableAutonomousDatabaseOperationsInsights( + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + forDeleteVmClusterNetwork(DeleteVmClusterNetworkRequest request) { + return forDeleteVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2667,10 +3214,9 @@ public DisableAutonomousDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - EnableAutonomousDatabaseOperationsInsightsRequest, - EnableAutonomousDatabaseOperationsInsightsResponse> - forEnableAutonomousDatabaseOperationsInsights( - EnableAutonomousDatabaseOperationsInsightsRequest request, + DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> + forDeleteVmClusterNetwork( + DeleteVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2680,13 +3226,11 @@ public DisableAutonomousDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable< - EnableAutonomousDatabaseOperationsInsightsResponse>() { + new java.util.concurrent.Callable() { @Override - public EnableAutonomousDatabaseOperationsInsightsResponse call() - throws Exception { - final EnableAutonomousDatabaseOperationsInsightsResponse response = - client.enableAutonomousDatabaseOperationsInsights(request); + public DeleteVmClusterNetworkResponse call() throws Exception { + final DeleteVmClusterNetworkResponse response = + client.deleteVmClusterNetwork(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2712,9 +3256,11 @@ public EnableAutonomousDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> - forFailOverAutonomousDatabase(FailOverAutonomousDatabaseRequest request) { - return forFailOverAutonomousDatabase( + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse> + forDeregisterAutonomousDatabaseDataSafe( + DeregisterAutonomousDatabaseDataSafeRequest request) { + return forDeregisterAutonomousDatabaseDataSafe( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2729,9 +3275,10 @@ public EnableAutonomousDatabaseOperationsInsightsResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> - forFailOverAutonomousDatabase( - FailOverAutonomousDatabaseRequest request, + DeregisterAutonomousDatabaseDataSafeRequest, + DeregisterAutonomousDatabaseDataSafeResponse> + forDeregisterAutonomousDatabaseDataSafe( + DeregisterAutonomousDatabaseDataSafeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2741,11 +3288,11 @@ public EnableAutonomousDatabaseOperationsInsightsResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable() { @Override - public FailOverAutonomousDatabaseResponse call() throws Exception { - final FailOverAutonomousDatabaseResponse response = - client.failOverAutonomousDatabase(request); + public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { + final DeregisterAutonomousDatabaseDataSafeResponse response = + client.deregisterAutonomousDatabaseDataSafe(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2771,11 +3318,11 @@ public FailOverAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverAutonomousContainerDatabaseDataguardAssociationRequest, - FailoverAutonomousContainerDatabaseDataguardAssociationResponse> - forFailoverAutonomousContainerDatabaseDataguardAssociation( - FailoverAutonomousContainerDatabaseDataguardAssociationRequest request) { - return forFailoverAutonomousContainerDatabaseDataguardAssociation( + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse> + forDisableAutonomousDatabaseOperationsInsights( + DisableAutonomousDatabaseOperationsInsightsRequest request) { + return forDisableAutonomousDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2790,10 +3337,10 @@ public FailOverAutonomousDatabaseResponse call() throws Exception { * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverAutonomousContainerDatabaseDataguardAssociationRequest, - FailoverAutonomousContainerDatabaseDataguardAssociationResponse> - forFailoverAutonomousContainerDatabaseDataguardAssociation( - FailoverAutonomousContainerDatabaseDataguardAssociationRequest request, + DisableAutonomousDatabaseOperationsInsightsRequest, + DisableAutonomousDatabaseOperationsInsightsResponse> + forDisableAutonomousDatabaseOperationsInsights( + DisableAutonomousDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2804,15 +3351,12 @@ public FailOverAutonomousDatabaseResponse call() throws Exception { return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< - FailoverAutonomousContainerDatabaseDataguardAssociationResponse>() { + DisableAutonomousDatabaseOperationsInsightsResponse>() { @Override - public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() + public DisableAutonomousDatabaseOperationsInsightsResponse call() throws Exception { - final FailoverAutonomousContainerDatabaseDataguardAssociationResponse - response = - client - .failoverAutonomousContainerDatabaseDataguardAssociation( - request); + final DisableAutonomousDatabaseOperationsInsightsResponse response = + client.disableAutonomousDatabaseOperationsInsights(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2838,9 +3382,11 @@ public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> - forFailoverDataGuardAssociation(FailoverDataGuardAssociationRequest request) { - return forFailoverDataGuardAssociation( + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse> + forDisableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request) { + return forDisableExternalContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); @@ -2855,9 +3401,10 @@ public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> - forFailoverDataGuardAssociation( - FailoverDataGuardAssociationRequest request, + DisableExternalContainerDatabaseDatabaseManagementRequest, + DisableExternalContainerDatabaseDatabaseManagementResponse> + forDisableExternalContainerDatabaseDatabaseManagement( + DisableExternalContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { @@ -2867,11 +3414,13 @@ public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, - new java.util.concurrent.Callable() { + new java.util.concurrent.Callable< + DisableExternalContainerDatabaseDatabaseManagementResponse>() { @Override - public FailoverDataGuardAssociationResponse call() throws Exception { - final FailoverDataGuardAssociationResponse response = - client.failoverDataGuardAssociation(request); + public DisableExternalContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final DisableExternalContainerDatabaseDatabaseManagementResponse response = + client.disableExternalContainerDatabaseDatabaseManagement(request); final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = @@ -2894,47 +3443,84 @@ public FailoverDataGuardAssociationResponse call() throws Exception { * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send - * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states - * @return a new {@code Waiter} instance + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( - GetAutonomousContainerDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState... - targetStates) { - org.apache.commons.lang3.Validate.notEmpty( - targetStates, "At least one targetState must be provided"); - org.apache.commons.lang3.Validate.noNullElements( - targetStates, "Null targetState values are not permitted"); - - return forAutonomousContainerDatabase( - com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + forDisableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request) { + return forDisableExternalNonContainerDatabaseDatabaseManagement( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send - * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( - GetAutonomousContainerDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState - targetState, + DisableExternalNonContainerDatabaseDatabaseManagementRequest, + DisableExternalNonContainerDatabaseDatabaseManagementResponse> + forDisableExternalNonContainerDatabaseDatabaseManagement( + DisableExternalNonContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { - org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } - return forAutonomousContainerDatabase( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + DisableExternalNonContainerDatabaseDatabaseManagementResponse>() { + @Override + public DisableExternalNonContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final DisableExternalNonContainerDatabaseDatabaseManagementResponse + response = + client + .disableExternalNonContainerDatabaseDatabaseManagement( + request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + forDisableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request) { + return forDisableExternalPluggableDatabaseDatabaseManagement( request, - targetState); + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** @@ -2943,39 +3529,1050 @@ public FailoverDataGuardAssociationResponse call() throws Exception { * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( - GetAutonomousContainerDatabaseRequest request, + DisableExternalPluggableDatabaseDatabaseManagementRequest, + DisableExternalPluggableDatabaseDatabaseManagementResponse> + forDisableExternalPluggableDatabaseDatabaseManagement( + DisableExternalPluggableDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState... - targetStates) { - org.apache.commons.lang3.Validate.notEmpty( - targetStates, "At least one target state must be provided"); - org.apache.commons.lang3.Validate.noNullElements( - targetStates, "Null target states are not permitted"); + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } - return forAutonomousContainerDatabase( + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + DisableExternalPluggableDatabaseDatabaseManagementResponse>() { + @Override + public DisableExternalPluggableDatabaseDatabaseManagementResponse call() + throws Exception { + final DisableExternalPluggableDatabaseDatabaseManagementResponse response = + client.disableExternalPluggableDatabaseDatabaseManagement(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse> + forEnableAutonomousDatabaseOperationsInsights( + EnableAutonomousDatabaseOperationsInsightsRequest request) { + return forEnableAutonomousDatabaseOperationsInsights( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableAutonomousDatabaseOperationsInsightsRequest, + EnableAutonomousDatabaseOperationsInsightsResponse> + forEnableAutonomousDatabaseOperationsInsights( + EnableAutonomousDatabaseOperationsInsightsRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + EnableAutonomousDatabaseOperationsInsightsResponse>() { + @Override + public EnableAutonomousDatabaseOperationsInsightsResponse call() + throws Exception { + final EnableAutonomousDatabaseOperationsInsightsResponse response = + client.enableAutonomousDatabaseOperationsInsights(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse> + forEnableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request) { + return forEnableExternalContainerDatabaseDatabaseManagement( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementResponse> + forEnableExternalContainerDatabaseDatabaseManagement( + EnableExternalContainerDatabaseDatabaseManagementRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + EnableExternalContainerDatabaseDatabaseManagementResponse>() { + @Override + public EnableExternalContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final EnableExternalContainerDatabaseDatabaseManagementResponse response = + client.enableExternalContainerDatabaseDatabaseManagement(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> + forEnableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request) { + return forEnableExternalNonContainerDatabaseDatabaseManagement( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementResponse> + forEnableExternalNonContainerDatabaseDatabaseManagement( + EnableExternalNonContainerDatabaseDatabaseManagementRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + EnableExternalNonContainerDatabaseDatabaseManagementResponse>() { + @Override + public EnableExternalNonContainerDatabaseDatabaseManagementResponse call() + throws Exception { + final EnableExternalNonContainerDatabaseDatabaseManagementResponse + response = + client.enableExternalNonContainerDatabaseDatabaseManagement( + request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse> + forEnableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request) { + return forEnableExternalPluggableDatabaseDatabaseManagement( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementResponse> + forEnableExternalPluggableDatabaseDatabaseManagement( + EnableExternalPluggableDatabaseDatabaseManagementRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + EnableExternalPluggableDatabaseDatabaseManagementResponse>() { + @Override + public EnableExternalPluggableDatabaseDatabaseManagementResponse call() + throws Exception { + final EnableExternalPluggableDatabaseDatabaseManagementResponse response = + client.enableExternalPluggableDatabaseDatabaseManagement(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> + forFailOverAutonomousDatabase(FailOverAutonomousDatabaseRequest request) { + return forFailOverAutonomousDatabase( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> + forFailOverAutonomousDatabase( + FailOverAutonomousDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public FailOverAutonomousDatabaseResponse call() throws Exception { + final FailOverAutonomousDatabaseResponse response = + client.failOverAutonomousDatabase(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailoverAutonomousContainerDatabaseDataguardAssociationRequest, + FailoverAutonomousContainerDatabaseDataguardAssociationResponse> + forFailoverAutonomousContainerDatabaseDataguardAssociation( + FailoverAutonomousContainerDatabaseDataguardAssociationRequest request) { + return forFailoverAutonomousContainerDatabaseDataguardAssociation( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailoverAutonomousContainerDatabaseDataguardAssociationRequest, + FailoverAutonomousContainerDatabaseDataguardAssociationResponse> + forFailoverAutonomousContainerDatabaseDataguardAssociation( + FailoverAutonomousContainerDatabaseDataguardAssociationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + FailoverAutonomousContainerDatabaseDataguardAssociationResponse>() { + @Override + public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() + throws Exception { + final FailoverAutonomousContainerDatabaseDataguardAssociationResponse + response = + client + .failoverAutonomousContainerDatabaseDataguardAssociation( + request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> + forFailoverDataGuardAssociation(FailoverDataGuardAssociationRequest request) { + return forFailoverDataGuardAssociation( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> + forFailoverDataGuardAssociation( + FailoverDataGuardAssociationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public FailoverDataGuardAssociationResponse call() throws Exception { + final FailoverDataGuardAssociationResponse response = + client.failoverDataGuardAssociation(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( + GetAutonomousContainerDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forAutonomousContainerDatabase( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( + GetAutonomousContainerDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forAutonomousContainerDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( + GetAutonomousContainerDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forAutonomousContainerDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for AutonomousContainerDatabase. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> + forAutonomousContainerDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAutonomousContainerDatabaseRequest request, + final com.oracle.bmc.database.model.AutonomousContainerDatabase + .LifecycleState... + targetStates) { + final java.util.Set< + com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetAutonomousContainerDatabaseRequest, + GetAutonomousContainerDatabaseResponse>() { + @Override + public GetAutonomousContainerDatabaseResponse apply( + GetAutonomousContainerDatabaseRequest request) { + return client.getAutonomousContainerDatabase(request); + } + }, + new com.google.common.base.Predicate< + GetAutonomousContainerDatabaseResponse>() { + @Override + public boolean apply(GetAutonomousContainerDatabaseResponse response) { + return targetStatesSet.contains( + response.getAutonomousContainerDatabase() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.AutonomousContainerDatabase + .LifecycleState.Terminated)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( + GetAutonomousContainerDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation + .LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forAutonomousContainerDatabaseDataguardAssociation( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( + GetAutonomousContainerDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation + .LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forAutonomousContainerDatabaseDataguardAssociation( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( + GetAutonomousContainerDatabaseDataguardAssociationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation + .LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forAutonomousContainerDatabaseDataguardAssociation( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for AutonomousContainerDatabaseDataguardAssociation. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse> + forAutonomousContainerDatabaseDataguardAssociation( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAutonomousContainerDatabaseDataguardAssociationRequest request, + final com.oracle.bmc.database.model + .AutonomousContainerDatabaseDataguardAssociation + .LifecycleState... + targetStates) { + final java.util.Set< + com.oracle.bmc.database.model + .AutonomousContainerDatabaseDataguardAssociation.LifecycleState> + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetAutonomousContainerDatabaseDataguardAssociationRequest, + GetAutonomousContainerDatabaseDataguardAssociationResponse>() { + @Override + public GetAutonomousContainerDatabaseDataguardAssociationResponse apply( + GetAutonomousContainerDatabaseDataguardAssociationRequest + request) { + return client.getAutonomousContainerDatabaseDataguardAssociation( + request); + } + }, + new com.google.common.base.Predicate< + GetAutonomousContainerDatabaseDataguardAssociationResponse>() { + @Override + public boolean apply( + GetAutonomousContainerDatabaseDataguardAssociationResponse + response) { + return targetStatesSet.contains( + response.getAutonomousContainerDatabaseDataguardAssociation() + .getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model + .AutonomousContainerDatabaseDataguardAssociation + .LifecycleState.Terminated)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forAutonomousDatabase( + GetAutonomousDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forAutonomousDatabase( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forAutonomousDatabase( + GetAutonomousDatabaseRequest request, + com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forAutonomousDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter + forAutonomousDatabase( + GetAutonomousDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forAutonomousDatabase( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for AutonomousDatabase. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse> + forAutonomousDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAutonomousDatabaseRequest request, + final com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse>() { + @Override + public GetAutonomousDatabaseResponse apply( + GetAutonomousDatabaseRequest request) { + return client.getAutonomousDatabase(request); + } + }, + new com.google.common.base.Predicate() { + @Override + public boolean apply(GetAutonomousDatabaseResponse response) { + return targetStatesSet.contains( + response.getAutonomousDatabase().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState + .Terminated)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( + GetAutonomousDatabaseBackupRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forAutonomousDatabaseBackup( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( + GetAutonomousDatabaseBackupRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forAutonomousDatabaseBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( + GetAutonomousDatabaseBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forAutonomousDatabaseBackup( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for AutonomousDatabaseBackup. + private com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> + forAutonomousDatabaseBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetAutonomousDatabaseBackupRequest request, + final com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetAutonomousDatabaseBackupRequest, + GetAutonomousDatabaseBackupResponse>() { + @Override + public GetAutonomousDatabaseBackupResponse apply( + GetAutonomousDatabaseBackupRequest request) { + return client.getAutonomousDatabaseBackup(request); + } + }, + new com.google.common.base.Predicate< + GetAutonomousDatabaseBackupResponse>() { + @Override + public boolean apply(GetAutonomousDatabaseBackupResponse response) { + return targetStatesSet.contains( + response.getAutonomousDatabaseBackup().getLifecycleState()); + } + }, + targetStatesSet.contains( + com.oracle.bmc.database.model.AutonomousDatabaseBackup + .LifecycleState.Deleted)), + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( + GetAutonomousDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forAutonomousDatabaseDataguardAssociation( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( + GetAutonomousDatabaseDataguardAssociationRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forAutonomousDatabaseDataguardAssociation( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( + GetAutonomousDatabaseDataguardAssociationRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .LifecycleState... + targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousContainerDatabase. + // Helper method to create a new Waiter for AutonomousDatabaseDataguardAssociation. private com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> - forAutonomousContainerDatabase( + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse> + forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousContainerDatabaseRequest request, - final com.oracle.bmc.database.model.AutonomousContainerDatabase + final GetAutonomousDatabaseDataguardAssociationRequest request, + final com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState... targetStates) { final java.util.Set< - com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState> + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation + .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -2983,25 +4580,26 @@ public FailoverDataGuardAssociationResponse call() throws Exception { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousContainerDatabaseRequest, - GetAutonomousContainerDatabaseResponse>() { + GetAutonomousDatabaseDataguardAssociationRequest, + GetAutonomousDatabaseDataguardAssociationResponse>() { @Override - public GetAutonomousContainerDatabaseResponse apply( - GetAutonomousContainerDatabaseRequest request) { - return client.getAutonomousContainerDatabase(request); + public GetAutonomousDatabaseDataguardAssociationResponse apply( + GetAutonomousDatabaseDataguardAssociationRequest request) { + return client.getAutonomousDatabaseDataguardAssociation(request); } }, new com.google.common.base.Predicate< - GetAutonomousContainerDatabaseResponse>() { + GetAutonomousDatabaseDataguardAssociationResponse>() { @Override - public boolean apply(GetAutonomousContainerDatabaseResponse response) { + public boolean apply( + GetAutonomousDatabaseDataguardAssociationResponse response) { return targetStatesSet.contains( - response.getAutonomousContainerDatabase() + response.getAutonomousDatabaseDataguardAssociation() .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousContainerDatabase + com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState.Terminated)), request); } @@ -3014,19 +4612,17 @@ public boolean apply(GetAutonomousContainerDatabaseResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( - GetAutonomousContainerDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation - .LifecycleState... + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( + GetAutonomousDatabaseWalletRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousContainerDatabaseDataguardAssociation( + return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3040,18 +4636,16 @@ public boolean apply(GetAutonomousContainerDatabaseResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( - GetAutonomousContainerDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation - .LifecycleState + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( + GetAutonomousDatabaseWalletRequest request, + com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousContainerDatabaseDataguardAssociation( + return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3067,40 +4661,33 @@ public boolean apply(GetAutonomousContainerDatabaseResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( - GetAutonomousContainerDatabaseDataguardAssociationRequest request, + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( + GetAutonomousDatabaseWalletRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation - .LifecycleState... + com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousContainerDatabaseDataguardAssociation( + return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousContainerDatabaseDataguardAssociation. + // Helper method to create a new Waiter for AutonomousDatabaseWallet. private com.oracle.bmc.waiter.Waiter< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse> - forAutonomousContainerDatabaseDataguardAssociation( + GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> + forAutonomousDatabaseWallet( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousContainerDatabaseDataguardAssociationRequest request, - final com.oracle.bmc.database.model - .AutonomousContainerDatabaseDataguardAssociation - .LifecycleState... + final GetAutonomousDatabaseWalletRequest request, + final com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model - .AutonomousContainerDatabaseDataguardAssociation.LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -3108,31 +4695,23 @@ public boolean apply(GetAutonomousContainerDatabaseResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousContainerDatabaseDataguardAssociationRequest, - GetAutonomousContainerDatabaseDataguardAssociationResponse>() { + GetAutonomousDatabaseWalletRequest, + GetAutonomousDatabaseWalletResponse>() { @Override - public GetAutonomousContainerDatabaseDataguardAssociationResponse apply( - GetAutonomousContainerDatabaseDataguardAssociationRequest - request) { - return client.getAutonomousContainerDatabaseDataguardAssociation( - request); + public GetAutonomousDatabaseWalletResponse apply( + GetAutonomousDatabaseWalletRequest request) { + return client.getAutonomousDatabaseWallet(request); } }, new com.google.common.base.Predicate< - GetAutonomousContainerDatabaseDataguardAssociationResponse>() { + GetAutonomousDatabaseWalletResponse>() { @Override - public boolean apply( - GetAutonomousContainerDatabaseDataguardAssociationResponse - response) { + public boolean apply(GetAutonomousDatabaseWalletResponse response) { return targetStatesSet.contains( - response.getAutonomousContainerDatabaseDataguardAssociation() - .getLifecycleState()); + response.getAutonomousDatabaseWallet().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model - .AutonomousContainerDatabaseDataguardAssociation - .LifecycleState.Terminated)), + false), request); } @@ -3143,17 +4722,19 @@ public boolean apply( * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousDatabase( - GetAutonomousDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... + public com.oracle.bmc.waiter.Waiter< + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( + GetAutonomousExadataInfrastructureRequest request, + com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousDatabase( + return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3166,15 +4747,18 @@ public boolean apply( * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousDatabase( - GetAutonomousDatabaseRequest request, - com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( + GetAutonomousExadataInfrastructureRequest request, + com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState + targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousDatabase( + return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3189,33 +4773,39 @@ public boolean apply( * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousDatabase( - GetAutonomousDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter< + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( + GetAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... + com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousDatabase( + return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousDatabase. + // Helper method to create a new Waiter for AutonomousExadataInfrastructure. private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse> - forAutonomousDatabase( + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse> + forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseRequest request, - final com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... + final GetAutonomousExadataInfrastructureRequest request, + final com.oracle.bmc.database.model.AutonomousExadataInfrastructure + .LifecycleState... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model.AutonomousExadataInfrastructure + .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -3223,23 +4813,27 @@ public boolean apply( waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse>() { + GetAutonomousExadataInfrastructureRequest, + GetAutonomousExadataInfrastructureResponse>() { @Override - public GetAutonomousDatabaseResponse apply( - GetAutonomousDatabaseRequest request) { - return client.getAutonomousDatabase(request); + public GetAutonomousExadataInfrastructureResponse apply( + GetAutonomousExadataInfrastructureRequest request) { + return client.getAutonomousExadataInfrastructure(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate< + GetAutonomousExadataInfrastructureResponse>() { @Override - public boolean apply(GetAutonomousDatabaseResponse response) { + public boolean apply( + GetAutonomousExadataInfrastructureResponse response) { return targetStatesSet.contains( - response.getAutonomousDatabase().getLifecycleState()); + response.getAutonomousExadataInfrastructure() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.AutonomousExadataInfrastructure + .LifecycleState.Terminated)), request); } @@ -3250,18 +4844,16 @@ public boolean apply(GetAutonomousDatabaseResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( - GetAutonomousDatabaseBackupRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter + forAutonomousPatch( + GetAutonomousPatchRequest request, + com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousDatabaseBackup( + return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3274,17 +4866,15 @@ public boolean apply(GetAutonomousDatabaseResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( - GetAutonomousDatabaseBackupRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forAutonomousPatch( + GetAutonomousPatchRequest request, + com.oracle.bmc.database.model.AutonomousPatch.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousDatabaseBackup( + return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3299,34 +4889,31 @@ public boolean apply(GetAutonomousDatabaseResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( - GetAutonomousDatabaseBackupRequest request, + public com.oracle.bmc.waiter.Waiter + forAutonomousPatch( + GetAutonomousPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... - targetStates) { + com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousDatabaseBackup( + return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousDatabaseBackup. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> - forAutonomousDatabaseBackup( + // Helper method to create a new Waiter for AutonomousPatch. + private com.oracle.bmc.waiter.Waiter + forAutonomousPatch( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseBackupRequest request, - final com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... + final GetAutonomousPatchRequest request, + final com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -3334,25 +4921,21 @@ public boolean apply(GetAutonomousDatabaseResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousDatabaseBackupRequest, - GetAutonomousDatabaseBackupResponse>() { + GetAutonomousPatchRequest, GetAutonomousPatchResponse>() { @Override - public GetAutonomousDatabaseBackupResponse apply( - GetAutonomousDatabaseBackupRequest request) { - return client.getAutonomousDatabaseBackup(request); + public GetAutonomousPatchResponse apply( + GetAutonomousPatchRequest request) { + return client.getAutonomousPatch(request); } }, - new com.google.common.base.Predicate< - GetAutonomousDatabaseBackupResponse>() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetAutonomousDatabaseBackupResponse response) { + public boolean apply(GetAutonomousPatchResponse response) { return targetStatesSet.contains( - response.getAutonomousDatabaseBackup().getLifecycleState()); + response.getAutonomousPatch().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousDatabaseBackup - .LifecycleState.Deleted)), + false), request); } @@ -3364,19 +4947,17 @@ public boolean apply(GetAutonomousDatabaseBackupResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( - GetAutonomousDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState... + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( + GetAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousDatabaseDataguardAssociation( + return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3390,18 +4971,15 @@ public boolean apply(GetAutonomousDatabaseBackupResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( - GetAutonomousDatabaseDataguardAssociationRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState - targetState, + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( + GetAutonomousVmClusterRequest request, + com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousDatabaseDataguardAssociation( + return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3417,39 +4995,33 @@ public boolean apply(GetAutonomousDatabaseBackupResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( - GetAutonomousDatabaseDataguardAssociationRequest request, + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( + GetAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState... + com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousDatabaseDataguardAssociation( + return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousDatabaseDataguardAssociation. + // Helper method to create a new Waiter for AutonomousVmCluster. private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse> - forAutonomousDatabaseDataguardAssociation( + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> + forAutonomousVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseDataguardAssociationRequest request, - final com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState... + final GetAutonomousVmClusterRequest request, + final com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -3457,27 +5029,23 @@ public boolean apply(GetAutonomousDatabaseBackupResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousDatabaseDataguardAssociationRequest, - GetAutonomousDatabaseDataguardAssociationResponse>() { + GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse>() { @Override - public GetAutonomousDatabaseDataguardAssociationResponse apply( - GetAutonomousDatabaseDataguardAssociationRequest request) { - return client.getAutonomousDatabaseDataguardAssociation(request); + public GetAutonomousVmClusterResponse apply( + GetAutonomousVmClusterRequest request) { + return client.getAutonomousVmCluster(request); } }, - new com.google.common.base.Predicate< - GetAutonomousDatabaseDataguardAssociationResponse>() { + new com.google.common.base.Predicate() { @Override - public boolean apply( - GetAutonomousDatabaseDataguardAssociationResponse response) { + public boolean apply(GetAutonomousVmClusterResponse response) { return targetStatesSet.contains( - response.getAutonomousDatabaseDataguardAssociation() - .getLifecycleState()); + response.getAutonomousVmCluster().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation - .LifecycleState.Terminated)), + com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState + .Terminated)), request); } @@ -3488,18 +5056,15 @@ public boolean apply( * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( - GetAutonomousDatabaseWalletRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forBackup( + GetBackupRequest request, + com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousDatabaseWallet( + return forBackup( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3512,17 +5077,14 @@ public boolean apply( * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( - GetAutonomousDatabaseWalletRequest request, - com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState - targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forBackup( + GetBackupRequest request, + com.oracle.bmc.database.model.Backup.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousDatabaseWallet( + return forBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3537,58 +5099,49 @@ public boolean apply( * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( - GetAutonomousDatabaseWalletRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forBackup( + GetBackupRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousDatabaseWallet( + return forBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousDatabaseWallet. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> - forAutonomousDatabaseWallet( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousDatabaseWalletRequest request, - final com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for Backup. + private com.oracle.bmc.waiter.Waiter forBackup( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetBackupRequest request, + final com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), - new com.google.common.base.Function< - GetAutonomousDatabaseWalletRequest, - GetAutonomousDatabaseWalletResponse>() { + new com.google.common.base.Function() { @Override - public GetAutonomousDatabaseWalletResponse apply( - GetAutonomousDatabaseWalletRequest request) { - return client.getAutonomousDatabaseWallet(request); + public GetBackupResponse apply(GetBackupRequest request) { + return client.getBackup(request); } }, - new com.google.common.base.Predicate< - GetAutonomousDatabaseWalletResponse>() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetAutonomousDatabaseWalletResponse response) { + public boolean apply(GetBackupResponse response) { return targetStatesSet.contains( - response.getAutonomousDatabaseWallet().getLifecycleState()); + response.getBackup().getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.Backup.LifecycleState.Deleted)), request); } @@ -3599,19 +5152,17 @@ public boolean apply(GetAutonomousDatabaseWalletResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( - GetAutonomousExadataInfrastructureRequest request, - com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... + public com.oracle.bmc.waiter.Waiter + forBackupDestination( + GetBackupDestinationRequest request, + com.oracle.bmc.database.model.BackupDestination.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousExadataInfrastructure( + return forBackupDestination( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3624,18 +5175,15 @@ public boolean apply(GetAutonomousDatabaseWalletResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( - GetAutonomousExadataInfrastructureRequest request, - com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState - targetState, + public com.oracle.bmc.waiter.Waiter + forBackupDestination( + GetBackupDestinationRequest request, + com.oracle.bmc.database.model.BackupDestination.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousExadataInfrastructure( + return forBackupDestination( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3649,40 +5197,33 @@ public boolean apply(GetAutonomousDatabaseWalletResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( - GetAutonomousExadataInfrastructureRequest request, + */ + public com.oracle.bmc.waiter.Waiter + forBackupDestination( + GetBackupDestinationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... + com.oracle.bmc.database.model.BackupDestination.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousExadataInfrastructure( + return forBackupDestination( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousExadataInfrastructure. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse> - forAutonomousExadataInfrastructure( + // Helper method to create a new Waiter for BackupDestination. + private com.oracle.bmc.waiter.Waiter + forBackupDestination( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousExadataInfrastructureRequest request, - final com.oracle.bmc.database.model.AutonomousExadataInfrastructure - .LifecycleState... + final GetBackupDestinationRequest request, + final com.oracle.bmc.database.model.BackupDestination.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.AutonomousExadataInfrastructure - .LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -3690,27 +5231,23 @@ public boolean apply(GetAutonomousDatabaseWalletResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousExadataInfrastructureRequest, - GetAutonomousExadataInfrastructureResponse>() { + GetBackupDestinationRequest, GetBackupDestinationResponse>() { @Override - public GetAutonomousExadataInfrastructureResponse apply( - GetAutonomousExadataInfrastructureRequest request) { - return client.getAutonomousExadataInfrastructure(request); + public GetBackupDestinationResponse apply( + GetBackupDestinationRequest request) { + return client.getBackupDestination(request); } }, - new com.google.common.base.Predicate< - GetAutonomousExadataInfrastructureResponse>() { + new com.google.common.base.Predicate() { @Override - public boolean apply( - GetAutonomousExadataInfrastructureResponse response) { + public boolean apply(GetBackupDestinationResponse response) { return targetStatesSet.contains( - response.getAutonomousExadataInfrastructure() - .getLifecycleState()); + response.getBackupDestination().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousExadataInfrastructure - .LifecycleState.Terminated)), + com.oracle.bmc.database.model.BackupDestination.LifecycleState + .Deleted)), request); } @@ -3721,16 +5258,18 @@ public boolean apply( * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousPatch( - GetAutonomousPatchRequest request, - com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousPatch( + return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3743,15 +5282,17 @@ public boolean apply( * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousPatch( - GetAutonomousPatchRequest request, - com.oracle.bmc.database.model.AutonomousPatch.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, + com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState + targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousPatch( + return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3766,31 +5307,34 @@ public boolean apply( * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forAutonomousPatch( - GetAutonomousPatchRequest request, + public com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( + GetCloudExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { + com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousPatch( + return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousPatch. - private com.oracle.bmc.waiter.Waiter - forAutonomousPatch( + // Helper method to create a new Waiter for CloudExadataInfrastructure. + private com.oracle.bmc.waiter.Waiter< + GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> + forCloudExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousPatchRequest request, - final com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... + final GetCloudExadataInfrastructureRequest request, + final com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -3798,21 +5342,26 @@ public boolean apply( waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousPatchRequest, GetAutonomousPatchResponse>() { + GetCloudExadataInfrastructureRequest, + GetCloudExadataInfrastructureResponse>() { @Override - public GetAutonomousPatchResponse apply( - GetAutonomousPatchRequest request) { - return client.getAutonomousPatch(request); + public GetCloudExadataInfrastructureResponse apply( + GetCloudExadataInfrastructureRequest request) { + return client.getCloudExadataInfrastructure(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate< + GetCloudExadataInfrastructureResponse>() { @Override - public boolean apply(GetAutonomousPatchResponse response) { + public boolean apply(GetCloudExadataInfrastructureResponse response) { return targetStatesSet.contains( - response.getAutonomousPatch().getLifecycleState()); + response.getCloudExadataInfrastructure() + .getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.CloudExadataInfrastructure + .LifecycleState.Terminated)), request); } @@ -3823,18 +5372,16 @@ public boolean apply(GetAutonomousPatchResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( - GetAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forAutonomousVmCluster( + return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3847,16 +5394,15 @@ public boolean apply(GetAutonomousPatchResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( - GetAutonomousVmClusterRequest request, - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forAutonomousVmCluster( + return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3871,34 +5417,31 @@ public boolean apply(GetAutonomousPatchResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( - GetAutonomousVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter + forCloudVmCluster( + GetCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... - targetStates) { + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forAutonomousVmCluster( + return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for AutonomousVmCluster. - private com.oracle.bmc.waiter.Waiter< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> - forAutonomousVmCluster( + // Helper method to create a new Waiter for CloudVmCluster. + private com.oracle.bmc.waiter.Waiter + forCloudVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAutonomousVmClusterRequest request, - final com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... + final GetCloudVmClusterRequest request, + final com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -3906,22 +5449,22 @@ public boolean apply(GetAutonomousPatchResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse>() { + GetCloudVmClusterRequest, GetCloudVmClusterResponse>() { @Override - public GetAutonomousVmClusterResponse apply( - GetAutonomousVmClusterRequest request) { - return client.getAutonomousVmCluster(request); + public GetCloudVmClusterResponse apply( + GetCloudVmClusterRequest request) { + return client.getCloudVmCluster(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetAutonomousVmClusterResponse response) { + public boolean apply(GetCloudVmClusterResponse response) { return targetStatesSet.contains( - response.getAutonomousVmCluster().getLifecycleState()); + response.getCloudVmCluster().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState + com.oracle.bmc.database.model.CloudVmCluster.LifecycleState .Terminated)), request); } @@ -3933,15 +5476,17 @@ public boolean apply(GetAutonomousVmClusterResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forBackup( - GetBackupRequest request, - com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forConsoleConnection( + GetConsoleConnectionRequest request, + com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forBackup( + return forConsoleConnection( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -3954,14 +5499,15 @@ public com.oracle.bmc.waiter.Waiter forBack * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forBackup( - GetBackupRequest request, - com.oracle.bmc.database.model.Backup.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter + forConsoleConnection( + GetConsoleConnectionRequest request, + com.oracle.bmc.database.model.ConsoleConnection.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forBackup( + return forConsoleConnection( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -3976,49 +5522,56 @@ public com.oracle.bmc.waiter.Waiter forBack * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forBackup( - GetBackupRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forConsoleConnection( + GetConsoleConnectionRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forBackup( + return forConsoleConnection( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for Backup. - private com.oracle.bmc.waiter.Waiter forBackup( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetBackupRequest request, - final com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for ConsoleConnection. + private com.oracle.bmc.waiter.Waiter + forConsoleConnection( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetConsoleConnectionRequest request, + final com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), - new com.google.common.base.Function() { + new com.google.common.base.Function< + GetConsoleConnectionRequest, GetConsoleConnectionResponse>() { @Override - public GetBackupResponse apply(GetBackupRequest request) { - return client.getBackup(request); + public GetConsoleConnectionResponse apply( + GetConsoleConnectionRequest request) { + return client.getConsoleConnection(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetBackupResponse response) { + public boolean apply(GetConsoleConnectionResponse response) { return targetStatesSet.contains( - response.getBackup().getLifecycleState()); + response.getConsoleConnection().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.Backup.LifecycleState.Deleted)), + com.oracle.bmc.database.model.ConsoleConnection.LifecycleState + .Deleted)), request); } @@ -4029,17 +5582,18 @@ public boolean apply(GetBackupResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forBackupDestination( - GetBackupDestinationRequest request, - com.oracle.bmc.database.model.BackupDestination.LifecycleState... + public com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( + GetDataGuardAssociationRequest request, + com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forBackupDestination( + return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4052,15 +5606,16 @@ public boolean apply(GetBackupResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forBackupDestination( - GetBackupDestinationRequest request, - com.oracle.bmc.database.model.BackupDestination.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( + GetDataGuardAssociationRequest request, + com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forBackupDestination( + return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4075,32 +5630,34 @@ public boolean apply(GetBackupResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forBackupDestination( - GetBackupDestinationRequest request, + public com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( + GetDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.BackupDestination.LifecycleState... + com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forBackupDestination( + return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for BackupDestination. - private com.oracle.bmc.waiter.Waiter - forBackupDestination( + // Helper method to create a new Waiter for DataGuardAssociation. + private com.oracle.bmc.waiter.Waiter< + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> + forDataGuardAssociation( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetBackupDestinationRequest request, - final com.oracle.bmc.database.model.BackupDestination.LifecycleState... + final GetDataGuardAssociationRequest request, + final com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -4108,23 +5665,23 @@ public boolean apply(GetBackupResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetBackupDestinationRequest, GetBackupDestinationResponse>() { + GetDataGuardAssociationRequest, GetDataGuardAssociationResponse>() { @Override - public GetBackupDestinationResponse apply( - GetBackupDestinationRequest request) { - return client.getBackupDestination(request); + public GetDataGuardAssociationResponse apply( + GetDataGuardAssociationRequest request) { + return client.getDataGuardAssociation(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetBackupDestinationResponse response) { + public boolean apply(GetDataGuardAssociationResponse response) { return targetStatesSet.contains( - response.getBackupDestination().getLifecycleState()); + response.getDataGuardAssociation().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.BackupDestination.LifecycleState - .Deleted)), + com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState + .Terminated)), request); } @@ -4135,18 +5692,15 @@ public boolean apply(GetBackupDestinationResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDatabase( + GetDatabaseRequest request, + com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forCloudExadataInfrastructure( + return forDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4159,17 +5713,14 @@ public boolean apply(GetBackupDestinationResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState - targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDatabase( + GetDatabaseRequest request, + com.oracle.bmc.database.model.Database.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forCloudExadataInfrastructure( + return forDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4184,61 +5735,50 @@ public boolean apply(GetBackupDestinationResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - GetCloudExadataInfrastructureRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDatabase( + GetDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forCloudExadataInfrastructure( + return forDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudExadataInfrastructure. - private com.oracle.bmc.waiter.Waiter< - GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> - forCloudExadataInfrastructure( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetCloudExadataInfrastructureRequest request, - final com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for Database. + private com.oracle.bmc.waiter.Waiter forDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDatabaseRequest request, + final com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetCloudExadataInfrastructureRequest, - GetCloudExadataInfrastructureResponse>() { + GetDatabaseRequest, GetDatabaseResponse>() { @Override - public GetCloudExadataInfrastructureResponse apply( - GetCloudExadataInfrastructureRequest request) { - return client.getCloudExadataInfrastructure(request); + public GetDatabaseResponse apply(GetDatabaseRequest request) { + return client.getDatabase(request); } }, - new com.google.common.base.Predicate< - GetCloudExadataInfrastructureResponse>() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetCloudExadataInfrastructureResponse response) { + public boolean apply(GetDatabaseResponse response) { return targetStatesSet.contains( - response.getCloudExadataInfrastructure() - .getLifecycleState()); + response.getDatabase().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.CloudExadataInfrastructure - .LifecycleState.Terminated)), + com.oracle.bmc.database.model.Database.LifecycleState.Terminated)), request); } @@ -4249,16 +5789,18 @@ public boolean apply(GetCloudExadataInfrastructureResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( + GetDatabaseSoftwareImageRequest request, + com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forCloudVmCluster( + return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4271,15 +5813,16 @@ public boolean apply(GetCloudExadataInfrastructureResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( + GetDatabaseSoftwareImageRequest request, + com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forCloudVmCluster( + return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4294,31 +5837,34 @@ public boolean apply(GetCloudExadataInfrastructureResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forCloudVmCluster( - GetCloudVmClusterRequest request, + public com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( + GetDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { + com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forCloudVmCluster( + return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for CloudVmCluster. - private com.oracle.bmc.waiter.Waiter - forCloudVmCluster( + // Helper method to create a new Waiter for DatabaseSoftwareImage. + private com.oracle.bmc.waiter.Waiter< + GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> + forDatabaseSoftwareImage( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetCloudVmClusterRequest request, - final com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... + final GetDatabaseSoftwareImageRequest request, + final com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -4326,22 +5872,23 @@ public boolean apply(GetCloudExadataInfrastructureResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetCloudVmClusterRequest, GetCloudVmClusterResponse>() { + GetDatabaseSoftwareImageRequest, + GetDatabaseSoftwareImageResponse>() { @Override - public GetCloudVmClusterResponse apply( - GetCloudVmClusterRequest request) { - return client.getCloudVmCluster(request); + public GetDatabaseSoftwareImageResponse apply( + GetDatabaseSoftwareImageRequest request) { + return client.getDatabaseSoftwareImage(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetCloudVmClusterResponse response) { + public boolean apply(GetDatabaseSoftwareImageResponse response) { return targetStatesSet.contains( - response.getCloudVmCluster().getLifecycleState()); + response.getDatabaseSoftwareImage().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.CloudVmCluster.LifecycleState + com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState .Terminated)), request); } @@ -4353,17 +5900,18 @@ public boolean apply(GetCloudVmClusterResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forConsoleConnection( - GetConsoleConnectionRequest request, - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... + public com.oracle.bmc.waiter.Waiter< + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( + GetDatabaseUpgradeHistoryEntryRequest request, + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forConsoleConnection( + return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4376,15 +5924,17 @@ public boolean apply(GetCloudVmClusterResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forConsoleConnection( - GetConsoleConnectionRequest request, - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( + GetDatabaseUpgradeHistoryEntryRequest request, + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState + targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forConsoleConnection( + return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4399,32 +5949,36 @@ public boolean apply(GetCloudVmClusterResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forConsoleConnection( - GetConsoleConnectionRequest request, + public com.oracle.bmc.waiter.Waiter< + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( + GetDatabaseUpgradeHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forConsoleConnection( + return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ConsoleConnection. - private com.oracle.bmc.waiter.Waiter - forConsoleConnection( + // Helper method to create a new Waiter for DatabaseUpgradeHistoryEntry. + private com.oracle.bmc.waiter.Waiter< + GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> + forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetConsoleConnectionRequest request, - final com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... + final GetDatabaseUpgradeHistoryEntryRequest request, + final com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry + .LifecycleState... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -4432,23 +5986,24 @@ public boolean apply(GetCloudVmClusterResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetConsoleConnectionRequest, GetConsoleConnectionResponse>() { + GetDatabaseUpgradeHistoryEntryRequest, + GetDatabaseUpgradeHistoryEntryResponse>() { @Override - public GetConsoleConnectionResponse apply( - GetConsoleConnectionRequest request) { - return client.getConsoleConnection(request); + public GetDatabaseUpgradeHistoryEntryResponse apply( + GetDatabaseUpgradeHistoryEntryRequest request) { + return client.getDatabaseUpgradeHistoryEntry(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate< + GetDatabaseUpgradeHistoryEntryResponse>() { @Override - public boolean apply(GetConsoleConnectionResponse response) { + public boolean apply(GetDatabaseUpgradeHistoryEntryResponse response) { return targetStatesSet.contains( - response.getConsoleConnection().getLifecycleState()); + response.getDatabaseUpgradeHistoryEntry() + .getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.ConsoleConnection.LifecycleState - .Deleted)), + false), request); } @@ -4459,18 +6014,15 @@ public boolean apply(GetConsoleConnectionResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( - GetDataGuardAssociationRequest request, - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbHome( + GetDbHomeRequest request, + com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDataGuardAssociation( + return forDbHome( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4483,16 +6035,14 @@ public boolean apply(GetConsoleConnectionResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( - GetDataGuardAssociationRequest request, - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDbHome( + GetDbHomeRequest request, + com.oracle.bmc.database.model.DbHome.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forDataGuardAssociation( + return forDbHome( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4507,58 +6057,49 @@ public boolean apply(GetConsoleConnectionResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( - GetDataGuardAssociationRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbHome( + GetDbHomeRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDataGuardAssociation( + return forDbHome( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DataGuardAssociation. - private com.oracle.bmc.waiter.Waiter< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> - forDataGuardAssociation( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDataGuardAssociationRequest request, - final com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DbHome. + private com.oracle.bmc.waiter.Waiter forDbHome( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDbHomeRequest request, + final com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), - new com.google.common.base.Function< - GetDataGuardAssociationRequest, GetDataGuardAssociationResponse>() { + new com.google.common.base.Function() { @Override - public GetDataGuardAssociationResponse apply( - GetDataGuardAssociationRequest request) { - return client.getDataGuardAssociation(request); + public GetDbHomeResponse apply(GetDbHomeRequest request) { + return client.getDbHome(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetDataGuardAssociationResponse response) { + public boolean apply(GetDbHomeResponse response) { return targetStatesSet.contains( - response.getDataGuardAssociation().getLifecycleState()); + response.getDbHome().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.DbHome.LifecycleState.Terminated)), request); } @@ -4569,15 +6110,15 @@ public boolean apply(GetDataGuardAssociationResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDatabase( - GetDatabaseRequest request, - com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter forDbNode( + GetDbNodeRequest request, + com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDatabase( + return forDbNode( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4590,14 +6131,14 @@ public com.oracle.bmc.waiter.Waiter for * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDatabase( - GetDatabaseRequest request, - com.oracle.bmc.database.model.Database.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter forDbNode( + GetDbNodeRequest request, + com.oracle.bmc.database.model.DbNode.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forDatabase( + return forDbNode( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4612,50 +6153,49 @@ public com.oracle.bmc.waiter.Waiter for * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDatabase( - GetDatabaseRequest request, + public com.oracle.bmc.waiter.Waiter forDbNode( + GetDbNodeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { + com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDatabase( + return forDbNode( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for Database. - private com.oracle.bmc.waiter.Waiter forDatabase( + // Helper method to create a new Waiter for DbNode. + private com.oracle.bmc.waiter.Waiter forDbNode( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDatabaseRequest request, - final com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = + final GetDbNodeRequest request, + final com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), - new com.google.common.base.Function< - GetDatabaseRequest, GetDatabaseResponse>() { + new com.google.common.base.Function() { @Override - public GetDatabaseResponse apply(GetDatabaseRequest request) { - return client.getDatabase(request); + public GetDbNodeResponse apply(GetDbNodeRequest request) { + return client.getDbNode(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetDatabaseResponse response) { + public boolean apply(GetDbNodeResponse response) { return targetStatesSet.contains( - response.getDatabase().getLifecycleState()); + response.getDbNode().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.Database.LifecycleState.Terminated)), + com.oracle.bmc.database.model.DbNode.LifecycleState.Terminated)), request); } @@ -4666,18 +6206,15 @@ public boolean apply(GetDatabaseResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( - GetDatabaseSoftwareImageRequest request, - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbSystem( + GetDbSystemRequest request, + com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDatabaseSoftwareImage( + return forDbSystem( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4690,16 +6227,14 @@ public boolean apply(GetDatabaseResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( - GetDatabaseSoftwareImageRequest request, - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter forDbSystem( + GetDbSystemRequest request, + com.oracle.bmc.database.model.DbSystem.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forDatabaseSoftwareImage( + return forDbSystem( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4714,59 +6249,50 @@ public boolean apply(GetDatabaseResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( - GetDatabaseSoftwareImageRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... - targetStates) { + public com.oracle.bmc.waiter.Waiter forDbSystem( + GetDbSystemRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDatabaseSoftwareImage( + return forDbSystem( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DatabaseSoftwareImage. - private com.oracle.bmc.waiter.Waiter< - GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> - forDatabaseSoftwareImage( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDatabaseSoftwareImageRequest request, - final com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... - targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for DbSystem. + private com.oracle.bmc.waiter.Waiter forDbSystem( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetDbSystemRequest request, + final com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { + final java.util.Set targetStatesSet = + new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetDatabaseSoftwareImageRequest, - GetDatabaseSoftwareImageResponse>() { + GetDbSystemRequest, GetDbSystemResponse>() { @Override - public GetDatabaseSoftwareImageResponse apply( - GetDatabaseSoftwareImageRequest request) { - return client.getDatabaseSoftwareImage(request); + public GetDbSystemResponse apply(GetDbSystemRequest request) { + return client.getDbSystem(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetDatabaseSoftwareImageResponse response) { + public boolean apply(GetDbSystemResponse response) { return targetStatesSet.contains( - response.getDatabaseSoftwareImage().getLifecycleState()); + response.getDbSystem().getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState - .Terminated)), + com.oracle.bmc.database.model.DbSystem.LifecycleState.Terminated)), request); } @@ -4778,17 +6304,17 @@ public boolean apply(GetDatabaseSoftwareImageResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( - GetDatabaseUpgradeHistoryEntryRequest request, - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( + GetExadataInfrastructureRequest request, + com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDatabaseUpgradeHistoryEntry( + return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4802,16 +6328,15 @@ public boolean apply(GetDatabaseSoftwareImageResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( - GetDatabaseUpgradeHistoryEntryRequest request, - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState - targetState, + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( + GetExadataInfrastructureRequest request, + com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forDatabaseUpgradeHistoryEntry( + return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4827,35 +6352,33 @@ public boolean apply(GetDatabaseSoftwareImageResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( - GetDatabaseUpgradeHistoryEntryRequest request, + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( + GetExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... + com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDatabaseUpgradeHistoryEntry( + return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DatabaseUpgradeHistoryEntry. + // Helper method to create a new Waiter for ExadataInfrastructure. private com.oracle.bmc.waiter.Waiter< - GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> - forDatabaseUpgradeHistoryEntry( + GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> + forExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDatabaseUpgradeHistoryEntryRequest request, - final com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry - .LifecycleState... + final GetExadataInfrastructureRequest request, + final com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... targetStates) { - final java.util.Set< - com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState> + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -4863,24 +6386,24 @@ public boolean apply(GetDatabaseSoftwareImageResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetDatabaseUpgradeHistoryEntryRequest, - GetDatabaseUpgradeHistoryEntryResponse>() { + GetExadataInfrastructureRequest, + GetExadataInfrastructureResponse>() { @Override - public GetDatabaseUpgradeHistoryEntryResponse apply( - GetDatabaseUpgradeHistoryEntryRequest request) { - return client.getDatabaseUpgradeHistoryEntry(request); + public GetExadataInfrastructureResponse apply( + GetExadataInfrastructureRequest request) { + return client.getExadataInfrastructure(request); } }, - new com.google.common.base.Predicate< - GetDatabaseUpgradeHistoryEntryResponse>() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetDatabaseUpgradeHistoryEntryResponse response) { + public boolean apply(GetExadataInfrastructureResponse response) { return targetStatesSet.contains( - response.getDatabaseUpgradeHistoryEntry() - .getLifecycleState()); + response.getExadataInfrastructure().getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState + .Deleted)), request); } @@ -4891,15 +6414,17 @@ public boolean apply(GetDatabaseUpgradeHistoryEntryResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbHome( - GetDbHomeRequest request, - com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forExadataIormConfig( + GetExadataIormConfigRequest request, + com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDbHome( + return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -4912,14 +6437,15 @@ public com.oracle.bmc.waiter.Waiter forDbHo * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbHome( - GetDbHomeRequest request, - com.oracle.bmc.database.model.DbHome.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter + forExadataIormConfig( + GetExadataIormConfigRequest request, + com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forDbHome( + return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -4934,49 +6460,54 @@ public com.oracle.bmc.waiter.Waiter forDbHo * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbHome( - GetDbHomeRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter + forExadataIormConfig( + GetExadataIormConfigRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDbHome( + return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbHome. - private com.oracle.bmc.waiter.Waiter forDbHome( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbHomeRequest request, - final com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for ExadataIormConfig. + private com.oracle.bmc.waiter.Waiter + forExadataIormConfig( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetExadataIormConfigRequest request, + final com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), - new com.google.common.base.Function() { + new com.google.common.base.Function< + GetExadataIormConfigRequest, GetExadataIormConfigResponse>() { @Override - public GetDbHomeResponse apply(GetDbHomeRequest request) { - return client.getDbHome(request); + public GetExadataIormConfigResponse apply( + GetExadataIormConfigRequest request) { + return client.getExadataIormConfig(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate() { @Override - public boolean apply(GetDbHomeResponse response) { + public boolean apply(GetExadataIormConfigResponse response) { return targetStatesSet.contains( - response.getDbHome().getLifecycleState()); + response.getExadataIormConfig().getLifecycleState()); } }, - targetStatesSet.contains( - com.oracle.bmc.database.model.DbHome.LifecycleState.Terminated)), + false), request); } @@ -4987,15 +6518,18 @@ public boolean apply(GetDbHomeResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNode( - GetDbNodeRequest request, - com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDbNode( + return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -5008,14 +6542,17 @@ public com.oracle.bmc.waiter.Waiter forDbNo * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNode( - GetDbNodeRequest request, - com.oracle.bmc.database.model.DbNode.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forDbNode( + return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -5030,49 +6567,61 @@ public com.oracle.bmc.waiter.Waiter forDbNo * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbNode( - GetDbNodeRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( + GetExternalContainerDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDbNode( + return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbNode. - private com.oracle.bmc.waiter.Waiter forDbNode( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbNodeRequest request, - final com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for ExternalContainerDatabase. + private com.oracle.bmc.waiter.Waiter< + GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> + forExternalContainerDatabase( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetExternalContainerDatabaseRequest request, + final com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), - new com.google.common.base.Function() { + new com.google.common.base.Function< + GetExternalContainerDatabaseRequest, + GetExternalContainerDatabaseResponse>() { @Override - public GetDbNodeResponse apply(GetDbNodeRequest request) { - return client.getDbNode(request); + public GetExternalContainerDatabaseResponse apply( + GetExternalContainerDatabaseRequest request) { + return client.getExternalContainerDatabase(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate< + GetExternalContainerDatabaseResponse>() { @Override - public boolean apply(GetDbNodeResponse response) { + public boolean apply(GetExternalContainerDatabaseResponse response) { return targetStatesSet.contains( - response.getDbNode().getLifecycleState()); + response.getExternalContainerDatabase() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DbNode.LifecycleState.Terminated)), + com.oracle.bmc.database.model.ExternalContainerDatabase + .LifecycleState.Terminated)), request); } @@ -5083,15 +6632,18 @@ public boolean apply(GetDbNodeResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbSystem( - GetDbSystemRequest request, - com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, + com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forDbSystem( + return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -5104,14 +6656,17 @@ public com.oracle.bmc.waiter.Waiter for * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbSystem( - GetDbSystemRequest request, - com.oracle.bmc.database.model.DbSystem.LifecycleState targetState, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + public com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, + com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState + targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forDbSystem( + return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -5126,50 +6681,61 @@ public com.oracle.bmc.waiter.Waiter for * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forDbSystem( - GetDbSystemRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { + public com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( + GetExternalDatabaseConnectorRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... + targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forDbSystem( + return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for DbSystem. - private com.oracle.bmc.waiter.Waiter forDbSystem( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetDbSystemRequest request, - final com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { - final java.util.Set targetStatesSet = - new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + // Helper method to create a new Waiter for ExternalDatabaseConnector. + private com.oracle.bmc.waiter.Waiter< + GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> + forExternalDatabaseConnector( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetExternalDatabaseConnectorRequest request, + final com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... + targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetDbSystemRequest, GetDbSystemResponse>() { + GetExternalDatabaseConnectorRequest, + GetExternalDatabaseConnectorResponse>() { @Override - public GetDbSystemResponse apply(GetDbSystemRequest request) { - return client.getDbSystem(request); + public GetExternalDatabaseConnectorResponse apply( + GetExternalDatabaseConnectorRequest request) { + return client.getExternalDatabaseConnector(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate< + GetExternalDatabaseConnectorResponse>() { @Override - public boolean apply(GetDbSystemResponse response) { + public boolean apply(GetExternalDatabaseConnectorResponse response) { return targetStatesSet.contains( - response.getDbSystem().getLifecycleState()); + response.getExternalDatabaseConnector() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.DbSystem.LifecycleState.Terminated)), + com.oracle.bmc.database.model.ExternalDatabaseConnector + .LifecycleState.Terminated)), request); } @@ -5181,17 +6747,17 @@ public boolean apply(GetDbSystemResponse response) { * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( - GetExadataInfrastructureRequest request, - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forExadataInfrastructure( + return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -5205,15 +6771,16 @@ public boolean apply(GetDbSystemResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( - GetExadataInfrastructureRequest request, - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState targetState, + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, + com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState + targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forExadataInfrastructure( + return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -5229,33 +6796,35 @@ public boolean apply(GetDbSystemResponse response) { * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( - GetExadataInfrastructureRequest request, + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( + GetExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... + com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forExadataInfrastructure( + return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExadataInfrastructure. + // Helper method to create a new Waiter for ExternalNonContainerDatabase. private com.oracle.bmc.waiter.Waiter< - GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> - forExadataInfrastructure( + GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> + forExternalNonContainerDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExadataInfrastructureRequest request, - final com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... + final GetExternalNonContainerDatabaseRequest request, + final com.oracle.bmc.database.model.ExternalNonContainerDatabase + .LifecycleState... targetStates) { - final java.util.Set + final java.util.Set< + com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -5263,24 +6832,26 @@ public boolean apply(GetDbSystemResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetExadataInfrastructureRequest, - GetExadataInfrastructureResponse>() { + GetExternalNonContainerDatabaseRequest, + GetExternalNonContainerDatabaseResponse>() { @Override - public GetExadataInfrastructureResponse apply( - GetExadataInfrastructureRequest request) { - return client.getExadataInfrastructure(request); + public GetExternalNonContainerDatabaseResponse apply( + GetExternalNonContainerDatabaseRequest request) { + return client.getExternalNonContainerDatabase(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate< + GetExternalNonContainerDatabaseResponse>() { @Override - public boolean apply(GetExadataInfrastructureResponse response) { + public boolean apply(GetExternalNonContainerDatabaseResponse response) { return targetStatesSet.contains( - response.getExadataInfrastructure().getLifecycleState()); + response.getExternalNonContainerDatabase() + .getLifecycleState()); } }, targetStatesSet.contains( - com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState - .Deleted)), + com.oracle.bmc.database.model.ExternalNonContainerDatabase + .LifecycleState.Terminated)), request); } @@ -5291,17 +6862,18 @@ public boolean apply(GetExadataInfrastructureResponse response) { * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forExadataIormConfig( - GetExadataIormConfigRequest request, - com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... + public com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, + com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one targetState must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); - return forExadataIormConfig( + return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } @@ -5314,15 +6886,17 @@ public boolean apply(GetExadataInfrastructureResponse response) { * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forExadataIormConfig( - GetExadataIormConfigRequest request, - com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState targetState, + public com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, + com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState + targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); - return forExadataIormConfig( + return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); @@ -5337,32 +6911,34 @@ public boolean apply(GetExadataInfrastructureResponse response) { * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ - public com.oracle.bmc.waiter.Waiter - forExadataIormConfig( - GetExadataIormConfigRequest request, + public com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( + GetExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... + com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... targetStates) { org.apache.commons.lang3.Validate.notEmpty( targetStates, "At least one target state must be provided"); org.apache.commons.lang3.Validate.noNullElements( targetStates, "Null target states are not permitted"); - return forExadataIormConfig( + return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } - // Helper method to create a new Waiter for ExadataIormConfig. - private com.oracle.bmc.waiter.Waiter - forExadataIormConfig( + // Helper method to create a new Waiter for ExternalPluggableDatabase. + private com.oracle.bmc.waiter.Waiter< + GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> + forExternalPluggableDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetExadataIormConfigRequest request, - final com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... + final GetExternalPluggableDatabaseRequest request, + final com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... targetStates) { - final java.util.Set + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -5370,21 +6946,26 @@ public boolean apply(GetExadataInfrastructureResponse response) { waiter.toCallable( com.google.common.base.Suppliers.ofInstance(request), new com.google.common.base.Function< - GetExadataIormConfigRequest, GetExadataIormConfigResponse>() { - @Override - public GetExadataIormConfigResponse apply( - GetExadataIormConfigRequest request) { - return client.getExadataIormConfig(request); + GetExternalPluggableDatabaseRequest, + GetExternalPluggableDatabaseResponse>() { + @Override + public GetExternalPluggableDatabaseResponse apply( + GetExternalPluggableDatabaseRequest request) { + return client.getExternalPluggableDatabase(request); } }, - new com.google.common.base.Predicate() { + new com.google.common.base.Predicate< + GetExternalPluggableDatabaseResponse>() { @Override - public boolean apply(GetExadataIormConfigResponse response) { + public boolean apply(GetExternalPluggableDatabaseResponse response) { return targetStatesSet.contains( - response.getExadataIormConfig().getLifecycleState()); + response.getExternalPluggableDatabase() + .getLifecycleState()); } }, - false), + targetStatesSet.contains( + com.oracle.bmc.database.model.ExternalPluggableDatabase + .LifecycleState.Terminated)), request); } @@ -6744,6 +8325,70 @@ public RotateVaultKeyResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse> + forScanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request) { + return forScanExternalContainerDatabasePluggableDatabases( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + ScanExternalContainerDatabasePluggableDatabasesRequest, + ScanExternalContainerDatabasePluggableDatabasesResponse> + forScanExternalContainerDatabasePluggableDatabases( + ScanExternalContainerDatabasePluggableDatabasesRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable< + ScanExternalContainerDatabasePluggableDatabasesResponse>() { + @Override + public ScanExternalContainerDatabasePluggableDatabasesResponse call() + throws Exception { + final ScanExternalContainerDatabasePluggableDatabasesResponse response = + client.scanExternalContainerDatabasePluggableDatabases(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * @@ -8055,6 +9700,245 @@ public UpdateExadataIormConfigResponse call() throws Exception { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> + forUpdateExternalContainerDatabase(UpdateExternalContainerDatabaseRequest request) { + return forUpdateExternalContainerDatabase( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> + forUpdateExternalContainerDatabase( + UpdateExternalContainerDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public UpdateExternalContainerDatabaseResponse call() throws Exception { + final UpdateExternalContainerDatabaseResponse response = + client.updateExternalContainerDatabase(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> + forUpdateExternalDatabaseConnector(UpdateExternalDatabaseConnectorRequest request) { + return forUpdateExternalDatabaseConnector( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> + forUpdateExternalDatabaseConnector( + UpdateExternalDatabaseConnectorRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public UpdateExternalDatabaseConnectorResponse call() throws Exception { + final UpdateExternalDatabaseConnectorResponse response = + client.updateExternalDatabaseConnector(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse> + forUpdateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request) { + return forUpdateExternalNonContainerDatabase( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseResponse> + forUpdateExternalNonContainerDatabase( + UpdateExternalNonContainerDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public UpdateExternalNonContainerDatabaseResponse call() throws Exception { + final UpdateExternalNonContainerDatabaseResponse response = + client.updateExternalNonContainerDatabase(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> + forUpdateExternalPluggableDatabase(UpdateExternalPluggableDatabaseRequest request) { + return forUpdateExternalPluggableDatabase( + request, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@link com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter< + UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> + forUpdateExternalPluggableDatabase( + UpdateExternalPluggableDatabaseRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + if (workRequestClient == null) { + throw new IllegalStateException( + "A WorkRequestClient must be supplied to this waiter for this operation"); + } + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + new java.util.concurrent.Callable() { + @Override + public UpdateExternalPluggableDatabaseResponse call() throws Exception { + final UpdateExternalPluggableDatabaseResponse response = + client.updateExternalPluggableDatabase(request); + + final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + getWorkRequestRequest = + com.oracle.bmc.workrequests.requests.GetWorkRequestRequest + .builder() + .workRequestId(response.getOpcWorkRequestId()) + .build(); + workRequestClient + .getWaiters() + .forWorkRequest( + getWorkRequestRequest, terminationStrategy, delayStrategy) + .execute(); + return response; + } + }, + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalContainerDatabaseCompartmentConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalContainerDatabaseCompartmentConverter.java new file mode 100644 index 00000000000..242f794e77d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalContainerDatabaseCompartmentConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ChangeExternalContainerDatabaseCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.ChangeExternalContainerDatabaseCompartmentRequest + interceptRequest( + com.oracle.bmc.database.requests + .ChangeExternalContainerDatabaseCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ChangeExternalContainerDatabaseCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeCompartmentDetails(), "changeCompartmentDetails is required"); + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalcontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalContainerDatabaseId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalContainerDatabaseCompartmentResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalContainerDatabaseCompartmentResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalContainerDatabaseCompartmentResponse>() { + @Override + public com.oracle.bmc.database.responses + .ChangeExternalContainerDatabaseCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ChangeExternalContainerDatabaseCompartmentResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ChangeExternalContainerDatabaseCompartmentResponse + .Builder + builder = + com.oracle.bmc.database.responses + .ChangeExternalContainerDatabaseCompartmentResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .ChangeExternalContainerDatabaseCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalNonContainerDatabaseCompartmentConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalNonContainerDatabaseCompartmentConverter.java new file mode 100644 index 00000000000..6c8701d2bab --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalNonContainerDatabaseCompartmentConverter.java @@ -0,0 +1,153 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ChangeExternalNonContainerDatabaseCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .ChangeExternalNonContainerDatabaseCompartmentRequest + interceptRequest( + com.oracle.bmc.database.requests + .ChangeExternalNonContainerDatabaseCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ChangeExternalNonContainerDatabaseCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeCompartmentDetails(), "changeCompartmentDetails is required"); + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalnoncontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalNonContainerDatabaseId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalNonContainerDatabaseCompartmentResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalNonContainerDatabaseCompartmentResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalNonContainerDatabaseCompartmentResponse>() { + @Override + public com.oracle.bmc.database.responses + .ChangeExternalNonContainerDatabaseCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ChangeExternalNonContainerDatabaseCompartmentResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ChangeExternalNonContainerDatabaseCompartmentResponse + .Builder + builder = + com.oracle.bmc.database.responses + .ChangeExternalNonContainerDatabaseCompartmentResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .ChangeExternalNonContainerDatabaseCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalPluggableDatabaseCompartmentConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalPluggableDatabaseCompartmentConverter.java new file mode 100644 index 00000000000..afee9fd440b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ChangeExternalPluggableDatabaseCompartmentConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ChangeExternalPluggableDatabaseCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.ChangeExternalPluggableDatabaseCompartmentRequest + interceptRequest( + com.oracle.bmc.database.requests + .ChangeExternalPluggableDatabaseCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ChangeExternalPluggableDatabaseCompartmentRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getChangeCompartmentDetails(), "changeCompartmentDetails is required"); + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalpluggabledatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalPluggableDatabaseId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalPluggableDatabaseCompartmentResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalPluggableDatabaseCompartmentResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ChangeExternalPluggableDatabaseCompartmentResponse>() { + @Override + public com.oracle.bmc.database.responses + .ChangeExternalPluggableDatabaseCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ChangeExternalPluggableDatabaseCompartmentResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ChangeExternalPluggableDatabaseCompartmentResponse + .Builder + builder = + com.oracle.bmc.database.responses + .ChangeExternalPluggableDatabaseCompartmentResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .ChangeExternalPluggableDatabaseCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CheckExternalDatabaseConnectorConnectionStatusConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CheckExternalDatabaseConnectorConnectionStatusConverter.java new file mode 100644 index 00000000000..d5dcb1e3132 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CheckExternalDatabaseConnectorConnectionStatusConverter.java @@ -0,0 +1,151 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 CheckExternalDatabaseConnectorConnectionStatusConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .CheckExternalDatabaseConnectorConnectionStatusRequest + interceptRequest( + com.oracle.bmc.database.requests + .CheckExternalDatabaseConnectorConnectionStatusRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.CheckExternalDatabaseConnectorConnectionStatusRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalDatabaseConnectorId(), + "externalDatabaseConnectorId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externaldatabaseconnectors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalDatabaseConnectorId())) + .path("actions") + .path("checkConnectionStatus"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CheckExternalDatabaseConnectorConnectionStatusResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CheckExternalDatabaseConnectorConnectionStatusResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CheckExternalDatabaseConnectorConnectionStatusResponse>() { + @Override + public com.oracle.bmc.database.responses + .CheckExternalDatabaseConnectorConnectionStatusResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.CheckExternalDatabaseConnectorConnectionStatusResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .CheckExternalDatabaseConnectorConnectionStatusResponse + .Builder + builder = + com.oracle.bmc.database.responses + .CheckExternalDatabaseConnectorConnectionStatusResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.database.responses + .CheckExternalDatabaseConnectorConnectionStatusResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalContainerDatabaseConverter.java new file mode 100644 index 00000000000..2a627d5dd0e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalContainerDatabaseConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 CreateExternalContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.CreateExternalContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.CreateExternalContainerDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.CreateExternalContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateExternalContainerDatabaseDetails(), + "createExternalContainerDatabaseDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("externalcontainerdatabases"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + 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, + com.oracle.bmc.database.responses.CreateExternalContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateExternalContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CreateExternalContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .CreateExternalContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.CreateExternalContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalContainerDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalContainerDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .CreateExternalContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .CreateExternalContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalContainerDatabase(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .CreateExternalContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalDatabaseConnectorConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalDatabaseConnectorConverter.java new file mode 100644 index 00000000000..ab68c7330ca --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalDatabaseConnectorConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 CreateExternalDatabaseConnectorConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.CreateExternalDatabaseConnectorRequest + interceptRequest( + com.oracle.bmc.database.requests.CreateExternalDatabaseConnectorRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.CreateExternalDatabaseConnectorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateExternalDatabaseConnectorDetails(), + "createExternalDatabaseConnectorDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("externaldatabaseconnectors"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + 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, + com.oracle.bmc.database.responses.CreateExternalDatabaseConnectorResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateExternalDatabaseConnectorResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CreateExternalDatabaseConnectorResponse>() { + @Override + public com.oracle.bmc.database.responses + .CreateExternalDatabaseConnectorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.CreateExternalDatabaseConnectorResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalDatabaseConnector>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalDatabaseConnector.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .CreateExternalDatabaseConnectorResponse.Builder + builder = + com.oracle.bmc.database.responses + .CreateExternalDatabaseConnectorResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalDatabaseConnector(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .CreateExternalDatabaseConnectorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalNonContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalNonContainerDatabaseConverter.java new file mode 100644 index 00000000000..2d77da283c9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalNonContainerDatabaseConverter.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 CreateExternalNonContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.CreateExternalNonContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.CreateExternalNonContainerDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.CreateExternalNonContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateExternalNonContainerDatabaseDetails(), + "createExternalNonContainerDatabaseDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("externalnoncontainerdatabases"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + 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, + com.oracle.bmc.database.responses.CreateExternalNonContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CreateExternalNonContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CreateExternalNonContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .CreateExternalNonContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.CreateExternalNonContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalNonContainerDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalNonContainerDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders< + ExternalNonContainerDatabase> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .CreateExternalNonContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .CreateExternalNonContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalNonContainerDatabase(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .CreateExternalNonContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalPluggableDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalPluggableDatabaseConverter.java new file mode 100644 index 00000000000..060fcb6c9aa --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/CreateExternalPluggableDatabaseConverter.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 CreateExternalPluggableDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.CreateExternalPluggableDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.CreateExternalPluggableDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.CreateExternalPluggableDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull( + request.getCreateExternalPluggableDatabaseDetails(), + "createExternalPluggableDatabaseDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("externalpluggabledatabases"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + 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, + com.oracle.bmc.database.responses.CreateExternalPluggableDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.CreateExternalPluggableDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .CreateExternalPluggableDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .CreateExternalPluggableDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.CreateExternalPluggableDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalPluggableDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalPluggableDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .CreateExternalPluggableDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .CreateExternalPluggableDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalPluggableDatabase(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .CreateExternalPluggableDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalContainerDatabaseConverter.java new file mode 100644 index 00000000000..79bd848552c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalContainerDatabaseConverter.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 DeleteExternalContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.DeleteExternalContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.DeleteExternalContainerDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.DeleteExternalContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalcontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalContainerDatabaseId())); + + 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()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteExternalContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteExternalContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DeleteExternalContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .DeleteExternalContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DeleteExternalContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .DeleteExternalContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .DeleteExternalContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .DeleteExternalContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalDatabaseConnectorConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalDatabaseConnectorConverter.java new file mode 100644 index 00000000000..db5f5f5713c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalDatabaseConnectorConverter.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 DeleteExternalDatabaseConnectorConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.DeleteExternalDatabaseConnectorRequest + interceptRequest( + com.oracle.bmc.database.requests.DeleteExternalDatabaseConnectorRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.DeleteExternalDatabaseConnectorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalDatabaseConnectorId(), + "externalDatabaseConnectorId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externaldatabaseconnectors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalDatabaseConnectorId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + 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, + com.oracle.bmc.database.responses.DeleteExternalDatabaseConnectorResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteExternalDatabaseConnectorResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DeleteExternalDatabaseConnectorResponse>() { + @Override + public com.oracle.bmc.database.responses + .DeleteExternalDatabaseConnectorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DeleteExternalDatabaseConnectorResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .DeleteExternalDatabaseConnectorResponse.Builder + builder = + com.oracle.bmc.database.responses + .DeleteExternalDatabaseConnectorResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .DeleteExternalDatabaseConnectorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalNonContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalNonContainerDatabaseConverter.java new file mode 100644 index 00000000000..a0ff0cb2f3d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalNonContainerDatabaseConverter.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 DeleteExternalNonContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.DeleteExternalNonContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.DeleteExternalNonContainerDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.DeleteExternalNonContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalnoncontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalNonContainerDatabaseId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + 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, + com.oracle.bmc.database.responses.DeleteExternalNonContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DeleteExternalNonContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DeleteExternalNonContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .DeleteExternalNonContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DeleteExternalNonContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .DeleteExternalNonContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .DeleteExternalNonContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .DeleteExternalNonContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalPluggableDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalPluggableDatabaseConverter.java new file mode 100644 index 00000000000..ecc434bc41e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DeleteExternalPluggableDatabaseConverter.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 DeleteExternalPluggableDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.DeleteExternalPluggableDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.DeleteExternalPluggableDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.DeleteExternalPluggableDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalpluggabledatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalPluggableDatabaseId())); + + 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()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteExternalPluggableDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.DeleteExternalPluggableDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DeleteExternalPluggableDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .DeleteExternalPluggableDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DeleteExternalPluggableDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .DeleteExternalPluggableDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .DeleteExternalPluggableDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .DeleteExternalPluggableDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalContainerDatabaseDatabaseManagementConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalContainerDatabaseDatabaseManagementConverter.java new file mode 100644 index 00000000000..25d2d65ca80 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalContainerDatabaseDatabaseManagementConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 DisableExternalContainerDatabaseDatabaseManagementConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .DisableExternalContainerDatabaseDatabaseManagementRequest + interceptRequest( + com.oracle.bmc.database.requests + .DisableExternalContainerDatabaseDatabaseManagementRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests + .DisableExternalContainerDatabaseDatabaseManagementRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalcontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalContainerDatabaseId())) + .path("actions") + .path("disableDatabaseManagement"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalContainerDatabaseDatabaseManagementResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalContainerDatabaseDatabaseManagementResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalContainerDatabaseDatabaseManagementResponse>() { + @Override + public com.oracle.bmc.database.responses + .DisableExternalContainerDatabaseDatabaseManagementResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DisableExternalContainerDatabaseDatabaseManagementResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .DisableExternalContainerDatabaseDatabaseManagementResponse + .Builder + builder = + com.oracle.bmc.database.responses + .DisableExternalContainerDatabaseDatabaseManagementResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .DisableExternalContainerDatabaseDatabaseManagementResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalNonContainerDatabaseDatabaseManagementConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalNonContainerDatabaseDatabaseManagementConverter.java new file mode 100644 index 00000000000..19ddb646ccc --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalNonContainerDatabaseDatabaseManagementConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 DisableExternalNonContainerDatabaseDatabaseManagementConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .DisableExternalNonContainerDatabaseDatabaseManagementRequest + interceptRequest( + com.oracle.bmc.database.requests + .DisableExternalNonContainerDatabaseDatabaseManagementRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests + .DisableExternalNonContainerDatabaseDatabaseManagementRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalnoncontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalNonContainerDatabaseId())) + .path("actions") + .path("disableDatabaseManagement"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalNonContainerDatabaseDatabaseManagementResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalNonContainerDatabaseDatabaseManagementResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalNonContainerDatabaseDatabaseManagementResponse>() { + @Override + public com.oracle.bmc.database.responses + .DisableExternalNonContainerDatabaseDatabaseManagementResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DisableExternalNonContainerDatabaseDatabaseManagementResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .DisableExternalNonContainerDatabaseDatabaseManagementResponse + .Builder + builder = + com.oracle.bmc.database.responses + .DisableExternalNonContainerDatabaseDatabaseManagementResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .DisableExternalNonContainerDatabaseDatabaseManagementResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalPluggableDatabaseDatabaseManagementConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalPluggableDatabaseDatabaseManagementConverter.java new file mode 100644 index 00000000000..60604708203 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/DisableExternalPluggableDatabaseDatabaseManagementConverter.java @@ -0,0 +1,152 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 DisableExternalPluggableDatabaseDatabaseManagementConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .DisableExternalPluggableDatabaseDatabaseManagementRequest + interceptRequest( + com.oracle.bmc.database.requests + .DisableExternalPluggableDatabaseDatabaseManagementRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests + .DisableExternalPluggableDatabaseDatabaseManagementRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalpluggabledatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalPluggableDatabaseId())) + .path("actions") + .path("disableDatabaseManagement"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalPluggableDatabaseDatabaseManagementResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalPluggableDatabaseDatabaseManagementResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .DisableExternalPluggableDatabaseDatabaseManagementResponse>() { + @Override + public com.oracle.bmc.database.responses + .DisableExternalPluggableDatabaseDatabaseManagementResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.DisableExternalPluggableDatabaseDatabaseManagementResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .DisableExternalPluggableDatabaseDatabaseManagementResponse + .Builder + builder = + com.oracle.bmc.database.responses + .DisableExternalPluggableDatabaseDatabaseManagementResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .DisableExternalPluggableDatabaseDatabaseManagementResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalContainerDatabaseDatabaseManagementConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalContainerDatabaseDatabaseManagementConverter.java new file mode 100644 index 00000000000..9e28057df4a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalContainerDatabaseDatabaseManagementConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 EnableExternalContainerDatabaseDatabaseManagementConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .EnableExternalContainerDatabaseDatabaseManagementRequest + interceptRequest( + com.oracle.bmc.database.requests + .EnableExternalContainerDatabaseDatabaseManagementRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests + .EnableExternalContainerDatabaseDatabaseManagementRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + Validate.notNull( + request.getEnableExternalContainerDatabaseDatabaseManagementDetails(), + "enableExternalContainerDatabaseDatabaseManagementDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalcontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalContainerDatabaseId())) + .path("actions") + .path("enableDatabaseManagement"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalContainerDatabaseDatabaseManagementResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalContainerDatabaseDatabaseManagementResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalContainerDatabaseDatabaseManagementResponse>() { + @Override + public com.oracle.bmc.database.responses + .EnableExternalContainerDatabaseDatabaseManagementResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.EnableExternalContainerDatabaseDatabaseManagementResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .EnableExternalContainerDatabaseDatabaseManagementResponse + .Builder + builder = + com.oracle.bmc.database.responses + .EnableExternalContainerDatabaseDatabaseManagementResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .EnableExternalContainerDatabaseDatabaseManagementResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalNonContainerDatabaseDatabaseManagementConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalNonContainerDatabaseDatabaseManagementConverter.java new file mode 100644 index 00000000000..5a85e6b52c8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalNonContainerDatabaseDatabaseManagementConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 EnableExternalNonContainerDatabaseDatabaseManagementConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .EnableExternalNonContainerDatabaseDatabaseManagementRequest + interceptRequest( + com.oracle.bmc.database.requests + .EnableExternalNonContainerDatabaseDatabaseManagementRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests + .EnableExternalNonContainerDatabaseDatabaseManagementRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + Validate.notNull( + request.getEnableExternalNonContainerDatabaseDatabaseManagementDetails(), + "enableExternalNonContainerDatabaseDatabaseManagementDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalnoncontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalNonContainerDatabaseId())) + .path("actions") + .path("enableDatabaseManagement"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalNonContainerDatabaseDatabaseManagementResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalNonContainerDatabaseDatabaseManagementResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalNonContainerDatabaseDatabaseManagementResponse>() { + @Override + public com.oracle.bmc.database.responses + .EnableExternalNonContainerDatabaseDatabaseManagementResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.EnableExternalNonContainerDatabaseDatabaseManagementResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .EnableExternalNonContainerDatabaseDatabaseManagementResponse + .Builder + builder = + com.oracle.bmc.database.responses + .EnableExternalNonContainerDatabaseDatabaseManagementResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .EnableExternalNonContainerDatabaseDatabaseManagementResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalPluggableDatabaseDatabaseManagementConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalPluggableDatabaseDatabaseManagementConverter.java new file mode 100644 index 00000000000..67ab74bfff3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/EnableExternalPluggableDatabaseDatabaseManagementConverter.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 EnableExternalPluggableDatabaseDatabaseManagementConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .EnableExternalPluggableDatabaseDatabaseManagementRequest + interceptRequest( + com.oracle.bmc.database.requests + .EnableExternalPluggableDatabaseDatabaseManagementRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests + .EnableExternalPluggableDatabaseDatabaseManagementRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + Validate.notNull( + request.getEnableExternalPluggableDatabaseDatabaseManagementDetails(), + "enableExternalPluggableDatabaseDatabaseManagementDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalpluggabledatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalPluggableDatabaseId())) + .path("actions") + .path("enableDatabaseManagement"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalPluggableDatabaseDatabaseManagementResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalPluggableDatabaseDatabaseManagementResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .EnableExternalPluggableDatabaseDatabaseManagementResponse>() { + @Override + public com.oracle.bmc.database.responses + .EnableExternalPluggableDatabaseDatabaseManagementResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.EnableExternalPluggableDatabaseDatabaseManagementResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .EnableExternalPluggableDatabaseDatabaseManagementResponse + .Builder + builder = + com.oracle.bmc.database.responses + .EnableExternalPluggableDatabaseDatabaseManagementResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .EnableExternalPluggableDatabaseDatabaseManagementResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalContainerDatabaseConverter.java new file mode 100644 index 00000000000..af3b4f69311 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalContainerDatabaseConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 GetExternalContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.GetExternalContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.GetExternalContainerDatabaseRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetExternalContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalcontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalContainerDatabaseId())); + + 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, + com.oracle.bmc.database.responses.GetExternalContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetExternalContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .GetExternalContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .GetExternalContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetExternalContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalContainerDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalContainerDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .GetExternalContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .GetExternalContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalContainerDatabase(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .GetExternalContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalDatabaseConnectorConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalDatabaseConnectorConverter.java new file mode 100644 index 00000000000..8efd209fd9e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalDatabaseConnectorConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 GetExternalDatabaseConnectorConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.GetExternalDatabaseConnectorRequest + interceptRequest( + com.oracle.bmc.database.requests.GetExternalDatabaseConnectorRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetExternalDatabaseConnectorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalDatabaseConnectorId(), + "externalDatabaseConnectorId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externaldatabaseconnectors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalDatabaseConnectorId())); + + 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, + com.oracle.bmc.database.responses.GetExternalDatabaseConnectorResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetExternalDatabaseConnectorResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .GetExternalDatabaseConnectorResponse>() { + @Override + public com.oracle.bmc.database.responses + .GetExternalDatabaseConnectorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetExternalDatabaseConnectorResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalDatabaseConnector>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalDatabaseConnector.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .GetExternalDatabaseConnectorResponse.Builder + builder = + com.oracle.bmc.database.responses + .GetExternalDatabaseConnectorResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalDatabaseConnector(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .GetExternalDatabaseConnectorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalNonContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalNonContainerDatabaseConverter.java new file mode 100644 index 00000000000..4050d405dc1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalNonContainerDatabaseConverter.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 GetExternalNonContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.GetExternalNonContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.GetExternalNonContainerDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetExternalNonContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalnoncontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalNonContainerDatabaseId())); + + 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, + com.oracle.bmc.database.responses.GetExternalNonContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetExternalNonContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .GetExternalNonContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .GetExternalNonContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetExternalNonContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalNonContainerDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalNonContainerDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders< + ExternalNonContainerDatabase> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .GetExternalNonContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .GetExternalNonContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalNonContainerDatabase(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .GetExternalNonContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalPluggableDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalPluggableDatabaseConverter.java new file mode 100644 index 00000000000..c9a065040b2 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/GetExternalPluggableDatabaseConverter.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 GetExternalPluggableDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.GetExternalPluggableDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.GetExternalPluggableDatabaseRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.GetExternalPluggableDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalpluggabledatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalPluggableDatabaseId())); + + 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, + com.oracle.bmc.database.responses.GetExternalPluggableDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.GetExternalPluggableDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .GetExternalPluggableDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .GetExternalPluggableDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.GetExternalPluggableDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalPluggableDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalPluggableDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .GetExternalPluggableDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .GetExternalPluggableDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalPluggableDatabase(response.getItem()); + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .GetExternalPluggableDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalContainerDatabasesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalContainerDatabasesConverter.java new file mode 100644 index 00000000000..fe64b0d45da --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalContainerDatabasesConverter.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ListExternalContainerDatabasesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.ListExternalContainerDatabasesRequest + interceptRequest( + com.oracle.bmc.database.requests.ListExternalContainerDatabasesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListExternalContainerDatabasesRequest 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("externalcontainerdatabases"); + + 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.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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, + com.oracle.bmc.database.responses.ListExternalContainerDatabasesResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListExternalContainerDatabasesResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListExternalContainerDatabasesResponse>() { + @Override + public com.oracle.bmc.database.responses + .ListExternalContainerDatabasesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListExternalContainerDatabasesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + ExternalContainerDatabaseSummary>>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + ExternalContainerDatabaseSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ListExternalContainerDatabasesResponse.Builder + builder = + com.oracle.bmc.database.responses + .ListExternalContainerDatabasesResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + 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)); + } + + com.oracle.bmc.database.responses + .ListExternalContainerDatabasesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalDatabaseConnectorsConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalDatabaseConnectorsConverter.java new file mode 100644 index 00000000000..1c99131ecb9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalDatabaseConnectorsConverter.java @@ -0,0 +1,189 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ListExternalDatabaseConnectorsConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.ListExternalDatabaseConnectorsRequest + interceptRequest( + com.oracle.bmc.database.requests.ListExternalDatabaseConnectorsRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListExternalDatabaseConnectorsRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCompartmentId(), "compartmentId is required"); + Validate.notNull(request.getExternalDatabaseId(), "externalDatabaseId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20160918").path("externaldatabaseconnectors"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + target = + target.queryParam( + "externalDatabaseId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalDatabaseId())); + + 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.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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, + com.oracle.bmc.database.responses.ListExternalDatabaseConnectorsResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListExternalDatabaseConnectorsResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListExternalDatabaseConnectorsResponse>() { + @Override + public com.oracle.bmc.database.responses + .ListExternalDatabaseConnectorsResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListExternalDatabaseConnectorsResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + ExternalDatabaseConnectorSummary>>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + ExternalDatabaseConnectorSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ListExternalDatabaseConnectorsResponse.Builder + builder = + com.oracle.bmc.database.responses + .ListExternalDatabaseConnectorsResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + 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)); + } + + com.oracle.bmc.database.responses + .ListExternalDatabaseConnectorsResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalNonContainerDatabasesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalNonContainerDatabasesConverter.java new file mode 100644 index 00000000000..c1e808e9d72 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalNonContainerDatabasesConverter.java @@ -0,0 +1,182 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ListExternalNonContainerDatabasesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.ListExternalNonContainerDatabasesRequest + interceptRequest( + com.oracle.bmc.database.requests.ListExternalNonContainerDatabasesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListExternalNonContainerDatabasesRequest 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("externalnoncontainerdatabases"); + + 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.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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, + com.oracle.bmc.database.responses.ListExternalNonContainerDatabasesResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListExternalNonContainerDatabasesResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListExternalNonContainerDatabasesResponse>() { + @Override + public com.oracle.bmc.database.responses + .ListExternalNonContainerDatabasesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListExternalNonContainerDatabasesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + ExternalNonContainerDatabaseSummary>>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + ExternalNonContainerDatabaseSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ListExternalNonContainerDatabasesResponse.Builder + builder = + com.oracle.bmc.database.responses + .ListExternalNonContainerDatabasesResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + 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)); + } + + com.oracle.bmc.database.responses + .ListExternalNonContainerDatabasesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalPluggableDatabasesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalPluggableDatabasesConverter.java new file mode 100644 index 00000000000..9c44090c199 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ListExternalPluggableDatabasesConverter.java @@ -0,0 +1,190 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ListExternalPluggableDatabasesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.ListExternalPluggableDatabasesRequest + interceptRequest( + com.oracle.bmc.database.requests.ListExternalPluggableDatabasesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ListExternalPluggableDatabasesRequest 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("externalpluggabledatabases"); + + target = + target.queryParam( + "compartmentId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getCompartmentId())); + + if (request.getExternalContainerDatabaseId() != null) { + target = + target.queryParam( + "externalContainerDatabaseId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalContainerDatabaseId())); + } + + 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.getSortBy() != null) { + target = + target.queryParam( + "sortBy", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortBy().getValue())); + } + + if (request.getSortOrder() != null) { + target = + target.queryParam( + "sortOrder", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getSortOrder().getValue())); + } + + if (request.getLifecycleState() != null) { + target = + target.queryParam( + "lifecycleState", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getLifecycleState().getValue())); + } + + if (request.getDisplayName() != null) { + target = + target.queryParam( + "displayName", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getDisplayName())); + } + + 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, + com.oracle.bmc.database.responses.ListExternalPluggableDatabasesResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.ListExternalPluggableDatabasesResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ListExternalPluggableDatabasesResponse>() { + @Override + public com.oracle.bmc.database.responses + .ListExternalPluggableDatabasesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ListExternalPluggableDatabasesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + java.util.List< + ExternalPluggableDatabaseSummary>>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + new javax.ws.rs.core.GenericType< + java.util.List< + ExternalPluggableDatabaseSummary>>() {}); + + com.oracle.bmc.http.internal.WithHeaders< + java.util.List> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ListExternalPluggableDatabasesResponse.Builder + builder = + com.oracle.bmc.database.responses + .ListExternalPluggableDatabasesResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + 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)); + } + + com.oracle.bmc.database.responses + .ListExternalPluggableDatabasesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ScanExternalContainerDatabasePluggableDatabasesConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ScanExternalContainerDatabasePluggableDatabasesConverter.java new file mode 100644 index 00000000000..f9c215ec205 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/ScanExternalContainerDatabasePluggableDatabasesConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 ScanExternalContainerDatabasePluggableDatabasesConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests + .ScanExternalContainerDatabasePluggableDatabasesRequest + interceptRequest( + com.oracle.bmc.database.requests + .ScanExternalContainerDatabasePluggableDatabasesRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.ScanExternalContainerDatabasePluggableDatabasesRequest + request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + Validate.notNull( + request.getExternalDatabaseConnectorId(), + "externalDatabaseConnectorId is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalcontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalContainerDatabaseId())) + .path("actions") + .path("scanPluggableDatabases"); + + target = + target.queryParam( + "externalDatabaseConnectorId", + com.oracle.bmc.util.internal.HttpUtils.attemptEncodeQueryParam( + request.getExternalDatabaseConnectorId())); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ScanExternalContainerDatabasePluggableDatabasesResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ScanExternalContainerDatabasePluggableDatabasesResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .ScanExternalContainerDatabasePluggableDatabasesResponse>() { + @Override + public com.oracle.bmc.database.responses + .ScanExternalContainerDatabasePluggableDatabasesResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.ScanExternalContainerDatabasePluggableDatabasesResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .ScanExternalContainerDatabasePluggableDatabasesResponse + .Builder + builder = + com.oracle.bmc.database.responses + .ScanExternalContainerDatabasePluggableDatabasesResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.database.responses + .ScanExternalContainerDatabasePluggableDatabasesResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalContainerDatabaseConverter.java new file mode 100644 index 00000000000..592852104d8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalContainerDatabaseConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 UpdateExternalContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.UpdateExternalContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.UpdateExternalContainerDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.UpdateExternalContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + Validate.notNull( + request.getUpdateExternalContainerDatabaseDetails(), + "updateExternalContainerDatabaseDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalcontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalContainerDatabaseId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + 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, + com.oracle.bmc.database.responses.UpdateExternalContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateExternalContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .UpdateExternalContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .UpdateExternalContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.UpdateExternalContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalContainerDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalContainerDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .UpdateExternalContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .UpdateExternalContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalContainerDatabase(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + 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> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + com.oracle.bmc.database.responses + .UpdateExternalContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalDatabaseConnectorConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalDatabaseConnectorConverter.java new file mode 100644 index 00000000000..6f06570ae02 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalDatabaseConnectorConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 UpdateExternalDatabaseConnectorConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.UpdateExternalDatabaseConnectorRequest + interceptRequest( + com.oracle.bmc.database.requests.UpdateExternalDatabaseConnectorRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.UpdateExternalDatabaseConnectorRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalDatabaseConnectorId(), + "externalDatabaseConnectorId must not be blank"); + Validate.notNull( + request.getUpdateExternalDatabaseConnectorDetails(), + "updateExternalDatabaseConnectorDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externaldatabaseconnectors") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalDatabaseConnectorId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + 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, + com.oracle.bmc.database.responses.UpdateExternalDatabaseConnectorResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateExternalDatabaseConnectorResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .UpdateExternalDatabaseConnectorResponse>() { + @Override + public com.oracle.bmc.database.responses + .UpdateExternalDatabaseConnectorResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.UpdateExternalDatabaseConnectorResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalDatabaseConnector>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalDatabaseConnector.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .UpdateExternalDatabaseConnectorResponse.Builder + builder = + com.oracle.bmc.database.responses + .UpdateExternalDatabaseConnectorResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalDatabaseConnector(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .UpdateExternalDatabaseConnectorResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalNonContainerDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalNonContainerDatabaseConverter.java new file mode 100644 index 00000000000..8245c712c27 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalNonContainerDatabaseConverter.java @@ -0,0 +1,149 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 UpdateExternalNonContainerDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.UpdateExternalNonContainerDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.UpdateExternalNonContainerDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.UpdateExternalNonContainerDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + Validate.notNull( + request.getUpdateExternalNonContainerDatabaseDetails(), + "updateExternalNonContainerDatabaseDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalnoncontainerdatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalNonContainerDatabaseId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + 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, + com.oracle.bmc.database.responses.UpdateExternalNonContainerDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .UpdateExternalNonContainerDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .UpdateExternalNonContainerDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .UpdateExternalNonContainerDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.UpdateExternalNonContainerDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalNonContainerDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalNonContainerDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders< + ExternalNonContainerDatabase> + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .UpdateExternalNonContainerDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .UpdateExternalNonContainerDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalNonContainerDatabase(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .UpdateExternalNonContainerDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalPluggableDatabaseConverter.java b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalPluggableDatabaseConverter.java new file mode 100644 index 00000000000..a96bdc1a32c --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/internal/http/UpdateExternalPluggableDatabaseConverter.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.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 UpdateExternalPluggableDatabaseConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.database.requests.UpdateExternalPluggableDatabaseRequest + interceptRequest( + com.oracle.bmc.database.requests.UpdateExternalPluggableDatabaseRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.database.requests.UpdateExternalPluggableDatabaseRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + Validate.notNull( + request.getUpdateExternalPluggableDatabaseDetails(), + "updateExternalPluggableDatabaseDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20160918") + .path("externalpluggabledatabases") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getExternalPluggableDatabaseId())); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + 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, + com.oracle.bmc.database.responses.UpdateExternalPluggableDatabaseResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses.UpdateExternalPluggableDatabaseResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.database.responses + .UpdateExternalPluggableDatabaseResponse>() { + @Override + public com.oracle.bmc.database.responses + .UpdateExternalPluggableDatabaseResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.database.responses.UpdateExternalPluggableDatabaseResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders< + ExternalPluggableDatabase>> + responseFn = + RESPONSE_CONVERSION_FACTORY.create( + ExternalPluggableDatabase.class); + + com.oracle.bmc.http.internal.WithHeaders + response = responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.database.responses + .UpdateExternalPluggableDatabaseResponse.Builder + builder = + com.oracle.bmc.database.responses + .UpdateExternalPluggableDatabaseResponse + .builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + builder.externalPluggableDatabase(response.getItem()); + + com.google.common.base.Optional> + opcWorkRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-work-request-id"); + if (opcWorkRequestIdHeader.isPresent()) { + builder.opcWorkRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-work-request-id", + opcWorkRequestIdHeader.get().get(0), + String.class)); + } + + com.google.common.base.Optional> etagHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "etag"); + if (etagHeader.isPresent()) { + builder.etag( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "etag", etagHeader.get().get(0), String.class)); + } + + 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.oracle.bmc.database.responses + .UpdateExternalPluggableDatabaseResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java index cbcf4b541c9..363534f6b0a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDatabaseSoftwareImageDetails.java @@ -226,7 +226,7 @@ public static ImageShapeFamily create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("imageShapeFamily") ImageShapeFamily imageShapeFamily; /** - * List of the Fault Domains in which this DB system is provisioned. + * The type of software image. Can be grid or database. **/ public enum ImageType { GridImage("GRID_IMAGE"), @@ -261,7 +261,7 @@ public static ImageType create(String key) { } }; /** - * List of the Fault Domains in which this DB system is provisioned. + * The type of software image. Can be grid or database. **/ @com.fasterxml.jackson.annotation.JsonProperty("imageType") ImageType imageType; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalContainerDatabaseDetails.java new file mode 100644 index 00000000000..e0180594f6f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalContainerDatabaseDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating an external container database resource. + * + *
+ * 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 = CreateExternalContainerDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class CreateExternalContainerDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalContainerDatabaseDetails build() { + CreateExternalContainerDatabaseDetails __instance__ = + new CreateExternalContainerDatabaseDetails( + compartmentId, displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalContainerDatabaseDetails o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/CreateExternalDatabaseConnectorDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalDatabaseConnectorDetails.java new file mode 100644 index 00000000000..30a80f392c8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalDatabaseConnectorDetails.java @@ -0,0 +1,107 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating an external database connector resource. + * + *
+ * 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}), + access = lombok.AccessLevel.PROTECTED +) +@lombok.Value +@lombok.experimental.NonFinal +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType", + defaultImpl = CreateExternalDatabaseConnectorDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateExternalMacsConnectorDetails.class, + name = "MACS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class CreateExternalDatabaseConnectorDetails { + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * The name does not have to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + String externalDatabaseId; + + /** + * The type of connector used by the external database resource. + **/ + public enum ConnectorType { + Macs("MACS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConnectorType v : ConnectorType.values()) { + map.put(v.getValue(), v); + } + } + + ConnectorType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectorType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ConnectorType: " + key); + } + }; +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalDatabaseDetailsBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalDatabaseDetailsBase.java new file mode 100644 index 00000000000..d85efabbcb4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalDatabaseDetailsBase.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating an external database. + *
+ * 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 = CreateExternalDatabaseDetailsBase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class CreateExternalDatabaseDetailsBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalDatabaseDetailsBase build() { + CreateExternalDatabaseDetailsBase __instance__ = + new CreateExternalDatabaseDetailsBase( + compartmentId, displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalDatabaseDetailsBase o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/CreateExternalMacsConnectorDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalMacsConnectorDetails.java new file mode 100644 index 00000000000..d16a931c423 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalMacsConnectorDetails.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating a resource used to connect to an external Oracle Database using + * the [Management Agent cloud service (MACS)](https://docs.cloud.oracle.com/iaas/management-agents/index.html). + * + *
+ * 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.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateExternalMacsConnectorDetails.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class CreateExternalMacsConnectorDetails extends CreateExternalDatabaseConnectorDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private DatabaseConnectionString connectionString; + + public Builder connectionString(DatabaseConnectionString connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + private DatabaseConnectionCredentials connectionCredentials; + + public Builder connectionCredentials(DatabaseConnectionCredentials connectionCredentials) { + this.connectionCredentials = connectionCredentials; + this.__explicitlySet__.add("connectionCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorAgentId") + private String connectorAgentId; + + public Builder connectorAgentId(String connectorAgentId) { + this.connectorAgentId = connectorAgentId; + this.__explicitlySet__.add("connectorAgentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalMacsConnectorDetails build() { + CreateExternalMacsConnectorDetails __instance__ = + new CreateExternalMacsConnectorDetails( + freeformTags, + definedTags, + displayName, + externalDatabaseId, + connectionString, + connectionCredentials, + connectorAgentId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalMacsConnectorDetails o) { + Builder copiedBuilder = + freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .externalDatabaseId(o.getExternalDatabaseId()) + .connectionString(o.getConnectionString()) + .connectionCredentials(o.getConnectionCredentials()) + .connectorAgentId(o.getConnectorAgentId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public CreateExternalMacsConnectorDetails( + java.util.Map freeformTags, + java.util.Map> definedTags, + String displayName, + String externalDatabaseId, + DatabaseConnectionString connectionString, + DatabaseConnectionCredentials connectionCredentials, + String connectorAgentId) { + super(freeformTags, definedTags, displayName, externalDatabaseId); + this.connectionString = connectionString; + this.connectionCredentials = connectionCredentials; + this.connectorAgentId = connectorAgentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + DatabaseConnectionString connectionString; + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + DatabaseConnectionCredentials connectionCredentials; + + /** + * The ID of the agent used for the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectorAgentId") + String connectorAgentId; + + @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/CreateExternalNonContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalNonContainerDatabaseDetails.java new file mode 100644 index 00000000000..b6e6d8f4d9e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalNonContainerDatabaseDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating an external non-container database resource. + * + *
+ * 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 = CreateExternalNonContainerDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class CreateExternalNonContainerDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalNonContainerDatabaseDetails build() { + CreateExternalNonContainerDatabaseDetails __instance__ = + new CreateExternalNonContainerDatabaseDetails( + compartmentId, displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalNonContainerDatabaseDetails o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/CreateExternalPluggableDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalPluggableDatabaseDetails.java new file mode 100644 index 00000000000..1c8f16f63ac --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExternalPluggableDatabaseDetails.java @@ -0,0 +1,172 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for creating an external pluggable database resource. + * + *
+ * 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 = CreateExternalPluggableDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class CreateExternalPluggableDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + private String sourceId; + + public Builder sourceId(String sourceId) { + this.sourceId = sourceId; + this.__explicitlySet__.add("sourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalContainerDatabaseId") + private String externalContainerDatabaseId; + + public Builder externalContainerDatabaseId(String externalContainerDatabaseId) { + this.externalContainerDatabaseId = externalContainerDatabaseId; + this.__explicitlySet__.add("externalContainerDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateExternalPluggableDatabaseDetails build() { + CreateExternalPluggableDatabaseDetails __instance__ = + new CreateExternalPluggableDatabaseDetails( + sourceId, + externalContainerDatabaseId, + compartmentId, + displayName, + freeformTags, + definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateExternalPluggableDatabaseDetails o) { + Builder copiedBuilder = + sourceId(o.getSourceId()) + .externalContainerDatabaseId(o.getExternalContainerDatabaseId()) + .compartmentId(o.getCompartmentId()) + .displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the the non-container database that was converted + * to a pluggable database to create this resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + String sourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails} that contains + * the specified {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalContainerDatabaseId") + String externalContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/DatabaseConnectionCredentailsByName.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentailsByName.java new file mode 100644 index 00000000000..6d04b64c2b5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentailsByName.java @@ -0,0 +1,85 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Existing named credential used to connect to the database. + * + *
+ * 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.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseConnectionCredentailsByName.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class DatabaseConnectionCredentailsByName extends DatabaseConnectionCredentials { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("credentialName") + private String credentialName; + + public Builder credentialName(String credentialName) { + this.credentialName = credentialName; + this.__explicitlySet__.add("credentialName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseConnectionCredentailsByName build() { + DatabaseConnectionCredentailsByName __instance__ = + new DatabaseConnectionCredentailsByName(credentialName); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseConnectionCredentailsByName o) { + Builder copiedBuilder = credentialName(o.getCredentialName()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public DatabaseConnectionCredentailsByName(String credentialName) { + super(); + this.credentialName = credentialName; + } + + /** + * The name of the credential information that used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialName") + String credentialName; + + @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/DatabaseConnectionCredentials.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentials.java new file mode 100644 index 00000000000..43b1eb5b0c4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentials.java @@ -0,0 +1,90 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Credentials used to connect to the database. + * + *
+ * 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}), + access = lombok.AccessLevel.PROTECTED +) +@lombok.Value +@lombok.experimental.NonFinal +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType", + defaultImpl = DatabaseConnectionCredentials.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseConnectionCredentailsByName.class, + name = "NAME_REFERENCE" + ), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseConnectionCredentialsByDetails.class, + name = "DETAILS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class DatabaseConnectionCredentials { + + /** + * The type of credential used to connect to the database. + **/ + @lombok.extern.slf4j.Slf4j + public enum CredentialType { + NameReference("NAME_REFERENCE"), + Details("DETAILS"), + + /** + * 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 (CredentialType v : CredentialType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CredentialType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CredentialType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CredentialType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java new file mode 100644 index 00000000000..47f3fc1949f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionCredentialsByDetails.java @@ -0,0 +1,183 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * User information to connect to the database. + * + *
+ * 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.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseConnectionCredentialsByDetails.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "credentialType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class DatabaseConnectionCredentialsByDetails extends DatabaseConnectionCredentials { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("credentialName") + private String credentialName; + + public Builder credentialName(String credentialName) { + this.credentialName = credentialName; + this.__explicitlySet__.add("credentialName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("role") + private Role role; + + public Builder role(Role role) { + this.role = role; + this.__explicitlySet__.add("role"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseConnectionCredentialsByDetails build() { + DatabaseConnectionCredentialsByDetails __instance__ = + new DatabaseConnectionCredentialsByDetails( + credentialName, username, password, role); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseConnectionCredentialsByDetails o) { + Builder copiedBuilder = + credentialName(o.getCredentialName()) + .username(o.getUsername()) + .password(o.getPassword()) + .role(o.getRole()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public DatabaseConnectionCredentialsByDetails( + String credentialName, String username, String password, Role role) { + super(); + this.credentialName = credentialName; + this.username = username; + this.password = password; + this.role = role; + } + + /** + * The name of the credential information that used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("credentialName") + String credentialName; + + /** + * The username that will be used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("username") + String username; + + /** + * The password that will be used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("password") + String password; + /** + * The role of the user that will be connecting to the database. + **/ + @lombok.extern.slf4j.Slf4j + public enum Role { + Sysdba("SYSDBA"), + Normal("NORMAL"), + + /** + * 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 (Role v : Role.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Role(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Role create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Role', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; + /** + * The role of the user that will be connecting to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("role") + Role role; + + @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/DatabaseConnectionString.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionString.java new file mode 100644 index 00000000000..ca213fa8438 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseConnectionString.java @@ -0,0 +1,166 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The Oracle Database connection string. + * + *
+ * 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 = DatabaseConnectionString.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class DatabaseConnectionString { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + private String hostname; + + public Builder hostname(String hostname) { + this.hostname = hostname; + this.__explicitlySet__.add("hostname"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("service") + private String service; + + public Builder service(String service) { + this.service = service; + this.__explicitlySet__.add("service"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + private Protocol protocol; + + public Builder protocol(Protocol protocol) { + this.protocol = protocol; + this.__explicitlySet__.add("protocol"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseConnectionString build() { + DatabaseConnectionString __instance__ = + new DatabaseConnectionString(hostname, port, service, protocol); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseConnectionString o) { + Builder copiedBuilder = + hostname(o.getHostname()) + .port(o.getPort()) + .service(o.getService()) + .protocol(o.getProtocol()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The host name of the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("hostname") + String hostname; + + /** + * The port used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("port") + Integer port; + + /** + * The name of the service alias used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("service") + String service; + /** + * The protocol used to connect to the database. + **/ + @lombok.extern.slf4j.Slf4j + public enum Protocol { + Tcp("TCP"), + + /** + * 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 (Protocol v : Protocol.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Protocol(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Protocol create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Protocol', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The protocol used to connect to the database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + Protocol protocol; + + @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/DatabaseManagementConfig.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseManagementConfig.java new file mode 100644 index 00000000000..edd0da26720 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseManagementConfig.java @@ -0,0 +1,205 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * The configuration of the Database Management service. + *
+ * 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 = DatabaseManagementConfig.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class DatabaseManagementConfig { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementStatus") + private DatabaseManagementStatus databaseManagementStatus; + + public Builder databaseManagementStatus(DatabaseManagementStatus databaseManagementStatus) { + this.databaseManagementStatus = databaseManagementStatus; + this.__explicitlySet__.add("databaseManagementStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConnectionId") + private String databaseManagementConnectionId; + + public Builder databaseManagementConnectionId(String databaseManagementConnectionId) { + this.databaseManagementConnectionId = databaseManagementConnectionId; + this.__explicitlySet__.add("databaseManagementConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseManagementConfig build() { + DatabaseManagementConfig __instance__ = + new DatabaseManagementConfig( + databaseManagementStatus, databaseManagementConnectionId, licenseModel); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseManagementConfig o) { + Builder copiedBuilder = + databaseManagementStatus(o.getDatabaseManagementStatus()) + .databaseManagementConnectionId(o.getDatabaseManagementConnectionId()) + .licenseModel(o.getLicenseModel()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The status of the Database Management service. + **/ + @lombok.extern.slf4j.Slf4j + public enum DatabaseManagementStatus { + Enabling("ENABLING"), + Enabled("ENABLED"), + Disabling("DISABLING"), + NotEnabled("NOT_ENABLED"), + FailedEnabling("FAILED_ENABLING"), + FailedDisabling("FAILED_DISABLING"), + + /** + * 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 (DatabaseManagementStatus v : DatabaseManagementStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseManagementStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseManagementStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseManagementStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The status of the Database Management service. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementStatus") + DatabaseManagementStatus databaseManagementStatus; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConnectionId") + String databaseManagementConnectionId; + /** + * The Oracle license model that applies to the external database. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum LicenseModel { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + + /** + * 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 (LicenseModel v : LicenseModel.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LicenseModel', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle license model that applies to the external database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + LicenseModel licenseModel; + + @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/EnableExternalContainerDatabaseDatabaseManagementDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalContainerDatabaseDatabaseManagementDetails.java new file mode 100644 index 00000000000..702ec6172fe --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalContainerDatabaseDatabaseManagementDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details to enable Database Management on an external container database. + * + *
+ * 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 = EnableExternalContainerDatabaseDatabaseManagementDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EnableExternalContainerDatabaseDatabaseManagementDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + private String externalDatabaseConnectorId; + + public Builder externalDatabaseConnectorId(String externalDatabaseConnectorId) { + this.externalDatabaseConnectorId = externalDatabaseConnectorId; + this.__explicitlySet__.add("externalDatabaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalContainerDatabaseDatabaseManagementDetails build() { + EnableExternalContainerDatabaseDatabaseManagementDetails __instance__ = + new EnableExternalContainerDatabaseDatabaseManagementDetails( + licenseModel, externalDatabaseConnectorId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalContainerDatabaseDatabaseManagementDetails o) { + Builder copiedBuilder = + licenseModel(o.getLicenseModel()) + .externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The Oracle license model that applies to the external database. + * + **/ + public enum LicenseModel { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** + * The Oracle license model that applies to the external database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + LicenseModel licenseModel; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + String externalDatabaseConnectorId; + + @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/EnableExternalDatabaseManagementDetailsBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalDatabaseManagementDetailsBase.java new file mode 100644 index 00000000000..12d02aa4516 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalDatabaseManagementDetailsBase.java @@ -0,0 +1,75 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details to enable Database Management on an external database. + * + *
+ * 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 = EnableExternalDatabaseManagementDetailsBase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EnableExternalDatabaseManagementDetailsBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + private String externalDatabaseConnectorId; + + public Builder externalDatabaseConnectorId(String externalDatabaseConnectorId) { + this.externalDatabaseConnectorId = externalDatabaseConnectorId; + this.__explicitlySet__.add("externalDatabaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalDatabaseManagementDetailsBase build() { + EnableExternalDatabaseManagementDetailsBase __instance__ = + new EnableExternalDatabaseManagementDetailsBase(externalDatabaseConnectorId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalDatabaseManagementDetailsBase o) { + Builder copiedBuilder = externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + String externalDatabaseConnectorId; + + @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/EnableExternalNonContainerDatabaseDatabaseManagementDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalNonContainerDatabaseDatabaseManagementDetails.java new file mode 100644 index 00000000000..b39ddfebd86 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalNonContainerDatabaseDatabaseManagementDetails.java @@ -0,0 +1,130 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details to enable Database Management on an external non-container database. + * + *
+ * 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 = EnableExternalNonContainerDatabaseDatabaseManagementDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EnableExternalNonContainerDatabaseDatabaseManagementDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + private String externalDatabaseConnectorId; + + public Builder externalDatabaseConnectorId(String externalDatabaseConnectorId) { + this.externalDatabaseConnectorId = externalDatabaseConnectorId; + this.__explicitlySet__.add("externalDatabaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalNonContainerDatabaseDatabaseManagementDetails build() { + EnableExternalNonContainerDatabaseDatabaseManagementDetails __instance__ = + new EnableExternalNonContainerDatabaseDatabaseManagementDetails( + licenseModel, externalDatabaseConnectorId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalNonContainerDatabaseDatabaseManagementDetails o) { + Builder copiedBuilder = + licenseModel(o.getLicenseModel()) + .externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The Oracle license model that applies to the external database. + * + **/ + public enum LicenseModel { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** + * The Oracle license model that applies to the external database. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + LicenseModel licenseModel; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + String externalDatabaseConnectorId; + + @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/EnableExternalPluggableDatabaseDatabaseManagementDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalPluggableDatabaseDatabaseManagementDetails.java new file mode 100644 index 00000000000..d88bd3a0124 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/EnableExternalPluggableDatabaseDatabaseManagementDetails.java @@ -0,0 +1,76 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details to enable Database Management on an external pluggable database. + * + *
+ * 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 = EnableExternalPluggableDatabaseDatabaseManagementDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class EnableExternalPluggableDatabaseDatabaseManagementDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + private String externalDatabaseConnectorId; + + public Builder externalDatabaseConnectorId(String externalDatabaseConnectorId) { + this.externalDatabaseConnectorId = externalDatabaseConnectorId; + this.__explicitlySet__.add("externalDatabaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalPluggableDatabaseDatabaseManagementDetails build() { + EnableExternalPluggableDatabaseDatabaseManagementDetails __instance__ = + new EnableExternalPluggableDatabaseDatabaseManagementDetails( + externalDatabaseConnectorId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalPluggableDatabaseDatabaseManagementDetails o) { + Builder copiedBuilder = externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseConnectorId") + String externalDatabaseConnectorId; + + @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/ExadataInfrastructure.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java index 956e52e40d2..db588c41cf5 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructure.java @@ -269,6 +269,15 @@ public Builder contacts(java.util.List contacts) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSLOStatus") + private MaintenanceSLOStatus maintenanceSLOStatus; + + public Builder maintenanceSLOStatus(MaintenanceSLOStatus maintenanceSLOStatus) { + this.maintenanceSLOStatus = maintenanceSLOStatus; + this.__explicitlySet__.add("maintenanceSLOStatus"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") private MaintenanceWindow maintenanceWindow; @@ -330,6 +339,7 @@ public ExadataInfrastructure build() { lifecycleDetails, csiNumber, contacts, + maintenanceSLOStatus, maintenanceWindow, freeformTags, definedTags); @@ -367,6 +377,7 @@ public Builder copy(ExadataInfrastructure o) { .lifecycleDetails(o.getLifecycleDetails()) .csiNumber(o.getCsiNumber()) .contacts(o.getContacts()) + .maintenanceSLOStatus(o.getMaintenanceSLOStatus()) .maintenanceWindow(o.getMaintenanceWindow()) .freeformTags(o.getFreeformTags()) .definedTags(o.getDefinedTags()); @@ -600,6 +611,57 @@ public static LifecycleState create(String key) { **/ @com.fasterxml.jackson.annotation.JsonProperty("contacts") java.util.List contacts; + /** + * A field to capture \u2018Maintenance SLO Status\u2019 for the Exadata infrastructure with values \u2018OK\u2019, \u2018DEGRADED\u2019. Default is \u2018OK\u2019 when the infrastructure is provisioned. + **/ + @lombok.extern.slf4j.Slf4j + public enum MaintenanceSLOStatus { + Ok("OK"), + Degraded("DEGRADED"), + + /** + * 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 (MaintenanceSLOStatus v : MaintenanceSLOStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceSLOStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceSLOStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceSLOStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * A field to capture \u2018Maintenance SLO Status\u2019 for the Exadata infrastructure with values \u2018OK\u2019, \u2018DEGRADED\u2019. Default is \u2018OK\u2019 when the infrastructure is provisioned. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSLOStatus") + MaintenanceSLOStatus maintenanceSLOStatus; @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") MaintenanceWindow maintenanceWindow; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureContact.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureContact.java index 30c9b268925..a01ef2566cc 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureContact.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureContact.java @@ -62,12 +62,22 @@ public Builder isPrimary(Boolean isPrimary) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("isContactMosValidated") + private Boolean isContactMosValidated; + + public Builder isContactMosValidated(Boolean isContactMosValidated) { + this.isContactMosValidated = isContactMosValidated; + this.__explicitlySet__.add("isContactMosValidated"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ExadataInfrastructureContact build() { ExadataInfrastructureContact __instance__ = - new ExadataInfrastructureContact(name, phoneNumber, email, isPrimary); + new ExadataInfrastructureContact( + name, phoneNumber, email, isPrimary, isContactMosValidated); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -78,7 +88,8 @@ public Builder copy(ExadataInfrastructureContact o) { name(o.getName()) .phoneNumber(o.getPhoneNumber()) .email(o.getEmail()) - .isPrimary(o.getIsPrimary()); + .isPrimary(o.getIsPrimary()) + .isContactMosValidated(o.getIsContactMosValidated()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -111,11 +122,17 @@ public static Builder builder() { String email; /** - * True, if this Exadata Infrastructure contact is a primary contact. False, if this Exadata Infrastructure is a secondary contact. + * If `true`, this Exadata Infrastructure contact is a primary contact. If `false`, this Exadata Infrastructure is a secondary contact. **/ @com.fasterxml.jackson.annotation.JsonProperty("isPrimary") Boolean isPrimary; + /** + * If `true`, this Exadata Infrastructure contact is a valid My Oracle Support (MOS) contact. If `false`, this Exadata Infrastructure contact is not a valid MOS contact. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("isContactMosValidated") + Boolean isContactMosValidated; + @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/ExadataInfrastructureSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java index d1ff52128a7..2ba5de085a7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExadataInfrastructureSummary.java @@ -271,6 +271,15 @@ public Builder contacts(java.util.List contacts) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSLOStatus") + private MaintenanceSLOStatus maintenanceSLOStatus; + + public Builder maintenanceSLOStatus(MaintenanceSLOStatus maintenanceSLOStatus) { + this.maintenanceSLOStatus = maintenanceSLOStatus; + this.__explicitlySet__.add("maintenanceSLOStatus"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") private MaintenanceWindow maintenanceWindow; @@ -332,6 +341,7 @@ public ExadataInfrastructureSummary build() { lifecycleDetails, csiNumber, contacts, + maintenanceSLOStatus, maintenanceWindow, freeformTags, definedTags); @@ -369,6 +379,7 @@ public Builder copy(ExadataInfrastructureSummary o) { .lifecycleDetails(o.getLifecycleDetails()) .csiNumber(o.getCsiNumber()) .contacts(o.getContacts()) + .maintenanceSLOStatus(o.getMaintenanceSLOStatus()) .maintenanceWindow(o.getMaintenanceWindow()) .freeformTags(o.getFreeformTags()) .definedTags(o.getDefinedTags()); @@ -602,6 +613,57 @@ public static LifecycleState create(String key) { **/ @com.fasterxml.jackson.annotation.JsonProperty("contacts") java.util.List contacts; + /** + * A field to capture \u2018Maintenance SLO Status\u2019 for the Exadata infrastructure with values \u2018OK\u2019, \u2018DEGRADED\u2019. Default is \u2018OK\u2019 when the infrastructure is provisioned. + **/ + @lombok.extern.slf4j.Slf4j + public enum MaintenanceSLOStatus { + Ok("OK"), + Degraded("DEGRADED"), + + /** + * 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 (MaintenanceSLOStatus v : MaintenanceSLOStatus.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MaintenanceSLOStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MaintenanceSLOStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MaintenanceSLOStatus', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * A field to capture \u2018Maintenance SLO Status\u2019 for the Exadata infrastructure with values \u2018OK\u2019, \u2018DEGRADED\u2019. Default is \u2018OK\u2019 when the infrastructure is provisioned. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("maintenanceSLOStatus") + MaintenanceSLOStatus maintenanceSLOStatus; @com.fasterxml.jackson.annotation.JsonProperty("maintenanceWindow") MaintenanceWindow maintenanceWindow; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalContainerDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalContainerDatabase.java new file mode 100644 index 00000000000..8434d9e3485 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalContainerDatabase.java @@ -0,0 +1,455 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure resource that allows you to manage an external container database. + * + *
+ * 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 = ExternalContainerDatabase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalContainerDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + private String dbPacks; + + public Builder dbPacks(String dbPacks) { + this.dbPacks = dbPacks; + this.__explicitlySet__.add("dbPacks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + private DatabaseManagementConfig databaseManagementConfig; + + public Builder databaseManagementConfig(DatabaseManagementConfig databaseManagementConfig) { + this.databaseManagementConfig = databaseManagementConfig; + this.__explicitlySet__.add("databaseManagementConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalContainerDatabase build() { + ExternalContainerDatabase __instance__ = + new ExternalContainerDatabase( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleDetails, + lifecycleState, + timeCreated, + dbUniqueName, + dbId, + databaseVersion, + databaseEdition, + timeZone, + characterSet, + ncharacterSet, + dbPacks, + databaseManagementConfig); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalContainerDatabase o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .dbUniqueName(o.getDbUniqueName()) + .dbId(o.getDbId()) + .databaseVersion(o.getDatabaseVersion()) + .databaseEdition(o.getDatabaseEdition()) + .timeZone(o.getTimeZone()) + .characterSet(o.getCharacterSet()) + .ncharacterSet(o.getNcharacterSet()) + .dbPacks(o.getDbPacks()) + .databaseManagementConfig(o.getDatabaseManagementConfig()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Provisioning("PROVISIONING"), + NotConnected("NOT_CONNECTED"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + + /** + * 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 (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the database was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The `DB_UNIQUE_NAME` of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + String dbUniqueName; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + String dbId; + + /** + * The Oracle Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + String databaseVersion; + /** + * The Oracle Database edition. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + + /** + * 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 (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database edition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + DatabaseEdition databaseEdition; + + /** + * The time zone of the external database. + * It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, + * depending on how the time zone value was specified when the database was created / last altered. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + String timeZone; + + /** + * The character set of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + String characterSet; + + /** + * The national character of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + String ncharacterSet; + + /** + * The database packs licensed for the external Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + String dbPacks; + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + DatabaseManagementConfig databaseManagementConfig; + + @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/ExternalContainerDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalContainerDatabaseSummary.java new file mode 100644 index 00000000000..e5f1cb9e8c0 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalContainerDatabaseSummary.java @@ -0,0 +1,455 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure resource that allows you to manage an external Oracle container database. + * + *
+ * 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 = ExternalContainerDatabaseSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalContainerDatabaseSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + private String dbPacks; + + public Builder dbPacks(String dbPacks) { + this.dbPacks = dbPacks; + this.__explicitlySet__.add("dbPacks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + private DatabaseManagementConfig databaseManagementConfig; + + public Builder databaseManagementConfig(DatabaseManagementConfig databaseManagementConfig) { + this.databaseManagementConfig = databaseManagementConfig; + this.__explicitlySet__.add("databaseManagementConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalContainerDatabaseSummary build() { + ExternalContainerDatabaseSummary __instance__ = + new ExternalContainerDatabaseSummary( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleDetails, + lifecycleState, + timeCreated, + dbUniqueName, + dbId, + databaseVersion, + databaseEdition, + timeZone, + characterSet, + ncharacterSet, + dbPacks, + databaseManagementConfig); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalContainerDatabaseSummary o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .dbUniqueName(o.getDbUniqueName()) + .dbId(o.getDbId()) + .databaseVersion(o.getDatabaseVersion()) + .databaseEdition(o.getDatabaseEdition()) + .timeZone(o.getTimeZone()) + .characterSet(o.getCharacterSet()) + .ncharacterSet(o.getNcharacterSet()) + .dbPacks(o.getDbPacks()) + .databaseManagementConfig(o.getDatabaseManagementConfig()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Provisioning("PROVISIONING"), + NotConnected("NOT_CONNECTED"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + + /** + * 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 (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the database was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The `DB_UNIQUE_NAME` of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + String dbUniqueName; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + String dbId; + + /** + * The Oracle Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + String databaseVersion; + /** + * The Oracle Database edition. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + + /** + * 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 (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database edition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + DatabaseEdition databaseEdition; + + /** + * The time zone of the external database. + * It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, + * depending on how the time zone value was specified when the database was created / last altered. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + String timeZone; + + /** + * The character set of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + String characterSet; + + /** + * The national character of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + String ncharacterSet; + + /** + * The database packs licensed for the external Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + String dbPacks; + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + DatabaseManagementConfig databaseManagementConfig; + + @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/ExternalDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalDatabaseBase.java new file mode 100644 index 00000000000..b6117a97a3a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalDatabaseBase.java @@ -0,0 +1,433 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * A resource that allows you to manage an Oracle Database located outside of Oracle Cloud using Oracle Cloud Infrastructure's Console and APIs. + * + *
+ * 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 = ExternalDatabaseBase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalDatabaseBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + private String dbPacks; + + public Builder dbPacks(String dbPacks) { + this.dbPacks = dbPacks; + this.__explicitlySet__.add("dbPacks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + private DatabaseManagementConfig databaseManagementConfig; + + public Builder databaseManagementConfig(DatabaseManagementConfig databaseManagementConfig) { + this.databaseManagementConfig = databaseManagementConfig; + this.__explicitlySet__.add("databaseManagementConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalDatabaseBase build() { + ExternalDatabaseBase __instance__ = + new ExternalDatabaseBase( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleDetails, + lifecycleState, + timeCreated, + dbUniqueName, + dbId, + databaseVersion, + databaseEdition, + timeZone, + characterSet, + ncharacterSet, + dbPacks, + databaseManagementConfig); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalDatabaseBase o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .dbUniqueName(o.getDbUniqueName()) + .dbId(o.getDbId()) + .databaseVersion(o.getDatabaseVersion()) + .databaseEdition(o.getDatabaseEdition()) + .timeZone(o.getTimeZone()) + .characterSet(o.getCharacterSet()) + .ncharacterSet(o.getNcharacterSet()) + .dbPacks(o.getDbPacks()) + .databaseManagementConfig(o.getDatabaseManagementConfig()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + public enum LifecycleState { + Provisioning("PROVISIONING"), + NotConnected("NOT_CONNECTED"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + map.put(v.getValue(), v); + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LifecycleState: " + key); + } + }; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the database was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The `DB_UNIQUE_NAME` of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + String dbUniqueName; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + String dbId; + + /** + * The Oracle Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + String databaseVersion; + /** + * The Oracle Database edition. + * + **/ + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DatabaseEdition v : DatabaseEdition.values()) { + map.put(v.getValue(), v); + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DatabaseEdition: " + key); + } + }; + /** + * The Oracle Database edition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + DatabaseEdition databaseEdition; + + /** + * The time zone of the external database. + * It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, + * depending on how the time zone value was specified when the database was created / last altered. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + String timeZone; + + /** + * The character set of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + String characterSet; + + /** + * The national character of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + String ncharacterSet; + + /** + * The database packs licensed for the external Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + String dbPacks; + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + DatabaseManagementConfig databaseManagementConfig; + + @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/ExternalDatabaseConnector.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalDatabaseConnector.java new file mode 100644 index 00000000000..d561fbc7e05 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalDatabaseConnector.java @@ -0,0 +1,213 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure resource used to connect to an external Oracle Database. + * This resource stores the database connection string, user credentials, and related details that allow you to + * manage your external database using the Oracle Cloud Infrastructure Console and API interfaces. + * + *
+ * 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}), + access = lombok.AccessLevel.PROTECTED +) +@lombok.Value +@lombok.experimental.NonFinal +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType", + defaultImpl = ExternalDatabaseConnector.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalMacsConnector.class, + name = "MACS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExternalDatabaseConnector { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * The name does not have to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + /** + * The current lifecycle state of the external database connector resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Provisioning("PROVISIONING"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + + /** + * 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 (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current lifecycle state of the external database connector resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + + /** + * The date and time the external connector was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + String externalDatabaseId; + + /** + * The status of connectivity to the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + String connectionStatus; + + /** + * The date and time the connectionStatus of this external connector was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusLastUpdated") + java.util.Date timeConnectionStatusLastUpdated; + + /** + * The type of connector used by the external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum ConnectorType { + Macs("MACS"), + + /** + * 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 (ConnectorType v : ConnectorType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ConnectorType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectorType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ConnectorType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalDatabaseConnectorSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalDatabaseConnectorSummary.java new file mode 100644 index 00000000000..1bf79545ee8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalDatabaseConnectorSummary.java @@ -0,0 +1,164 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure resource used to connect to an external Oracle Database. + * This resource stores the database connection string, user credentials, and related details that allow you to + * manage your external database using the Oracle Cloud Infrastructure Console and API interfaces. + * + *
+ * 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}), + access = lombok.AccessLevel.PROTECTED +) +@lombok.Value +@lombok.experimental.NonFinal +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType", + defaultImpl = ExternalDatabaseConnectorSummary.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalMacsConnectorSummary.class, + name = "MACS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class ExternalDatabaseConnectorSummary { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * The name does not have to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * The current lifecycle state of the external database connector resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + ExternalDatabaseConnector.LifecycleState lifecycleState; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + + /** + * The date and time the external connector was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + String externalDatabaseId; + + /** + * The status of connectivity to the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + String connectionStatus; + + /** + * The date and time the `connectionStatus` of this external connector was last updated. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusLastUpdated") + java.util.Date timeConnectionStatusLastUpdated; + + /** + * The type of connector used by the external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum ConnectorType { + Macs("MACS"), + + /** + * 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 (ConnectorType v : ConnectorType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ConnectorType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectorType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ConnectorType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalMacsConnector.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalMacsConnector.java new file mode 100644 index 00000000000..0c52b24a66e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalMacsConnector.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure resource that uses the [Management Agent cloud service (MACS)](https://docs.cloud.oracle.com/iaas/management-agents/index.html) to connect to an external Oracle Database. + * + *
+ * 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.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMacsConnector.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalMacsConnector extends ExternalDatabaseConnector { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + private String connectionStatus; + + public Builder connectionStatus(String connectionStatus) { + this.connectionStatus = connectionStatus; + this.__explicitlySet__.add("connectionStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusLastUpdated") + private java.util.Date timeConnectionStatusLastUpdated; + + public Builder timeConnectionStatusLastUpdated( + java.util.Date timeConnectionStatusLastUpdated) { + this.timeConnectionStatusLastUpdated = timeConnectionStatusLastUpdated; + this.__explicitlySet__.add("timeConnectionStatusLastUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private DatabaseConnectionString connectionString; + + public Builder connectionString(DatabaseConnectionString connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + private DatabaseConnectionCredentials connectionCredentials; + + public Builder connectionCredentials(DatabaseConnectionCredentials connectionCredentials) { + this.connectionCredentials = connectionCredentials; + this.__explicitlySet__.add("connectionCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorAgentId") + private String connectorAgentId; + + public Builder connectorAgentId(String connectorAgentId) { + this.connectorAgentId = connectorAgentId; + this.__explicitlySet__.add("connectorAgentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalMacsConnector build() { + ExternalMacsConnector __instance__ = + new ExternalMacsConnector( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleState, + lifecycleDetails, + timeCreated, + externalDatabaseId, + connectionStatus, + timeConnectionStatusLastUpdated, + connectionString, + connectionCredentials, + connectorAgentId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMacsConnector o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleState(o.getLifecycleState()) + .lifecycleDetails(o.getLifecycleDetails()) + .timeCreated(o.getTimeCreated()) + .externalDatabaseId(o.getExternalDatabaseId()) + .connectionStatus(o.getConnectionStatus()) + .timeConnectionStatusLastUpdated(o.getTimeConnectionStatusLastUpdated()) + .connectionString(o.getConnectionString()) + .connectionCredentials(o.getConnectionCredentials()) + .connectorAgentId(o.getConnectorAgentId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public ExternalMacsConnector( + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String displayName, + String id, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + String externalDatabaseId, + String connectionStatus, + java.util.Date timeConnectionStatusLastUpdated, + DatabaseConnectionString connectionString, + DatabaseConnectionCredentials connectionCredentials, + String connectorAgentId) { + super( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleState, + lifecycleDetails, + timeCreated, + externalDatabaseId, + connectionStatus, + timeConnectionStatusLastUpdated); + this.connectionString = connectionString; + this.connectionCredentials = connectionCredentials; + this.connectorAgentId = connectorAgentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + DatabaseConnectionString connectionString; + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + DatabaseConnectionCredentials connectionCredentials; + + /** + * The ID of the agent used for the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectorAgentId") + String connectorAgentId; + + @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/ExternalMacsConnectorSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalMacsConnectorSummary.java new file mode 100644 index 00000000000..8bfe17ddb09 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalMacsConnectorSummary.java @@ -0,0 +1,267 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure resource that uses the [Management Agent cloud service (MACS)](https://docs.cloud.oracle.com/iaas/management-agents/index.html) to connect to an external Oracle Database. + * + *
+ * 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.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalMacsConnectorSummary.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalMacsConnectorSummary extends ExternalDatabaseConnectorSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private ExternalDatabaseConnector.LifecycleState lifecycleState; + + public Builder lifecycleState(ExternalDatabaseConnector.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalDatabaseId") + private String externalDatabaseId; + + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + this.__explicitlySet__.add("externalDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionStatus") + private String connectionStatus; + + public Builder connectionStatus(String connectionStatus) { + this.connectionStatus = connectionStatus; + this.__explicitlySet__.add("connectionStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeConnectionStatusLastUpdated") + private java.util.Date timeConnectionStatusLastUpdated; + + public Builder timeConnectionStatusLastUpdated( + java.util.Date timeConnectionStatusLastUpdated) { + this.timeConnectionStatusLastUpdated = timeConnectionStatusLastUpdated; + this.__explicitlySet__.add("timeConnectionStatusLastUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private DatabaseConnectionString connectionString; + + public Builder connectionString(DatabaseConnectionString connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + private DatabaseConnectionCredentials connectionCredentials; + + public Builder connectionCredentials(DatabaseConnectionCredentials connectionCredentials) { + this.connectionCredentials = connectionCredentials; + this.__explicitlySet__.add("connectionCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorAgentId") + private String connectorAgentId; + + public Builder connectorAgentId(String connectorAgentId) { + this.connectorAgentId = connectorAgentId; + this.__explicitlySet__.add("connectorAgentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalMacsConnectorSummary build() { + ExternalMacsConnectorSummary __instance__ = + new ExternalMacsConnectorSummary( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleState, + lifecycleDetails, + timeCreated, + externalDatabaseId, + connectionStatus, + timeConnectionStatusLastUpdated, + connectionString, + connectionCredentials, + connectorAgentId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalMacsConnectorSummary o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleState(o.getLifecycleState()) + .lifecycleDetails(o.getLifecycleDetails()) + .timeCreated(o.getTimeCreated()) + .externalDatabaseId(o.getExternalDatabaseId()) + .connectionStatus(o.getConnectionStatus()) + .timeConnectionStatusLastUpdated(o.getTimeConnectionStatusLastUpdated()) + .connectionString(o.getConnectionString()) + .connectionCredentials(o.getConnectionCredentials()) + .connectorAgentId(o.getConnectorAgentId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public ExternalMacsConnectorSummary( + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String displayName, + String id, + ExternalDatabaseConnector.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + String externalDatabaseId, + String connectionStatus, + java.util.Date timeConnectionStatusLastUpdated, + DatabaseConnectionString connectionString, + DatabaseConnectionCredentials connectionCredentials, + String connectorAgentId) { + super( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleState, + lifecycleDetails, + timeCreated, + externalDatabaseId, + connectionStatus, + timeConnectionStatusLastUpdated); + this.connectionString = connectionString; + this.connectionCredentials = connectionCredentials; + this.connectorAgentId = connectorAgentId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + DatabaseConnectionString connectionString; + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + DatabaseConnectionCredentials connectionCredentials; + + /** + * The ID of the agent used for the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("connectorAgentId") + String connectorAgentId; + + @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/ExternalNonContainerDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalNonContainerDatabase.java new file mode 100644 index 00000000000..046e5fc2ed5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalNonContainerDatabase.java @@ -0,0 +1,454 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * an external Oracle non-container database. + *
+ * 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 = ExternalNonContainerDatabase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalNonContainerDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + private String dbPacks; + + public Builder dbPacks(String dbPacks) { + this.dbPacks = dbPacks; + this.__explicitlySet__.add("dbPacks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + private DatabaseManagementConfig databaseManagementConfig; + + public Builder databaseManagementConfig(DatabaseManagementConfig databaseManagementConfig) { + this.databaseManagementConfig = databaseManagementConfig; + this.__explicitlySet__.add("databaseManagementConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalNonContainerDatabase build() { + ExternalNonContainerDatabase __instance__ = + new ExternalNonContainerDatabase( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleDetails, + lifecycleState, + timeCreated, + dbUniqueName, + dbId, + databaseVersion, + databaseEdition, + timeZone, + characterSet, + ncharacterSet, + dbPacks, + databaseManagementConfig); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalNonContainerDatabase o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .dbUniqueName(o.getDbUniqueName()) + .dbId(o.getDbId()) + .databaseVersion(o.getDatabaseVersion()) + .databaseEdition(o.getDatabaseEdition()) + .timeZone(o.getTimeZone()) + .characterSet(o.getCharacterSet()) + .ncharacterSet(o.getNcharacterSet()) + .dbPacks(o.getDbPacks()) + .databaseManagementConfig(o.getDatabaseManagementConfig()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Provisioning("PROVISIONING"), + NotConnected("NOT_CONNECTED"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + + /** + * 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 (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the database was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The `DB_UNIQUE_NAME` of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + String dbUniqueName; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + String dbId; + + /** + * The Oracle Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + String databaseVersion; + /** + * The Oracle Database edition. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + + /** + * 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 (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database edition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + DatabaseEdition databaseEdition; + + /** + * The time zone of the external database. + * It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, + * depending on how the time zone value was specified when the database was created / last altered. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + String timeZone; + + /** + * The character set of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + String characterSet; + + /** + * The national character of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + String ncharacterSet; + + /** + * The database packs licensed for the external Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + String dbPacks; + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + DatabaseManagementConfig databaseManagementConfig; + + @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/ExternalNonContainerDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalNonContainerDatabaseSummary.java new file mode 100644 index 00000000000..d540e0c686a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalNonContainerDatabaseSummary.java @@ -0,0 +1,456 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure external non-container database resource. This resource is used to manage a non-container + * database located outside of Oracle Cloud. + * + *
+ * 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 = ExternalNonContainerDatabaseSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalNonContainerDatabaseSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + private String dbPacks; + + public Builder dbPacks(String dbPacks) { + this.dbPacks = dbPacks; + this.__explicitlySet__.add("dbPacks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + private DatabaseManagementConfig databaseManagementConfig; + + public Builder databaseManagementConfig(DatabaseManagementConfig databaseManagementConfig) { + this.databaseManagementConfig = databaseManagementConfig; + this.__explicitlySet__.add("databaseManagementConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalNonContainerDatabaseSummary build() { + ExternalNonContainerDatabaseSummary __instance__ = + new ExternalNonContainerDatabaseSummary( + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleDetails, + lifecycleState, + timeCreated, + dbUniqueName, + dbId, + databaseVersion, + databaseEdition, + timeZone, + characterSet, + ncharacterSet, + dbPacks, + databaseManagementConfig); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalNonContainerDatabaseSummary o) { + Builder copiedBuilder = + compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .dbUniqueName(o.getDbUniqueName()) + .dbId(o.getDbId()) + .databaseVersion(o.getDatabaseVersion()) + .databaseEdition(o.getDatabaseEdition()) + .timeZone(o.getTimeZone()) + .characterSet(o.getCharacterSet()) + .ncharacterSet(o.getNcharacterSet()) + .dbPacks(o.getDbPacks()) + .databaseManagementConfig(o.getDatabaseManagementConfig()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Provisioning("PROVISIONING"), + NotConnected("NOT_CONNECTED"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + + /** + * 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 (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the database was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The `DB_UNIQUE_NAME` of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + String dbUniqueName; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + String dbId; + + /** + * The Oracle Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + String databaseVersion; + /** + * The Oracle Database edition. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + + /** + * 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 (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database edition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + DatabaseEdition databaseEdition; + + /** + * The time zone of the external database. + * It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, + * depending on how the time zone value was specified when the database was created / last altered. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + String timeZone; + + /** + * The character set of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + String characterSet; + + /** + * The national character of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + String ncharacterSet; + + /** + * The database packs licensed for the external Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + String dbPacks; + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + DatabaseManagementConfig databaseManagementConfig; + + @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/ExternalPluggableDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalPluggableDatabase.java new file mode 100644 index 00000000000..dcbcbd2cdac --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalPluggableDatabase.java @@ -0,0 +1,493 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * an external Oracle pluggable database. + *
+ * 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 = ExternalPluggableDatabase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalPluggableDatabase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + private String sourceId; + + public Builder sourceId(String sourceId) { + this.sourceId = sourceId; + this.__explicitlySet__.add("sourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalContainerDatabaseId") + private String externalContainerDatabaseId; + + public Builder externalContainerDatabaseId(String externalContainerDatabaseId) { + this.externalContainerDatabaseId = externalContainerDatabaseId; + this.__explicitlySet__.add("externalContainerDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + private String dbPacks; + + public Builder dbPacks(String dbPacks) { + this.dbPacks = dbPacks; + this.__explicitlySet__.add("dbPacks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + private DatabaseManagementConfig databaseManagementConfig; + + public Builder databaseManagementConfig(DatabaseManagementConfig databaseManagementConfig) { + this.databaseManagementConfig = databaseManagementConfig; + this.__explicitlySet__.add("databaseManagementConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalPluggableDatabase build() { + ExternalPluggableDatabase __instance__ = + new ExternalPluggableDatabase( + sourceId, + externalContainerDatabaseId, + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleDetails, + lifecycleState, + timeCreated, + dbUniqueName, + dbId, + databaseVersion, + databaseEdition, + timeZone, + characterSet, + ncharacterSet, + dbPacks, + databaseManagementConfig); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalPluggableDatabase o) { + Builder copiedBuilder = + sourceId(o.getSourceId()) + .externalContainerDatabaseId(o.getExternalContainerDatabaseId()) + .compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .dbUniqueName(o.getDbUniqueName()) + .dbId(o.getDbId()) + .databaseVersion(o.getDatabaseVersion()) + .databaseEdition(o.getDatabaseEdition()) + .timeZone(o.getTimeZone()) + .characterSet(o.getCharacterSet()) + .ncharacterSet(o.getNcharacterSet()) + .dbPacks(o.getDbPacks()) + .databaseManagementConfig(o.getDatabaseManagementConfig()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the the non-container database that was converted + * to a pluggable database to create this resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + String sourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails} that contains + * the specified {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalContainerDatabaseId") + String externalContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Provisioning("PROVISIONING"), + NotConnected("NOT_CONNECTED"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + + /** + * 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 (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the database was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The `DB_UNIQUE_NAME` of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + String dbUniqueName; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + String dbId; + + /** + * The Oracle Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + String databaseVersion; + /** + * The Oracle Database edition. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + + /** + * 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 (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database edition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + DatabaseEdition databaseEdition; + + /** + * The time zone of the external database. + * It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, + * depending on how the time zone value was specified when the database was created / last altered. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + String timeZone; + + /** + * The character set of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + String characterSet; + + /** + * The national character of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + String ncharacterSet; + + /** + * The database packs licensed for the external Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + String dbPacks; + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + DatabaseManagementConfig databaseManagementConfig; + + @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/ExternalPluggableDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalPluggableDatabaseSummary.java new file mode 100644 index 00000000000..227fe9f66d3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/ExternalPluggableDatabaseSummary.java @@ -0,0 +1,494 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * An Oracle Cloud Infrastructure resource that allows you to manage an external pluggable database. + * + *
+ * 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 = ExternalPluggableDatabaseSummary.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class ExternalPluggableDatabaseSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + private String sourceId; + + public Builder sourceId(String sourceId) { + this.sourceId = sourceId; + this.__explicitlySet__.add("sourceId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("externalContainerDatabaseId") + private String externalContainerDatabaseId; + + public Builder externalContainerDatabaseId(String externalContainerDatabaseId) { + this.externalContainerDatabaseId = externalContainerDatabaseId; + this.__explicitlySet__.add("externalContainerDatabaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + private String dbUniqueName; + + public Builder dbUniqueName(String dbUniqueName) { + this.dbUniqueName = dbUniqueName; + this.__explicitlySet__.add("dbUniqueName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + private String dbId; + + public Builder dbId(String dbId) { + this.dbId = dbId; + this.__explicitlySet__.add("dbId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + private String databaseVersion; + + public Builder databaseVersion(String databaseVersion) { + this.databaseVersion = databaseVersion; + this.__explicitlySet__.add("databaseVersion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + private DatabaseEdition databaseEdition; + + public Builder databaseEdition(DatabaseEdition databaseEdition) { + this.databaseEdition = databaseEdition; + this.__explicitlySet__.add("databaseEdition"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + private String timeZone; + + public Builder timeZone(String timeZone) { + this.timeZone = timeZone; + this.__explicitlySet__.add("timeZone"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + private String characterSet; + + public Builder characterSet(String characterSet) { + this.characterSet = characterSet; + this.__explicitlySet__.add("characterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + private String ncharacterSet; + + public Builder ncharacterSet(String ncharacterSet) { + this.ncharacterSet = ncharacterSet; + this.__explicitlySet__.add("ncharacterSet"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + private String dbPacks; + + public Builder dbPacks(String dbPacks) { + this.dbPacks = dbPacks; + this.__explicitlySet__.add("dbPacks"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + private DatabaseManagementConfig databaseManagementConfig; + + public Builder databaseManagementConfig(DatabaseManagementConfig databaseManagementConfig) { + this.databaseManagementConfig = databaseManagementConfig; + this.__explicitlySet__.add("databaseManagementConfig"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalPluggableDatabaseSummary build() { + ExternalPluggableDatabaseSummary __instance__ = + new ExternalPluggableDatabaseSummary( + sourceId, + externalContainerDatabaseId, + compartmentId, + freeformTags, + definedTags, + displayName, + id, + lifecycleDetails, + lifecycleState, + timeCreated, + dbUniqueName, + dbId, + databaseVersion, + databaseEdition, + timeZone, + characterSet, + ncharacterSet, + dbPacks, + databaseManagementConfig); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalPluggableDatabaseSummary o) { + Builder copiedBuilder = + sourceId(o.getSourceId()) + .externalContainerDatabaseId(o.getExternalContainerDatabaseId()) + .compartmentId(o.getCompartmentId()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .id(o.getId()) + .lifecycleDetails(o.getLifecycleDetails()) + .lifecycleState(o.getLifecycleState()) + .timeCreated(o.getTimeCreated()) + .dbUniqueName(o.getDbUniqueName()) + .dbId(o.getDbId()) + .databaseVersion(o.getDatabaseVersion()) + .databaseEdition(o.getDatabaseEdition()) + .timeZone(o.getTimeZone()) + .characterSet(o.getCharacterSet()) + .ncharacterSet(o.getNcharacterSet()) + .dbPacks(o.getDbPacks()) + .databaseManagementConfig(o.getDatabaseManagementConfig()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the the non-container database that was converted + * to a pluggable database to create this resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("sourceId") + String sourceId; + + /** + * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + * {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails} that contains + * the specified {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("externalContainerDatabaseId") + String externalContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + String compartmentId; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure external database resource. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("id") + String id; + + /** + * Additional information about the current lifecycle state. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + String lifecycleDetails; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @lombok.extern.slf4j.Slf4j + public enum LifecycleState { + Provisioning("PROVISIONING"), + NotConnected("NOT_CONNECTED"), + Available("AVAILABLE"), + Updating("UPDATING"), + Terminating("TERMINATING"), + Terminated("TERMINATED"), + Failed("FAILED"), + + /** + * 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 (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + LifecycleState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LifecycleState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'LifecycleState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The current state of the Oracle Cloud Infrastructure external database resource. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + LifecycleState lifecycleState; + + /** + * The date and time the database was created. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + java.util.Date timeCreated; + + /** + * The `DB_UNIQUE_NAME` of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbUniqueName") + String dbUniqueName; + + /** + * The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbId") + String dbId; + + /** + * The Oracle Database version. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseVersion") + String databaseVersion; + /** + * The Oracle Database edition. + * + **/ + @lombok.extern.slf4j.Slf4j + public enum DatabaseEdition { + StandardEdition("STANDARD_EDITION"), + EnterpriseEdition("ENTERPRISE_EDITION"), + EnterpriseEditionHighPerformance("ENTERPRISE_EDITION_HIGH_PERFORMANCE"), + EnterpriseEditionExtremePerformance("ENTERPRISE_EDITION_EXTREME_PERFORMANCE"), + + /** + * 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 (DatabaseEdition v : DatabaseEdition.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + DatabaseEdition(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DatabaseEdition create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'DatabaseEdition', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The Oracle Database edition. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") + DatabaseEdition databaseEdition; + + /** + * The time zone of the external database. + * It is a time zone offset (a character type in the format '[+|-]TZH:TZM') or a time zone region name, + * depending on how the time zone value was specified when the database was created / last altered. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("timeZone") + String timeZone; + + /** + * The character set of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("characterSet") + String characterSet; + + /** + * The national character of the external database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("ncharacterSet") + String ncharacterSet; + + /** + * The database packs licensed for the external Oracle Database. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("dbPacks") + String dbPacks; + + @com.fasterxml.jackson.annotation.JsonProperty("databaseManagementConfig") + DatabaseManagementConfig databaseManagementConfig; + + @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/MaintenanceRun.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java index 959a9caeb54..e7fbf44a80a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRun.java @@ -433,7 +433,7 @@ public static MaintenanceType create(String key) { MaintenanceType maintenanceType; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the patch to be applied in the maintenance run. + * The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier `ru_patch_19.9.0.0_201030` is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020. **/ @com.fasterxml.jackson.annotation.JsonProperty("patchId") String patchId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java index d0bf2195536..d7ed6451b34 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/MaintenanceRunSummary.java @@ -435,7 +435,7 @@ public static MaintenanceType create(String key) { MaintenanceType maintenanceType; /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the patch to be applied in the maintenance run. + * The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier `ru_patch_19.9.0.0_201030` is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020. **/ @com.fasterxml.jackson.annotation.JsonProperty("patchId") String patchId; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java index ba428b61533..d564cc55717 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/Update.java @@ -168,6 +168,7 @@ public enum LastAction { RollingApply("ROLLING_APPLY"), NonRollingApply("NON_ROLLING_APPLY"), Precheck("PRECHECK"), + Rollback("ROLLBACK"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -220,6 +221,7 @@ public enum AvailableActions { RollingApply("ROLLING_APPLY"), NonRollingApply("NON_ROLLING_APPLY"), Precheck("PRECHECK"), + Rollback("ROLLBACK"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -271,6 +273,7 @@ public static AvailableActions create(String key) { public enum UpdateType { GiUpgrade("GI_UPGRADE"), GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java index f08ee81a231..0e78a9f69f7 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateDetails.java @@ -80,6 +80,7 @@ public enum UpdateAction { RollingApply("ROLLING_APPLY"), NonRollingApply("NON_ROLLING_APPLY"), Precheck("PRECHECK"), + Rollback("ROLLBACK"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalContainerDatabaseDetails.java new file mode 100644 index 00000000000..d7fcb62e2f4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalContainerDatabaseDetails.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for updating an external container database. + * + *
+ * 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 = UpdateExternalContainerDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateExternalContainerDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalContainerDatabaseDetails build() { + UpdateExternalContainerDatabaseDetails __instance__ = + new UpdateExternalContainerDatabaseDetails( + displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalContainerDatabaseDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/UpdateExternalDatabaseConnectorDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalDatabaseConnectorDetails.java new file mode 100644 index 00000000000..2731a788e02 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalDatabaseConnectorDetails.java @@ -0,0 +1,101 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for updating an external database connector. + * + *
+ * 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}), + access = lombok.AccessLevel.PROTECTED +) +@lombok.Value +@lombok.experimental.NonFinal +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType", + defaultImpl = UpdateExternalDatabaseConnectorDetails.class +) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateExternalMacsConnectorDetails.class, + name = "MACS" + ) +}) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +public class UpdateExternalDatabaseConnectorDetails { + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + /** + * The user-friendly name for the + * {@link #createExternalDatabaseConnectorDetails(CreateExternalDatabaseConnectorDetailsRequest) createExternalDatabaseConnectorDetails}. + * The name does not have to be unique. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * The type of connector used by the external database resource. + **/ + public enum ConnectorType { + Macs("MACS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConnectorType v : ConnectorType.values()) { + map.put(v.getValue(), v); + } + } + + ConnectorType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectorType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ConnectorType: " + key); + } + }; +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalDatabaseDetailsBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalDatabaseDetailsBase.java new file mode 100644 index 00000000000..3fb42251bf9 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalDatabaseDetailsBase.java @@ -0,0 +1,112 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for updating an external database. + *
+ * 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 = UpdateExternalDatabaseDetailsBase.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateExternalDatabaseDetailsBase { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalDatabaseDetailsBase build() { + UpdateExternalDatabaseDetailsBase __instance__ = + new UpdateExternalDatabaseDetailsBase(displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalDatabaseDetailsBase o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/UpdateExternalMacsConnectorDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalMacsConnectorDetails.java new file mode 100644 index 00000000000..c01e288ffd4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalMacsConnectorDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for updating an external [Management Agent cloud service (MACS)](https://docs.cloud.oracle.com/iaas/management-agents/index.html) database connection. + * + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model distinguishes fields + * that are {@code null} because they are unset from fields that are explicitly set to {@code null}. This is done in + * the setter methods of the {@link Builder}, which maintain a 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.Value +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateExternalMacsConnectorDetails.Builder.class +) +@lombok.ToString(callSuper = true) +@lombok.EqualsAndHashCode(callSuper = true) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType" +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateExternalMacsConnectorDetails extends UpdateExternalDatabaseConnectorDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private DatabaseConnectionString connectionString; + + public Builder connectionString(DatabaseConnectionString connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + private DatabaseConnectionCredentials connectionCredentials; + + public Builder connectionCredentials(DatabaseConnectionCredentials connectionCredentials) { + this.connectionCredentials = connectionCredentials; + this.__explicitlySet__.add("connectionCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalMacsConnectorDetails build() { + UpdateExternalMacsConnectorDetails __instance__ = + new UpdateExternalMacsConnectorDetails( + freeformTags, + definedTags, + displayName, + connectionString, + connectionCredentials); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalMacsConnectorDetails o) { + Builder copiedBuilder = + freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()) + .displayName(o.getDisplayName()) + .connectionString(o.getConnectionString()) + .connectionCredentials(o.getConnectionCredentials()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + @Deprecated + public UpdateExternalMacsConnectorDetails( + java.util.Map freeformTags, + java.util.Map> definedTags, + String displayName, + DatabaseConnectionString connectionString, + DatabaseConnectionCredentials connectionCredentials) { + super(freeformTags, definedTags, displayName); + this.connectionString = connectionString; + this.connectionCredentials = connectionCredentials; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + DatabaseConnectionString connectionString; + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + DatabaseConnectionCredentials connectionCredentials; + + @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/UpdateExternalNonContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalNonContainerDatabaseDetails.java new file mode 100644 index 00000000000..e3d17bb049b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalNonContainerDatabaseDetails.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for updating an external non-container database. + * + *
+ * 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 = UpdateExternalNonContainerDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateExternalNonContainerDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalNonContainerDatabaseDetails build() { + UpdateExternalNonContainerDatabaseDetails __instance__ = + new UpdateExternalNonContainerDatabaseDetails( + displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalNonContainerDatabaseDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/UpdateExternalPluggableDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalPluggableDatabaseDetails.java new file mode 100644 index 00000000000..5508fb2988a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateExternalPluggableDatabaseDetails.java @@ -0,0 +1,114 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.model; + +/** + * Details for updating an external pluggable database. + * + *
+ * 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 = UpdateExternalPluggableDatabaseDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateExternalPluggableDatabaseDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateExternalPluggableDatabaseDetails build() { + UpdateExternalPluggableDatabaseDetails __instance__ = + new UpdateExternalPluggableDatabaseDetails( + displayName, freeformTags, definedTags); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateExternalPluggableDatabaseDetails o) { + Builder copiedBuilder = + displayName(o.getDisplayName()) + .freeformTags(o.getFreeformTags()) + .definedTags(o.getDefinedTags()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * The user-friendly name for the external database. The name does not have to be unique. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + String displayName; + + /** + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + *

+ * Example: `{\"Department\": \"Finance\"}` + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + java.util.Map freeformTags; + + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. + * For more information, see [Resource Tags](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + java.util.Map> definedTags; + + @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/UpdateHistoryEntry.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntry.java index 6a510df8455..4a9ee3ee0cb 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntry.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntry.java @@ -159,6 +159,7 @@ public enum UpdateAction { RollingApply("ROLLING_APPLY"), NonRollingApply("NON_ROLLING_APPLY"), Precheck("PRECHECK"), + Rollback("ROLLBACK"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -210,6 +211,7 @@ public static UpdateAction create(String key) { public enum UpdateType { GiUpgrade("GI_UPGRADE"), GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java index fdf17855eba..c39e00d01bd 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateHistoryEntrySummary.java @@ -160,6 +160,7 @@ public enum UpdateAction { RollingApply("ROLLING_APPLY"), NonRollingApply("NON_ROLLING_APPLY"), Precheck("PRECHECK"), + Rollback("ROLLBACK"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -211,6 +212,7 @@ public static UpdateAction create(String key) { public enum UpdateType { GiUpgrade("GI_UPGRADE"), GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java index d01ac2bbb63..1c777b54053 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/UpdateSummary.java @@ -173,6 +173,7 @@ public enum LastAction { RollingApply("ROLLING_APPLY"), NonRollingApply("NON_ROLLING_APPLY"), Precheck("PRECHECK"), + Rollback("ROLLBACK"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -225,6 +226,7 @@ public enum AvailableActions { RollingApply("ROLLING_APPLY"), NonRollingApply("NON_ROLLING_APPLY"), Precheck("PRECHECK"), + Rollback("ROLLBACK"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -276,6 +278,7 @@ public static AvailableActions create(String key) { public enum UpdateType { GiUpgrade("GI_UPGRADE"), GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalContainerDatabaseCompartmentRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalContainerDatabaseCompartmentRequest.java new file mode 100644 index 00000000000..ef9e58a1759 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalContainerDatabaseCompartmentRequest.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ChangeExternalContainerDatabaseCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ChangeExternalContainerDatabaseCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Request to move the external container database to a different compartment. + */ + private ChangeCompartmentDetails changeCompartmentDetails; + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public ChangeCompartmentDetails getBody$() { + return changeCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeExternalContainerDatabaseCompartmentRequest, ChangeCompartmentDetails> { + 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(ChangeExternalContainerDatabaseCompartmentRequest o) { + changeCompartmentDetails(o.getChangeCompartmentDetails()); + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeExternalContainerDatabaseCompartmentRequest 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 ChangeExternalContainerDatabaseCompartmentRequest + */ + public ChangeExternalContainerDatabaseCompartmentRequest build() { + ChangeExternalContainerDatabaseCompartmentRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(ChangeCompartmentDetails body) { + changeCompartmentDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalNonContainerDatabaseCompartmentRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalNonContainerDatabaseCompartmentRequest.java new file mode 100644 index 00000000000..57775e67990 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalNonContainerDatabaseCompartmentRequest.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ChangeExternalNonContainerDatabaseCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ChangeExternalNonContainerDatabaseCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Request to move the external non-container database to a different compartment. + */ + private ChangeCompartmentDetails changeCompartmentDetails; + + /** + * The external non-container database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalNonContainerDatabaseId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public ChangeCompartmentDetails getBody$() { + return changeCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeExternalNonContainerDatabaseCompartmentRequest, + ChangeCompartmentDetails> { + 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(ChangeExternalNonContainerDatabaseCompartmentRequest o) { + changeCompartmentDetails(o.getChangeCompartmentDetails()); + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeExternalNonContainerDatabaseCompartmentRequest 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 ChangeExternalNonContainerDatabaseCompartmentRequest + */ + public ChangeExternalNonContainerDatabaseCompartmentRequest build() { + ChangeExternalNonContainerDatabaseCompartmentRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(ChangeCompartmentDetails body) { + changeCompartmentDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalPluggableDatabaseCompartmentRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalPluggableDatabaseCompartmentRequest.java new file mode 100644 index 00000000000..0ccb667ccb2 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ChangeExternalPluggableDatabaseCompartmentRequest.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ChangeExternalPluggableDatabaseCompartmentRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ChangeExternalPluggableDatabaseCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Request to move the + * {@link #createExternalPluggableDatabaseDetails(CreateExternalPluggableDatabaseDetailsRequest) createExternalPluggableDatabaseDetails} resource + * to a different compartment. + * + */ + private ChangeCompartmentDetails changeCompartmentDetails; + + /** + * The ExternalPluggableDatabaseId [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalPluggableDatabaseId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public ChangeCompartmentDetails getBody$() { + return changeCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeExternalPluggableDatabaseCompartmentRequest, ChangeCompartmentDetails> { + 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(ChangeExternalPluggableDatabaseCompartmentRequest o) { + changeCompartmentDetails(o.getChangeCompartmentDetails()); + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeExternalPluggableDatabaseCompartmentRequest 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 ChangeExternalPluggableDatabaseCompartmentRequest + */ + public ChangeExternalPluggableDatabaseCompartmentRequest build() { + ChangeExternalPluggableDatabaseCompartmentRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(ChangeCompartmentDetails body) { + changeCompartmentDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CheckExternalDatabaseConnectorConnectionStatusRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CheckExternalDatabaseConnectorConnectionStatusRequest.java new file mode 100644 index 00000000000..6bdb2bf228f --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CheckExternalDatabaseConnectorConnectionStatusRequest.java @@ -0,0 +1,110 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CheckExternalDatabaseConnectorConnectionStatusRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CheckExternalDatabaseConnectorConnectionStatusRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector resource (`ExternalDatabaseConnectorId`). + * + */ + private String externalDatabaseConnectorId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CheckExternalDatabaseConnectorConnectionStatusRequest, java.lang.Void> { + 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(CheckExternalDatabaseConnectorConnectionStatusRequest o) { + externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CheckExternalDatabaseConnectorConnectionStatusRequest 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 CheckExternalDatabaseConnectorConnectionStatusRequest + */ + public CheckExternalDatabaseConnectorConnectionStatusRequest build() { + CheckExternalDatabaseConnectorConnectionStatusRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalContainerDatabaseRequest.java new file mode 100644 index 00000000000..9317e956d08 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalContainerDatabaseRequest.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateExternalContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateExternalContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Request to create a new external container database resource. + */ + private CreateExternalContainerDatabaseDetails createExternalContainerDatabaseDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public CreateExternalContainerDatabaseDetails getBody$() { + return createExternalContainerDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExternalContainerDatabaseRequest, + CreateExternalContainerDatabaseDetails> { + 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(CreateExternalContainerDatabaseRequest o) { + createExternalContainerDatabaseDetails(o.getCreateExternalContainerDatabaseDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExternalContainerDatabaseRequest 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 CreateExternalContainerDatabaseRequest + */ + public CreateExternalContainerDatabaseRequest build() { + CreateExternalContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(CreateExternalContainerDatabaseDetails body) { + createExternalContainerDatabaseDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalDatabaseConnectorRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalDatabaseConnectorRequest.java new file mode 100644 index 00000000000..d9e6c90ad3e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalDatabaseConnectorRequest.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateExternalDatabaseConnectorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateExternalDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Request to create a connector to an external database. + */ + private CreateExternalDatabaseConnectorDetails createExternalDatabaseConnectorDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public CreateExternalDatabaseConnectorDetails getBody$() { + return createExternalDatabaseConnectorDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExternalDatabaseConnectorRequest, + CreateExternalDatabaseConnectorDetails> { + 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(CreateExternalDatabaseConnectorRequest o) { + createExternalDatabaseConnectorDetails(o.getCreateExternalDatabaseConnectorDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExternalDatabaseConnectorRequest 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 CreateExternalDatabaseConnectorRequest + */ + public CreateExternalDatabaseConnectorRequest build() { + CreateExternalDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(CreateExternalDatabaseConnectorDetails body) { + createExternalDatabaseConnectorDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalNonContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalNonContainerDatabaseRequest.java new file mode 100644 index 00000000000..b216aa199a6 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalNonContainerDatabaseRequest.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateExternalNonContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateExternalNonContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Request to create a new external non-container database. + */ + private CreateExternalNonContainerDatabaseDetails createExternalNonContainerDatabaseDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public CreateExternalNonContainerDatabaseDetails getBody$() { + return createExternalNonContainerDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExternalNonContainerDatabaseRequest, + CreateExternalNonContainerDatabaseDetails> { + 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(CreateExternalNonContainerDatabaseRequest o) { + createExternalNonContainerDatabaseDetails( + o.getCreateExternalNonContainerDatabaseDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExternalNonContainerDatabaseRequest 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 CreateExternalNonContainerDatabaseRequest + */ + public CreateExternalNonContainerDatabaseRequest build() { + CreateExternalNonContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(CreateExternalNonContainerDatabaseDetails body) { + createExternalNonContainerDatabaseDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalPluggableDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalPluggableDatabaseRequest.java new file mode 100644 index 00000000000..df2debd1377 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/CreateExternalPluggableDatabaseRequest.java @@ -0,0 +1,120 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use CreateExternalPluggableDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class CreateExternalPluggableDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * Request to create a new external pluggable database. + */ + private CreateExternalPluggableDatabaseDetails createExternalPluggableDatabaseDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public CreateExternalPluggableDatabaseDetails getBody$() { + return createExternalPluggableDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + CreateExternalPluggableDatabaseRequest, + CreateExternalPluggableDatabaseDetails> { + 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(CreateExternalPluggableDatabaseRequest o) { + createExternalPluggableDatabaseDetails(o.getCreateExternalPluggableDatabaseDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CreateExternalPluggableDatabaseRequest 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 CreateExternalPluggableDatabaseRequest + */ + public CreateExternalPluggableDatabaseRequest build() { + CreateExternalPluggableDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(CreateExternalPluggableDatabaseDetails body) { + createExternalPluggableDatabaseDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalContainerDatabaseRequest.java new file mode 100644 index 00000000000..a2801a77317 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalContainerDatabaseRequest.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteExternalContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteExternalContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExternalContainerDatabaseRequest, java.lang.Void> { + 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(DeleteExternalContainerDatabaseRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExternalContainerDatabaseRequest 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 DeleteExternalContainerDatabaseRequest + */ + public DeleteExternalContainerDatabaseRequest build() { + DeleteExternalContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalDatabaseConnectorRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalDatabaseConnectorRequest.java new file mode 100644 index 00000000000..0b2e48bf90d --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalDatabaseConnectorRequest.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteExternalDatabaseConnectorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteExternalDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector resource (`ExternalDatabaseConnectorId`). + * + */ + private String externalDatabaseConnectorId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExternalDatabaseConnectorRequest, java.lang.Void> { + 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(DeleteExternalDatabaseConnectorRequest o) { + externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExternalDatabaseConnectorRequest 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 DeleteExternalDatabaseConnectorRequest + */ + public DeleteExternalDatabaseConnectorRequest build() { + DeleteExternalDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalNonContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalNonContainerDatabaseRequest.java new file mode 100644 index 00000000000..a16e8390714 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalNonContainerDatabaseRequest.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteExternalNonContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteExternalNonContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The external non-container database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalNonContainerDatabaseId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExternalNonContainerDatabaseRequest, java.lang.Void> { + 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(DeleteExternalNonContainerDatabaseRequest o) { + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExternalNonContainerDatabaseRequest 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 DeleteExternalNonContainerDatabaseRequest + */ + public DeleteExternalNonContainerDatabaseRequest build() { + DeleteExternalNonContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalPluggableDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalPluggableDatabaseRequest.java new file mode 100644 index 00000000000..2faed010d25 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DeleteExternalPluggableDatabaseRequest.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DeleteExternalPluggableDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DeleteExternalPluggableDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalPluggableDatabaseId [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalPluggableDatabaseId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DeleteExternalPluggableDatabaseRequest, java.lang.Void> { + 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(DeleteExternalPluggableDatabaseRequest o) { + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteExternalPluggableDatabaseRequest 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 DeleteExternalPluggableDatabaseRequest + */ + public DeleteExternalPluggableDatabaseRequest build() { + DeleteExternalPluggableDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalContainerDatabaseDatabaseManagementRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalContainerDatabaseDatabaseManagementRequest.java new file mode 100644 index 00000000000..593e912f306 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalContainerDatabaseDatabaseManagementRequest.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DisableExternalContainerDatabaseDatabaseManagementRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DisableExternalContainerDatabaseDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalContainerDatabaseDatabaseManagementRequest, java.lang.Void> { + 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(DisableExternalContainerDatabaseDatabaseManagementRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalContainerDatabaseDatabaseManagementRequest 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 DisableExternalContainerDatabaseDatabaseManagementRequest + */ + public DisableExternalContainerDatabaseDatabaseManagementRequest build() { + DisableExternalContainerDatabaseDatabaseManagementRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalNonContainerDatabaseDatabaseManagementRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalNonContainerDatabaseDatabaseManagementRequest.java new file mode 100644 index 00000000000..de01344757a --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalNonContainerDatabaseDatabaseManagementRequest.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DisableExternalNonContainerDatabaseDatabaseManagementRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DisableExternalNonContainerDatabaseDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The external non-container database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalNonContainerDatabaseId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalNonContainerDatabaseDatabaseManagementRequest, java.lang.Void> { + 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(DisableExternalNonContainerDatabaseDatabaseManagementRequest o) { + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalNonContainerDatabaseDatabaseManagementRequest 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 DisableExternalNonContainerDatabaseDatabaseManagementRequest + */ + public DisableExternalNonContainerDatabaseDatabaseManagementRequest build() { + DisableExternalNonContainerDatabaseDatabaseManagementRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalPluggableDatabaseDatabaseManagementRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalPluggableDatabaseDatabaseManagementRequest.java new file mode 100644 index 00000000000..f8623a791e5 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/DisableExternalPluggableDatabaseDatabaseManagementRequest.java @@ -0,0 +1,108 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use DisableExternalPluggableDatabaseDatabaseManagementRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class DisableExternalPluggableDatabaseDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalPluggableDatabaseId [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalPluggableDatabaseId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalPluggableDatabaseDatabaseManagementRequest, java.lang.Void> { + 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(DisableExternalPluggableDatabaseDatabaseManagementRequest o) { + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalPluggableDatabaseDatabaseManagementRequest 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 DisableExternalPluggableDatabaseDatabaseManagementRequest + */ + public DisableExternalPluggableDatabaseDatabaseManagementRequest build() { + DisableExternalPluggableDatabaseDatabaseManagementRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalContainerDatabaseDatabaseManagementRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalContainerDatabaseDatabaseManagementRequest.java new file mode 100644 index 00000000000..aae6a805bdf --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalContainerDatabaseDatabaseManagementRequest.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use EnableExternalContainerDatabaseDatabaseManagementRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class EnableExternalContainerDatabaseDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest< + EnableExternalContainerDatabaseDatabaseManagementDetails> { + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * Request to enable the Database Management Service for an external container database. + */ + private EnableExternalContainerDatabaseDatabaseManagementDetails + enableExternalContainerDatabaseDatabaseManagementDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public EnableExternalContainerDatabaseDatabaseManagementDetails getBody$() { + return enableExternalContainerDatabaseDatabaseManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalContainerDatabaseDatabaseManagementRequest, + EnableExternalContainerDatabaseDatabaseManagementDetails> { + 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(EnableExternalContainerDatabaseDatabaseManagementRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + enableExternalContainerDatabaseDatabaseManagementDetails( + o.getEnableExternalContainerDatabaseDatabaseManagementDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalContainerDatabaseDatabaseManagementRequest 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 EnableExternalContainerDatabaseDatabaseManagementRequest + */ + public EnableExternalContainerDatabaseDatabaseManagementRequest build() { + EnableExternalContainerDatabaseDatabaseManagementRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(EnableExternalContainerDatabaseDatabaseManagementDetails body) { + enableExternalContainerDatabaseDatabaseManagementDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalNonContainerDatabaseDatabaseManagementRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalNonContainerDatabaseDatabaseManagementRequest.java new file mode 100644 index 00000000000..20b340bffa8 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalNonContainerDatabaseDatabaseManagementRequest.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use EnableExternalNonContainerDatabaseDatabaseManagementRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class EnableExternalNonContainerDatabaseDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest< + EnableExternalNonContainerDatabaseDatabaseManagementDetails> { + + /** + * The external non-container database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalNonContainerDatabaseId; + + /** + * Request to enable the Database Management Service for an external non-container database. + */ + private EnableExternalNonContainerDatabaseDatabaseManagementDetails + enableExternalNonContainerDatabaseDatabaseManagementDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public EnableExternalNonContainerDatabaseDatabaseManagementDetails getBody$() { + return enableExternalNonContainerDatabaseDatabaseManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalNonContainerDatabaseDatabaseManagementRequest, + EnableExternalNonContainerDatabaseDatabaseManagementDetails> { + 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(EnableExternalNonContainerDatabaseDatabaseManagementRequest o) { + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + enableExternalNonContainerDatabaseDatabaseManagementDetails( + o.getEnableExternalNonContainerDatabaseDatabaseManagementDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalNonContainerDatabaseDatabaseManagementRequest 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 EnableExternalNonContainerDatabaseDatabaseManagementRequest + */ + public EnableExternalNonContainerDatabaseDatabaseManagementRequest build() { + EnableExternalNonContainerDatabaseDatabaseManagementRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(EnableExternalNonContainerDatabaseDatabaseManagementDetails body) { + enableExternalNonContainerDatabaseDatabaseManagementDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalPluggableDatabaseDatabaseManagementRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalPluggableDatabaseDatabaseManagementRequest.java new file mode 100644 index 00000000000..4b7644595f0 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/EnableExternalPluggableDatabaseDatabaseManagementRequest.java @@ -0,0 +1,139 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use EnableExternalPluggableDatabaseDatabaseManagementRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class EnableExternalPluggableDatabaseDatabaseManagementRequest + extends com.oracle.bmc.requests.BmcRequest< + EnableExternalPluggableDatabaseDatabaseManagementDetails> { + + /** + * The ExternalPluggableDatabaseId [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalPluggableDatabaseId; + + /** + * Request to enable the Database Management Service for an external database. + */ + private EnableExternalPluggableDatabaseDatabaseManagementDetails + enableExternalPluggableDatabaseDatabaseManagementDetails; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public EnableExternalPluggableDatabaseDatabaseManagementDetails getBody$() { + return enableExternalPluggableDatabaseDatabaseManagementDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalPluggableDatabaseDatabaseManagementRequest, + EnableExternalPluggableDatabaseDatabaseManagementDetails> { + 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(EnableExternalPluggableDatabaseDatabaseManagementRequest o) { + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + enableExternalPluggableDatabaseDatabaseManagementDetails( + o.getEnableExternalPluggableDatabaseDatabaseManagementDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalPluggableDatabaseDatabaseManagementRequest 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 EnableExternalPluggableDatabaseDatabaseManagementRequest + */ + public EnableExternalPluggableDatabaseDatabaseManagementRequest build() { + EnableExternalPluggableDatabaseDatabaseManagementRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(EnableExternalPluggableDatabaseDatabaseManagementDetails body) { + enableExternalPluggableDatabaseDatabaseManagementDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalContainerDatabaseRequest.java new file mode 100644 index 00000000000..a027c6e8ba7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalContainerDatabaseRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetExternalContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetExternalContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExternalContainerDatabaseRequest, java.lang.Void> { + 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(GetExternalContainerDatabaseRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExternalContainerDatabaseRequest 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 GetExternalContainerDatabaseRequest + */ + public GetExternalContainerDatabaseRequest build() { + GetExternalContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalDatabaseConnectorRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalDatabaseConnectorRequest.java new file mode 100644 index 00000000000..fbb7ff90bf4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalDatabaseConnectorRequest.java @@ -0,0 +1,89 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetExternalDatabaseConnectorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetExternalDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector resource (`ExternalDatabaseConnectorId`). + * + */ + private String externalDatabaseConnectorId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExternalDatabaseConnectorRequest, java.lang.Void> { + 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(GetExternalDatabaseConnectorRequest o) { + externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExternalDatabaseConnectorRequest 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 GetExternalDatabaseConnectorRequest + */ + public GetExternalDatabaseConnectorRequest build() { + GetExternalDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalNonContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalNonContainerDatabaseRequest.java new file mode 100644 index 00000000000..a2351f2db41 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalNonContainerDatabaseRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetExternalNonContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetExternalNonContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The external non-container database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalNonContainerDatabaseId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExternalNonContainerDatabaseRequest, java.lang.Void> { + 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(GetExternalNonContainerDatabaseRequest o) { + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExternalNonContainerDatabaseRequest 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 GetExternalNonContainerDatabaseRequest + */ + public GetExternalNonContainerDatabaseRequest build() { + GetExternalNonContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalPluggableDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalPluggableDatabaseRequest.java new file mode 100644 index 00000000000..45c10405a12 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/GetExternalPluggableDatabaseRequest.java @@ -0,0 +1,87 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use GetExternalPluggableDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class GetExternalPluggableDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalPluggableDatabaseId [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalPluggableDatabaseId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GetExternalPluggableDatabaseRequest, java.lang.Void> { + 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(GetExternalPluggableDatabaseRequest o) { + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetExternalPluggableDatabaseRequest 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 GetExternalPluggableDatabaseRequest + */ + public GetExternalPluggableDatabaseRequest build() { + GetExternalPluggableDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdateHistoryEntriesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdateHistoryEntriesRequest.java index 54ead5d64ab..6b3f6093773 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdateHistoryEntriesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdateHistoryEntriesRequest.java @@ -30,6 +30,7 @@ public class ListCloudVmClusterUpdateHistoryEntriesRequest public enum UpdateType { GiUpgrade("GI_UPGRADE"), GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdatesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdatesRequest.java index 894d5c392c1..eeaf6c82f7a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdatesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListCloudVmClusterUpdatesRequest.java @@ -30,6 +30,7 @@ public class ListCloudVmClusterUpdatesRequest public enum UpdateType { GiUpgrade("GI_UPGRADE"), GiPatch("GI_PATCH"), + OsUpdate("OS_UPDATE"), ; private final String value; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalContainerDatabasesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalContainerDatabasesRequest.java new file mode 100644 index 00000000000..9eaa5f2112b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalContainerDatabasesRequest.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListExternalContainerDatabasesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListExternalContainerDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + **/ + public enum SortBy { + Displayname("DISPLAYNAME"), + Timecreated("TIMECREATED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + /** + * The 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 IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + /** + * A filter to return only resources that match the specified lifecycle state. + */ + private ExternalDatabaseBase.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExternalContainerDatabasesRequest, java.lang.Void> { + 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(ListExternalContainerDatabasesRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExternalContainerDatabasesRequest 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 ListExternalContainerDatabasesRequest + */ + public ListExternalContainerDatabasesRequest build() { + ListExternalContainerDatabasesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalDatabaseConnectorsRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalDatabaseConnectorsRequest.java new file mode 100644 index 00000000000..4558ad09fc3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalDatabaseConnectorsRequest.java @@ -0,0 +1,208 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListExternalDatabaseConnectorsRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListExternalDatabaseConnectorsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the external database whose connectors will be listed. + * + */ + private String externalDatabaseId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + **/ + public enum SortBy { + Displayname("DISPLAYNAME"), + Timecreated("TIMECREATED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + /** + * The 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 IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + /** + * A filter to return only resources that match the specified lifecycle state. + */ + private ExternalDatabaseConnector.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExternalDatabaseConnectorsRequest, java.lang.Void> { + 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(ListExternalDatabaseConnectorsRequest o) { + compartmentId(o.getCompartmentId()); + externalDatabaseId(o.getExternalDatabaseId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExternalDatabaseConnectorsRequest 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 ListExternalDatabaseConnectorsRequest + */ + public ListExternalDatabaseConnectorsRequest build() { + ListExternalDatabaseConnectorsRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalNonContainerDatabasesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalNonContainerDatabasesRequest.java new file mode 100644 index 00000000000..40bffbcef77 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalNonContainerDatabasesRequest.java @@ -0,0 +1,201 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListExternalNonContainerDatabasesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListExternalNonContainerDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + **/ + public enum SortBy { + Displayname("DISPLAYNAME"), + Timecreated("TIMECREATED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + /** + * The 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 IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + /** + * A filter to return only resources that match the specified lifecycle state. + */ + private ExternalDatabaseBase.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExternalNonContainerDatabasesRequest, java.lang.Void> { + 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(ListExternalNonContainerDatabasesRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExternalNonContainerDatabasesRequest 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 ListExternalNonContainerDatabasesRequest + */ + public ListExternalNonContainerDatabasesRequest build() { + ListExternalNonContainerDatabasesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalPluggableDatabasesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalPluggableDatabasesRequest.java new file mode 100644 index 00000000000..8fb6a18ae61 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListExternalPluggableDatabasesRequest.java @@ -0,0 +1,207 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ListExternalPluggableDatabasesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ListExternalPluggableDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The compartment [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String compartmentId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * The maximum number of items to return per page. + */ + private Integer limit; + + /** + * The pagination token to continue listing from. + */ + private String page; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + */ + private SortBy sortBy; + + /** + * The field to sort by. You can provide one sort order (`sortOrder`). + * Default order for TIMECREATED is descending. + * Default order for DISPLAYNAME is ascending. + * The DISPLAYNAME sort order is case sensitive. + * + **/ + public enum SortBy { + Displayname("DISPLAYNAME"), + Timecreated("TIMECREATED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + /** + * The 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 IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + /** + * A filter to return only resources that match the specified lifecycle state. + */ + private ExternalDatabaseBase.LifecycleState lifecycleState; + + /** + * A filter to return only resources that match the entire display name given. The match is not case sensitive. + */ + private String displayName; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListExternalPluggableDatabasesRequest, java.lang.Void> { + 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(ListExternalPluggableDatabasesRequest o) { + compartmentId(o.getCompartmentId()); + opcRequestId(o.getOpcRequestId()); + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + limit(o.getLimit()); + page(o.getPage()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + lifecycleState(o.getLifecycleState()); + displayName(o.getDisplayName()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListExternalPluggableDatabasesRequest 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 ListExternalPluggableDatabasesRequest + */ + public ListExternalPluggableDatabasesRequest build() { + ListExternalPluggableDatabasesRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ScanExternalContainerDatabasePluggableDatabasesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ScanExternalContainerDatabasePluggableDatabasesRequest.java new file mode 100644 index 00000000000..e8d6c92fdde --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ScanExternalContainerDatabasePluggableDatabasesRequest.java @@ -0,0 +1,107 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use ScanExternalContainerDatabasePluggableDatabasesRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class ScanExternalContainerDatabasePluggableDatabasesRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector resource (`ExternalDatabaseConnectorId`). + * + */ + private String externalDatabaseConnectorId; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations (for example, if a resource + * has been deleted and purged from the system, then a retry of the original creation request + * may be rejected). + * + */ + private String opcRetryToken; + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScanExternalContainerDatabasePluggableDatabasesRequest, java.lang.Void> { + 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(ScanExternalContainerDatabasePluggableDatabasesRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScanExternalContainerDatabasePluggableDatabasesRequest 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 ScanExternalContainerDatabasePluggableDatabasesRequest + */ + public ScanExternalContainerDatabasePluggableDatabasesRequest build() { + ScanExternalContainerDatabasePluggableDatabasesRequest request = + buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalContainerDatabaseRequest.java new file mode 100644 index 00000000000..d4c1b5581c1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalContainerDatabaseRequest.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UpdateExternalContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateExternalContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalContainerDatabase [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalContainerDatabaseId; + + /** + * Request to update the properties of an + * {@link #createExternalContainerDatabaseDetails(CreateExternalContainerDatabaseDetailsRequest) createExternalContainerDatabaseDetails} resource. + * + */ + private UpdateExternalContainerDatabaseDetails updateExternalContainerDatabaseDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public UpdateExternalContainerDatabaseDetails getBody$() { + return updateExternalContainerDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExternalContainerDatabaseRequest, + UpdateExternalContainerDatabaseDetails> { + 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(UpdateExternalContainerDatabaseRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + updateExternalContainerDatabaseDetails(o.getUpdateExternalContainerDatabaseDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExternalContainerDatabaseRequest 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 UpdateExternalContainerDatabaseRequest + */ + public UpdateExternalContainerDatabaseRequest build() { + UpdateExternalContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(UpdateExternalContainerDatabaseDetails body) { + updateExternalContainerDatabaseDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalDatabaseConnectorRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalDatabaseConnectorRequest.java new file mode 100644 index 00000000000..ac3de5c94a0 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalDatabaseConnectorRequest.java @@ -0,0 +1,126 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UpdateExternalDatabaseConnectorRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateExternalDatabaseConnectorRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector resource (`ExternalDatabaseConnectorId`). + * + */ + private String externalDatabaseConnectorId; + + /** + * Request to update the properties of an external database connector. + */ + private UpdateExternalDatabaseConnectorDetails updateExternalDatabaseConnectorDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public UpdateExternalDatabaseConnectorDetails getBody$() { + return updateExternalDatabaseConnectorDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExternalDatabaseConnectorRequest, + UpdateExternalDatabaseConnectorDetails> { + 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(UpdateExternalDatabaseConnectorRequest o) { + externalDatabaseConnectorId(o.getExternalDatabaseConnectorId()); + updateExternalDatabaseConnectorDetails(o.getUpdateExternalDatabaseConnectorDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExternalDatabaseConnectorRequest 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 UpdateExternalDatabaseConnectorRequest + */ + public UpdateExternalDatabaseConnectorRequest build() { + UpdateExternalDatabaseConnectorRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(UpdateExternalDatabaseConnectorDetails body) { + updateExternalDatabaseConnectorDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalNonContainerDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalNonContainerDatabaseRequest.java new file mode 100644 index 00000000000..97149417996 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalNonContainerDatabaseRequest.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UpdateExternalNonContainerDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateExternalNonContainerDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The external non-container database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalNonContainerDatabaseId; + + /** + * Request to update the properties of an external non-container database. + */ + private UpdateExternalNonContainerDatabaseDetails updateExternalNonContainerDatabaseDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public UpdateExternalNonContainerDatabaseDetails getBody$() { + return updateExternalNonContainerDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExternalNonContainerDatabaseRequest, + UpdateExternalNonContainerDatabaseDetails> { + 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(UpdateExternalNonContainerDatabaseRequest o) { + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + updateExternalNonContainerDatabaseDetails( + o.getUpdateExternalNonContainerDatabaseDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExternalNonContainerDatabaseRequest 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 UpdateExternalNonContainerDatabaseRequest + */ + public UpdateExternalNonContainerDatabaseRequest build() { + UpdateExternalNonContainerDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(UpdateExternalNonContainerDatabaseDetails body) { + updateExternalNonContainerDatabaseDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalPluggableDatabaseRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalPluggableDatabaseRequest.java new file mode 100644 index 00000000000..4aabd940571 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/UpdateExternalPluggableDatabaseRequest.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.requests; + +import com.oracle.bmc.database.model.*; +/** + * Example: Click here to see how to use UpdateExternalPluggableDatabaseRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateExternalPluggableDatabaseRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The ExternalPluggableDatabaseId [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + */ + private String externalPluggableDatabaseId; + + /** + * Request to update the properties of an external pluggable database resource. + */ + private UpdateExternalPluggableDatabaseDetails updateExternalPluggableDatabaseDetails; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + * parameter to the value of the etag from a previous GET or POST response for that resource. The resource + * will be updated or deleted only if the etag you provide matches the resource's current etag value. + * + */ + private String ifMatch; + + /** + * Unique identifier for the request. + * + */ + private String opcRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public UpdateExternalPluggableDatabaseDetails getBody$() { + return updateExternalPluggableDatabaseDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateExternalPluggableDatabaseRequest, + UpdateExternalPluggableDatabaseDetails> { + 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(UpdateExternalPluggableDatabaseRequest o) { + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + updateExternalPluggableDatabaseDetails(o.getUpdateExternalPluggableDatabaseDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateExternalPluggableDatabaseRequest 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 UpdateExternalPluggableDatabaseRequest + */ + public UpdateExternalPluggableDatabaseRequest build() { + UpdateExternalPluggableDatabaseRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(UpdateExternalPluggableDatabaseDetails body) { + updateExternalPluggableDatabaseDetails(body); + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalContainerDatabaseCompartmentResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalContainerDatabaseCompartmentResponse.java new file mode 100644 index 00000000000..ac45715873e --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalContainerDatabaseCompartmentResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ChangeExternalContainerDatabaseCompartmentResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeExternalContainerDatabaseCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalNonContainerDatabaseCompartmentResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalNonContainerDatabaseCompartmentResponse.java new file mode 100644 index 00000000000..414d2452b21 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalNonContainerDatabaseCompartmentResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ChangeExternalNonContainerDatabaseCompartmentResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeExternalNonContainerDatabaseCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalPluggableDatabaseCompartmentResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalPluggableDatabaseCompartmentResponse.java new file mode 100644 index 00000000000..477c6bc1e83 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ChangeExternalPluggableDatabaseCompartmentResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ChangeExternalPluggableDatabaseCompartmentResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ChangeExternalPluggableDatabaseCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CheckExternalDatabaseConnectorConnectionStatusResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CheckExternalDatabaseConnectorConnectionStatusResponse.java new file mode 100644 index 00000000000..0b094a15574 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CheckExternalDatabaseConnectorConnectionStatusResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CheckExternalDatabaseConnectorConnectionStatusResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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 optimistic concurrency control. See `if-match`. + */ + private String etag; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CheckExternalDatabaseConnectorConnectionStatusResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalContainerDatabaseResponse.java new file mode 100644 index 00000000000..01f751e6932 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalContainerDatabaseResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateExternalContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalContainerDatabase instance. + */ + private ExternalContainerDatabase externalContainerDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateExternalContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalContainerDatabase(o.getExternalContainerDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalDatabaseConnectorResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalDatabaseConnectorResponse.java new file mode 100644 index 00000000000..7db4181b671 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalDatabaseConnectorResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateExternalDatabaseConnectorResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalDatabaseConnector instance. + */ + private ExternalDatabaseConnector externalDatabaseConnector; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateExternalDatabaseConnectorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalDatabaseConnector(o.getExternalDatabaseConnector()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalNonContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalNonContainerDatabaseResponse.java new file mode 100644 index 00000000000..717bf291525 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalNonContainerDatabaseResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateExternalNonContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalNonContainerDatabase instance. + */ + private ExternalNonContainerDatabase externalNonContainerDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateExternalNonContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalNonContainerDatabase(o.getExternalNonContainerDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalPluggableDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalPluggableDatabaseResponse.java new file mode 100644 index 00000000000..4c27bb98abf --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/CreateExternalPluggableDatabaseResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class CreateExternalPluggableDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalPluggableDatabase instance. + */ + private ExternalPluggableDatabase externalPluggableDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(CreateExternalPluggableDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalPluggableDatabase(o.getExternalPluggableDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalContainerDatabaseResponse.java new file mode 100644 index 00000000000..daad242efd1 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalContainerDatabaseResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteExternalContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteExternalContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalDatabaseConnectorResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalDatabaseConnectorResponse.java new file mode 100644 index 00000000000..75d72f967d7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalDatabaseConnectorResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteExternalDatabaseConnectorResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteExternalDatabaseConnectorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalNonContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalNonContainerDatabaseResponse.java new file mode 100644 index 00000000000..2de19f3ac54 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalNonContainerDatabaseResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteExternalNonContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteExternalNonContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalPluggableDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalPluggableDatabaseResponse.java new file mode 100644 index 00000000000..5b39d0dee89 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DeleteExternalPluggableDatabaseResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DeleteExternalPluggableDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DeleteExternalPluggableDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalContainerDatabaseDatabaseManagementResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalContainerDatabaseDatabaseManagementResponse.java new file mode 100644 index 00000000000..4fc86988b1b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalContainerDatabaseDatabaseManagementResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DisableExternalContainerDatabaseDatabaseManagementResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DisableExternalContainerDatabaseDatabaseManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalNonContainerDatabaseDatabaseManagementResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalNonContainerDatabaseDatabaseManagementResponse.java new file mode 100644 index 00000000000..f1829eb6695 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalNonContainerDatabaseDatabaseManagementResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DisableExternalNonContainerDatabaseDatabaseManagementResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DisableExternalNonContainerDatabaseDatabaseManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalPluggableDatabaseDatabaseManagementResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalPluggableDatabaseDatabaseManagementResponse.java new file mode 100644 index 00000000000..1fd768dda91 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/DisableExternalPluggableDatabaseDatabaseManagementResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class DisableExternalPluggableDatabaseDatabaseManagementResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(DisableExternalPluggableDatabaseDatabaseManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalContainerDatabaseDatabaseManagementResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalContainerDatabaseDatabaseManagementResponse.java new file mode 100644 index 00000000000..43861c17890 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalContainerDatabaseDatabaseManagementResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class EnableExternalContainerDatabaseDatabaseManagementResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EnableExternalContainerDatabaseDatabaseManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalNonContainerDatabaseDatabaseManagementResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalNonContainerDatabaseDatabaseManagementResponse.java new file mode 100644 index 00000000000..e4d3806145b --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalNonContainerDatabaseDatabaseManagementResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class EnableExternalNonContainerDatabaseDatabaseManagementResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EnableExternalNonContainerDatabaseDatabaseManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalPluggableDatabaseDatabaseManagementResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalPluggableDatabaseDatabaseManagementResponse.java new file mode 100644 index 00000000000..e692470aa83 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/EnableExternalPluggableDatabaseDatabaseManagementResponse.java @@ -0,0 +1,50 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class EnableExternalPluggableDatabaseDatabaseManagementResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(EnableExternalPluggableDatabaseDatabaseManagementResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalContainerDatabaseResponse.java new file mode 100644 index 00000000000..1c947f8b2e2 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalContainerDatabaseResponse.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetExternalContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalContainerDatabase instance. + */ + private ExternalContainerDatabase externalContainerDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetExternalContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalContainerDatabase(o.getExternalContainerDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalDatabaseConnectorResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalDatabaseConnectorResponse.java new file mode 100644 index 00000000000..0db2406e2dd --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalDatabaseConnectorResponse.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetExternalDatabaseConnectorResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalDatabaseConnector instance. + */ + private ExternalDatabaseConnector externalDatabaseConnector; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetExternalDatabaseConnectorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalDatabaseConnector(o.getExternalDatabaseConnector()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalNonContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalNonContainerDatabaseResponse.java new file mode 100644 index 00000000000..84ef2f51565 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalNonContainerDatabaseResponse.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetExternalNonContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalNonContainerDatabase instance. + */ + private ExternalNonContainerDatabase externalNonContainerDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetExternalNonContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalNonContainerDatabase(o.getExternalNonContainerDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalPluggableDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalPluggableDatabaseResponse.java new file mode 100644 index 00000000000..09f0a1b3967 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/GetExternalPluggableDatabaseResponse.java @@ -0,0 +1,49 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class GetExternalPluggableDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalPluggableDatabase instance. + */ + private ExternalPluggableDatabase externalPluggableDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(GetExternalPluggableDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalPluggableDatabase(o.getExternalPluggableDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalContainerDatabasesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalContainerDatabasesResponse.java new file mode 100644 index 00000000000..0ddc984e1d3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalContainerDatabasesResponse.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListExternalContainerDatabasesResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * 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 ExternalContainerDatabaseSummary 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(ListExternalContainerDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalDatabaseConnectorsResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalDatabaseConnectorsResponse.java new file mode 100644 index 00000000000..3029bc9ace3 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalDatabaseConnectorsResponse.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListExternalDatabaseConnectorsResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * 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 ExternalDatabaseConnectorSummary 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(ListExternalDatabaseConnectorsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalNonContainerDatabasesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalNonContainerDatabasesResponse.java new file mode 100644 index 00000000000..b2f9c5722d4 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalNonContainerDatabasesResponse.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListExternalNonContainerDatabasesResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * 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 ExternalNonContainerDatabaseSummary 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(ListExternalNonContainerDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalPluggableDatabasesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalPluggableDatabasesResponse.java new file mode 100644 index 00000000000..4602a971336 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ListExternalPluggableDatabasesResponse.java @@ -0,0 +1,53 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ListExternalPluggableDatabasesResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * 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 ExternalPluggableDatabaseSummary 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(ListExternalPluggableDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + items(o.getItems()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/ScanExternalContainerDatabasePluggableDatabasesResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ScanExternalContainerDatabasePluggableDatabasesResponse.java new file mode 100644 index 00000000000..5b952852257 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/ScanExternalContainerDatabasePluggableDatabasesResponse.java @@ -0,0 +1,44 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class ScanExternalContainerDatabasePluggableDatabasesResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(ScanExternalContainerDatabasePluggableDatabasesResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalContainerDatabaseResponse.java new file mode 100644 index 00000000000..7060e2096f7 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalContainerDatabaseResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateExternalContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * 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 optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * The returned ExternalContainerDatabase instance. + */ + private ExternalContainerDatabase externalContainerDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateExternalContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + etag(o.getEtag()); + externalContainerDatabase(o.getExternalContainerDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalDatabaseConnectorResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalDatabaseConnectorResponse.java new file mode 100644 index 00000000000..f12efa81c86 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalDatabaseConnectorResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateExternalDatabaseConnectorResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalDatabaseConnector instance. + */ + private ExternalDatabaseConnector externalDatabaseConnector; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateExternalDatabaseConnectorResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalDatabaseConnector(o.getExternalDatabaseConnector()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalNonContainerDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalNonContainerDatabaseResponse.java new file mode 100644 index 00000000000..566255a09ff --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalNonContainerDatabaseResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateExternalNonContainerDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalNonContainerDatabase instance. + */ + private ExternalNonContainerDatabase externalNonContainerDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateExternalNonContainerDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalNonContainerDatabase(o.getExternalNonContainerDatabase()); + + return this; + } + } +} diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalPluggableDatabaseResponse.java b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalPluggableDatabaseResponse.java new file mode 100644 index 00000000000..12f6d4c1492 --- /dev/null +++ b/bmc-database/src/main/java/com/oracle/bmc/database/responses/UpdateExternalPluggableDatabaseResponse.java @@ -0,0 +1,56 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.database.responses; + +import com.oracle.bmc.database.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateExternalPluggableDatabaseResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + * + */ + private String opcWorkRequestId; + + /** + * For optimistic concurrency control. See `if-match`. + */ + private String etag; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + * a particular request, please provide the request ID. + * + */ + private String opcRequestId; + + /** + * The returned ExternalPluggableDatabase instance. + */ + private ExternalPluggableDatabase externalPluggableDatabase; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateExternalPluggableDatabaseResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcWorkRequestId(o.getOpcWorkRequestId()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + externalPluggableDatabase(o.getExternalPluggableDatabase()); + + return this; + } + } +} diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 5ee03a8668d..8d7aa897878 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java index 292b7fab0c3..50db76d10d4 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java @@ -182,6 +182,43 @@ public DataCatalogAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DataCatalogAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DataCatalogAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DataCatalogAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 9573370d386..1f5d50bc4a2 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java index 4c8a3bca04c..8687e72e577 100644 --- a/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java +++ b/bmc-dataflow/src/main/java/com/oracle/bmc/dataflow/DataFlowAsyncClient.java @@ -182,6 +182,43 @@ public DataFlowAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DataFlowAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DataFlowAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DataFlowAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 8e7821c2fc7..f4261603a4a 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/DataIntegrationAsyncClient.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/DataIntegrationAsyncClient.java index c0e5ae85538..48c6fd78bfc 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/DataIntegrationAsyncClient.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/DataIntegrationAsyncClient.java @@ -183,6 +183,43 @@ public DataIntegrationAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DataIntegrationAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public DataIntegrationAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public DataIntegrationAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 01adc477926..7102451f7d8 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java index dbcc37cc6bd..88d7bc09c61 100644 --- a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/DataSafeAsyncClient.java @@ -182,6 +182,43 @@ public DataSafeAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DataSafeAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DataSafeAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DataSafeAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index d986e466e63..4523d9fb142 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java index 81774153f41..e5ccb2a3009 100644 --- a/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java +++ b/bmc-datascience/src/main/java/com/oracle/bmc/datascience/DataScienceAsyncClient.java @@ -182,6 +182,43 @@ public DataScienceAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DataScienceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DataScienceAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DataScienceAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index a91c9d0eec8..d9e70b57eed 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsAsyncClient.java b/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsAsyncClient.java index f68e3bf9f44..0acb4b5fe1b 100644 --- a/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsAsyncClient.java +++ b/bmc-dns/src/main/java/com/oracle/bmc/dns/DnsAsyncClient.java @@ -182,6 +182,43 @@ public DnsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DnsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DnsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DnsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index 9cbd7953ccf..38ad5a780bf 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java index 7ddb27f7421..486ea453284 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ApplianceExportJobAsyncClient.java @@ -183,6 +183,43 @@ public ApplianceExportJobAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ApplianceExportJobAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public ApplianceExportJobAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public ApplianceExportJobAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java index c91db030563..9b389f903b7 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/ShippingVendorsAsyncClient.java @@ -183,6 +183,43 @@ public ShippingVendorsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ShippingVendorsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public ShippingVendorsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public ShippingVendorsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java index dec44ce3784..b6612184f76 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceAsyncClient.java @@ -183,6 +183,43 @@ public TransferApplianceAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public TransferApplianceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public TransferApplianceAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public TransferApplianceAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java index 95eb65a4288..0d21d0df045 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferApplianceEntitlementAsyncClient.java @@ -183,6 +183,43 @@ public TransferApplianceEntitlementAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public TransferApplianceEntitlementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public TransferApplianceEntitlementAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public TransferApplianceEntitlementAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java index f248cc92185..28e9bd21196 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferDeviceAsyncClient.java @@ -183,6 +183,43 @@ public TransferDeviceAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public TransferDeviceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public TransferDeviceAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public TransferDeviceAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java index e769b1e0a96..908a33f8847 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferJobAsyncClient.java @@ -183,6 +183,43 @@ public TransferJobAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public TransferJobAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public TransferJobAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public TransferJobAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java index da809c2c731..40eac51e74b 100644 --- a/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java +++ b/bmc-dts/src/main/java/com/oracle/bmc/dts/TransferPackageAsyncClient.java @@ -183,6 +183,43 @@ public TransferPackageAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public TransferPackageAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public TransferPackageAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public TransferPackageAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index 6a082b656a4..058518f57be 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java b/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java index b270e5cc659..3f7e63c36b1 100644 --- a/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java +++ b/bmc-email/src/main/java/com/oracle/bmc/email/EmailAsyncClient.java @@ -182,6 +182,43 @@ public EmailAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public EmailAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public EmailAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public EmailAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index f9e4c1f7f12..762ea544aed 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -15,7 +15,7 @@ https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm - 1.64 + 1.68 @@ -25,17 +25,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 1.30.1 + 1.31.0 com.fasterxml.jackson.datatype diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index e710587d1e3..260e8347031 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java b/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java index 417dd00e123..13e7b893ec2 100644 --- a/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java +++ b/bmc-events/src/main/java/com/oracle/bmc/events/EventsAsyncClient.java @@ -182,6 +182,43 @@ public EventsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public EventsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public EventsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public EventsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 7330b38805a..ee2e31497a2 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -31,7 +31,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.30.1 + 1.31.0 pom import diff --git a/bmc-examples/src/main/java/ObjectStorageAsyncExample.java b/bmc-examples/src/main/java/ObjectStorageAsyncExample.java index 8017a21a3bc..4a20ea54e5e 100644 --- a/bmc-examples/src/main/java/ObjectStorageAsyncExample.java +++ b/bmc-examples/src/main/java/ObjectStorageAsyncExample.java @@ -34,6 +34,7 @@ public static void main(String[] args) throws Exception { final AuthenticationDetailsProvider provider = new ConfigFileAuthenticationDetailsProvider(configFile); ObjectStorageAsync client = new ObjectStorageAsyncClient(provider); + client.setRegion(Region.US_PHOENIX_1); ResponseHandler namespaceHandler = diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 3b8fa9a2898..02db2c1e9f3 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java index d67140cb9a7..5078b2a3b72 100644 --- a/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java +++ b/bmc-filestorage/src/main/java/com/oracle/bmc/filestorage/FileStorageAsyncClient.java @@ -182,6 +182,43 @@ public FileStorageAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public FileStorageAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public FileStorageAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public FileStorageAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 2d4b3012e0e..3739fd44f14 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 1.30.1 + 1.31.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 93cb9d3d00c..d50f6b9027e 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java index 04ace0ff7ca..b28a37e693c 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsInvokeAsyncClient.java @@ -182,6 +182,43 @@ public FunctionsInvokeAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public FunctionsInvokeAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public FunctionsInvokeAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public FunctionsInvokeAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java index 943758bce35..6564517bda7 100644 --- a/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java +++ b/bmc-functions/src/main/java/com/oracle/bmc/functions/FunctionsManagementAsyncClient.java @@ -182,6 +182,43 @@ public FunctionsManagementAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public FunctionsManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public FunctionsManagementAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public FunctionsManagementAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 7f27cfd943d..372dce3fdf0 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-healthchecks @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-healthchecks/src/main/java/com/oracle/bmc/healthchecks/HealthChecksAsyncClient.java b/bmc-healthchecks/src/main/java/com/oracle/bmc/healthchecks/HealthChecksAsyncClient.java index 17ccd342da7..a3c3554ce4d 100644 --- a/bmc-healthchecks/src/main/java/com/oracle/bmc/healthchecks/HealthChecksAsyncClient.java +++ b/bmc-healthchecks/src/main/java/com/oracle/bmc/healthchecks/HealthChecksAsyncClient.java @@ -183,6 +183,43 @@ public HealthChecksAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public HealthChecksAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public HealthChecksAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public HealthChecksAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 893233b4b0f..65ce065a751 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-identity/src/main/java/com/oracle/bmc/identity/IdentityAsyncClient.java b/bmc-identity/src/main/java/com/oracle/bmc/identity/IdentityAsyncClient.java index 3b7f46cd29e..1dd2d1205f3 100644 --- a/bmc-identity/src/main/java/com/oracle/bmc/identity/IdentityAsyncClient.java +++ b/bmc-identity/src/main/java/com/oracle/bmc/identity/IdentityAsyncClient.java @@ -181,6 +181,43 @@ public IdentityAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public IdentityAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -195,7 +232,7 @@ public IdentityAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -273,6 +310,7 @@ public IdentityAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 2678dbce8e4..c06a94bc6db 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java index 101661e4f8c..2673dadebef 100644 --- a/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java +++ b/bmc-integration/src/main/java/com/oracle/bmc/integration/IntegrationInstanceAsyncClient.java @@ -182,6 +182,43 @@ public IntegrationInstanceAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public IntegrationInstanceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public IntegrationInstanceAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public IntegrationInstanceAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index d6eff858917..49d3863b1e4 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-keymanagement @@ -17,7 +17,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsCryptoAsyncClient.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsCryptoAsyncClient.java index b0c16148705..d17120e76de 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsCryptoAsyncClient.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsCryptoAsyncClient.java @@ -182,6 +182,43 @@ public KmsCryptoAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public KmsCryptoAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public KmsCryptoAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsManagementAsyncClient.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsManagementAsyncClient.java index 1e504a4ca76..123ee816892 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsManagementAsyncClient.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsManagementAsyncClient.java @@ -182,6 +182,43 @@ public KmsManagementAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public KmsManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public KmsManagementAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); diff --git a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java index fe32150d73e..d14c9a371cd 100644 --- a/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java +++ b/bmc-keymanagement/src/main/java/com/oracle/bmc/keymanagement/KmsVaultAsyncClient.java @@ -182,6 +182,43 @@ public KmsVaultAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public KmsVaultAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public KmsVaultAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public KmsVaultAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 6eac8d94fe4..cbcd7229921 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-limits/src/main/java/com/oracle/bmc/limits/LimitsAsyncClient.java b/bmc-limits/src/main/java/com/oracle/bmc/limits/LimitsAsyncClient.java index 6c22f252130..8c4d9d4ba48 100644 --- a/bmc-limits/src/main/java/com/oracle/bmc/limits/LimitsAsyncClient.java +++ b/bmc-limits/src/main/java/com/oracle/bmc/limits/LimitsAsyncClient.java @@ -182,6 +182,43 @@ public LimitsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public LimitsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public LimitsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public LimitsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-limits/src/main/java/com/oracle/bmc/limits/QuotasAsyncClient.java b/bmc-limits/src/main/java/com/oracle/bmc/limits/QuotasAsyncClient.java index 716c924728b..87ae1bf120b 100644 --- a/bmc-limits/src/main/java/com/oracle/bmc/limits/QuotasAsyncClient.java +++ b/bmc-limits/src/main/java/com/oracle/bmc/limits/QuotasAsyncClient.java @@ -182,6 +182,43 @@ public QuotasAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public QuotasAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public QuotasAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public QuotasAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index f1a0d1977e8..65c1d8b152c 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/LoadBalancerAsyncClient.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/LoadBalancerAsyncClient.java index 26af25036a5..58086992804 100644 --- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/LoadBalancerAsyncClient.java +++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/LoadBalancerAsyncClient.java @@ -182,6 +182,43 @@ public LoadBalancerAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public LoadBalancerAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public LoadBalancerAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public LoadBalancerAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index ee6e2a79b17..fd14a153290 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java index dc159293eba..57f186cf0c4 100644 --- a/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java +++ b/bmc-loganalytics/src/main/java/com/oracle/bmc/loganalytics/LogAnalyticsAsyncClient.java @@ -183,6 +183,43 @@ public LogAnalyticsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public LogAnalyticsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public LogAnalyticsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public LogAnalyticsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 95a230ed28e..21f2c3f10fe 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java index 5298ff3f491..69818676d85 100644 --- a/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java +++ b/bmc-logging/src/main/java/com/oracle/bmc/logging/LoggingManagementAsyncClient.java @@ -182,6 +182,43 @@ public LoggingManagementAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public LoggingManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public LoggingManagementAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public LoggingManagementAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 290cc92b005..336617e7a24 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java index 8c36e144e5e..c25fe415e25 100644 --- a/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java +++ b/bmc-loggingingestion/src/main/java/com/oracle/bmc/loggingingestion/LoggingAsyncClient.java @@ -183,6 +183,43 @@ public LoggingAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public LoggingAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public LoggingAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public LoggingAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 8f7640254ca..121e1650b01 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java index 3f6e66562aa..33fa8062984 100644 --- a/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java +++ b/bmc-loggingsearch/src/main/java/com/oracle/bmc/loggingsearch/LogSearchAsyncClient.java @@ -182,6 +182,43 @@ public LogSearchAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public LogSearchAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public LogSearchAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public LogSearchAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 2930b4a11bb..3eddda6cb08 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java index 0d583405de3..2f8a76561ad 100644 --- a/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java +++ b/bmc-managementagent/src/main/java/com/oracle/bmc/managementagent/ManagementAgentAsyncClient.java @@ -183,6 +183,43 @@ public ManagementAgentAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ManagementAgentAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public ManagementAgentAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public ManagementAgentAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 4b315b05413..a564044f3e4 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java b/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java index 36978f29099..fc8661dc3f5 100644 --- a/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java +++ b/bmc-managementdashboard/src/main/java/com/oracle/bmc/managementdashboard/DashxApisAsyncClient.java @@ -183,6 +183,43 @@ public DashxApisAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DashxApisAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public DashxApisAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public DashxApisAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index f6960a45f51..5592fd03dcd 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-marketplace/src/main/java/com/oracle/bmc/marketplace/MarketplaceAsyncClient.java b/bmc-marketplace/src/main/java/com/oracle/bmc/marketplace/MarketplaceAsyncClient.java index 8792064aa47..af08027fa20 100644 --- a/bmc-marketplace/src/main/java/com/oracle/bmc/marketplace/MarketplaceAsyncClient.java +++ b/bmc-marketplace/src/main/java/com/oracle/bmc/marketplace/MarketplaceAsyncClient.java @@ -182,6 +182,43 @@ public MarketplaceAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public MarketplaceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public MarketplaceAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public MarketplaceAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 09589d50b98..5cdffcdec82 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/MonitoringAsyncClient.java b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/MonitoringAsyncClient.java index 59f10fb9b9e..3ac2461def1 100644 --- a/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/MonitoringAsyncClient.java +++ b/bmc-monitoring/src/main/java/com/oracle/bmc/monitoring/MonitoringAsyncClient.java @@ -182,6 +182,43 @@ public MonitoringAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public MonitoringAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public MonitoringAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public MonitoringAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 4f5753e4a17..9f051ef6fa5 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/ChannelsAsyncClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/ChannelsAsyncClient.java index 8d11fd04c3d..eecec92c643 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/ChannelsAsyncClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/ChannelsAsyncClient.java @@ -182,6 +182,43 @@ public ChannelsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ChannelsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public ChannelsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public ChannelsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java index ee6e1b31008..ec30ef3c11e 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java @@ -182,6 +182,43 @@ public DbBackupsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DbBackupsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DbBackupsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DbBackupsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbSystemAsyncClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbSystemAsyncClient.java index af92ce2851c..ba7eaee47f6 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbSystemAsyncClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbSystemAsyncClient.java @@ -182,6 +182,43 @@ public DbSystemAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public DbSystemAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public DbSystemAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public DbSystemAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/MysqlaasAsyncClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/MysqlaasAsyncClient.java index d3e6f8b95a3..e2e1333b56f 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/MysqlaasAsyncClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/MysqlaasAsyncClient.java @@ -182,6 +182,43 @@ public MysqlaasAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public MysqlaasAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public MysqlaasAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public MysqlaasAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/WorkRequestsAsyncClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/WorkRequestsAsyncClient.java index 00c83b528a8..bceb10336f2 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/WorkRequestsAsyncClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/WorkRequestsAsyncClient.java @@ -182,6 +182,43 @@ public WorkRequestsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public WorkRequestsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public WorkRequestsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public WorkRequestsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 851435855d0..e864e78ff3d 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-nosql/src/main/java/com/oracle/bmc/nosql/NosqlAsyncClient.java b/bmc-nosql/src/main/java/com/oracle/bmc/nosql/NosqlAsyncClient.java index 9e2d9fb286f..65b3fc76a0e 100644 --- a/bmc-nosql/src/main/java/com/oracle/bmc/nosql/NosqlAsyncClient.java +++ b/bmc-nosql/src/main/java/com/oracle/bmc/nosql/NosqlAsyncClient.java @@ -182,6 +182,43 @@ public NosqlAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public NosqlAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public NosqlAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public NosqlAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 82c8ce14acc..577046b2478 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.30.1 + 1.31.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 1.30.1 + 1.31.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index e84552b5f69..f9a73cf8717 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.30.1 + 1.31.0 ../pom.xml @@ -19,12 +19,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 1.30.1 + 1.31.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/MultipartObjectAssembler.java b/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/MultipartObjectAssembler.java index 3c0c8b464d8..2b36196c803 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/MultipartObjectAssembler.java +++ b/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/MultipartObjectAssembler.java @@ -17,6 +17,7 @@ import com.oracle.bmc.objectstorage.model.CreateMultipartUploadDetails; import com.oracle.bmc.objectstorage.model.MultipartUpload; import com.oracle.bmc.objectstorage.model.MultipartUploadPartSummary; +import com.oracle.bmc.objectstorage.model.StorageTier; import com.oracle.bmc.objectstorage.requests.AbortMultipartUploadRequest; import com.oracle.bmc.objectstorage.requests.CommitMultipartUploadRequest; import com.oracle.bmc.objectstorage.requests.CreateMultipartUploadRequest; @@ -57,6 +58,7 @@ public class MultipartObjectAssembler { private final String namespaceName; private final String bucketName; private final String objectName; + private final StorageTier storageTier; private final Consumer invocationCallback; private final boolean allowOverwrite; private final ExecutorService executorService; @@ -98,6 +100,7 @@ public MultipartObjectAssembler( namespaceName, bucketName, objectName, + StorageTier.Standard, allowOverwrite, executorService, null /* opcClientRequestId */, @@ -113,6 +116,7 @@ private MultipartObjectAssembler( String namespaceName, String bucketName, String objectName, + StorageTier storageTier, boolean allowOverwrite, ExecutorService executorService, String opcClientRequestId, @@ -124,6 +128,7 @@ private MultipartObjectAssembler( this.namespaceName = namespaceName; this.bucketName = bucketName; this.objectName = objectName; + this.storageTier = storageTier; this.allowOverwrite = allowOverwrite; this.executorService = executorService; this.opcClientRequestId = opcClientRequestId; @@ -165,6 +170,7 @@ public synchronized MultipartManifest newRequest( .metadata(opcMeta) .cacheControl(cacheControl) .contentDisposition(contentDisposition) + .storageTier(storageTier) .build()) .opcClientRequestId(createClientRequestId("-create")) .build()); diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/UploadManager.java b/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/UploadManager.java index f25a529cf81..4ac275c8146 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/UploadManager.java +++ b/bmc-objectstorage/bmc-objectstorage-extensions/src/main/java/com/oracle/bmc/objectstorage/transfer/UploadManager.java @@ -283,6 +283,7 @@ protected MultipartObjectAssembler createAssembler( .invocationCallback(request.getInvocationCallback()) .namespaceName(request.getNamespaceName()) .objectName(request.getObjectName()) + .storageTier(request.getStorageTier()) .opcClientRequestId(request.getOpcClientRequestId()) .service(objectStorage) .cacheControl(request.getCacheControl()) diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java b/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java index 25fcfc361e0..f28a9eb9f97 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java +++ b/bmc-objectstorage/bmc-objectstorage-extensions/src/test/java/com/oracle/bmc/objectstorage/transfer/UploadManagerTest.java @@ -25,6 +25,7 @@ import com.oracle.bmc.objectstorage.internal.http.CreateMultipartUploadConverter; import com.oracle.bmc.objectstorage.internal.http.UploadPartConverter; import com.oracle.bmc.objectstorage.model.MultipartUpload; +import com.oracle.bmc.objectstorage.model.StorageTier; import com.oracle.bmc.objectstorage.requests.AbortMultipartUploadRequest; import com.oracle.bmc.objectstorage.requests.CommitMultipartUploadRequest; import com.oracle.bmc.objectstorage.requests.CreateMultipartUploadRequest; @@ -715,6 +716,7 @@ private UploadRequest createUploadRequest( .namespaceName(NAMESPACE_NAME) .bucketName(BUCKET_NAME) .objectName(OBJECT_NAME) + .storageTier(StorageTier.InfrequentAccess) .retryConfiguration(retryConfiguration) .build(); return UploadRequest.builder(body, CONTENT_LENGTH) diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index d6f45a39dc3..dab54fcad9f 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.30.1 + 1.31.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java index 68da9a6f31a..f62cd17d415 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorage.java @@ -355,6 +355,9 @@ GetPreauthenticatedRequestResponse getPreauthenticatedRequest( * Gets a list of all BucketSummary items in a compartment. A BucketSummary contains only summary fields for the bucket * and does not contain fields like the user-defined metadata. *

+ * ListBuckets returns a BucketSummary containing at most 1000 buckets. To paginate through more buckets, use the returned + * `opc-next-page` value with the `page` request parameter. + *

* To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, * talk to an administrator. If you are an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). @@ -393,6 +396,9 @@ ListMultipartUploadPartsResponse listMultipartUploadParts( /** * Lists the object versions in a bucket. *

+ * ListObjectVersions returns an ObjectVersionCollection containing at most 1000 object versions. To paginate through + * more object versions, use the returned `opc-next-page` value with the `page` request parameter. + *

* To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, * talk to an administrator. If you are an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). @@ -406,7 +412,12 @@ ListMultipartUploadPartsResponse listMultipartUploadParts( ListObjectVersionsResponse listObjectVersions(ListObjectVersionsRequest request); /** - * Lists the objects in a bucket. + * Lists the objects in a bucket. By default, ListObjects returns object names only. See the `fields` + * parameter for other fields that you can optionally include in ListObjects response. + *

+ * ListObjects returns at most 1000 objects. To paginate through more objects, use the returned 'nextStartWith' + * value with the 'start' parameter. To filter which objects ListObjects returns, use the 'start' and 'end' + * parameters. *

* To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, * talk to an administrator. If you are an administrator who needs to write policies to give users access, see @@ -670,6 +681,17 @@ PutObjectLifecyclePolicyResponse putObjectLifecyclePolicy( */ UpdateNamespaceMetadataResponse updateNamespaceMetadata(UpdateNamespaceMetadataRequest request); + /** + * Changes the storage tier of the object specified by the objectName parameter. + * + * @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. + * + * Example: Click here to see how to use UpdateObjectStorageTier API. + */ + UpdateObjectStorageTierResponse updateObjectStorageTier(UpdateObjectStorageTierRequest request); + /** * Updates the specified retention rule. Rule changes take effect typically within 30 seconds. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java index f29467d57bd..3fa3c1b1d00 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsync.java @@ -494,6 +494,9 @@ java.util.concurrent.Future headObject( * Gets a list of all BucketSummary items in a compartment. A BucketSummary contains only summary fields for the bucket * and does not contain fields like the user-defined metadata. *

+ * ListBuckets returns a BucketSummary containing at most 1000 buckets. To paginate through more buckets, use the returned + * `opc-next-page` value with the `page` request parameter. + *

* To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, * talk to an administrator. If you are an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). @@ -547,6 +550,9 @@ java.util.concurrent.Future listMultipartUploads( /** * Lists the object versions in a bucket. *

+ * ListObjectVersions returns an ObjectVersionCollection containing at most 1000 object versions. To paginate through + * more object versions, use the returned `opc-next-page` value with the `page` request parameter. + *

* To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, * talk to an administrator. If you are an administrator who needs to write policies to give users access, see * [Getting Started with Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). @@ -566,7 +572,12 @@ java.util.concurrent.Future listObjectVersions( handler); /** - * Lists the objects in a bucket. + * Lists the objects in a bucket. By default, ListObjects returns object names only. See the `fields` + * parameter for other fields that you can optionally include in ListObjects response. + *

+ * ListObjects returns at most 1000 objects. To paginate through more objects, use the returned 'nextStartWith' + * value with the 'start' parameter. To filter which objects ListObjects returns, use the 'start' and 'end' + * parameters. *

* To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized, * talk to an administrator. If you are an administrator who needs to write policies to give users access, see @@ -894,6 +905,23 @@ java.util.concurrent.Future updateNamespaceMeta UpdateNamespaceMetadataRequest, UpdateNamespaceMetadataResponse> handler); + /** + * Changes the storage tier of the object specified by the objectName parameter. + * + * + * @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 updateObjectStorageTier( + UpdateObjectStorageTierRequest request, + com.oracle.bmc.responses.AsyncHandler< + UpdateObjectStorageTierRequest, UpdateObjectStorageTierResponse> + handler); + /** * Updates the specified retention rule. Rule changes take effect typically within 30 seconds. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java index 38151d6c416..208d86e553b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageAsyncClient.java @@ -182,6 +182,43 @@ public ObjectStorageAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ObjectStorageAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public ObjectStorageAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .defaultConfigurator( new com.oracle.bmc.http.DefaultConfigurator.NonBuffering()) .clientConfigurator(clientConfigurator) @@ -276,6 +313,7 @@ public ObjectStorageAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } @@ -2212,6 +2250,47 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future updateObjectStorageTier( + UpdateObjectStorageTierRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateObjectStorageTierRequest, UpdateObjectStorageTierResponse> + handler) { + LOG.trace("Called async updateObjectStorageTier"); + final UpdateObjectStorageTierRequest interceptedRequest = + UpdateObjectStorageTierConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateObjectStorageTierConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, UpdateObjectStorageTierResponse> + transformer = UpdateObjectStorageTierConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + UpdateObjectStorageTierRequest, UpdateObjectStorageTierResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateObjectStorageTierRequest, UpdateObjectStorageTierResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateObjectStorageTierRequest, UpdateObjectStorageTierResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future updateRetentionRule( UpdateRetentionRuleRequest request, diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java index f1053163dbb..790c3b7f3c1 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/ObjectStorageClient.java @@ -1875,6 +1875,39 @@ public UpdateNamespaceMetadataResponse updateNamespaceMetadata( }); } + @Override + public UpdateObjectStorageTierResponse updateObjectStorageTier( + UpdateObjectStorageTierRequest request) { + LOG.trace("Called updateObjectStorageTier"); + final UpdateObjectStorageTierRequest interceptedRequest = + UpdateObjectStorageTierConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateObjectStorageTierConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateObjectStorageTierConverter.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.post( + ib, + retriedRequest.getUpdateObjectStorageTierDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public UpdateRetentionRuleResponse updateRetentionRule(UpdateRetentionRuleRequest request) { LOG.trace("Called updateRetentionRule"); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java index 30ad45f2512..d268260c7aa 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/GetObjectConverter.java @@ -348,6 +348,18 @@ public com.oracle.bmc.objectstorage.responses.GetObjectResponse apply( java.util.Date.class)); } + com.google.common.base.Optional> + storageTierHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "storage-tier"); + if (storageTierHeader.isPresent()) { + builder.storageTier( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "storage-tier", + storageTierHeader.get().get(0), + StorageTier.class)); + } + com.google.common.base.Optional> archivalStateHeader = com.oracle.bmc.http.internal.HeaderUtils.get( @@ -357,7 +369,7 @@ public com.oracle.bmc.objectstorage.responses.GetObjectResponse apply( com.oracle.bmc.http.internal.HeaderUtils.toValue( "archival-state", archivalStateHeader.get().get(0), - String.class)); + ArchivalState.class)); } com.google.common.base.Optional> diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java index 068d0234c69..c1b925839ab 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/HeadObjectConverter.java @@ -281,6 +281,18 @@ public com.oracle.bmc.objectstorage.responses.HeadObjectResponse apply( java.util.Date.class)); } + com.google.common.base.Optional> + storageTierHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "storage-tier"); + if (storageTierHeader.isPresent()) { + builder.storageTier( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "storage-tier", + storageTierHeader.get().get(0), + StorageTier.class)); + } + com.google.common.base.Optional> archivalStateHeader = com.oracle.bmc.http.internal.HeaderUtils.get( @@ -290,7 +302,7 @@ public com.oracle.bmc.objectstorage.responses.HeadObjectResponse apply( com.oracle.bmc.http.internal.HeaderUtils.toValue( "archival-state", archivalStateHeader.get().get(0), - String.class)); + ArchivalState.class)); } com.google.common.base.Optional> diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/PutObjectConverter.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/PutObjectConverter.java index c612d63fabd..c463c3f8092 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/PutObjectConverter.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/PutObjectConverter.java @@ -108,6 +108,10 @@ public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( ib.header("opc-sse-customer-key-sha256", request.getOpcSseCustomerKeySha256()); } + if (request.getStorageTier() != null) { + ib.header("storage-tier", request.getStorageTier().getValue()); + } + if (request.getOpcMeta() != null) { for (java.util.Map.Entry header : request.getOpcMeta().entrySet()) { ib.header(header.getKey(), header.getValue()); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/UpdateObjectStorageTierConverter.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/UpdateObjectStorageTierConverter.java new file mode 100644 index 00000000000..7a9f86f8395 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/internal/http/UpdateObjectStorageTierConverter.java @@ -0,0 +1,132 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.objectstorage.model.*; +import com.oracle.bmc.objectstorage.requests.*; +import com.oracle.bmc.objectstorage.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.extern.slf4j.Slf4j +public class UpdateObjectStorageTierConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.objectstorage.requests.UpdateObjectStorageTierRequest + interceptRequest( + com.oracle.bmc.objectstorage.requests.UpdateObjectStorageTierRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.objectstorage.requests.UpdateObjectStorageTierRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getNamespaceName(), "namespaceName must not be blank"); + Validate.notBlank(request.getBucketName(), "bucketName must not be blank"); + Validate.notNull( + request.getUpdateObjectStorageTierDetails(), + "updateObjectStorageTierDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/") + .path("n") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getNamespaceName())) + .path("b") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getBucketName())) + .path("actions") + .path("updateObjectStorageTier"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getOpcClientRequestId() != null) { + ib.header("opc-client-request-id", request.getOpcClientRequestId()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.objectstorage.responses.UpdateObjectStorageTierResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.objectstorage.responses.UpdateObjectStorageTierResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.objectstorage.responses + .UpdateObjectStorageTierResponse>() { + @Override + public com.oracle.bmc.objectstorage.responses + .UpdateObjectStorageTierResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.objectstorage.responses.UpdateObjectStorageTierResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.objectstorage.responses + .UpdateObjectStorageTierResponse.Builder + builder = + com.oracle.bmc.objectstorage.responses + .UpdateObjectStorageTierResponse.builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + com.google.common.base.Optional> + opcClientRequestIdHeader = + com.oracle.bmc.http.internal.HeaderUtils.get( + headers, "opc-client-request-id"); + if (opcClientRequestIdHeader.isPresent()) { + builder.opcClientRequestId( + com.oracle.bmc.http.internal.HeaderUtils.toValue( + "opc-client-request-id", + opcClientRequestIdHeader.get().get(0), + String.class)); + } + + 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.oracle.bmc.objectstorage.responses + .UpdateObjectStorageTierResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ArchivalState.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ArchivalState.java new file mode 100644 index 00000000000..1dd328feebd --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ArchivalState.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * Archival state of an object which is in Archive tier. + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.extern.slf4j.Slf4j +public enum ArchivalState { + Archived("Archived"), + Restoring("Restoring"), + Restored("Restored"), + + /** + * 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 (ArchivalState v : ArchivalState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + ArchivalState(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ArchivalState create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'ArchivalState', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java index c8cc21cfab9..400a9fc233a 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/Bucket.java @@ -279,7 +279,7 @@ public static Builder builder() { } /** - * The Object Storage namespace in which the bucket lives. + * The Object Storage namespace in which the bucket resides. **/ @com.fasterxml.jackson.annotation.JsonProperty("namespace") String namespace; @@ -384,10 +384,10 @@ public static PublicAccessType create(String key) { @com.fasterxml.jackson.annotation.JsonProperty("publicAccessType") PublicAccessType publicAccessType; /** - * The storage tier type assigned to the bucket. A bucket is set to 'Standard' tier by default, which means - * objects uploaded or copied to the bucket will be in the standard storage tier. When the 'Archive' tier type + * The storage tier type assigned to the bucket. A bucket is set to `Standard` tier by default, which means + * objects uploaded or copied to the bucket will be in the standard storage tier. When the `Archive` tier type * is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. - * The 'storageTier' property is immutable after bucket is created. + * The `storageTier` property is immutable after bucket is created. * **/ @lombok.extern.slf4j.Slf4j @@ -434,10 +434,10 @@ public static StorageTier create(String key) { } }; /** - * The storage tier type assigned to the bucket. A bucket is set to 'Standard' tier by default, which means - * objects uploaded or copied to the bucket will be in the standard storage tier. When the 'Archive' tier type + * The storage tier type assigned to the bucket. A bucket is set to `Standard` tier by default, which means + * objects uploaded or copied to the bucket will be in the standard storage tier. When the `Archive` tier type * is set explicitly for a bucket, objects uploaded or copied to the bucket will be stored in archive storage. - * The 'storageTier' property is immutable after bucket is created. + * The `storageTier` property is immutable after bucket is created. * **/ @com.fasterxml.jackson.annotation.JsonProperty("storageTier") diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CopyObjectDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CopyObjectDetails.java index 1d62ed0d7c6..610ceab81bf 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CopyObjectDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CopyObjectDetails.java @@ -122,6 +122,15 @@ public Builder destinationObjectMetadata( return this; } + @com.fasterxml.jackson.annotation.JsonProperty("destinationObjectStorageTier") + private StorageTier destinationObjectStorageTier; + + public Builder destinationObjectStorageTier(StorageTier destinationObjectStorageTier) { + this.destinationObjectStorageTier = destinationObjectStorageTier; + this.__explicitlySet__.add("destinationObjectStorageTier"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -137,7 +146,8 @@ public CopyObjectDetails build() { destinationObjectName, destinationObjectIfMatchETag, destinationObjectIfNoneMatchETag, - destinationObjectMetadata); + destinationObjectMetadata, + destinationObjectStorageTier); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -155,7 +165,8 @@ public Builder copy(CopyObjectDetails o) { .destinationObjectIfMatchETag(o.getDestinationObjectIfMatchETag()) .destinationObjectIfNoneMatchETag( o.getDestinationObjectIfNoneMatchETag()) - .destinationObjectMetadata(o.getDestinationObjectMetadata()); + .destinationObjectMetadata(o.getDestinationObjectMetadata()) + .destinationObjectStorageTier(o.getDestinationObjectStorageTier()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -208,7 +219,7 @@ public static Builder builder() { String destinationBucket; /** - * The name of the destination object resulting from the copy operation. + * The name of the destination object resulting from the copy operation. Avoid entering confidential information. **/ @com.fasterxml.jackson.annotation.JsonProperty("destinationObjectName") String destinationObjectName; @@ -240,6 +251,14 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("destinationObjectMetadata") java.util.Map destinationObjectMetadata; + /** + * The storage tier that the object should be stored in. If not specified, the object will be stored in + * the same storage tier as the bucket. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("destinationObjectStorageTier") + StorageTier destinationObjectStorageTier; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateMultipartUploadDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateMultipartUploadDetails.java index d8b51883152..c7a014e702f 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateMultipartUploadDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateMultipartUploadDetails.java @@ -83,6 +83,15 @@ public Builder cacheControl(String cacheControl) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + private StorageTier storageTier; + + public Builder storageTier(StorageTier storageTier) { + this.storageTier = storageTier; + this.__explicitlySet__.add("storageTier"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("metadata") private java.util.Map metadata; @@ -104,6 +113,7 @@ public CreateMultipartUploadDetails build() { contentEncoding, contentDisposition, cacheControl, + storageTier, metadata); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; @@ -118,6 +128,7 @@ public Builder copy(CreateMultipartUploadDetails o) { .contentEncoding(o.getContentEncoding()) .contentDisposition(o.getContentDisposition()) .cacheControl(o.getCacheControl()) + .storageTier(o.getStorageTier()) .metadata(o.getMetadata()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); @@ -191,6 +202,14 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("cacheControl") String cacheControl; + /** + * The storage tier that the object should be stored in. If not specified, the object will be stored in + * the same storage tier as the bucket. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + StorageTier storageTier; + /** * Arbitrary string keys and values for the user-defined metadata for the object. * Keys must be in \"opc-meta-*\" format. Avoid entering confidential information. diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePreauthenticatedRequestDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePreauthenticatedRequestDetails.java index 57452e7f425..bc65682e1ca 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePreauthenticatedRequestDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreatePreauthenticatedRequestDetails.java @@ -95,6 +95,8 @@ public static Builder builder() { /** * A user-specified name for the pre-authenticated request. Names can be helpful in managing pre-authenticated requests. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("name") String name; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateReplicationPolicyDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateReplicationPolicyDetails.java index f9352abce1f..80137565d2b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateReplicationPolicyDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateReplicationPolicyDetails.java @@ -84,7 +84,7 @@ public static Builder builder() { } /** - * The name of the policy. + * The name of the policy. Avoid entering confidential information. **/ @com.fasterxml.jackson.annotation.JsonProperty("name") String name; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateRetentionRuleDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateRetentionRuleDetails.java index 01a28a10c27..1377309c4a7 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateRetentionRuleDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/CreateRetentionRuleDetails.java @@ -84,6 +84,8 @@ public static Builder builder() { /** * A user-specified name for the retention rule. Names can be helpful in identifying retention rules. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ListObjects.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ListObjects.java index 1ed67f81c40..9bd9bc49634 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ListObjects.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ListObjects.java @@ -97,7 +97,7 @@ public static Builder builder() { java.util.List prefixes; /** - * The name of the object to use in the 'start' parameter to obtain the next page of + * The name of the object to use in the `start` parameter to obtain the next page of * a truncated ListObjects response. Avoid entering confidential information. * Example: test/object1.log * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/MultipartUpload.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/MultipartUpload.java index 331e058d5ff..f81cb929f05 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/MultipartUpload.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/MultipartUpload.java @@ -78,12 +78,22 @@ public Builder timeCreated(java.util.Date timeCreated) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + private StorageTier storageTier; + + public Builder storageTier(StorageTier storageTier) { + this.storageTier = storageTier; + this.__explicitlySet__.add("storageTier"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public MultipartUpload build() { MultipartUpload __instance__ = - new MultipartUpload(namespace, bucket, object, uploadId, timeCreated); + new MultipartUpload( + namespace, bucket, object, uploadId, timeCreated, storageTier); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -95,7 +105,8 @@ public Builder copy(MultipartUpload o) { .bucket(o.getBucket()) .object(o.getObject()) .uploadId(o.getUploadId()) - .timeCreated(o.getTimeCreated()); + .timeCreated(o.getTimeCreated()) + .storageTier(o.getStorageTier()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; @@ -139,6 +150,12 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") java.util.Date timeCreated; + /** + * The storage tier that the object is stored in. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + StorageTier storageTier; + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); } diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectLifecycleRule.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectLifecycleRule.java index 2dd3083c7f7..5329db26f96 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectLifecycleRule.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectLifecycleRule.java @@ -141,9 +141,10 @@ public static Builder builder() { /** * The target of the object lifecycle policy rule. The values of target can be either \"objects\", * \"multipart-uploads\" or \"previous-object-versions\". - * This field when declared as \"objects\" is used to specify ARCHIVE or DELETE rule for objects. - * This field when declared as \"previous-object-versions\" is used to specify ARCHIVE or DELETE - * rule for previous versions of existing objects. + * This field when declared as \"objects\" is used to specify ARCHIVE, INFREQUENT_ACCESS + * or DELETE rule for objects. + * This field when declared as \"previous-object-versions\" is used to specify ARCHIVE, + * INFREQUENT_ACCESS or DELETE rule for previous versions of existing objects. * This field when declared as \"multipart-uploads\" is used to specify the ABORT (only) rule for * uncommitted multipart-uploads. * @@ -153,8 +154,11 @@ public static Builder builder() { /** * The action of the object lifecycle policy rule. - * Rules using the action 'ARCHIVE' move objects from Standard storage tier into the - * [Archive Storage tier] (https://docs.cloud.oracle.com/Content/Archive/Concepts/archivestorageoverview.htm). + * Rules using the action 'ARCHIVE' move objects from Standard and InfrequentAccess storage tiers + * into the [Archive storage tier](https://docs.cloud.oracle.com/Content/Archive/Concepts/archivestorageoverview.htm). + * Rules using the action 'INFREQUENT_ACCESS' move objects from Standard storage tier into the + * Infrequent Access Storage tier. Objects that are already in InfrequentAccess tier or in Archive + * tier are left untouched. * Rules using the action 'DELETE' permanently delete objects from buckets. * Rules using 'ABORT' abort the uncommitted multipart-uploads and permanently delete their parts from buckets. * diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectSummary.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectSummary.java index ab178ca251a..27b205791c8 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectSummary.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectSummary.java @@ -72,6 +72,24 @@ public Builder etag(String etag) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + private StorageTier storageTier; + + public Builder storageTier(StorageTier storageTier) { + this.storageTier = storageTier; + this.__explicitlySet__.add("storageTier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archivalState") + private ArchivalState archivalState; + + public Builder archivalState(ArchivalState archivalState) { + this.archivalState = archivalState; + this.__explicitlySet__.add("archivalState"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("timeModified") private java.util.Date timeModified; @@ -86,7 +104,15 @@ public Builder timeModified(java.util.Date timeModified) { public ObjectSummary build() { ObjectSummary __instance__ = - new ObjectSummary(name, size, md5, timeCreated, etag, timeModified); + new ObjectSummary( + name, + size, + md5, + timeCreated, + etag, + storageTier, + archivalState, + timeModified); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @@ -99,6 +125,8 @@ public Builder copy(ObjectSummary o) { .md5(o.getMd5()) .timeCreated(o.getTimeCreated()) .etag(o.getEtag()) + .storageTier(o.getStorageTier()) + .archivalState(o.getArchivalState()) .timeModified(o.getTimeModified()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); @@ -145,6 +173,18 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("etag") String etag; + /** + * The storage tier that the object is stored in. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + StorageTier storageTier; + + /** + * Archival state of an object. This field is set only for objects in Archive tier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archivalState") + ArchivalState archivalState; + /** * The date and time the object was modified, as described in [RFC 2616](https://tools.ietf.org/rfc/rfc2616), section 14.29. **/ diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectVersionSummary.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectVersionSummary.java index 072bacc0110..215049abe61 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectVersionSummary.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/ObjectVersionSummary.java @@ -83,6 +83,24 @@ public Builder etag(String etag) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + private StorageTier storageTier; + + public Builder storageTier(StorageTier storageTier) { + this.storageTier = storageTier; + this.__explicitlySet__.add("storageTier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("archivalState") + private ArchivalState archivalState; + + public Builder archivalState(ArchivalState archivalState) { + this.archivalState = archivalState; + this.__explicitlySet__.add("archivalState"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("versionId") private String versionId; @@ -113,6 +131,8 @@ public ObjectVersionSummary build() { timeCreated, timeModified, etag, + storageTier, + archivalState, versionId, isDeleteMarker); __instance__.__explicitlySet__.addAll(__explicitlySet__); @@ -128,6 +148,8 @@ public Builder copy(ObjectVersionSummary o) { .timeCreated(o.getTimeCreated()) .timeModified(o.getTimeModified()) .etag(o.getEtag()) + .storageTier(o.getStorageTier()) + .archivalState(o.getArchivalState()) .versionId(o.getVersionId()) .isDeleteMarker(o.getIsDeleteMarker()); @@ -181,6 +203,18 @@ public static Builder builder() { @com.fasterxml.jackson.annotation.JsonProperty("etag") String etag; + /** + * The storage tier that the object is stored in. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + StorageTier storageTier; + + /** + * Archival state of an object. This field is set only for objects in Archive tier. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("archivalState") + ArchivalState archivalState; + /** * VersionId of the object. **/ diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RenameObjectDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RenameObjectDetails.java index 8432ea38b41..04d8025ec31 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RenameObjectDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RenameObjectDetails.java @@ -117,7 +117,7 @@ public static Builder builder() { String sourceName; /** - * The new name of the source object. + * The new name of the source object. Avoid entering confidential information. **/ @com.fasterxml.jackson.annotation.JsonProperty("newName") String newName; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RetentionRuleDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RetentionRuleDetails.java index 92f509ab188..22384af32df 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RetentionRuleDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/RetentionRuleDetails.java @@ -84,6 +84,8 @@ public static Builder builder() { /** * A user-specified name for the retention rule. Names can be helpful in identifying retention rules. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/StorageTier.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/StorageTier.java new file mode 100644 index 00000000000..a8ff30b516c --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/StorageTier.java @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * Storage tiers supported by Object Storage + **/ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.extern.slf4j.Slf4j +public enum StorageTier { + Standard("Standard"), + InfrequentAccess("InfrequentAccess"), + Archive("Archive"), + + /** + * 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 (StorageTier v : StorageTier.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + StorageTier(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static StorageTier create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'StorageTier', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateObjectStorageTierDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateObjectStorageTierDetails.java new file mode 100644 index 00000000000..80d11bd9822 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateObjectStorageTierDetails.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.model; + +/** + * To change the storage tier of an object, we specify the object name and the desired + * storage tier in the body. Objects can be moved between Standard and InfrequentAccess + * tiers and from Standard or InfrequentAccess tier to Archive tier. If a version id is + * specified, only the specified version of the object is moved to a different storage + * tier, else the current version is used. + * + *
+ * 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 = UpdateObjectStorageTierDetails.Builder.class +) +@com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) +@lombok.Builder(builderClassName = "Builder", toBuilder = true) +public class UpdateObjectStorageTierDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + @lombok.experimental.Accessors(fluent = true) + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + private StorageTier storageTier; + + public Builder storageTier(StorageTier storageTier) { + this.storageTier = storageTier; + this.__explicitlySet__.add("storageTier"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("versionId") + private String versionId; + + public Builder versionId(String versionId) { + this.versionId = versionId; + this.__explicitlySet__.add("versionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateObjectStorageTierDetails build() { + UpdateObjectStorageTierDetails __instance__ = + new UpdateObjectStorageTierDetails(objectName, storageTier, versionId); + __instance__.__explicitlySet__.addAll(__explicitlySet__); + return __instance__; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateObjectStorageTierDetails o) { + Builder copiedBuilder = + objectName(o.getObjectName()) + .storageTier(o.getStorageTier()) + .versionId(o.getVersionId()); + + copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); + return copiedBuilder; + } + } + + /** + * Create a new builder. + */ + public static Builder builder() { + return new Builder(); + } + + /** + * An object for which the storage tier needs to be changed. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + String objectName; + + /** + * The storage tier that the object should be moved to. + **/ + @com.fasterxml.jackson.annotation.JsonProperty("storageTier") + StorageTier storageTier; + + /** + * The versionId of the object. Current object version is used by default. + * + **/ + @com.fasterxml.jackson.annotation.JsonProperty("versionId") + String versionId; + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateRetentionRuleDetails.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateRetentionRuleDetails.java index 735e6ddbac9..6aa97571efa 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateRetentionRuleDetails.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/model/UpdateRetentionRuleDetails.java @@ -84,6 +84,8 @@ public static Builder builder() { /** * A user-specified name for the retention rule. Names can be helpful in identifying retention rules. + * Avoid entering confidential information. + * **/ @com.fasterxml.jackson.annotation.JsonProperty("displayName") String displayName; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CommitMultipartUploadRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CommitMultipartUploadRequest.java index ed98d004d32..859b43a3710 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CommitMultipartUploadRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CommitMultipartUploadRequest.java @@ -44,16 +44,16 @@ public class CommitMultipartUploadRequest private CommitMultipartUploadDetails commitMultipartUploadDetails; /** - * The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - * For uploading a part, this is the entity tag of the target part. + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of + * the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload + * the resource. * */ private String ifMatch; /** - * The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object - * already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a - * part, this is the entity tag of the target part. + * The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should + * fail if the resource already exists. * */ private String ifNoneMatch; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreateMultipartUploadRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreateMultipartUploadRequest.java index 99dde635bb6..3cc96d14e5f 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreateMultipartUploadRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/CreateMultipartUploadRequest.java @@ -32,16 +32,16 @@ public class CreateMultipartUploadRequest private CreateMultipartUploadDetails createMultipartUploadDetails; /** - * The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - * For uploading a part, this is the entity tag of the target part. + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of + * the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload + * the resource. * */ private String ifMatch; /** - * The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should fail if the object - * already exists. For creating and committing a multipart upload, this is the entity tag of the target object. For uploading a - * part, this is the entity tag of the target part. + * The entity tag (ETag) to avoid matching. The only valid value is '*', which indicates that the request should + * fail if the resource already exists. * */ private String ifNoneMatch; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeleteBucketRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeleteBucketRequest.java index 7975904f9ec..91a1de9324e 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeleteBucketRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/DeleteBucketRequest.java @@ -26,8 +26,9 @@ public class DeleteBucketRequest extends com.oracle.bmc.requests.BmcRequestExample: Click here to see how to use UpdateObjectStorageTierRequest. + */ +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder", buildMethodName = "buildWithoutInvocationCallback") +@lombok.Getter +public class UpdateObjectStorageTierRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** + * The Object Storage namespace used for the request. + */ + private String namespaceName; + + /** + * The name of the bucket. Avoid entering confidential information. + * Example: `my-new-bucket1` + * + */ + private String bucketName; + + /** + * The object name and the desired storage tier. + */ + private UpdateObjectStorageTierDetails updateObjectStorageTierDetails; + + /** + * The client request ID for tracing. + */ + private String opcClientRequestId; + + /** + * Alternative accessor for the body parameter. + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public UpdateObjectStorageTierDetails getBody$() { + return updateObjectStorageTierDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + UpdateObjectStorageTierRequest, UpdateObjectStorageTierDetails> { + 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(UpdateObjectStorageTierRequest o) { + namespaceName(o.getNamespaceName()); + bucketName(o.getBucketName()); + updateObjectStorageTierDetails(o.getUpdateObjectStorageTierDetails()); + opcClientRequestId(o.getOpcClientRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of UpdateObjectStorageTierRequest 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 UpdateObjectStorageTierRequest + */ + public UpdateObjectStorageTierRequest build() { + UpdateObjectStorageTierRequest request = buildWithoutInvocationCallback(); + request.setInvocationCallback(invocationCallback); + request.setRetryConfiguration(retryConfiguration); + return request; + } + + /** + * Alternative setter for the body parameter. + * @param body the body parameter + * @return this builder instance + */ + @com.oracle.bmc.InternalSdk + public Builder body$(UpdateObjectStorageTierDetails body) { + updateObjectStorageTierDetails(body); + return this; + } + } +} diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdateRetentionRuleRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdateRetentionRuleRequest.java index 64232d7fbeb..5d79eda4b2c 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdateRetentionRuleRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UpdateRetentionRuleRequest.java @@ -37,8 +37,9 @@ public class UpdateRetentionRuleRequest private UpdateRetentionRuleDetails updateRetentionRuleDetails; /** - * The entity tag (ETag) to match. For creating and committing a multipart upload to an object, this is the entity tag of the target object. - * For uploading a part, this is the entity tag of the target part. + * The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of + * the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload + * the resource. * */ private String ifMatch; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java index b3afb853bfc..eb34e2cbdef 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/requests/UploadPartRequest.java @@ -58,16 +58,16 @@ public class UploadPartRequest extends com.oracle.bmc.requests.BmcRequest map; - - static { - map = new java.util.HashMap<>(); - for (ArchivalState v : ArchivalState.values()) { - map.put(v.getValue(), v); - } - } - - ArchivalState(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ArchivalState create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid ArchivalState: " + key); - } - }; + * Archival state of an object. This field is set only for objects in Archive tier. + */ + private ArchivalState archivalState; /** * Time that the object is returned to the archived state. This field is only present for restored objects. @@ -188,6 +155,7 @@ public Builder copy(GetObjectResponse o) { cacheControl(o.getCacheControl()); contentDisposition(o.getContentDisposition()); lastModified(o.getLastModified()); + storageTier(o.getStorageTier()); archivalState(o.getArchivalState()); timeOfArchival(o.getTimeOfArchival()); versionId(o.getVersionId()); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java index 5de934e0c2e..cb885c7d26b 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/HeadObjectResponse.java @@ -90,47 +90,14 @@ public class HeadObjectResponse { private java.util.Date lastModified; /** - * The current state of the object. + * The storage tier that the object is stored in. */ - private String archivalState; + private StorageTier storageTier; /** - * The current state of the object. - **/ - public enum ArchivalState { - Available("AVAILABLE"), - Archived("ARCHIVED"), - Restoring("RESTORING"), - Restored("RESTORED"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (ArchivalState v : ArchivalState.values()) { - map.put(v.getValue(), v); - } - } - - ArchivalState(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static ArchivalState create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid ArchivalState: " + key); - } - }; + * Archival state of an object. This field is set only for objects in Archive tier. + */ + private ArchivalState archivalState; /** * Time that the object is returned to the archived state. This field is only present for restored objects. @@ -170,6 +137,7 @@ public Builder copy(HeadObjectResponse o) { cacheControl(o.getCacheControl()); contentDisposition(o.getContentDisposition()); lastModified(o.getLastModified()); + storageTier(o.getStorageTier()); archivalState(o.getArchivalState()); timeOfArchival(o.getTimeOfArchival()); versionId(o.getVersionId()); diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListBucketsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListBucketsResponse.java index df11cf8ade5..bf567d48c61 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListBucketsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListBucketsResponse.java @@ -28,12 +28,14 @@ public class ListBucketsResponse { private String opcRequestId; /** - * Paginating a list of buckets. + * For paginating a list of buckets. * In the GET request, set the limit to the number of buckets items that you want returned in the response. - * If the opc-next-page header appears in the response, then this is a partial list and there are additional + * If the `opc-next-page` header appears in the response, then this is a partial list and there are additional * buckets to get. Include the header's value as the `page` parameter in the subsequent GET request to get the * next batch of buckets. Repeat this process to retrieve the entire list of buckets. * By default, the page limit is set to 25 buckets per page, but you can specify a value from 1 to 1000. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadPartsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadPartsResponse.java index 3e98374674c..965e63882bd 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadPartsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadPartsResponse.java @@ -28,12 +28,14 @@ public class ListMultipartUploadPartsResponse { private String opcRequestId; /** - * Paginating a list of multipart upload parts. + * For paginating a list of multipart upload parts. * In the GET request, set the limit to the number of multipart upload parts that you want returned in the - * response. If the opc-next-page header appears in the response, then this is a partial list and there are + * response. If the `opc-next-page` header appears in the response, then this is a partial list and there are * additional multipart upload parts to get. Include the header's value as the `page` parameter in the subsequent * GET request to get the next batch of multipart upload parts. Repeat this process to retrieve the entire list * of multipart upload parts. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadsResponse.java index 1f7955a0032..c519d37a7c1 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListMultipartUploadsResponse.java @@ -28,12 +28,14 @@ public class ListMultipartUploadsResponse { private String opcRequestId; /** - * Paginating a list of multipart uploads. + * For paginating a list of multipart uploads. * In the GET request, set the limit to the number of multipart uploads that you want returned in the response. - * If the opc-next-page header appears in the response, then this is a partial list and there are + * If the `opc-next-page` header appears in the response, then this is a partial list and there are * additional multipart uploads to get. Include the header's value as the `page` parameter in the subsequent * GET request to get the next batch of objects. Repeat this process to retrieve the entire list of * multipart uploads. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListObjectVersionsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListObjectVersionsResponse.java index 378bb69805f..56c057ef3fc 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListObjectVersionsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListObjectVersionsResponse.java @@ -28,12 +28,14 @@ public class ListObjectVersionsResponse { private String opcRequestId; /** - * Paginating a list of object versions. + * For paginating a list of object versions. * In the GET request, set the limit to the number of object versions that you want returned in the response. - * If the opc-next-page header appears in the response, then this is a partial list and there are + * If the `opc-next-page` header appears in the response, then this is a partial list and there are * additional object versions to get. Include the header's value as the `page` parameter in the subsequent - * GET request to get the next batch of object versions and prefixes . Repeat this process to retrieve the entire list of + * GET request to get the next batch of object versions and prefixes. Repeat this process to retrieve the entire list of * object versions and prefixes. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPreauthenticatedRequestsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPreauthenticatedRequestsResponse.java index a723f1f1248..ae0620ecb3d 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPreauthenticatedRequestsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListPreauthenticatedRequestsResponse.java @@ -28,12 +28,14 @@ public class ListPreauthenticatedRequestsResponse { private String opcRequestId; /** - * Paginating a list of pre-authenticated requests. + * For paginating a list of pre-authenticated requests. * In the GET request, set the limit to the number of pre-authenticated requests that you want returned in - * the response. If the opc-next-page header appears in the response, then this is a partial list and there + * the response. If the `opc-next-page` header appears in the response, then this is a partial list and there * are additional pre-authenticated requests to get. Include the header's value as the `page` parameter in * the subsequent GET request to get the next batch of pre-authenticated requests. Repeat this process to * retrieve the entire list of pre-authenticated requests. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationPoliciesResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationPoliciesResponse.java index 64844c6f284..a25775542a0 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationPoliciesResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationPoliciesResponse.java @@ -28,7 +28,14 @@ public class ListReplicationPoliciesResponse { private String opcClientRequestId; /** - * Paginating a list of replication policies. In the GET request, set the limit to the number of buckets items that you want returned in the response. If the opc-next-page header appears in the response, then this is a partial list and there are additional policies to get. Include the header's value as the `page` parameter in the subsequent GET request to get the next batch of policies. Repeat this process to retrieve the entire list of policies. + * For paginating a list of replication policies. + * In the GET request, set the limit to the number of buckets items that you want returned in the response. + * If the `opc-next-page` header appears in the response, then this is a partial list and there are additional + * policies to get. Include the header's value as the `page` parameter in the subsequent GET request to get the + * next batch of policies. Repeat this process to retrieve the entire list of policies. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationSourcesResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationSourcesResponse.java index cfe4058edb9..e175bbb55ac 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationSourcesResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListReplicationSourcesResponse.java @@ -28,7 +28,14 @@ public class ListReplicationSourcesResponse { private String opcClientRequestId; /** - * Paginating a list of replication sources. In the GET request, set the limit to the number of items that you want returned in the response. If the opc-next-page header appears in the response, then this is a partial list and there are additional policies to get. Include the header's value as the `page` parameter in the subsequent GET request to get the next batch of policies. Repeat this process to retrieve the entire list of sources. + * For paginating a list of replication sources. + * In the GET request, set the limit to the number of items that you want returned in the response. + * If the `opc-next-page` header appears in the response, then this is a partial list and there are additional + * policies to get. Include the header's value as the `page` parameter in the subsequent GET request to get the + * next batch of policies. Repeat this process to retrieve the entire list of sources. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListRetentionRulesResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListRetentionRulesResponse.java index 7193426d7b7..b88ac097bc6 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListRetentionRulesResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListRetentionRulesResponse.java @@ -29,10 +29,12 @@ public class ListRetentionRulesResponse { /** * Paginating a list of retention rules. - * If the opc-next-page header appears in the response, it indicates that this is a partial list + * If the `opc-next-page` header appears in the response, it indicates that this is a partial list * of retention rules and there are additional rules to get. Include the value of this header as * the `page` parameter in a subsequent GET request to get the next set of retention rules. * Repeat this process to retrieve the entire list of retention rules. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestErrorsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestErrorsResponse.java index 73fa6b26854..26c5111d0ef 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestErrorsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestErrorsResponse.java @@ -23,12 +23,14 @@ public class ListWorkRequestErrorsResponse { private String opcRequestId; /** - * Paginating a list of work request errors. + * For paginating a list of work request errors. * In the GET request, set the limit to the number of work request errors that you want returned in the - * response. If the opc-next-page header appears in the response, then this is a partial list and there are + * response. If the `opc-next-page` header appears in the response, then this is a partial list and there are * additional work request errors to get. Include the header's value as the `page` parameter in the subsequent * GET request to get the next batch of work request errors. Repeat this process to retrieve the entire list of work * request errors. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestLogsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestLogsResponse.java index 53c08a90d74..58331271c5c 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestLogsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestLogsResponse.java @@ -28,12 +28,14 @@ public class ListWorkRequestLogsResponse { private String opcClientRequestId; /** - * Paginating a list of work request logs. + * For paginating a list of work request logs. * In the GET request, set the limit to the number of compartment work requests that you want returned in the - * response. If the opc-next-page header appears in the response, then this is a partial list and there are + * response. If the `opc-next-page` header appears in the response, then this is a partial list and there are * additional work requests to get. Include the header's value as the `page` parameter in the subsequent * GET request to get the next batch of work requests. Repeat this process to retrieve the entire list of work * requests. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestsResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestsResponse.java index dd2f48a15ca..906cc045c93 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestsResponse.java +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/ListWorkRequestsResponse.java @@ -23,12 +23,14 @@ public class ListWorkRequestsResponse { private String opcRequestId; /** - * Paginating a list of work requests. + * For paginating a list of work requests. * In the GET request, set the limit to the number of compartment work requests that you want returned in the - * response. If the opc-next-page header appears in the response, then this is a partial list and there are + * response. If the `opc-next-page` header appears in the response, then this is a partial list and there are * additional work requests to get. Include the header's value as the `page` parameter in the subsequent * GET request to get the next batch of work requests. Repeat this process to retrieve the entire list of work * requests. + *

+ * For more details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). * */ private String opcNextPage; diff --git a/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/UpdateObjectStorageTierResponse.java b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/UpdateObjectStorageTierResponse.java new file mode 100644 index 00000000000..cd3555461a5 --- /dev/null +++ b/bmc-objectstorage/bmc-objectstorage-generated/src/main/java/com/oracle/bmc/objectstorage/responses/UpdateObjectStorageTierResponse.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.objectstorage.responses; + +import com.oracle.bmc.objectstorage.model.*; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") +@lombok.Builder(builderClassName = "Builder") +@lombok.Getter +public class UpdateObjectStorageTierResponse { + /** + * HTTP status code returned by the operation. + */ + private final int __httpStatusCode__; + + /** + * Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging. + */ + private String opcClientRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular + * request, provide this request ID. + * + */ + private String opcRequestId; + + public static class Builder { + /** + * Copy method to populate the builder with values from the given instance. + * @return this builder instance + */ + public Builder copy(UpdateObjectStorageTierResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + opcClientRequestId(o.getOpcClientRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + } +} diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 18db2d112a0..6ce4140e0a2 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index e57e23662ee..bab4260cf70 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-oce/src/main/java/com/oracle/bmc/oce/OceInstanceAsyncClient.java b/bmc-oce/src/main/java/com/oracle/bmc/oce/OceInstanceAsyncClient.java index 2f75e89339e..be7ce0405d2 100644 --- a/bmc-oce/src/main/java/com/oracle/bmc/oce/OceInstanceAsyncClient.java +++ b/bmc-oce/src/main/java/com/oracle/bmc/oce/OceInstanceAsyncClient.java @@ -182,6 +182,43 @@ public OceInstanceAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public OceInstanceAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public OceInstanceAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public OceInstanceAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index 4361af75f66..3f37a25f270 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java index c92834aaabc..136dca97904 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsyncClient.java @@ -182,6 +182,43 @@ public EsxiHostAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public EsxiHostAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public EsxiHostAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public EsxiHostAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java index 84e49620ef3..be542a532fc 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsyncClient.java @@ -182,6 +182,43 @@ public SddcAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public SddcAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public SddcAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public SddcAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/WorkRequestAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/WorkRequestAsyncClient.java index eb388a63790..c96544dcd39 100644 --- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/WorkRequestAsyncClient.java +++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/WorkRequestAsyncClient.java @@ -182,6 +182,43 @@ public WorkRequestAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public WorkRequestAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public WorkRequestAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public WorkRequestAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index ac098bb81d8..5242847c199 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 diff --git a/bmc-oda/src/main/java/com/oracle/bmc/oda/OdaAsyncClient.java b/bmc-oda/src/main/java/com/oracle/bmc/oda/OdaAsyncClient.java index 17bbaf7c8d2..d185a17fd22 100644 --- a/bmc-oda/src/main/java/com/oracle/bmc/oda/OdaAsyncClient.java +++ b/bmc-oda/src/main/java/com/oracle/bmc/oda/OdaAsyncClient.java @@ -183,6 +183,43 @@ public OdaAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public OdaAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public OdaAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public OdaAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index f9affbf5a6b..a1de0c20556 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ 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 7f5117ffa6b..b971d278bfa 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 @@ -182,6 +182,43 @@ public NotificationControlPlaneAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public NotificationControlPlaneAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public NotificationControlPlaneAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public NotificationControlPlaneAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } 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 9cedec3d89a..8dcf6b4e9f5 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 @@ -182,6 +182,43 @@ public NotificationDataPlaneAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public NotificationDataPlaneAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public NotificationDataPlaneAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public NotificationDataPlaneAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 11ea60d7133..69a6d20ecfc 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java index b864440e743..e400d358a50 100644 --- a/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java +++ b/bmc-opsi/src/main/java/com/oracle/bmc/opsi/OperationsInsightsAsyncClient.java @@ -183,6 +183,43 @@ public OperationsInsightsAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public OperationsInsightsAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -197,7 +234,7 @@ public OperationsInsightsAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -276,6 +313,7 @@ public OperationsInsightsAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 727b112efc0..4884af3e3e4 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-optimizer/src/main/java/com/oracle/bmc/optimizer/OptimizerAsyncClient.java b/bmc-optimizer/src/main/java/com/oracle/bmc/optimizer/OptimizerAsyncClient.java index 62d8cb4be06..03feda9f34c 100644 --- a/bmc-optimizer/src/main/java/com/oracle/bmc/optimizer/OptimizerAsyncClient.java +++ b/bmc-optimizer/src/main/java/com/oracle/bmc/optimizer/OptimizerAsyncClient.java @@ -182,6 +182,43 @@ public OptimizerAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public OptimizerAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public OptimizerAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public OptimizerAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index 662a7c7b2ce..3e3ae64e8cb 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-osmanagement/src/main/java/com/oracle/bmc/osmanagement/OsManagementAsyncClient.java b/bmc-osmanagement/src/main/java/com/oracle/bmc/osmanagement/OsManagementAsyncClient.java index f884d8f2538..26b793f367f 100644 --- a/bmc-osmanagement/src/main/java/com/oracle/bmc/osmanagement/OsManagementAsyncClient.java +++ b/bmc-osmanagement/src/main/java/com/oracle/bmc/osmanagement/OsManagementAsyncClient.java @@ -182,6 +182,43 @@ public OsManagementAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public OsManagementAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public OsManagementAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -274,6 +311,7 @@ public OsManagementAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index eeb5bf061a6..bb6e8981bac 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 1.30.1 + 1.31.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 1.30.1 + 1.31.0 \ No newline at end of file diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java index ad22adc54d6..863ea47c56b 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManager.java @@ -87,6 +87,20 @@ public interface ResourceManager extends AutoCloseable { */ ChangeStackCompartmentResponse changeStackCompartment(ChangeStackCompartmentRequest request); + /** + * Moves a template into a different compartment within the same tenancy. + * For information about moving resources between compartments, see + * [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * @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. + * + * Example: Click here to see how to use ChangeTemplateCompartment API. + */ + ChangeTemplateCompartmentResponse changeTemplateCompartment( + ChangeTemplateCompartmentRequest request); + /** * Creates a configuration source provider in the specified compartment. * For more information, see @@ -127,6 +141,17 @@ CreateConfigurationSourceProviderResponse createConfigurationSourceProvider( */ CreateStackResponse createStack(CreateStackRequest request); + /** + * Creates a custom template in the specified compartment. + * + * @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. + * + * Example: Click here to see how to use CreateTemplate API. + */ + CreateTemplateResponse createTemplate(CreateTemplateRequest request); + /** * Deletes the specified configuration source provider. * @param request The request object containing the details to send @@ -148,6 +173,16 @@ DeleteConfigurationSourceProviderResponse deleteConfigurationSourceProvider( */ DeleteStackResponse deleteStack(DeleteStackRequest request); + /** + * Deletes the specified template. + * @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. + * + * Example: Click here to see how to use DeleteTemplate API. + */ + DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request); + /** * Checks drift status for the specified stack. * @param request The request object containing the details to send @@ -256,6 +291,40 @@ GetConfigurationSourceProviderResponse getConfigurationSourceProvider( */ GetStackTfStateResponse getStackTfState(GetStackTfStateRequest request); + /** + * Gets the specified template. + * @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. + * + * Example: Click here to see how to use GetTemplate API. + */ + GetTemplateResponse getTemplate(GetTemplateRequest request); + + /** + * Returns the Terraform logo file in .logo format for the specified template. + * Returns an error if no logo file is found. + * + * @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. + * + * Example: Click here to see how to use GetTemplateLogo API. + */ + GetTemplateLogoResponse getTemplateLogo(GetTemplateLogoRequest request); + + /** + * Returns the Terraform configuration file in .zip format for the specified template. + * Returns an error if no zip file is found. + * + * @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. + * + * Example: Click here to see how to use GetTemplateTfConfig API. + */ + GetTemplateTfConfigResponse getTemplateTfConfig(GetTemplateTfConfigRequest request); + /** * Return the given work request. * @param request The request object containing the details to send @@ -336,6 +405,28 @@ ListStackResourceDriftDetailsResponse listStackResourceDriftDetails( */ ListStacksResponse listStacks(ListStacksRequest request); + /** + * Lists template categories. + * + * @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. + * + * Example: Click here to see how to use ListTemplateCategories API. + */ + ListTemplateCategoriesResponse listTemplateCategories(ListTemplateCategoriesRequest request); + + /** + * Lists templates according to the specified filter. + * + * @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. + * + * Example: Click here to see how to use ListTemplates API. + */ + ListTemplatesResponse listTemplates(ListTemplatesRequest request); + /** * Returns a list of supported Terraform versions for use with stacks. * @@ -420,6 +511,17 @@ UpdateConfigurationSourceProviderResponse updateConfigurationSourceProvider( */ UpdateStackResponse updateStack(UpdateStackRequest request); + /** + * Updates the specified template. + * + * @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. + * + * Example: Click here to see how to use UpdateTemplate API. + */ + UpdateTemplateResponse updateTemplate(UpdateTemplateRequest request); + /** * Gets the pre-configured waiters available for resources for this service. * diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java index de2814aa9e7..cb6d3c9d100 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsync.java @@ -103,6 +103,25 @@ java.util.concurrent.Future changeStackCompartme ChangeStackCompartmentRequest, ChangeStackCompartmentResponse> handler); + /** + * Moves a template into a different compartment within the same tenancy. + * For information about moving resources between compartments, see + * [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). + * + * + * @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 changeTemplateCompartment( + ChangeTemplateCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeTemplateCompartmentRequest, ChangeTemplateCompartmentResponse> + handler); + /** * Creates a configuration source provider in the specified compartment. * For more information, see @@ -158,6 +177,22 @@ java.util.concurrent.Future createStack( CreateStackRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Creates a custom template in the specified compartment. + * + * + * @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 createTemplate( + CreateTemplateRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Deletes the specified configuration source provider. * @@ -190,6 +225,21 @@ java.util.concurrent.Future deleteStack( DeleteStackRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Deletes the specified template. + * + * @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 deleteTemplate( + DeleteTemplateRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Checks drift status for the specified stack. * @@ -348,6 +398,55 @@ java.util.concurrent.Future getStackTfState( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets the specified template. + * + * @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 getTemplate( + GetTemplateRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Returns the Terraform logo file in .logo format for the specified template. + * Returns an error if no logo file is found. + * + * + * @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 getTemplateLogo( + GetTemplateLogoRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + + /** + * Returns the Terraform configuration file in .zip format for the specified template. + * Returns an error if no zip file is found. + * + * + * @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 getTemplateTfConfig( + GetTemplateTfConfigRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetTemplateTfConfigRequest, GetTemplateTfConfigResponse> + handler); + /** * Return the given work request. * @@ -462,6 +561,39 @@ java.util.concurrent.Future listStacks( ListStacksRequest request, com.oracle.bmc.responses.AsyncHandler handler); + /** + * Lists template categories. + * + * + * @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 listTemplateCategories( + ListTemplateCategoriesRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListTemplateCategoriesRequest, ListTemplateCategoriesResponse> + handler); + + /** + * Lists templates according to the specified filter. + * + * + * @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 listTemplates( + ListTemplatesRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * Returns a list of supported Terraform versions for use with stacks. * @@ -583,4 +715,20 @@ java.util.concurrent.Future updateJob( java.util.concurrent.Future updateStack( UpdateStackRequest request, com.oracle.bmc.responses.AsyncHandler handler); + + /** + * Updates the specified template. + * + * + * @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 updateTemplate( + UpdateTemplateRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); } diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java index 5a93b19d724..32ccaf69339 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerAsyncClient.java @@ -182,6 +182,43 @@ public ResourceManagerAsyncClient( signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { + this( + authenticationDetailsProvider, + configuration, + clientConfigurator, + defaultRequestSignerFactory, + signingStrategyRequestSignerFactories, + additionalClientConfigurators, + endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder()); + } + + /** + * Creates a new service instance using the given authentication provider and client configuration. Additionally, + * a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization. + *

+ * This is an advanced constructor for clients that want to take control over how requests are signed. + * @param authenticationDetailsProvider The authentication details provider, required. + * @param configuration The client configuration, optional. + * @param clientConfigurator ClientConfigurator that will be invoked for additional configuration of a REST client, optional. + * @param defaultRequestSignerFactory The request signer factory used to create the request signer for this service. + * @param signingStrategyRequestSignerFactories The request signer factories for each signing strategy used to create the request signer + * @param additionalClientConfigurators Additional client configurators to be run after the primary configurator. + * @param endpoint Endpoint, or null to leave unset (note, may be overridden by {@code authenticationDetailsProvider}) + * @param restClientFactoryBuilder the builder for the {@link com.oracle.bmc.http.internal.RestClientFactory} + */ + public ResourceManagerAsyncClient( + com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, + com.oracle.bmc.ClientConfiguration configuration, + com.oracle.bmc.http.ClientConfigurator clientConfigurator, + com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, + java.util.Map< + com.oracle.bmc.http.signing.SigningStrategy, + com.oracle.bmc.http.signing.RequestSignerFactory> + signingStrategyRequestSignerFactories, + java.util.List additionalClientConfigurators, + String endpoint, + com.oracle.bmc.http.internal.RestClientFactoryBuilder restClientFactoryBuilder) { this.authenticationDetailsProvider = authenticationDetailsProvider; java.util.List authenticationDetailsConfigurators = new java.util.ArrayList<>(); @@ -196,7 +233,7 @@ public ResourceManagerAsyncClient( new java.util.ArrayList<>(additionalClientConfigurators); allConfigurators.addAll(authenticationDetailsConfigurators); com.oracle.bmc.http.internal.RestClientFactory restClientFactory = - com.oracle.bmc.http.internal.RestClientFactoryBuilder.builder() + restClientFactoryBuilder .clientConfigurator(clientConfigurator) .additionalClientConfigurators(allConfigurators) .build(); @@ -275,6 +312,7 @@ public ResourceManagerAsyncClient build( configuration, clientConfigurator, requestSignerFactory, + signingStrategyRequestSignerFactories, additionalClientConfigurators, endpoint); } @@ -453,6 +491,49 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future changeTemplateCompartment( + ChangeTemplateCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeTemplateCompartmentRequest, ChangeTemplateCompartmentResponse> + handler) { + LOG.trace("Called async changeTemplateCompartment"); + final ChangeTemplateCompartmentRequest interceptedRequest = + ChangeTemplateCompartmentConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeTemplateCompartmentConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeTemplateCompartmentResponse> + transformer = ChangeTemplateCompartmentConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler< + ChangeTemplateCompartmentRequest, ChangeTemplateCompartmentResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ChangeTemplateCompartmentRequest, + ChangeTemplateCompartmentResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ChangeTemplateCompartmentRequest, ChangeTemplateCompartmentResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future createConfigurationSourceProvider( @@ -576,6 +657,46 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future createTemplate( + CreateTemplateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CreateTemplateRequest, CreateTemplateResponse> + handler) { + LOG.trace("Called async createTemplate"); + final CreateTemplateRequest interceptedRequest = + CreateTemplateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateTemplateConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = CreateTemplateConverter.fromResponse(); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + CreateTemplateRequest, CreateTemplateResponse>, + java.util.concurrent.Future> + futureSupplier = client.postFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + CreateTemplateRequest, CreateTemplateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future deleteConfigurationSourceProvider( @@ -660,6 +781,45 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future deleteTemplate( + DeleteTemplateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteTemplateRequest, DeleteTemplateResponse> + handler) { + LOG.trace("Called async deleteTemplate"); + final DeleteTemplateRequest interceptedRequest = + DeleteTemplateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteTemplateConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = DeleteTemplateConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + DeleteTemplateRequest, DeleteTemplateResponse>, + java.util.concurrent.Future> + futureSupplier = client.deleteFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + DeleteTemplateRequest, DeleteTemplateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future detectStackDrift( DetectStackDriftRequest request, @@ -1046,6 +1206,124 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future getTemplate( + GetTemplateRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async getTemplate"); + final GetTemplateRequest interceptedRequest = + GetTemplateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTemplateConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetTemplateConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetTemplateRequest, GetTemplateResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetTemplateRequest, GetTemplateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getTemplateLogo( + GetTemplateLogoRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetTemplateLogoRequest, GetTemplateLogoResponse> + handler) { + LOG.trace("Called async getTemplateLogo"); + final GetTemplateLogoRequest interceptedRequest = + GetTemplateLogoConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTemplateLogoConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = GetTemplateLogoConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetTemplateLogoRequest, GetTemplateLogoResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetTemplateLogoRequest, GetTemplateLogoResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future getTemplateTfConfig( + GetTemplateTfConfigRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetTemplateTfConfigRequest, GetTemplateTfConfigResponse> + handler) { + LOG.trace("Called async getTemplateTfConfig"); + final GetTemplateTfConfigRequest interceptedRequest = + GetTemplateTfConfigConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTemplateTfConfigConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, GetTemplateTfConfigResponse> + transformer = GetTemplateTfConfigConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + GetTemplateTfConfigRequest, GetTemplateTfConfigResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + GetTemplateTfConfigRequest, GetTemplateTfConfigResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + GetTemplateTfConfigRequest, GetTemplateTfConfigResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, @@ -1292,6 +1570,85 @@ protected void beforeRetryAction() {} } } + @Override + public java.util.concurrent.Future listTemplateCategories( + ListTemplateCategoriesRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListTemplateCategoriesRequest, ListTemplateCategoriesResponse> + handler) { + LOG.trace("Called async listTemplateCategories"); + final ListTemplateCategoriesRequest interceptedRequest = + ListTemplateCategoriesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTemplateCategoriesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function< + javax.ws.rs.core.Response, ListTemplateCategoriesResponse> + transformer = ListTemplateCategoriesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler< + ListTemplateCategoriesRequest, ListTemplateCategoriesResponse> + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListTemplateCategoriesRequest, ListTemplateCategoriesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListTemplateCategoriesRequest, ListTemplateCategoriesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + + @Override + public java.util.concurrent.Future listTemplates( + ListTemplatesRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + LOG.trace("Called async listTemplates"); + final ListTemplatesRequest interceptedRequest = + ListTemplatesConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTemplatesConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = ListTemplatesConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + ListTemplatesRequest, ListTemplatesResponse>, + java.util.concurrent.Future> + futureSupplier = client.getFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + ListTemplatesRequest, ListTemplatesResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } + @Override public java.util.concurrent.Future listTerraformVersions( ListTerraformVersionsRequest request, @@ -1573,4 +1930,43 @@ protected void beforeRetryAction() {} return futureSupplier.apply(handlerToUse); } } + + @Override + public java.util.concurrent.Future updateTemplate( + UpdateTemplateRequest request, + final com.oracle.bmc.responses.AsyncHandler< + UpdateTemplateRequest, UpdateTemplateResponse> + handler) { + LOG.trace("Called async updateTemplate"); + final UpdateTemplateRequest interceptedRequest = + UpdateTemplateConverter.interceptRequest(request); + final com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateTemplateConverter.fromRequest(client, interceptedRequest); + final com.google.common.base.Function + transformer = UpdateTemplateConverter.fromResponse(); + + com.oracle.bmc.responses.AsyncHandler + handlerToUse = handler; + + java.util.function.Function< + com.oracle.bmc.responses.AsyncHandler< + UpdateTemplateRequest, UpdateTemplateResponse>, + java.util.concurrent.Future> + futureSupplier = client.putFutureSupplier(interceptedRequest, ib, transformer); + + if (this.authenticationDetailsProvider + instanceof com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) { + return new com.oracle.bmc.util.internal.RefreshAuthTokenWrapper< + UpdateTemplateRequest, UpdateTemplateResponse>( + (com.oracle.bmc.auth.RefreshableOnNotAuthenticatedProvider) + this.authenticationDetailsProvider, + handlerToUse, + futureSupplier) { + @Override + protected void beforeRetryAction() {} + }; + } else { + return futureSupplier.apply(handlerToUse); + } + } } diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java index 225d3762258..b3679fcc2ef 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerClient.java @@ -541,6 +541,42 @@ public ChangeStackCompartmentResponse changeStackCompartment( }); } + @Override + public ChangeTemplateCompartmentResponse changeTemplateCompartment( + ChangeTemplateCompartmentRequest request) { + LOG.trace("Called changeTemplateCompartment"); + final ChangeTemplateCompartmentRequest interceptedRequest = + ChangeTemplateCompartmentConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ChangeTemplateCompartmentConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function< + javax.ws.rs.core.Response, ChangeTemplateCompartmentResponse> + transformer = ChangeTemplateCompartmentConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest + .getChangeTemplateCompartmentDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public CreateConfigurationSourceProviderResponse createConfigurationSourceProvider( CreateConfigurationSourceProviderRequest request) { @@ -642,6 +678,39 @@ public CreateStackResponse createStack(CreateStackRequest request) { }); } + @Override + public CreateTemplateResponse createTemplate(CreateTemplateRequest request) { + LOG.trace("Called createTemplate"); + final CreateTemplateRequest interceptedRequest = + CreateTemplateConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + CreateTemplateConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = CreateTemplateConverter.fromResponse(); + + final com.oracle.bmc.retrier.BmcGenericRetrier retrier = + com.oracle.bmc.retrier.Retriers.createPreferredRetrier( + interceptedRequest.getRetryConfiguration(), retryConfiguration); + com.oracle.bmc.http.internal.RetryTokenUtils.addRetryToken(ib); + 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.post( + ib, + retriedRequest.getCreateTemplateDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DeleteConfigurationSourceProviderResponse deleteConfigurationSourceProvider( DeleteConfigurationSourceProviderRequest request) { @@ -702,6 +771,35 @@ public DeleteStackResponse deleteStack(DeleteStackRequest request) { }); } + @Override + public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) { + LOG.trace("Called deleteTemplate"); + final DeleteTemplateRequest interceptedRequest = + DeleteTemplateConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + DeleteTemplateConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = DeleteTemplateConverter.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.delete(ib, retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public DetectStackDriftResponse detectStackDrift(DetectStackDriftRequest request) { LOG.trace("Called detectStackDrift"); @@ -986,6 +1084,90 @@ public GetStackTfStateResponse getStackTfState(GetStackTfStateRequest request) { }); } + @Override + public GetTemplateResponse getTemplate(GetTemplateRequest request) { + LOG.trace("Called getTemplate"); + final GetTemplateRequest interceptedRequest = + GetTemplateConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTemplateConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetTemplateConverter.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 GetTemplateLogoResponse getTemplateLogo(GetTemplateLogoRequest request) { + LOG.trace("Called getTemplateLogo"); + final GetTemplateLogoRequest interceptedRequest = + GetTemplateLogoConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTemplateLogoConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetTemplateLogoConverter.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 GetTemplateTfConfigResponse getTemplateTfConfig(GetTemplateTfConfigRequest request) { + LOG.trace("Called getTemplateTfConfig"); + final GetTemplateTfConfigRequest interceptedRequest = + GetTemplateTfConfigConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + GetTemplateTfConfigConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = GetTemplateTfConfigConverter.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 GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { LOG.trace("Called getWorkRequest"); @@ -1159,6 +1341,63 @@ public ListStacksResponse listStacks(ListStacksRequest request) { }); } + @Override + public ListTemplateCategoriesResponse listTemplateCategories( + ListTemplateCategoriesRequest request) { + LOG.trace("Called listTemplateCategories"); + final ListTemplateCategoriesRequest interceptedRequest = + ListTemplateCategoriesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTemplateCategoriesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListTemplateCategoriesConverter.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 ListTemplatesResponse listTemplates(ListTemplatesRequest request) { + LOG.trace("Called listTemplates"); + final ListTemplatesRequest interceptedRequest = + ListTemplatesConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + ListTemplatesConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = ListTemplatesConverter.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 ListTerraformVersionsResponse listTerraformVersions( ListTerraformVersionsRequest request) { @@ -1371,6 +1610,38 @@ public UpdateStackResponse updateStack(UpdateStackRequest request) { }); } + @Override + public UpdateTemplateResponse updateTemplate(UpdateTemplateRequest request) { + LOG.trace("Called updateTemplate"); + final UpdateTemplateRequest interceptedRequest = + UpdateTemplateConverter.interceptRequest(request); + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = + UpdateTemplateConverter.fromRequest(client, interceptedRequest); + com.google.common.base.Function + transformer = UpdateTemplateConverter.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.put( + ib, + retriedRequest.getUpdateTemplateDetails(), + retriedRequest); + return transformer.apply(response); + }); + }); + } + @Override public ResourceManagerWaiters getWaiters() { return waiters; diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerPaginators.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerPaginators.java index 8f312ad1b3f..552948a571a 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerPaginators.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerPaginators.java @@ -613,6 +613,116 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the listTemplates 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 listTemplatesResponseIterator( + final ListTemplatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListTemplatesRequest.Builder, ListTemplatesRequest, ListTemplatesResponse>( + new com.google.common.base.Supplier() { + @Override + public ListTemplatesRequest.Builder get() { + return ListTemplatesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTemplatesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTemplatesRequest.Builder>, + ListTemplatesRequest>() { + @Override + public ListTemplatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTemplatesRequest.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() { + @Override + public ListTemplatesResponse apply(ListTemplatesRequest request) { + return client.listTemplates(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link com.oracle.bmc.resourcemanager.model.TemplateSummary} objects + * contained in responses from the listTemplates 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.resourcemanager.model.TemplateSummary} objects + * contained in responses received from the service. + */ + public Iterable + listTemplatesRecordIterator(final ListTemplatesRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListTemplatesRequest.Builder, ListTemplatesRequest, ListTemplatesResponse, + com.oracle.bmc.resourcemanager.model.TemplateSummary>( + new com.google.common.base.Supplier() { + @Override + public ListTemplatesRequest.Builder get() { + return ListTemplatesRequest.builder().copy(request); + } + }, + new com.google.common.base.Function() { + @Override + public String apply(ListTemplatesResponse response) { + return response.getOpcNextPage(); + } + }, + new com.google.common.base.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTemplatesRequest.Builder>, + ListTemplatesRequest>() { + @Override + public ListTemplatesRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListTemplatesRequest.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() { + @Override + public ListTemplatesResponse apply(ListTemplatesRequest request) { + return client.listTemplates(request); + } + }, + new com.google.common.base.Function< + ListTemplatesResponse, + java.util.List>() { + @Override + public java.util.List + apply(ListTemplatesResponse response) { + return response.getTemplateSummaryCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the listWorkRequestErrors operation. This iterable * will fetch more data from the server as needed. diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerWaiters.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerWaiters.java index ef44dad737c..55d4b937f73 100644 --- a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerWaiters.java +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/ResourceManagerWaiters.java @@ -326,6 +326,102 @@ public boolean apply(GetStackResponse response) { request); } + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. + * + * @param request the request to send + * @param targetStates the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + * @return a new {@code Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forTemplate( + GetTemplateRequest request, + com.oracle.bmc.resourcemanager.model.Template.LifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one targetState must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null targetState values are not permitted"); + + return forTemplate( + com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param targetState the desired state to wait for + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forTemplate( + GetTemplateRequest request, + com.oracle.bmc.resourcemanager.model.Template.LifecycleState targetState, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy) { + org.apache.commons.lang3.Validate.notNull(targetState, "The targetState cannot be null"); + + return forTemplate( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetState); + } + + /** + * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. + * + * @param request the request to send + * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use + * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use + * @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance + */ + public com.oracle.bmc.waiter.Waiter forTemplate( + GetTemplateRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.resourcemanager.model.Template.LifecycleState... targetStates) { + org.apache.commons.lang3.Validate.notEmpty( + targetStates, "At least one target state must be provided"); + org.apache.commons.lang3.Validate.noNullElements( + targetStates, "Null target states are not permitted"); + + return forTemplate( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for Template. + private com.oracle.bmc.waiter.Waiter forTemplate( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetTemplateRequest request, + final com.oracle.bmc.resourcemanager.model.Template.LifecycleState... targetStates) { + final java.util.Set + targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); + + return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( + executorService, + waiter.toCallable( + com.google.common.base.Suppliers.ofInstance(request), + new com.google.common.base.Function< + GetTemplateRequest, GetTemplateResponse>() { + @Override + public GetTemplateResponse apply(GetTemplateRequest request) { + return client.getTemplate(request); + } + }, + new com.google.common.base.Predicate() { + @Override + public boolean apply(GetTemplateResponse response) { + return targetStatesSet.contains( + response.getTemplate().getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using default configuration. * diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/internal/http/ChangeTemplateCompartmentConverter.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/internal/http/ChangeTemplateCompartmentConverter.java new file mode 100644 index 00000000000..5b6ab3f3e5e --- /dev/null +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/internal/http/ChangeTemplateCompartmentConverter.java @@ -0,0 +1,124 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcemanager.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.resourcemanager.model.*; +import com.oracle.bmc.resourcemanager.requests.*; +import com.oracle.bmc.resourcemanager.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") +@lombok.extern.slf4j.Slf4j +public class ChangeTemplateCompartmentConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.resourcemanager.requests.ChangeTemplateCompartmentRequest + interceptRequest( + com.oracle.bmc.resourcemanager.requests.ChangeTemplateCompartmentRequest + request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.resourcemanager.requests.ChangeTemplateCompartmentRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notBlank(request.getTemplateId(), "templateId must not be blank"); + Validate.notNull( + request.getChangeTemplateCompartmentDetails(), + "changeTemplateCompartmentDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget() + .path("/20180917") + .path("templates") + .path( + com.oracle.bmc.util.internal.HttpUtils.encodePathSegment( + request.getTemplateId())) + .path("actions") + .path("changeCompartment"); + + com.oracle.bmc.http.internal.WrappedInvocationBuilder ib = target.request(); + + ib.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON); + + if (request.getIfMatch() != null) { + ib.header("if-match", request.getIfMatch()); + } + + if (request.getOpcRequestId() != null) { + ib.header("opc-request-id", request.getOpcRequestId()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.resourcemanager.responses.ChangeTemplateCompartmentResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.resourcemanager.responses.ChangeTemplateCompartmentResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.resourcemanager.responses + .ChangeTemplateCompartmentResponse>() { + @Override + public com.oracle.bmc.resourcemanager.responses + .ChangeTemplateCompartmentResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.resourcemanager.responses.ChangeTemplateCompartmentResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders> + responseFn = RESPONSE_CONVERSION_FACTORY.create(); + + com.oracle.bmc.http.internal.WithHeaders response = + responseFn.apply(rawResponse); + javax.ws.rs.core.MultivaluedMap headers = + response.getHeaders(); + + com.oracle.bmc.resourcemanager.responses + .ChangeTemplateCompartmentResponse.Builder + builder = + com.oracle.bmc.resourcemanager.responses + .ChangeTemplateCompartmentResponse.builder() + .__httpStatusCode__( + rawResponse.getStatus()); + + 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.oracle.bmc.resourcemanager.responses + .ChangeTemplateCompartmentResponse + responseWrapper = builder.build(); + + ResponseHelper.closeResponseSilentlyIfNotBuffered(rawResponse); + return responseWrapper; + } + }; + return transformer; + } +} diff --git a/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/internal/http/CreateTemplateConverter.java b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/internal/http/CreateTemplateConverter.java new file mode 100644 index 00000000000..314c15d40cb --- /dev/null +++ b/bmc-resourcemanager/src/main/java/com/oracle/bmc/resourcemanager/internal/http/CreateTemplateConverter.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.resourcemanager.internal.http; + +import com.oracle.bmc.http.internal.ResponseHelper; +import com.oracle.bmc.resourcemanager.model.*; +import com.oracle.bmc.resourcemanager.requests.*; +import com.oracle.bmc.resourcemanager.responses.*; +import org.apache.commons.lang3.Validate; + +@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20180917") +@lombok.extern.slf4j.Slf4j +public class CreateTemplateConverter { + private static final com.oracle.bmc.http.internal.ResponseConversionFunctionFactory + RESPONSE_CONVERSION_FACTORY = + new com.oracle.bmc.http.internal.ResponseConversionFunctionFactory(); + + public static com.oracle.bmc.resourcemanager.requests.CreateTemplateRequest interceptRequest( + com.oracle.bmc.resourcemanager.requests.CreateTemplateRequest request) { + + return request; + } + + public static com.oracle.bmc.http.internal.WrappedInvocationBuilder fromRequest( + com.oracle.bmc.http.internal.RestClient client, + com.oracle.bmc.resourcemanager.requests.CreateTemplateRequest request) { + Validate.notNull(request, "request instance is required"); + Validate.notNull(request.getCreateTemplateDetails(), "createTemplateDetails is required"); + + com.oracle.bmc.http.internal.WrappedWebTarget target = + client.getBaseTarget().path("/20180917").path("templates"); + + 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()); + } + + if (request.getOpcRetryToken() != null) { + ib.header("opc-retry-token", request.getOpcRetryToken()); + } + + if (request.getOciSplatGeneratedOcids() != null) { + ib.header("oci-splat-generated-ocids", request.getOciSplatGeneratedOcids()); + } + + return ib; + } + + public static com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.resourcemanager.responses.CreateTemplateResponse> + fromResponse() { + final com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.resourcemanager.responses.CreateTemplateResponse> + transformer = + new com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.resourcemanager.responses.CreateTemplateResponse>() { + @Override + public com.oracle.bmc.resourcemanager.responses.CreateTemplateResponse + apply(javax.ws.rs.core.Response rawResponse) { + LOG.trace( + "Transform function invoked for com.oracle.bmc.resourcemanager.responses.CreateTemplateResponse"); + com.google.common.base.Function< + javax.ws.rs.core.Response, + com.oracle.bmc.http.internal.WithHeaders