defaultRecordHttpStatuses() {
@@ -193,6 +312,14 @@ public Duration getWaitDurationInOpenState() {
return this.waitDurationInOpenState;
}
+ /**
+ * Returns the HALF_OPEN timeout (default: 30 seconds). Expiry reopens the breaker without
+ * cancelling in-flight HTTP requests. Validated when the circuit breaker is created.
+ */
+ public Duration getMaxWaitDurationInHalfOpenState() {
+ return this.maxWaitDurationInHalfOpenState;
+ }
+
public int getPermittedNumberOfCallsInHalfOpenState() {
return this.permittedNumberOfCallsInHalfOpenState;
}
@@ -229,6 +356,10 @@ public boolean isRecordProcessingFailures() {
return recordProcessingFailures;
}
+ public CircuitBreakerEventListener getCircuitBreakerEventListener() {
+ return this.circuitBreakerEventListener;
+ }
+
public static class CircuitBreakerConfigurationBuilder {
private int failureRateThreshold$value;
private boolean failureRateThreshold$set;
@@ -236,6 +367,8 @@ public static class CircuitBreakerConfigurationBuilder {
private boolean slowCallRateThreshold$set;
private Duration waitDurationInOpenState$value;
private boolean waitDurationInOpenState$set;
+ private Duration maxWaitDurationInHalfOpenState$value;
+ private boolean maxWaitDurationInHalfOpenState$set;
private int permittedNumberOfCallsInHalfOpenState$value;
private boolean permittedNumberOfCallsInHalfOpenState$set;
private int minimumNumberOfCalls$value;
@@ -254,6 +387,9 @@ public static class CircuitBreakerConfigurationBuilder {
private int numberOfRecordedHistoryResponses$value;
private boolean numberOfRecordedHistoryResponses$set;
+ private CircuitBreakerEventListener circuitBreakerEventListener$value;
+ private boolean circuitBreakerEventListener$set;
+
CircuitBreakerConfigurationBuilder() {}
public CircuitBreakerConfigurationBuilder failureRateThreshold(int failureRateThreshold) {
@@ -283,6 +419,18 @@ public CircuitBreakerConfigurationBuilder permittedNumberOfCallsInHalfOpenState(
return this;
}
+ /**
+ * Sets the HALF_OPEN timeout (default: 30 seconds). Must be non-null and at least 1
+ * millisecond; validated when the circuit breaker is created. Expiry reopens the breaker
+ * without cancelling in-flight HTTP requests.
+ */
+ public CircuitBreakerConfigurationBuilder maxWaitDurationInHalfOpenState(
+ Duration maxWaitDurationInHalfOpenState) {
+ this.maxWaitDurationInHalfOpenState$value = maxWaitDurationInHalfOpenState;
+ this.maxWaitDurationInHalfOpenState$set = true;
+ return this;
+ }
+
public CircuitBreakerConfigurationBuilder minimumNumberOfCalls(int minimumNumberOfCalls) {
this.minimumNumberOfCalls$value = minimumNumberOfCalls;
this.minimumNumberOfCalls$set = true;
@@ -336,6 +484,13 @@ public CircuitBreakerConfigurationBuilder numberOfRecordedHistoryResponses(
return this;
}
+ public CircuitBreakerConfigurationBuilder circuitBreakerEventListener(
+ CircuitBreakerEventListener circuitBreakerEventListener) {
+ this.circuitBreakerEventListener$value = circuitBreakerEventListener;
+ this.circuitBreakerEventListener$set = true;
+ return this;
+ }
+
public CircuitBreakerConfiguration build() {
int failureRateThreshold$value = this.failureRateThreshold$value;
if (!this.failureRateThreshold$set) {
@@ -357,6 +512,12 @@ public CircuitBreakerConfiguration build() {
permittedNumberOfCallsInHalfOpenState$value =
DEFAULT_PERMITTED_CALLS_IN_HALF_OPEN_STATE;
}
+ Duration maxWaitDurationInHalfOpenState$value =
+ this.maxWaitDurationInHalfOpenState$value;
+ if (!this.maxWaitDurationInHalfOpenState$set) {
+ maxWaitDurationInHalfOpenState$value =
+ Duration.ofSeconds(DEFAULT_MAX_WAIT_DURATION_IN_HALF_OPEN_STATE);
+ }
int minimumNumberOfCalls$value = this.minimumNumberOfCalls$value;
if (!this.minimumNumberOfCalls$set) {
minimumNumberOfCalls$value = DEFAULT_MINIMUM_NUMBER_OF_CALLS;
@@ -383,9 +544,16 @@ public CircuitBreakerConfiguration build() {
if (!this.recordExceptions$set) {
recordExceptions$value = defaultRecordExceptions();
}
+ int numberOfRecordedHistoryResponses$value =
+ this.numberOfRecordedHistoryResponses$value;
if (!this.numberOfRecordedHistoryResponses$set) {
numberOfRecordedHistoryResponses$value = NUMBER_OF_RECORDED_HISTORY_RESPONSES;
}
+ CircuitBreakerEventListener circuitBreakerEventListener$value =
+ this.circuitBreakerEventListener$value;
+ if (!this.circuitBreakerEventListener$set) {
+ circuitBreakerEventListener$value = CIRCUIT_BREAKER_EVENT_LISTENER;
+ }
return new CircuitBreakerConfiguration(
failureRateThreshold$value,
slowCallRateThreshold$value,
@@ -398,7 +566,9 @@ public CircuitBreakerConfiguration build() {
recordHttpStatuses$value,
recordExceptions$value,
recordProcessingFailures,
- numberOfRecordedHistoryResponses$value);
+ numberOfRecordedHistoryResponses$value,
+ maxWaitDurationInHalfOpenState$value,
+ circuitBreakerEventListener$value);
}
public String toString() {
@@ -408,6 +578,8 @@ public String toString() {
+ this.slowCallRateThreshold$value
+ ", waitDurationInOpenState$value="
+ this.waitDurationInOpenState$value
+ + ", maxWaitDurationInHalfOpenState$value="
+ + this.maxWaitDurationInHalfOpenState$value
+ ", permittedNumberOfCallsInHalfOpenState$value="
+ this.permittedNumberOfCallsInHalfOpenState$value
+ ", minimumNumberOfCalls$value="
diff --git a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/CircuitBreakerEventListener.java b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/CircuitBreakerEventListener.java
new file mode 100644
index 00000000000..560f7eb98cd
--- /dev/null
+++ b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/CircuitBreakerEventListener.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.circuitbreaker;
+
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
+
+import java.time.Duration;
+
+/**
+ * The CircuitBreakerEventListener interface provides a way to listen to events emitted by a Circuit
+ * Breaker. Implementations of this interface can be used to react to various events, such as
+ * successful calls, errors, state transitions, and more.
+ *
+ * Callbacks run on the thread publishing the event, including automatic state-transition
+ * threads. Implementations should return promptly and support concurrent callbacks.
+ */
+public interface CircuitBreakerEventListener {
+
+ /**
+ * Called when a call is successful.
+ *
+ * @param duration the duration of the successful call
+ */
+ void onSuccess(Duration duration);
+
+ /**
+ * Called when a call fails with an error.
+ *
+ * @param throwable the error that occurred
+ */
+ void onError(Throwable throwable);
+
+ /**
+ * Called when the Circuit Breaker transitions to a new state.
+ *
+ * @param stateTransition the state transition that occurred
+ */
+ void onStateTransition(CircuitBreaker.StateTransition stateTransition);
+
+ /** Called when the Circuit Breaker is reset. */
+ void onReset();
+
+ /** Called when a call is rejected in OPEN or when the HALF_OPEN probe limit is reached. */
+ void onCallNotPermitted();
+
+ /** Called when the failure rate exceeds the configured threshold. */
+ void onFailureRateExceeded();
+}
diff --git a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/CircuitBreakerOpenEvent.java b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/CircuitBreakerOpenEvent.java
new file mode 100644
index 00000000000..8c3b8d7550b
--- /dev/null
+++ b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/CircuitBreakerOpenEvent.java
@@ -0,0 +1,128 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.circuitbreaker;
+
+import java.io.Serializable;
+import java.time.Instant;
+import java.time.format.DateTimeFormatter;
+import java.time.format.DateTimeFormatterBuilder;
+import java.util.Collections;
+import java.util.EnumMap;
+import java.util.Map;
+import java.util.TreeMap;
+
+/**
+ * Immutable observations captured when the breaker opens, shared by subsequent locally rejected
+ * calls.
+ *
+ *
The formatted ObservedFailures count is the sum of the observed failure categories.
+ * Attribution to the opening threshold is best effort: error notifications precede breaker metric
+ * updates and the diagnostic and metric windows are maintained separately. Observed counts can
+ * differ from the captured breaker metrics. A later rejection does not reach the service or add an
+ * observed failure.
+ */
+public final class CircuitBreakerOpenEvent implements Serializable {
+ private static final long serialVersionUID = 1L;
+ private static final DateTimeFormatter LOG_TIMESTAMP_FORMATTER =
+ new DateTimeFormatterBuilder().appendInstant(3).toFormatter();
+
+ /** Categories for failures observed by the diagnostic collector. */
+ public enum FailureCategory {
+ REMOTE_HTTP,
+ DNS,
+ CONNECTION,
+ TLS,
+ TIMEOUT,
+ OTHER
+ }
+
+ private final String correlationId;
+ private final Instant openedAt;
+ private final String previousState;
+ private final String state;
+ private final long totalCalls;
+ private final long failedCalls;
+ private final Map failureCounts;
+ private final Map httpStatusCounts;
+
+ public CircuitBreakerOpenEvent(
+ String correlationId,
+ Instant openedAt,
+ String previousState,
+ String state,
+ long totalCalls,
+ long failedCalls,
+ Map failureCounts,
+ Map httpStatusCounts) {
+ this.correlationId = correlationId;
+ this.openedAt = openedAt;
+ this.previousState = previousState;
+ this.state = state;
+ this.totalCalls = totalCalls;
+ this.failedCalls = failedCalls;
+ EnumMap counts = new EnumMap<>(FailureCategory.class);
+ counts.putAll(failureCounts);
+ this.failureCounts = Collections.unmodifiableMap(counts);
+ this.httpStatusCounts = Collections.unmodifiableMap(new TreeMap<>(httpStatusCounts));
+ }
+
+ /** Returns the identifier shared by this opening and calls rejected because of it. */
+ public String getCorrelationId() {
+ return correlationId;
+ }
+
+ public Instant getOpenedAt() {
+ return openedAt;
+ }
+
+ public String getPreviousState() {
+ return previousState;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ /** Returns the captured breaker buffered-call metric, omitted from the formatted summary. */
+ public long getTotalCalls() {
+ return totalCalls;
+ }
+
+ /**
+ * Returns the captured breaker failure metric, which may differ from the observed category sum
+ * printed in the summary.
+ */
+ public long getFailedCalls() {
+ return failedCalls;
+ }
+
+ public Map getFailureCounts() {
+ return failureCounts;
+ }
+
+ public Map getHttpStatusCounts() {
+ return httpStatusCounts;
+ }
+
+ @Override
+ public String toString() {
+ long observedFailures = failureCounts.values().stream().mapToLong(Long::longValue).sum();
+ return String.format(
+ "CorrelationId - %s; Transition - %s->%s; OpenedAt - %s"
+ + "; ObservedFailures - %d"
+ + "; FailureCounts - %s; HttpStatusCounts - %s",
+ correlationId,
+ previousState,
+ state,
+ formatTimestamp(openedAt),
+ observedFailures,
+ failureCounts,
+ httpStatusCounts);
+ }
+
+ private static String formatTimestamp(Instant timestamp) {
+ return timestamp == null ? null : LOG_TIMESTAMP_FORMATTER.format(timestamp);
+ }
+}
diff --git a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/DefaultCircuitBreakerEventListener.java b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/DefaultCircuitBreakerEventListener.java
new file mode 100644
index 00000000000..bc64652377e
--- /dev/null
+++ b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/DefaultCircuitBreakerEventListener.java
@@ -0,0 +1,80 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.circuitbreaker;
+
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
+import org.slf4j.Logger;
+
+import java.time.Duration;
+
+/**
+ * The default class that implements the {@link CircuitBreakerEventListener} interface. This class
+ * provides a basic implementation of the listener methods, logging events at the DEBUG level. It
+ * can be extended to provide custom implementations for specific events.
+ */
+public class DefaultCircuitBreakerEventListener implements CircuitBreakerEventListener {
+
+ private static final Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(DefaultCircuitBreakerEventListener.class);
+
+ /**
+ * Called when a circuit breaker call is successful. Logs the duration of the call at the DEBUG
+ * level.
+ *
+ * @param duration the duration of the successful call
+ */
+ @Override
+ public void onSuccess(Duration duration) {
+ LOG.debug("Success: {}ms", duration.toMillis());
+ }
+
+ /**
+ * Called when a circuit breaker call results in an error. Logs the error message and the
+ * throwable at the DEBUG level.
+ *
+ * @param throwable the throwable that caused the error
+ */
+ @Override
+ public void onError(Throwable throwable) {
+ LOG.debug("Error: {}", throwable.getMessage(), throwable);
+ }
+
+ /**
+ * Called when the circuit breaker state changes. Logs the state transition at the DEBUG level.
+ *
+ * @param stateTransition the state transition that occurred
+ */
+ @Override
+ public void onStateTransition(CircuitBreaker.StateTransition stateTransition) {
+ LOG.debug(
+ "State transition: {} -> {}",
+ stateTransition.getFromState(),
+ stateTransition.getToState());
+ }
+
+ /**
+ * Called when a call is not permitted due to the circuit breaker being open or half-open. Logs
+ * a message at the DEBUG level.
+ */
+ @Override
+ public void onCallNotPermitted() {
+ LOG.debug("Call not permitted");
+ }
+
+ /** Called when the circuit breaker is reset. Logs a message at the DEBUG level. */
+ @Override
+ public void onReset() {
+ LOG.debug("Circuit breaker reset");
+ }
+
+ /**
+ * Called when the failure rate exceeds the configured threshold. Logs a message at the DEBUG
+ * level.
+ */
+ @Override
+ public void onFailureRateExceeded() {
+ LOG.debug("Failure rate exceeded");
+ }
+}
diff --git a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/HttpStatusProvider.java b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/HttpStatusProvider.java
new file mode 100644
index 00000000000..5e11f87139a
--- /dev/null
+++ b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/HttpStatusProvider.java
@@ -0,0 +1,13 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.circuitbreaker;
+
+/** HTTP response metadata used to classify circuit-breaker failures across SDK modules. */
+public interface HttpStatusProvider {
+ /**
+ * Returns the HTTP response status, or a value outside 100–599 when no response is available.
+ */
+ int getStatusCode();
+}
diff --git a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/OciCircuitBreaker.java b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/OciCircuitBreaker.java
index 04b236b1772..bdbf54dc6bc 100644
--- a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/OciCircuitBreaker.java
+++ b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/OciCircuitBreaker.java
@@ -5,6 +5,9 @@
package com.oracle.bmc.circuitbreaker;
import java.time.Duration;
+import java.time.Instant;
+import java.time.format.DateTimeFormatter;
+import java.time.format.DateTimeFormatterBuilder;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
@@ -124,8 +127,32 @@ public interface OciCircuitBreaker {
CallNotAllowedException createCallNotAllowedException();
+ /**
+ * Acquires permission for an SDK call, or throws a completed SDK rejection exception.
+ * Implementations may capture the opening event during this operation without retaining it on
+ * the calling thread afterward.
+ *
+ * @throws CallNotAllowedException if permission is denied
+ */
+ default void acquirePermissionOrThrow() {
+ if (!tryAcquirePermission()) {
+ throw createCallNotAllowedException();
+ }
+ }
+
String circuitBreakerCallNotPermittedErrorMessage(String requestUri);
+ /** Returns the snapshot for the current opening, if provided by this implementation. */
+ default CircuitBreakerOpenEvent getOpenEvent() {
+ return null;
+ }
+
+ /** Formats a rejection using its captured opening snapshot when available. */
+ default String circuitBreakerCallNotPermittedErrorMessage(
+ String requestUri, CallNotAllowedException rejection) {
+ return circuitBreakerCallNotPermittedErrorMessage(requestUri);
+ }
+
// history
void addToHistory(Throwable throwable, Integer status, Map messages);
@@ -169,16 +196,25 @@ interface IntervalFunction extends Function {}
}
class ErrorHistoryItem {
+ private static final DateTimeFormatter TIMESTAMP_FORMATTER =
+ new DateTimeFormatterBuilder().appendInstant(3).toFormatter();
+ private final Instant observedAt;
private final Throwable throwable;
private final Integer status;
private final Map messages;
public ErrorHistoryItem(Throwable throwable, Integer status, Map messages) {
+ this.observedAt = Instant.now();
this.throwable = throwable;
this.messages = messages;
this.status = status;
}
+ /** Returns when the SDK observed the failure, before formatting the history. */
+ public Instant getObservedAt() {
+ return observedAt;
+ }
+
public Throwable getThrowable() {
return throwable;
}
@@ -193,6 +229,7 @@ public int getStatus() {
public String toString() {
StringBuilder sb = new StringBuilder();
+ sb.append("Timestamp: ").append(TIMESTAMP_FORMATTER.format(observedAt)).append("; ");
for (Map.Entry e : messages.entrySet()) {
sb.append(e.getKey()).append(": ").append(e.getValue()).append("; ");
}
diff --git a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/CircuitBreakerDiagnostics.java b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/CircuitBreakerDiagnostics.java
new file mode 100644
index 00000000000..ee4c68c88f6
--- /dev/null
+++ b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/CircuitBreakerDiagnostics.java
@@ -0,0 +1,243 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.circuitbreaker.internal.resilience4j;
+
+import com.oracle.bmc.circuitbreaker.CallNotAllowedException;
+import com.oracle.bmc.circuitbreaker.HttpStatusProvider;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerOpenEvent;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerOpenEvent.FailureCategory;
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
+import io.github.resilience4j.circuitbreaker.CircuitBreakerConfig;
+import java.io.InterruptedIOException;
+import java.net.ConnectException;
+import java.net.NoRouteToHostException;
+import java.net.SocketException;
+import java.net.UnknownHostException;
+import java.time.Instant;
+import java.util.EnumMap;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.NavigableMap;
+import java.util.TreeMap;
+import java.util.UUID;
+import java.util.concurrent.TimeoutException;
+import javax.net.ssl.SSLException;
+
+/** Collects safe diagnostics for calls counted as circuit-breaker failures. */
+final class CircuitBreakerDiagnostics {
+ private final CircuitBreaker circuitBreaker;
+ private final CircuitBreakerConfig config;
+ private long callPosition;
+ private final NavigableMap failures = new TreeMap<>();
+ private final ThreadLocal rejectionCapture = new ThreadLocal<>();
+
+ private CircuitBreakerOpenEvent openEvent;
+ private CircuitBreaker.State windowState;
+ private CircuitBreaker.Metrics windowMetrics;
+
+ CircuitBreakerDiagnostics(CircuitBreaker circuitBreaker) {
+ this.circuitBreaker = java.util.Objects.requireNonNull(circuitBreaker, "circuitBreaker");
+ this.config = circuitBreaker.getCircuitBreakerConfig();
+ this.windowState = circuitBreaker.getState();
+ this.windowMetrics = circuitBreaker.getMetrics();
+ circuitBreaker
+ .getEventPublisher()
+ .onError(event -> recordFailure(event.getThrowable()))
+ .onSuccess(event -> recordSuccess())
+ .onStateTransition(event -> stateChanged(event.getStateTransition()))
+ .onCallNotPermitted(event -> captureRejection())
+ .onReset(event -> refreshWindow());
+ }
+
+ synchronized CircuitBreakerOpenEvent getOpenEvent() {
+ refreshWindow();
+ return openEvent;
+ }
+
+ void withRejectionCapture(Runnable permissionCheck) {
+ RejectionCapture previous = rejectionCapture.get();
+ RejectionCapture capture = new RejectionCapture();
+ rejectionCapture.set(capture);
+ try {
+ permissionCheck.run();
+ } finally {
+ if (previous == null) {
+ rejectionCapture.remove();
+ } else {
+ rejectionCapture.set(previous);
+ }
+ }
+ }
+
+ private void captureRejection() {
+ RejectionCapture capture = rejectionCapture.get();
+ if (capture != null && capture.rejection == null) {
+ capture.rejection = newRejection();
+ }
+ }
+
+ CallNotAllowedException createRejection() {
+ RejectionCapture capture = rejectionCapture.get();
+ return capture == null || capture.rejection == null ? newRejection() : capture.rejection;
+ }
+
+ private CallNotAllowedException newRejection() {
+ String message =
+ "CircuitBreaker '"
+ + circuitBreaker.getName()
+ + "' is "
+ + circuitBreaker.getState()
+ + " and does not permit further calls";
+ return CallNotAllowedException.createCallNotAllowedException(
+ message, config.isWritableStackTraceEnabled(), getOpenEvent());
+ }
+
+ private void recordFailure(Throwable throwable) {
+ Integer status = null;
+ FailureCategory category = FailureCategory.OTHER;
+ Throwable cause = throwable;
+ for (int depth = 0; cause != null && depth < 16; depth++) {
+ status =
+ cause instanceof HttpStatusProvider
+ ? ((HttpStatusProvider) cause).getStatusCode()
+ : null;
+ if (status != null && status >= 100 && status <= 599) {
+ category = FailureCategory.REMOTE_HTTP;
+ break;
+ }
+ status = null;
+ FailureCategory candidate = classify(cause);
+ if (candidate != FailureCategory.OTHER) {
+ category = candidate;
+ break;
+ }
+ cause = cause.getCause();
+ }
+ synchronized (this) {
+ refreshWindow();
+ long position = nextPosition();
+ prune(position);
+ FailureBucket bucket =
+ failures.computeIfAbsent(position, ignored -> new FailureBucket());
+ bucket.categories[category.ordinal()]++;
+ if (status != null) {
+ bucket.statuses.merge(status, 1L, Long::sum);
+ }
+ }
+ }
+
+ private synchronized void recordSuccess() {
+ refreshWindow();
+ prune(nextPosition());
+ }
+
+ private long nextPosition() {
+ return config.getSlidingWindowType() == CircuitBreakerConfig.SlidingWindowType.COUNT_BASED
+ ? ++callPosition
+ : Instant.now().getEpochSecond();
+ }
+
+ private synchronized void stateChanged(CircuitBreaker.StateTransition transition) {
+ refreshWindow();
+ CircuitBreaker.State from = transition.getFromState();
+ if (transition.getToState() == CircuitBreaker.State.OPEN
+ && circuitBreaker.getState() == CircuitBreaker.State.OPEN
+ && openEvent == null
+ && (from == CircuitBreaker.State.CLOSED
+ || from == CircuitBreaker.State.HALF_OPEN)) {
+ openEvent = snapshot(from, CircuitBreaker.State.OPEN);
+ }
+ }
+
+ private synchronized void refreshWindow() {
+ CircuitBreaker.Metrics metrics = circuitBreaker.getMetrics();
+ CircuitBreaker.State state = circuitBreaker.getState();
+ if (metrics != windowMetrics) {
+ // Adopt each evaluation window once, even before its transition callback arrives.
+ clear(state, state != CircuitBreaker.State.HALF_OPEN);
+ windowMetrics = metrics;
+ }
+ if (state == CircuitBreaker.State.OPEN
+ && (windowState == CircuitBreaker.State.CLOSED
+ || windowState == CircuitBreaker.State.HALF_OPEN)) {
+ // Rejections can arrive after the state changes but before the OPEN callback runs.
+ openEvent = snapshot(windowState, state);
+ }
+ windowState = state;
+ }
+
+ private synchronized void clear(CircuitBreaker.State state, boolean clearOpenEvent) {
+ failures.clear();
+ callPosition = 0;
+ windowState = state;
+ if (clearOpenEvent) {
+ openEvent = null;
+ }
+ }
+
+ private CircuitBreakerOpenEvent snapshot(CircuitBreaker.State from, CircuitBreaker.State to) {
+ prune(
+ config.getSlidingWindowType() == CircuitBreakerConfig.SlidingWindowType.COUNT_BASED
+ ? callPosition
+ : Instant.now().getEpochSecond());
+ Map categoryCounts = new EnumMap<>(FailureCategory.class);
+ Map statusCounts = new HashMap<>();
+ for (FailureBucket bucket : failures.values()) {
+ for (FailureCategory category : FailureCategory.values()) {
+ long count = bucket.categories[category.ordinal()];
+ if (count > 0) {
+ categoryCounts.merge(category, count, Long::sum);
+ }
+ }
+ bucket.statuses.forEach(
+ (status, count) -> statusCounts.merge(status, count, Long::sum));
+ }
+ CircuitBreaker.Metrics metrics = windowMetrics;
+ return new CircuitBreakerOpenEvent(
+ UUID.randomUUID().toString(),
+ Instant.now(),
+ from.name(),
+ to.name(),
+ metrics.getNumberOfBufferedCalls(),
+ metrics.getNumberOfFailedCalls(),
+ categoryCounts,
+ statusCounts);
+ }
+
+ private void prune(long currentSecond) {
+ if (windowState == CircuitBreaker.State.HALF_OPEN) {
+ return;
+ }
+ long earliest = currentSecond - config.getSlidingWindowSize() + 1;
+ failures.headMap(earliest, false).clear();
+ }
+
+ private static FailureCategory classify(Throwable cause) {
+ if (cause instanceof UnknownHostException) {
+ return FailureCategory.DNS;
+ }
+ if (cause instanceof SSLException) {
+ return FailureCategory.TLS;
+ }
+ if (cause instanceof InterruptedIOException || cause instanceof TimeoutException) {
+ return FailureCategory.TIMEOUT;
+ }
+ if (cause instanceof ConnectException
+ || cause instanceof NoRouteToHostException
+ || cause instanceof SocketException) {
+ return FailureCategory.CONNECTION;
+ }
+ return FailureCategory.OTHER;
+ }
+
+ private static final class RejectionCapture {
+ private CallNotAllowedException rejection;
+ }
+
+ private static final class FailureBucket {
+ private final long[] categories = new long[FailureCategory.values().length];
+ private final Map statuses = new HashMap<>();
+ }
+}
diff --git a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/OciCircuitBreakerImpl.java b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/OciCircuitBreakerImpl.java
index aaafa65e12e..80d6ad185eb 100644
--- a/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/OciCircuitBreakerImpl.java
+++ b/bmc-circuitbreaker/src/main/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/OciCircuitBreakerImpl.java
@@ -20,6 +20,8 @@
import com.oracle.bmc.circuitbreaker.CallNotAllowedException;
import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerOpenEvent;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerEventListener;
import com.oracle.bmc.circuitbreaker.OciCircuitBreaker;
import io.github.resilience4j.circuitbreaker.CircuitBreaker;
import io.github.resilience4j.circuitbreaker.CircuitBreakerConfig;
@@ -31,9 +33,18 @@ public class OciCircuitBreakerImpl implements OciCircuitBreaker {
private final int numberOfRecordedHistoryResponses;
private Deque historyQueue;
private volatile long openedTimestampMillis;
+ private final CircuitBreakerDiagnostics diagnostics;
+ private volatile CircuitBreaker.Metrics historyClosedWindow;
public OciCircuitBreakerImpl(
CircuitBreaker r4jCircuitBreaker, int numberOfRecordedHistoryResponses) {
+ this(r4jCircuitBreaker, numberOfRecordedHistoryResponses, null);
+ }
+
+ private OciCircuitBreakerImpl(
+ CircuitBreaker r4jCircuitBreaker,
+ int numberOfRecordedHistoryResponses,
+ CircuitBreakerEventListener circuitBreakerEventListener) {
if (r4jCircuitBreaker == null) {
throw new IllegalArgumentException("r4jCircuitBreaker must be non-null");
}
@@ -43,8 +54,15 @@ public OciCircuitBreakerImpl(
CircuitBreaker.of(
circuitBreakerName, r4jCircuitBreaker.getCircuitBreakerConfig());
}
+ this.r4jCircuitBreaker = r4jCircuitBreaker;
+ this.historyQueue = new ArrayDeque<>();
+ this.numberOfRecordedHistoryResponses = numberOfRecordedHistoryResponses;
+ this.diagnostics = new CircuitBreakerDiagnostics(r4jCircuitBreaker);
+ this.historyClosedWindow = r4jCircuitBreaker.getMetrics();
r4jCircuitBreaker
.getEventPublisher()
+ .onError(event -> refreshHistory())
+ .onSuccess(event -> refreshHistory())
.onStateTransition(
event -> {
CircuitBreaker.StateTransition transition = event.getStateTransition();
@@ -53,15 +71,32 @@ public OciCircuitBreakerImpl(
getName(),
transition.getFromState(),
transition.getToState());
- if (transition.getFromState() == CircuitBreaker.State.CLOSED
- && transition.getToState() == CircuitBreaker.State.OPEN) {
+ if (transition.getToState() == CircuitBreaker.State.OPEN) {
openedTimestampMillis = System.currentTimeMillis();
}
- });
-
- this.r4jCircuitBreaker = r4jCircuitBreaker;
- this.historyQueue = new ArrayDeque<>();
- this.numberOfRecordedHistoryResponses = numberOfRecordedHistoryResponses;
+ if (transition.getToState() == CircuitBreaker.State.CLOSED) {
+ refreshHistory();
+ }
+ })
+ .onReset(event -> refreshHistory());
+
+ if (circuitBreakerEventListener != null) {
+ r4jCircuitBreaker
+ .getEventPublisher()
+ .onError(event -> circuitBreakerEventListener.onError(event.getThrowable()))
+ .onSuccess(
+ event ->
+ circuitBreakerEventListener.onSuccess(
+ event.getElapsedDuration()))
+ .onStateTransition(
+ event ->
+ circuitBreakerEventListener.onStateTransition(
+ event.getStateTransition()))
+ .onCallNotPermitted(event -> circuitBreakerEventListener.onCallNotPermitted())
+ .onReset(event -> circuitBreakerEventListener.onReset())
+ .onFailureRateExceeded(
+ event -> circuitBreakerEventListener.onFailureRateExceeded());
+ }
}
public OciCircuitBreakerImpl(
@@ -83,6 +118,9 @@ public OciCircuitBreakerImpl(
.permittedNumberOfCallsInHalfOpenState(
circuitBreakerConfiguration
.getPermittedNumberOfCallsInHalfOpenState())
+ .maxWaitDurationInHalfOpenState(
+ circuitBreakerConfiguration
+ .getMaxWaitDurationInHalfOpenState())
.slidingWindowSize(
circuitBreakerConfiguration.getSlidingWindowSize())
.minimumNumberOfCalls(
@@ -97,7 +135,8 @@ public OciCircuitBreakerImpl(
.toArray(new Class[0]))
.recordException(recordExceptionPredicate)
.build()),
- circuitBreakerConfiguration.getNumberOfRecordedHistoryResponses());
+ circuitBreakerConfiguration.getNumberOfRecordedHistoryResponses(),
+ circuitBreakerConfiguration.getCircuitBreakerEventListener());
}
@Override
@@ -120,6 +159,11 @@ public boolean tryAcquirePermission() {
return r4jCircuitBreaker.tryAcquirePermission();
}
+ @Override
+ public void acquirePermissionOrThrow() {
+ diagnostics.withRejectionCapture(OciCircuitBreaker.super::acquirePermissionOrThrow);
+ }
+
@Override
public void releasePermission() {
r4jCircuitBreaker.releasePermission();
@@ -184,14 +228,7 @@ public String toString() {
@Override
public CallNotAllowedException createCallNotAllowedException() {
- return CallNotAllowedException.createCallNotAllowedException(
- // message is identical to that from resilience4j CallNotPermittedException
- "CircuitBreaker '"
- + this.getName()
- + "' is "
- + this.getState()
- + " and does not permit further calls",
- this.getCircuitBreakerConfig().isWritableStackTraceEnabled());
+ return diagnostics.createRejection();
}
/**
@@ -202,6 +239,17 @@ public CallNotAllowedException createCallNotAllowedException() {
*/
@Override
public String circuitBreakerCallNotPermittedErrorMessage(String requestUri) {
+ return circuitBreakerCallNotPermittedErrorMessage(requestUri, null);
+ }
+
+ @Override
+ public CircuitBreakerOpenEvent getOpenEvent() {
+ return diagnostics.getOpenEvent();
+ }
+
+ @Override
+ public String circuitBreakerCallNotPermittedErrorMessage(
+ String requestUri, CallNotAllowedException rejection) {
StringBuilder messageBuilder = new StringBuilder();
messageBuilder
.append("CircuitBreaker has been OPEN for ")
@@ -220,15 +268,18 @@ public String circuitBreakerCallNotPermittedErrorMessage(String requestUri) {
.append(requestUri + "\n");
}
+ CircuitBreakerOpenEvent event =
+ rejection == null ? getOpenEvent() : rejection.getOpenEvent();
+ if (event != null && CircuitBreakerConfiguration.isDiagnosticSummaryEnabled()) {
+ messageBuilder
+ .append("Diagnostic summary for this opening:\n")
+ .append(event)
+ .append("\n");
+ }
String historyAsString = getHistoryAsString();
- int numberOfCurrentRecordsinHistory =
- Math.min(numberOfRecordedHistoryResponses, historyQueue.size());
- if (historyAsString != null && !historyAsString.trim().isEmpty()) {
+ if (!historyAsString.trim().isEmpty()) {
messageBuilder
- .append(
- "The CircuitBreaker was opened because requests failed too frequently. Here are the last ")
- .append(numberOfCurrentRecordsinHistory)
- .append(" failed requests:\n")
+ .append("Recent failure history since last close:\n")
.append(historyAsString);
}
@@ -250,6 +301,10 @@ private long getCircuitBreakerOpenTime() {
@Override
public synchronized void addToHistory(
Throwable throwable, Integer status, Map messages) {
+ refreshHistory();
+ if (numberOfRecordedHistoryResponses <= 0) {
+ return;
+ }
if (historyQueue.size() >= numberOfRecordedHistoryResponses) {
historyQueue.removeFirst();
}
@@ -257,13 +312,31 @@ public synchronized void addToHistory(
historyQueue.add(new ErrorHistoryItem(throwable, status, messages));
}
+ private void refreshHistory() {
+ if (r4jCircuitBreaker.getState() != CircuitBreaker.State.CLOSED
+ || r4jCircuitBreaker.getMetrics() == historyClosedWindow) {
+ return;
+ }
+ synchronized (this) {
+ // Recheck after acquiring the monitor: a new failure may have refreshed it first.
+ CircuitBreaker.Metrics metrics = r4jCircuitBreaker.getMetrics();
+ if (r4jCircuitBreaker.getState() == CircuitBreaker.State.CLOSED
+ && metrics != historyClosedWindow) {
+ historyQueue.clear();
+ historyClosedWindow = metrics;
+ }
+ }
+ }
+
@Override
public synchronized List getHistory() {
+ refreshHistory();
return Collections.unmodifiableList(new ArrayList<>(historyQueue));
}
@Override
public synchronized String getHistoryAsString() {
+ refreshHistory();
StringBuilder sb = new StringBuilder();
int index = 1;
for (ErrorHistoryItem item : historyQueue) {
diff --git a/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/CircuitBreakerConfigurationTest.java b/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/CircuitBreakerConfigurationTest.java
new file mode 100644
index 00000000000..80872c298a4
--- /dev/null
+++ b/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/CircuitBreakerConfigurationTest.java
@@ -0,0 +1,227 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.circuitbreaker;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertTrue;
+
+import java.time.Duration;
+import java.util.Collections;
+import java.util.List;
+import java.util.Set;
+import org.junit.Test;
+
+public class CircuitBreakerConfigurationTest {
+ @Test
+ public void defaultMaxWaitDurationInHalfOpenStateIsThirtySeconds() {
+ CircuitBreakerConfiguration configuration = new CircuitBreakerConfiguration();
+
+ assertEquals(Duration.ofSeconds(30), configuration.getMaxWaitDurationInHalfOpenState());
+ assertEquals(10, configuration.getPermittedNumberOfCallsInHalfOpenState());
+ assertTrue(
+ configuration.getCircuitBreakerEventListener()
+ instanceof DefaultCircuitBreakerEventListener);
+ }
+
+ @Test
+ public void emptyBuilderUsesDefaultHalfOpenSettings() {
+ CircuitBreakerConfiguration configuration = CircuitBreakerConfiguration.builder().build();
+
+ assertEquals(Duration.ofSeconds(30), configuration.getMaxWaitDurationInHalfOpenState());
+ assertEquals(10, configuration.getPermittedNumberOfCallsInHalfOpenState());
+ assertTrue(
+ configuration.getCircuitBreakerEventListener()
+ instanceof DefaultCircuitBreakerEventListener);
+ }
+
+ @Test
+ public void customHalfOpenWaitDurationUsesFluentBuilder() {
+ Duration customDuration = Duration.ofSeconds(47);
+ CircuitBreakerConfiguration.CircuitBreakerConfigurationBuilder builder =
+ CircuitBreakerConfiguration.builder();
+
+ builder.maxWaitDurationInHalfOpenState(customDuration);
+ assertEquals(customDuration, builder.build().getMaxWaitDurationInHalfOpenState());
+ }
+
+ @Test
+ public void reusingBuilderPreservesPreviouslyBuiltConfigurations() {
+ CircuitBreakerConfiguration.CircuitBreakerConfigurationBuilder builder =
+ CircuitBreakerConfiguration.builder();
+ CircuitBreakerConfiguration defaultConfiguration = builder.build();
+ CircuitBreakerEventListener listener = new DefaultCircuitBreakerEventListener() {};
+ CircuitBreakerConfiguration customConfiguration =
+ builder.maxWaitDurationInHalfOpenState(Duration.ofSeconds(47))
+ .circuitBreakerEventListener(listener)
+ .build();
+ CircuitBreakerConfiguration disabledConfiguration =
+ builder.maxWaitDurationInHalfOpenState(Duration.ofSeconds(83))
+ .circuitBreakerEventListener(null)
+ .build();
+
+ assertEquals(
+ Duration.ofSeconds(30), defaultConfiguration.getMaxWaitDurationInHalfOpenState());
+ assertTrue(
+ defaultConfiguration.getCircuitBreakerEventListener()
+ instanceof DefaultCircuitBreakerEventListener);
+ assertEquals(
+ Duration.ofSeconds(47), customConfiguration.getMaxWaitDurationInHalfOpenState());
+ assertSame(listener, customConfiguration.getCircuitBreakerEventListener());
+ assertEquals(
+ Duration.ofSeconds(83), disabledConfiguration.getMaxWaitDurationInHalfOpenState());
+ assertNull(disabledConfiguration.getCircuitBreakerEventListener());
+ assertNull(builder.build().getCircuitBreakerEventListener());
+ }
+
+ @Test
+ public void existingElevenArgumentConstructorPreservesSettingsAndDefaultHistoryCount() {
+ assertSettingsWithDefaultListener(new TestConfig(), 5);
+ }
+
+ @Test
+ public void existingTwelveArgumentConstructorPreservesSettingsAndCustomHistoryCount() {
+ assertSettingsWithDefaultListener(new TestConfig(9), 9);
+ }
+
+ @Test
+ public void customListenerCanBeConfiguredOrDisabled() {
+ CircuitBreakerEventListener listener = new DefaultCircuitBreakerEventListener() {};
+ CircuitBreakerConfiguration.CircuitBreakerConfigurationBuilder builder =
+ CircuitBreakerConfiguration.builder();
+
+ builder.circuitBreakerEventListener(listener);
+ assertSame(listener, builder.build().getCircuitBreakerEventListener());
+ assertNull(
+ builder.circuitBreakerEventListener(null).build().getCircuitBreakerEventListener());
+ }
+
+ @Test
+ public void thirteenArgumentConstructorPreservesCustomTimeoutAndDefaultsListener() {
+ CircuitBreakerConfiguration configuration = new TestConfig(Duration.ofSeconds(47));
+
+ assertSettingsWithDefaultListener(configuration, 9, Duration.ofSeconds(47));
+ }
+
+ @Test
+ public void fourteenArgumentConstructorPreservesExplicitListenerAndSettings() {
+ CircuitBreakerEventListener listener = new DefaultCircuitBreakerEventListener() {};
+ CircuitBreakerConfiguration configuration =
+ new TestConfig(Duration.ofSeconds(47), listener);
+
+ assertSettings(configuration, 9, Duration.ofSeconds(47));
+ assertSame(listener, configuration.getCircuitBreakerEventListener());
+ assertNull(new TestConfig(Duration.ofSeconds(47), null).getCircuitBreakerEventListener());
+ }
+
+ private static void assertSettingsWithDefaultListener(
+ CircuitBreakerConfiguration configuration, int expectedHistoryCount) {
+ assertSettingsWithDefaultListener(
+ configuration, expectedHistoryCount, Duration.ofSeconds(30));
+ }
+
+ private static void assertSettingsWithDefaultListener(
+ CircuitBreakerConfiguration configuration,
+ int expectedHistoryCount,
+ Duration expectedTimeout) {
+ assertSettings(configuration, expectedHistoryCount, expectedTimeout);
+ assertTrue(
+ configuration.getCircuitBreakerEventListener()
+ instanceof DefaultCircuitBreakerEventListener);
+ }
+
+ private static void assertSettings(
+ CircuitBreakerConfiguration configuration,
+ int expectedHistoryCount,
+ Duration expectedTimeout) {
+ assertEquals(expectedTimeout, configuration.getMaxWaitDurationInHalfOpenState());
+ assertEquals(61, configuration.getFailureRateThreshold());
+ assertEquals(72, configuration.getSlowCallRateThreshold());
+ assertEquals(Duration.ofSeconds(13), configuration.getWaitDurationInOpenState());
+ assertEquals(3, configuration.getPermittedNumberOfCallsInHalfOpenState());
+ assertEquals(7, configuration.getMinimumNumberOfCalls());
+ assertEquals(41, configuration.getSlidingWindowSize());
+ assertEquals(Duration.ofSeconds(17), configuration.getSlowCallDurationThreshold());
+ assertEquals(false, configuration.isWritableStackTraceEnabled());
+ assertEquals(TestConfig.HTTP_STATUSES, configuration.getRecordHttpStatuses());
+ assertEquals(TestConfig.EXCEPTIONS, configuration.getRecordExceptions());
+ assertEquals(false, configuration.isRecordProcessingFailures());
+ assertEquals(expectedHistoryCount, configuration.getNumberOfRecordedHistoryResponses());
+ }
+
+ private static final class TestConfig extends CircuitBreakerConfiguration {
+ private static final Set HTTP_STATUSES = Collections.singleton(418);
+ private static final List> EXCEPTIONS =
+ Collections.>singletonList(
+ IllegalStateException.class);
+
+ private TestConfig() {
+ super(
+ 61,
+ 72,
+ Duration.ofSeconds(13),
+ 3,
+ 7,
+ 41,
+ Duration.ofSeconds(17),
+ false,
+ HTTP_STATUSES,
+ EXCEPTIONS,
+ false);
+ }
+
+ private TestConfig(int historyCount) {
+ super(
+ 61,
+ 72,
+ Duration.ofSeconds(13),
+ 3,
+ 7,
+ 41,
+ Duration.ofSeconds(17),
+ false,
+ HTTP_STATUSES,
+ EXCEPTIONS,
+ false,
+ historyCount);
+ }
+
+ private TestConfig(Duration timeout) {
+ super(
+ 61,
+ 72,
+ Duration.ofSeconds(13),
+ 3,
+ 7,
+ 41,
+ Duration.ofSeconds(17),
+ false,
+ HTTP_STATUSES,
+ EXCEPTIONS,
+ false,
+ 9,
+ timeout);
+ }
+
+ private TestConfig(Duration timeout, CircuitBreakerEventListener listener) {
+ super(
+ 61,
+ 72,
+ Duration.ofSeconds(13),
+ 3,
+ 7,
+ 41,
+ Duration.ofSeconds(17),
+ false,
+ HTTP_STATUSES,
+ EXCEPTIONS,
+ false,
+ 9,
+ timeout,
+ listener);
+ }
+ }
+}
diff --git a/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/OciCircuitBreakerImplTest.java b/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/OciCircuitBreakerImplTest.java
new file mode 100644
index 00000000000..df8eb4fce28
--- /dev/null
+++ b/bmc-circuitbreaker/src/test/java/com/oracle/bmc/circuitbreaker/internal/resilience4j/OciCircuitBreakerImplTest.java
@@ -0,0 +1,454 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.circuitbreaker.internal.resilience4j;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertThrows;
+import static org.junit.Assert.assertTrue;
+
+import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerEventListener;
+import io.github.resilience4j.circuitbreaker.CallNotPermittedException;
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.concurrent.CopyOnWriteArrayList;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicInteger;
+import org.junit.Test;
+
+public class OciCircuitBreakerImplTest {
+ @Test
+ public void listenerReceivesSuccessDurationAndOriginalRecordedError() {
+ RecordingListener listener = new RecordingListener();
+ OciCircuitBreakerImpl breaker =
+ createBreaker(
+ CircuitBreakerConfiguration.builder()
+ .circuitBreakerEventListener(listener)
+ .build());
+ RuntimeException failure = new IllegalStateException("recorded failure");
+
+ breaker.onSuccess(1234, TimeUnit.MICROSECONDS);
+ breaker.onError(9, TimeUnit.MILLISECONDS, failure);
+
+ assertEquals(Collections.singletonList(Duration.ofNanos(1_234_000)), listener.successes);
+ assertEquals(1, listener.errors.size());
+ assertSame(failure, listener.errors.get(0));
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ }
+
+ @Test
+ public void listenerReceivesThresholdStateDeniedCallAndResetEvents() {
+ RecordingListener listener = new RecordingListener();
+ OciCircuitBreakerImpl breaker =
+ createBreaker(
+ CircuitBreakerConfiguration.builder()
+ .minimumNumberOfCalls(2)
+ .failureRateThreshold(50)
+ .waitDurationInOpenState(Duration.ofSeconds(30))
+ .circuitBreakerEventListener(listener)
+ .build());
+ try {
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+ breaker.onError(2, TimeUnit.MILLISECONDS, new IllegalStateException("failed"));
+
+ assertEquals(CircuitBreaker.State.OPEN, breaker.getState());
+ assertEquals(1, listener.failureRates.get());
+ assertEquals(
+ Collections.singletonList(CircuitBreaker.StateTransition.CLOSED_TO_OPEN),
+ listener.transitions);
+ assertFalse(breaker.tryAcquirePermission());
+ assertEquals(1, listener.deniedCalls.get());
+ assertThrows(CallNotPermittedException.class, breaker::acquirePermission);
+ assertEquals(2, listener.deniedCalls.get());
+
+ breaker.getR4jCircuitBreaker().reset();
+
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ assertEquals(1, listener.resets.get());
+ assertEquals(
+ Arrays.asList(
+ CircuitBreaker.StateTransition.CLOSED_TO_OPEN,
+ CircuitBreaker.StateTransition.OPEN_TO_CLOSED),
+ listener.transitions);
+ assertTrue(breaker.tryAcquirePermission());
+ assertEquals(2, listener.deniedCalls.get());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void nullListenerRetainsBreakerBehaviorAndStateBookkeeping() {
+ CircuitBreakerConfiguration configuration =
+ CircuitBreakerConfiguration.builder()
+ .minimumNumberOfCalls(1)
+ .circuitBreakerEventListener(null)
+ .build();
+ OciCircuitBreakerImpl breaker = createBreaker(configuration);
+ try {
+ long beforeOpening = System.currentTimeMillis();
+ breaker.onError(1, TimeUnit.MILLISECONDS, new IllegalStateException("failed"));
+ assertEquals(CircuitBreaker.State.OPEN, breaker.getState());
+ assertFalse(breaker.tryAcquirePermission());
+ String message = breaker.circuitBreakerCallNotPermittedErrorMessage(null);
+ double openSeconds =
+ Double.parseDouble(
+ message.substring(
+ "CircuitBreaker has been OPEN for ".length(),
+ message.indexOf(" seconds")));
+ assertTrue(openSeconds >= 0);
+ assertTrue(openSeconds <= (System.currentTimeMillis() - beforeOpening) / 1000.0);
+ breaker.getR4jCircuitBreaker().reset();
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void rawConstructorKeepsSuppliedBreakerAndItsEventConsumers() {
+ CircuitBreaker raw = CircuitBreaker.ofDefaults("raw");
+ AtomicInteger successes = new AtomicInteger();
+ raw.getEventPublisher().onSuccess(event -> successes.incrementAndGet());
+ OciCircuitBreakerImpl breaker = new OciCircuitBreakerImpl(raw, 3);
+
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+
+ assertSame(raw, breaker.getR4jCircuitBreaker());
+ assertEquals(1, successes.get());
+ }
+
+ @Test
+ public void defaultHalfOpenStateRequiresTenSuccessfulProbes() {
+ OciCircuitBreakerImpl breaker =
+ createBreaker(CircuitBreakerConfiguration.builder().build());
+ try {
+ breaker.getR4jCircuitBreaker().transitionToOpenState();
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ for (int i = 0; i < 10; i++) {
+ assertTrue(
+ "The default ten HALF_OPEN probes should be permitted",
+ breaker.tryAcquirePermission());
+ }
+ assertFalse("An eleventh probe must be rejected", breaker.tryAcquirePermission());
+
+ for (int i = 0; i < 9; i++) {
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+ }
+ assertEquals(CircuitBreaker.State.HALF_OPEN, breaker.getState());
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void halfOpenWithoutProbesAutomaticallyReopensBreaker() throws InterruptedException {
+ RecordingListener listener = new RecordingListener();
+ OciCircuitBreakerImpl breaker =
+ createBreaker(
+ CircuitBreakerConfiguration.builder()
+ .maxWaitDurationInHalfOpenState(Duration.ofMillis(500))
+ .waitDurationInOpenState(Duration.ofSeconds(30))
+ .circuitBreakerEventListener(listener)
+ .build());
+ CountDownLatch reopened = new CountDownLatch(1);
+ try {
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition()
+ == CircuitBreaker.StateTransition.HALF_OPEN_TO_OPEN) {
+ reopened.countDown();
+ }
+ });
+ breaker.getR4jCircuitBreaker().transitionToOpenState();
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ assertEquals(CircuitBreaker.State.HALF_OPEN, breaker.getState());
+
+ assertTrue(
+ "HALF_OPEN should time out even without submitted probes",
+ reopened.await(5, TimeUnit.SECONDS));
+ assertEquals(CircuitBreaker.State.OPEN, breaker.getState());
+ assertEquals(
+ Arrays.asList(
+ CircuitBreaker.StateTransition.CLOSED_TO_OPEN,
+ CircuitBreaker.StateTransition.OPEN_TO_HALF_OPEN,
+ CircuitBreaker.StateTransition.HALF_OPEN_TO_OPEN),
+ listener.transitions);
+ assertFalse(breaker.tryAcquirePermission());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void oneOfFourSuccessfulHalfOpenProbesTimesOut() throws InterruptedException {
+ OciCircuitBreakerImpl breaker =
+ createBreaker(
+ CircuitBreakerConfiguration.builder()
+ .permittedNumberOfCallsInHalfOpenState(4)
+ .maxWaitDurationInHalfOpenState(Duration.ofMillis(500))
+ .waitDurationInOpenState(Duration.ofSeconds(30))
+ .build());
+ CountDownLatch reopened = new CountDownLatch(1);
+ try {
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition()
+ == CircuitBreaker.StateTransition.HALF_OPEN_TO_OPEN) {
+ reopened.countDown();
+ }
+ });
+ breaker.getR4jCircuitBreaker().transitionToOpenState();
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ assertTrue(breaker.tryAcquirePermission());
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+
+ assertEquals(CircuitBreaker.State.HALF_OPEN, breaker.getState());
+ assertTrue(
+ "One completed probe must not cancel the HALF_OPEN timeout",
+ reopened.await(5, TimeUnit.SECONDS));
+ assertEquals(CircuitBreaker.State.OPEN, breaker.getState());
+ assertFalse(breaker.tryAcquirePermission());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void failedHalfOpenProbesStayOpenAfterOriginalTimeout() throws InterruptedException {
+ OciCircuitBreakerImpl breaker =
+ createBreaker(
+ CircuitBreakerConfiguration.builder()
+ .failureRateThreshold(50)
+ .permittedNumberOfCallsInHalfOpenState(4)
+ .maxWaitDurationInHalfOpenState(Duration.ofSeconds(2))
+ .waitDurationInOpenState(Duration.ofSeconds(30))
+ .build());
+ AtomicInteger transitions = new AtomicInteger();
+ CountDownLatch unexpectedTransition = new CountDownLatch(1);
+ try {
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (transitions.incrementAndGet() > 3) {
+ unexpectedTransition.countDown();
+ }
+ });
+ breaker.getR4jCircuitBreaker().transitionToOpenState();
+ long halfOpenDeadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(2);
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ for (int i = 0; i < 3; i++) {
+ assertTrue(breaker.tryAcquirePermission());
+ breaker.onError(
+ 1, TimeUnit.MILLISECONDS, new IllegalStateException("probe failed"));
+ }
+ assertEquals(CircuitBreaker.State.HALF_OPEN, breaker.getState());
+ assertTrue(breaker.tryAcquirePermission());
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+
+ assertTrue(
+ "Completed probes should reopen the breaker before the timeout",
+ System.nanoTime() < halfOpenDeadline);
+ assertEquals(CircuitBreaker.State.OPEN, breaker.getState());
+ assertEquals(3, transitions.get());
+ // Observe past the original deadline to catch stale timeout-driven transitions.
+ assertFalse(unexpectedTransition.await(2500, TimeUnit.MILLISECONDS));
+ assertEquals(CircuitBreaker.State.OPEN, breaker.getState());
+ assertEquals(3, transitions.get());
+ assertFalse(breaker.tryAcquirePermission());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void successfulHalfOpenProbeStaysClosedAfterTimeout() throws InterruptedException {
+ CircuitBreakerConfiguration configuration =
+ CircuitBreakerConfiguration.builder()
+ .permittedNumberOfCallsInHalfOpenState(1)
+ .maxWaitDurationInHalfOpenState(Duration.ofMillis(500))
+ .waitDurationInOpenState(Duration.ofSeconds(30))
+ .build();
+ OciCircuitBreakerImpl breaker = createBreaker(configuration);
+ CountDownLatch reopened = new CountDownLatch(1);
+
+ try {
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition()
+ == CircuitBreaker.StateTransition.HALF_OPEN_TO_OPEN) {
+ reopened.countDown();
+ }
+ });
+ breaker.getR4jCircuitBreaker().transitionToOpenState();
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ assertTrue("The HALF_OPEN probe should be permitted", breaker.tryAcquirePermission());
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ assertFalse(
+ "The completed probe's timeout must not reopen the breaker",
+ reopened.await(1, TimeUnit.SECONDS));
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void incompleteHalfOpenProbeAutomaticallyReopensBreaker() throws InterruptedException {
+ CircuitBreakerConfiguration configuration =
+ CircuitBreakerConfiguration.builder()
+ .maxWaitDurationInHalfOpenState(Duration.ofMillis(500))
+ .waitDurationInOpenState(Duration.ofSeconds(30))
+ .build();
+ OciCircuitBreakerImpl breaker = createBreaker(configuration);
+ CountDownLatch reopened = new CountDownLatch(1);
+
+ try {
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition()
+ == CircuitBreaker.StateTransition.HALF_OPEN_TO_OPEN) {
+ reopened.countDown();
+ }
+ });
+ breaker.getR4jCircuitBreaker().transitionToOpenState();
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ assertTrue("The HALF_OPEN probe should be permitted", breaker.tryAcquirePermission());
+
+ assertTrue("The incomplete probe should time out", reopened.await(5, TimeUnit.SECONDS));
+ assertEquals(CircuitBreaker.State.OPEN, breaker.getState());
+ assertFalse(
+ "The reopened breaker should deny permission", breaker.tryAcquirePermission());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void customHalfOpenWaitDurationIsPropagatedToResilience4j() {
+ Duration customDuration = Duration.ofSeconds(47);
+ CircuitBreakerConfiguration configuration =
+ CircuitBreakerConfiguration.builder()
+ .maxWaitDurationInHalfOpenState(customDuration)
+ .build();
+
+ OciCircuitBreakerImpl breaker = createBreaker(configuration);
+
+ assertEquals(
+ customDuration,
+ breaker.getR4jCircuitBreaker()
+ .getCircuitBreakerConfig()
+ .getMaxWaitDurationInHalfOpenState());
+ }
+
+ @Test
+ public void defaultHalfOpenWaitDurationIsThirtySeconds() {
+ OciCircuitBreakerImpl breaker =
+ createBreaker(CircuitBreakerConfiguration.builder().build());
+
+ assertEquals(
+ Duration.ofSeconds(30),
+ breaker.getR4jCircuitBreaker()
+ .getCircuitBreakerConfig()
+ .getMaxWaitDurationInHalfOpenState());
+ }
+
+ @Test
+ public void halfOpenWaitDurationIsValidatedWhenBreakerIsCreated() {
+ CircuitBreakerConfiguration minimumConfiguration =
+ CircuitBreakerConfiguration.builder()
+ .maxWaitDurationInHalfOpenState(Duration.ofMillis(1))
+ .build();
+ OciCircuitBreakerImpl breaker = createBreaker(minimumConfiguration);
+
+ assertEquals(
+ Duration.ofMillis(1),
+ breaker.getR4jCircuitBreaker()
+ .getCircuitBreakerConfig()
+ .getMaxWaitDurationInHalfOpenState());
+
+ CircuitBreakerConfiguration nullConfiguration =
+ CircuitBreakerConfiguration.builder().maxWaitDurationInHalfOpenState(null).build();
+ assertNull(nullConfiguration.getMaxWaitDurationInHalfOpenState());
+ assertThrows(NullPointerException.class, () -> createBreaker(nullConfiguration));
+ assertInvalidHalfOpenWaitDuration(Duration.ZERO);
+ assertInvalidHalfOpenWaitDuration(Duration.ofMillis(-1));
+ assertInvalidHalfOpenWaitDuration(Duration.ofNanos(999_999));
+ }
+
+ private static void assertInvalidHalfOpenWaitDuration(Duration duration) {
+ CircuitBreakerConfiguration configuration =
+ CircuitBreakerConfiguration.builder()
+ .maxWaitDurationInHalfOpenState(duration)
+ .build();
+
+ assertEquals(duration, configuration.getMaxWaitDurationInHalfOpenState());
+ assertThrows(IllegalArgumentException.class, () -> createBreaker(configuration));
+ }
+
+ private static OciCircuitBreakerImpl createBreaker(CircuitBreakerConfiguration configuration) {
+ return new OciCircuitBreakerImpl(configuration, throwable -> true);
+ }
+
+ private static final class RecordingListener implements CircuitBreakerEventListener {
+ private final List successes = new CopyOnWriteArrayList<>();
+ private final List errors = new CopyOnWriteArrayList<>();
+ private final List transitions =
+ new CopyOnWriteArrayList<>();
+ private final AtomicInteger deniedCalls = new AtomicInteger();
+ private final AtomicInteger resets = new AtomicInteger();
+ private final AtomicInteger failureRates = new AtomicInteger();
+
+ @Override
+ public void onSuccess(Duration duration) {
+ successes.add(duration);
+ }
+
+ @Override
+ public void onError(Throwable throwable) {
+ errors.add(throwable);
+ }
+
+ @Override
+ public void onStateTransition(CircuitBreaker.StateTransition transition) {
+ transitions.add(transition);
+ }
+
+ @Override
+ public void onReset() {
+ resets.incrementAndGet();
+ }
+
+ @Override
+ public void onCallNotPermitted() {
+ deniedCalls.incrementAndGet();
+ }
+
+ @Override
+ public void onFailureRateExceeded() {
+ failureRates.incrementAndGet();
+ }
+ }
+}
diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml
index a2a16c30155..76fd729169b 100644
--- a/bmc-cloudbridge/pom.xml
+++ b/bmc-cloudbridge/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-cloudbridge
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml
index 1dd9b26416f..0da87068828 100644
--- a/bmc-cloudguard/pom.xml
+++ b/bmc-cloudguard/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-cloudguard
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml
index 78e6af69bf8..82c4c8f683b 100644
--- a/bmc-cloudmigrations/pom.xml
+++ b/bmc-cloudmigrations/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-cloudmigrations
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-clusterhealth/pom.xml b/bmc-clusterhealth/pom.xml
index be7b1939803..fb6575f703b 100644
--- a/bmc-clusterhealth/pom.xml
+++ b/bmc-clusterhealth/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-clusterhealth
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml
index 16e65d6fe3b..e4882f9d809 100644
--- a/bmc-clusterplacementgroups/pom.xml
+++ b/bmc-clusterplacementgroups/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-clusterplacementgroups
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml
index fee28022fe2..a432a3c3a0e 100644
--- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml
+++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-choices
- 3.101.0
+ 3.102.0
../pom.xml
@@ -93,7 +93,7 @@
com.oracle.oci.sdk
oci-java-sdk-addons-apache-configurator-jersey
- 3.101.0
+ 3.102.0
@@ -102,7 +102,7 @@
com.oracle.oci.sdk
oci-java-sdk-common-httpclient
- 3.101.0
+ 3.102.0
org.glassfish.jersey.core
diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml
index 0cfa13a707d..e2c8e7befdc 100644
--- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml
+++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-choices
- 3.101.0
+ 3.102.0
../pom.xml
@@ -93,7 +93,7 @@
com.oracle.oci.sdk
oci-java-sdk-addons-apache-configurator-jersey3
- 3.101.0
+ 3.102.0
@@ -102,7 +102,7 @@
com.oracle.oci.sdk
oci-java-sdk-common-httpclient
- 3.101.0
+ 3.102.0
jakarta.ws.rs
diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml
index d77750201ac..ce67e3cb1c1 100644
--- a/bmc-common-httpclient-choices/pom.xml
+++ b/bmc-common-httpclient-choices/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml
index da233e6687a..d91e2d93c79 100644
--- a/bmc-common-httpclient/pom.xml
+++ b/bmc-common-httpclient/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml
index 2e5045d3ad1..4252a745f21 100644
--- a/bmc-common/pom.xml
+++ b/bmc-common/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -98,12 +98,12 @@
com.oracle.oci.sdk
oci-java-sdk-circuitbreaker
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-common-httpclient
- 3.101.0
+ 3.102.0
@@ -148,7 +148,7 @@
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-jersey
- 3.101.0
+ 3.102.0
test
diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/BaseClient.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/BaseClient.java
index 3854dbaadd1..cc2895579c2 100644
--- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/BaseClient.java
+++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/BaseClient.java
@@ -364,6 +364,7 @@ public final synchronized void setEndpoint(String endpoint) {
.registerRequestInterceptor(Priorities.USER, LOG_HEADERS_FILTER);
clientConfigurator.customizeClient(builder);
HttpClient oldClient = this.httpClient;
+ stopOwnedCircuitBreaker();
if (oldClient != null) {
oldClient.close();
}
@@ -469,12 +470,21 @@ protected void setRegion(String regionId) {
}
@Override
- public final void close() {
+ public final synchronized void close() {
+ stopOwnedCircuitBreaker();
if (httpClient != null) {
httpClient.close();
}
}
+ private void stopOwnedCircuitBreaker() {
+ if (circuitBreaker != null && clientConfigurationToUse.getCircuitBreaker() == null) {
+ // Leaving OPEN or HALF_OPEN cancels its scheduled transition and releases the task's
+ // references to the breaker and HTTP client. Caller-supplied breakers may be shared.
+ circuitBreaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
public String getClientCommonLibraryVersion() {
return clientCommonLibraryVersion;
}
diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java
index 9568b7e7e20..fd92defed1f 100644
--- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java
+++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ClientCall.java
@@ -1133,13 +1133,13 @@ private CompletionStage callAsyncImpl() {
}
return upstream.thenCompose(this::transformResponse);
} else {
- if (!circuitBreaker.tryAcquirePermission()) {
- CallNotAllowedException callNotAllowed =
- circuitBreaker.createCallNotAllowedException();
+ try {
+ circuitBreaker.acquirePermissionOrThrow();
+ } catch (CallNotAllowedException callNotAllowed) {
return failedFuture(
BmcException.createClientSide(
circuitBreaker.circuitBreakerCallNotPermittedErrorMessage(
- httpRequest.uri().toString()),
+ httpRequest.uri().toString(), callNotAllowed),
callNotAllowed,
null,
buildServiceDetails()));
diff --git a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ParamEncoder.java b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ParamEncoder.java
index d6c1cd82212..34e974a0e67 100644
--- a/bmc-common/src/main/java/com/oracle/bmc/http/internal/ParamEncoder.java
+++ b/bmc-common/src/main/java/com/oracle/bmc/http/internal/ParamEncoder.java
@@ -101,6 +101,9 @@ private static void appendPercentEncodedByte(StringBuilder builder, byte b) {
keepSet.clear('}');
PATH_PARAM_KEEP_SET = (BitSet) keepSet.clone();
PATH_PARAM_KEEP_SET.clear('/');
+ // also encode characters that are not allowed in URI path segments
+ PATH_PARAM_KEEP_SET.clear('[', '^' + 1);
+ PATH_PARAM_KEEP_SET.clear('|');
// userinfo percent-encode set
keepSet.clear('/');
diff --git a/bmc-common/src/main/java/com/oracle/bmc/model/BmcException.java b/bmc-common/src/main/java/com/oracle/bmc/model/BmcException.java
index 7deca062c69..ae4747b5ab9 100644
--- a/bmc-common/src/main/java/com/oracle/bmc/model/BmcException.java
+++ b/bmc-common/src/main/java/com/oracle/bmc/model/BmcException.java
@@ -5,6 +5,7 @@
package com.oracle.bmc.model;
import com.oracle.bmc.ClientRuntime;
+import com.oracle.bmc.circuitbreaker.HttpStatusProvider;
import com.oracle.bmc.ServiceDetails;
import com.oracle.bmc.http.internal.HttpDateUtils;
import com.oracle.bmc.util.internal.StringUtils;
@@ -12,7 +13,7 @@
import java.util.Date;
import java.util.Map;
-public class BmcException extends SdkRuntimeException {
+public class BmcException extends SdkRuntimeException implements HttpStatusProvider {
/** Name of the header that contains the request id. */
public static final String OPC_REQUEST_ID_HEADER = "opc-request-id";
diff --git a/bmc-common/src/main/java/com/oracle/bmc/util/CircuitBreakerUtils.java b/bmc-common/src/main/java/com/oracle/bmc/util/CircuitBreakerUtils.java
index 09c7da13e01..ce1830c9ca1 100644
--- a/bmc-common/src/main/java/com/oracle/bmc/util/CircuitBreakerUtils.java
+++ b/bmc-common/src/main/java/com/oracle/bmc/util/CircuitBreakerUtils.java
@@ -20,6 +20,7 @@ public class CircuitBreakerUtils {
private static final int DEFAULT_MINIMUM_NUMBER_OF_CALLS_FOR_AUTH_CLIENT_CB = 3;
private static final int DEFAULT_MINIMUM_WAIT_DURATION_IN_OPEN_STATE_FOR_AUTH_CLIENT_CB = 30;
private static final int DEFAULT_MAXIMUM_WAIT_DURATION_IN_OPEN_STATE_FOR_AUTH_CLIENT_CB = 49;
+ private static final int DEFAULT_PERMITTED_CALLS_IN_HALF_OPEN_STATE_FOR_AUTH_CLIENT_CB = 1;
public static CircuitBreakerConfiguration getNoCircuitBreakerConfiguration() {
return new NoCircuitBreakerConfiguration();
@@ -88,6 +89,8 @@ public static CircuitBreakerConfiguration getDefaultAuthClientCircuitBreakerConf
return CircuitBreakerConfiguration.builder()
.minimumNumberOfCalls(DEFAULT_MINIMUM_NUMBER_OF_CALLS_FOR_AUTH_CLIENT_CB)
.failureRateThreshold(DEFAULT_FAILURE_RATE_THRESHOLD_FOR_AUTH_CLIENT_CB)
+ .permittedNumberOfCallsInHalfOpenState(
+ DEFAULT_PERMITTED_CALLS_IN_HALF_OPEN_STATE_FOR_AUTH_CLIENT_CB)
.waitDurationInOpenState(
Duration.ofSeconds(
ThreadLocalRandom.current()
diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/BaseClientTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/BaseClientTest.java
index a57ca8fff4b..0df25e61c8a 100644
--- a/bmc-common/src/test/java/com/oracle/bmc/http/internal/BaseClientTest.java
+++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/BaseClientTest.java
@@ -4,27 +4,45 @@
*/
package com.oracle.bmc.http.internal;
+import com.oracle.bmc.ClientConfiguration;
import com.oracle.bmc.auth.BasicAuthenticationDetailsProvider;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerFactory;
+import com.oracle.bmc.circuitbreaker.OciCircuitBreaker;
import com.oracle.bmc.common.InternalBuilderAccess;
+import com.oracle.bmc.http.client.HttpClient;
+import com.oracle.bmc.http.client.HttpClientBuilder;
import com.oracle.bmc.http.client.HttpProvider;
import com.oracle.bmc.http.signing.RequestSigner;
import com.oracle.bmc.http.signing.RequestSignerFactory;
import com.oracle.bmc.http.signing.SigningStrategy;
import com.oracle.bmc.util.CircuitBreakerUtils;
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
+import org.powermock.reflect.Whitebox;
+import java.util.Arrays;
import java.util.HashMap;
+import java.util.List;
import java.util.Map;
+import java.util.concurrent.Future;
+import java.util.concurrent.atomic.AtomicReference;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotSame;
+import static org.junit.Assert.assertSame;
+import static org.junit.Assert.assertThrows;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
+import static org.mockito.Mockito.RETURNS_SELF;
+import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@RunWith(PowerMockRunner.class)
@@ -32,16 +50,16 @@
public class BaseClientTest {
private BasicAuthenticationDetailsProvider mockAuthProvider;
+ private HttpProvider mockHttpProvider;
@Before
public void setup() {
- HttpProvider mockHttpProvider = mock(HttpProvider.class);
+ mockHttpProvider = mock(HttpProvider.class);
PowerMockito.mockStatic(HttpProvider.class);
PowerMockito.when(HttpProvider.getDefault()).thenReturn(mockHttpProvider);
mockAuthProvider = mock(BasicAuthenticationDetailsProvider.class);
-
RequestSigner mockRequestSigner = mock(RequestSigner.class);
RequestSignerFactory mockRequestSignerFactory = mock(RequestSignerFactory.class);
@@ -67,6 +85,167 @@ public void testCloseWithoutEndpoint() {
client.close();
}
+ @Test
+ public void testCloseCancelsSdkCreatedBreakerTimers() {
+ for (CircuitBreaker.State state : timerStates()) {
+ HttpClient httpClient = configureHttpClient(null);
+ TestBaseClient client = TestBaseClient.builder().build(mockAuthProvider);
+ try {
+ client.setEndpoint("https://first.example.com");
+ OciCircuitBreaker breaker = Whitebox.getInternalState(client, "circuitBreaker");
+ Future> timer = startTimer(breaker, state);
+
+ client.close();
+
+ assertTrue(
+ "Closing the client must cancel its " + state + " timer",
+ timer.isCancelled());
+ assertEquals(CircuitBreaker.State.DISABLED, breaker.getState());
+ verify(httpClient).close();
+ // Repeated cleanup must remain safe.
+ client.close();
+ } finally {
+ client.close();
+ }
+ }
+ }
+
+ @Test
+ public void testChangingEndpointCancelsOldSdkCreatedBreakerTimers() {
+ for (CircuitBreaker.State state : timerStates()) {
+ HttpClient oldHttpClient = configureHttpClient(null);
+ TestBaseClient client = TestBaseClient.builder().build(mockAuthProvider);
+ try {
+ client.setEndpoint("https://first.example.com");
+ OciCircuitBreaker oldBreaker = Whitebox.getInternalState(client, "circuitBreaker");
+ Future> timer = startTimer(oldBreaker, state);
+ HttpClient newHttpClient = configureHttpClient(null);
+
+ client.setEndpoint("https://second.example.com");
+
+ assertTrue(
+ "Replacing the endpoint must cancel the old " + state + " timer",
+ timer.isCancelled());
+ assertEquals(CircuitBreaker.State.DISABLED, oldBreaker.getState());
+ OciCircuitBreaker newBreaker = Whitebox.getInternalState(client, "circuitBreaker");
+ assertNotSame(oldBreaker, newBreaker);
+ assertEquals(CircuitBreaker.State.CLOSED, newBreaker.getState());
+ assertSame(newHttpClient, Whitebox.getInternalState(client, "httpClient"));
+ verify(oldHttpClient).close();
+ // Disposing the old breaker must not stop the shared scheduler.
+ Future> newTimer = startTimer(newBreaker, state);
+ client.close();
+ assertTrue(newTimer.isCancelled());
+ } finally {
+ client.close();
+ }
+ }
+ }
+
+ @Test
+ public void testCallerSuppliedBreakerTimersSurviveCloseAndEndpointChange() {
+ for (CircuitBreaker.State state : timerStates()) {
+ OciCircuitBreaker suppliedBreaker =
+ CircuitBreakerFactory.build(
+ CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION);
+ configureHttpClient(suppliedBreaker);
+ TestBaseClient client = TestBaseClient.builder().build(mockAuthProvider);
+ try {
+ client.setEndpoint("https://first.example.com");
+ Future> timer = startTimer(suppliedBreaker, state);
+
+ client.setEndpoint("https://second.example.com");
+
+ assertSame(suppliedBreaker, Whitebox.getInternalState(client, "circuitBreaker"));
+ assertFalse(timer.isCancelled());
+ assertEquals(state, suppliedBreaker.getState());
+
+ client.close();
+
+ assertFalse(timer.isCancelled());
+ assertEquals(state, suppliedBreaker.getState());
+ } finally {
+ client.close();
+ suppliedBreaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+ }
+
+ @Test
+ public void testCloseCancelsTimerEvenWhenHttpClientCloseFails() {
+ HttpClient httpClient = configureHttpClient(null);
+ TestBaseClient client = TestBaseClient.builder().build(mockAuthProvider);
+ client.setEndpoint("https://first.example.com");
+ OciCircuitBreaker breaker = Whitebox.getInternalState(client, "circuitBreaker");
+ Future> timer = startTimer(breaker, CircuitBreaker.State.HALF_OPEN);
+ IllegalStateException failure = new IllegalStateException("HTTP close failed");
+ doThrow(failure).when(httpClient).close();
+ try {
+ assertSame(failure, assertThrows(IllegalStateException.class, client::close));
+ assertTrue(timer.isCancelled());
+ } finally {
+ breaker.getR4jCircuitBreaker().transitionToDisabledState();
+ }
+ }
+
+ @Test
+ public void testEndpointReplacementFailureStillCancelsOldBreakerTimer() {
+ configureHttpClient(null);
+ TestBaseClient client = TestBaseClient.builder().build(mockAuthProvider);
+ try {
+ client.setEndpoint("https://first.example.com");
+ OciCircuitBreaker breaker = Whitebox.getInternalState(client, "circuitBreaker");
+ Future> timer = startTimer(breaker, CircuitBreaker.State.HALF_OPEN);
+ HttpClientBuilder failingBuilder = mock(HttpClientBuilder.class, RETURNS_SELF);
+ IllegalStateException failure = new IllegalStateException("HTTP build failed");
+ when(mockHttpProvider.newBuilder()).thenReturn(failingBuilder);
+ when(failingBuilder.build()).thenThrow(failure);
+
+ assertSame(
+ failure,
+ assertThrows(
+ IllegalStateException.class,
+ () -> client.setEndpoint("https://second.example.com")));
+
+ assertTrue(timer.isCancelled());
+ assertEquals(CircuitBreaker.State.DISABLED, breaker.getState());
+ } finally {
+ client.close();
+ }
+ }
+
+ private HttpClient configureHttpClient(OciCircuitBreaker suppliedBreaker) {
+ HttpClient httpClient = mock(HttpClient.class);
+ HttpClientBuilder builder = mock(HttpClientBuilder.class, RETURNS_SELF);
+ when(mockHttpProvider.newBuilder()).thenReturn(builder);
+ when(builder.build()).thenReturn(httpClient);
+ PowerMockito.when(InternalBuilderAccess.getConfiguration(any()))
+ .thenReturn(ClientConfiguration.builder().circuitBreaker(suppliedBreaker).build());
+ return httpClient;
+ }
+
+ private static List timerStates() {
+ return Arrays.asList(CircuitBreaker.State.OPEN, CircuitBreaker.State.HALF_OPEN);
+ }
+
+ private static Future> startTimer(OciCircuitBreaker breaker, CircuitBreaker.State state) {
+ CircuitBreaker raw = breaker.getR4jCircuitBreaker();
+ raw.transitionToOpenState();
+ if (state == CircuitBreaker.State.HALF_OPEN) {
+ raw.transitionToHalfOpenState();
+ }
+ // Inspect the scheduled task so cancellation is verified without sleeps or GC timing.
+ AtomicReference> stateReference = Whitebox.getInternalState(raw, "stateReference");
+ Future> timer =
+ Whitebox.getInternalState(
+ stateReference.get(),
+ state == CircuitBreaker.State.OPEN
+ ? "transitionToHalfOpenFuture"
+ : "transitionToOpenFuture");
+ assertFalse("The transition timer should be pending", timer.isDone());
+ return timer;
+ }
+
private static class TestBaseClient extends BaseClient {
/** Service instance for ObjectStorage. */
public static final com.oracle.bmc.Service SERVICE =
diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTest.java
index fb508b8b05c..568517b6f6b 100644
--- a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTest.java
+++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ClientCallTest.java
@@ -5,6 +5,7 @@
package com.oracle.bmc.http.internal;
import com.oracle.bmc.ServiceDetails;
+import com.oracle.bmc.circuitbreaker.CallNotAllowedException;
import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
import com.oracle.bmc.circuitbreaker.internal.resilience4j.OciCircuitBreakerImpl;
import com.oracle.bmc.http.client.HttpClient;
@@ -12,36 +13,43 @@
import com.oracle.bmc.http.client.HttpResponse;
import com.oracle.bmc.http.client.Method;
import com.oracle.bmc.http.client.Serializer;
-import com.oracle.bmc.http.internal.ClientCallTest.TestErrorModel;
-import com.oracle.bmc.http.internal.ClientCallTest.TestRuntimeSdkException;
import com.oracle.bmc.model.BmcException;
import com.oracle.bmc.model.SdkRuntimeException;
import com.oracle.bmc.retrier.RetryConfiguration;
import com.oracle.bmc.waiter.MaxAttemptsTerminationStrategy;
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
-import org.junit.Test;
import org.junit.Before;
+import org.junit.Test;
import org.slf4j.Logger;
import java.io.IOException;
import java.io.InputStream;
+import java.net.ConnectException;
import java.net.URI;
import java.net.URISyntaxException;
+import java.time.Duration;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.concurrent.BlockingQueue;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Supplier;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
@@ -110,6 +118,113 @@ public void testCheckError() throws URISyntaxException {
verify(mockResponse).close();
}
+ @Test
+ public void test_callSync_halfOpenTimeoutPreservesPendingResponse() throws Exception {
+ newTestResponseHelper().assertHalfOpenTimeoutPreservesPendingResponse(false);
+ }
+
+ @Test
+ public void test_callAsync_halfOpenTimeoutPreservesPendingResponse() throws Exception {
+ newTestResponseHelper().assertHalfOpenTimeoutPreservesPendingResponse(true);
+ }
+
+ private static TestResponseHelper newTestResponseHelper() throws Exception {
+ TestResponseHelper helper = new TestResponseHelper();
+ helper.setup();
+ return helper;
+ }
+
+ @Test
+ public void test_callAsync_halfOpenTimeoutRecoversAfterConnectionFailure() throws Exception {
+ TestResponseHelper helper = newTestResponseHelper();
+ OciCircuitBreakerImpl circuitBreaker =
+ new OciCircuitBreakerImpl(
+ CircuitBreakerConfiguration.builder()
+ .waitDurationInOpenState(Duration.ofSeconds(3))
+ .maxWaitDurationInHalfOpenState(Duration.ofSeconds(2))
+ .permittedNumberOfCallsInHalfOpenState(1)
+ .build(),
+ t -> true);
+ BlockingQueue transitions = new LinkedBlockingQueue<>();
+ circuitBreaker
+ .getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onStateTransition(event -> transitions.add(event.getStateTransition()));
+ CompletableFuture failedHttpResponse = new CompletableFuture<>();
+ CompletableFuture healthyHttpResponse = new CompletableFuture<>();
+ ConnectException connectionFailure = new ConnectException("Backend unavailable");
+ CompletionException transportFailure = new CompletionException(connectionFailure);
+ when(helper.mockClient.isProcessingException(any())).thenReturn(false);
+ when(helper.mockRequest.execute()).thenReturn(failedHttpResponse, healthyHttpResponse);
+ when(helper.mockResponse.header("Content-Type"))
+ .thenReturn(TestResponseHelper.JSON_MEDIA_TYPE);
+ when(helper.mockResponse.status()).thenReturn(200);
+ when(helper.mockResponse.textBody())
+ .thenReturn(CompletableFuture.completedFuture("\"recovered\""));
+ Future failedCall = null;
+ Future recoveredCall = null;
+ try {
+ circuitBreaker.getR4jCircuitBreaker().transitionToOpenState();
+ assertEquals(
+ CircuitBreaker.StateTransition.CLOSED_TO_OPEN,
+ transitions.poll(5, TimeUnit.SECONDS));
+ assertEquals(
+ CircuitBreaker.StateTransition.OPEN_TO_HALF_OPEN,
+ transitions.poll(5, TimeUnit.SECONDS));
+ failedCall = helper.callWithCircuitBreaker(circuitBreaker, true, null);
+ assertTrue(failedHttpResponse.completeExceptionally(transportFailure));
+ try {
+ failedCall.get(1, TimeUnit.SECONDS);
+ fail("Expected connection failure from HALF_OPEN probe");
+ } catch (ExecutionException e) {
+ Throwable cause = e.getCause();
+ while (cause.getCause() != null) {
+ cause = cause.getCause();
+ }
+ assertEquals(connectionFailure, cause);
+ }
+ verify(helper.mockClient).isProcessingException(transportFailure);
+ verify(helper.mockClient).isProcessingException(connectionFailure);
+ assertEquals(CircuitBreaker.State.HALF_OPEN, circuitBreaker.getState());
+ assertEquals(
+ "Unrecorded transport failure leaves HALF_OPEN completion accounting pending",
+ 0,
+ circuitBreaker.getR4jCircuitBreaker().getMetrics().getNumberOfBufferedCalls());
+ verify(helper.mockRequest, times(1)).execute();
+
+ // The backend recovers while the consumed HALF_OPEN permission is still pending.
+ assertTrue(healthyHttpResponse.complete(helper.mockResponse));
+ assertEquals(
+ CircuitBreaker.StateTransition.HALF_OPEN_TO_OPEN,
+ transitions.poll(5, TimeUnit.SECONDS));
+ assertEquals(CircuitBreaker.State.OPEN, circuitBreaker.getState());
+ helper.assertCallRejected(circuitBreaker, true, null);
+ verify(helper.mockRequest, times(1)).execute();
+ assertEquals(
+ CircuitBreaker.StateTransition.OPEN_TO_HALF_OPEN,
+ transitions.poll(5, TimeUnit.SECONDS));
+ recoveredCall = helper.callWithCircuitBreaker(circuitBreaker, true, null);
+ TestResponse response = recoveredCall.get(2, TimeUnit.SECONDS);
+ assertEquals(200, response.get__httpStatusCode__());
+ assertEquals("recovered", response.getValue());
+ assertEquals(
+ CircuitBreaker.StateTransition.HALF_OPEN_TO_CLOSED,
+ transitions.poll(2, TimeUnit.SECONDS));
+ assertEquals(CircuitBreaker.State.CLOSED, circuitBreaker.getState());
+ verify(helper.mockRequest, times(2)).execute();
+ } finally {
+ circuitBreaker.getR4jCircuitBreaker().transitionToDisabledState();
+ failedHttpResponse.cancel(true);
+ healthyHttpResponse.cancel(true);
+ if (failedCall != null) {
+ failedCall.cancel(true);
+ }
+ if (recoveredCall != null) {
+ recoveredCall.cancel(true);
+ }
+ }
+ }
+
public static class TestRequest extends com.oracle.bmc.requests.BmcRequest {
public static class Builder
@@ -1010,5 +1125,111 @@ public void test_circuitBreakerException() {
assertEquals("foo", e.getCause().getMessage());
}
}
+
+ private void assertHalfOpenTimeoutPreservesPendingResponse(boolean async) throws Exception {
+ OciCircuitBreakerImpl circuitBreaker =
+ new OciCircuitBreakerImpl(
+ CircuitBreakerConfiguration.builder()
+ // Allow time to check rejection and late completion before the
+ // next automatic OPEN -> HALF_OPEN transition.
+ .waitDurationInOpenState(Duration.ofSeconds(10))
+ .maxWaitDurationInHalfOpenState(Duration.ofSeconds(2))
+ .permittedNumberOfCallsInHalfOpenState(1)
+ .build(),
+ t -> true);
+ CountDownLatch halfOpen = new CountDownLatch(1);
+ CountDownLatch reopened = new CountDownLatch(1);
+ CountDownLatch httpExecuted = new CountDownLatch(1);
+ circuitBreaker
+ .getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition()
+ == CircuitBreaker.StateTransition.OPEN_TO_HALF_OPEN) {
+ halfOpen.countDown();
+ } else if (event.getStateTransition()
+ == CircuitBreaker.StateTransition.HALF_OPEN_TO_OPEN) {
+ reopened.countDown();
+ }
+ });
+ CompletableFuture pendingHttpResponse = new CompletableFuture<>();
+ when(mockRequest.execute())
+ .thenAnswer(
+ invocation -> {
+ httpExecuted.countDown();
+ return pendingHttpResponse;
+ });
+ when(mockResponse.header("Content-Type")).thenReturn(JSON_MEDIA_TYPE);
+ when(mockResponse.status()).thenReturn(200);
+ when(mockResponse.textBody())
+ .thenReturn(CompletableFuture.completedFuture("\"late success\""));
+ ExecutorService executor = Executors.newFixedThreadPool(2);
+ Future pendingCall = null;
+ try {
+ circuitBreaker.getR4jCircuitBreaker().transitionToOpenState();
+ assertTrue(
+ "Expected automatic HALF_OPEN transition",
+ halfOpen.await(15, TimeUnit.SECONDS));
+ pendingCall = callWithCircuitBreaker(circuitBreaker, async, executor);
+ assertTrue("Probe must execute HTTP", httpExecuted.await(5, TimeUnit.SECONDS));
+ verify(mockRequest, times(1)).execute();
+ assertTrue(
+ "HALF_OPEN timeout must reopen breaker",
+ reopened.await(5, TimeUnit.SECONDS));
+ assertEquals(CircuitBreaker.State.OPEN, circuitBreaker.getState());
+ assertFalse("HTTP response must still be pending", pendingHttpResponse.isDone());
+ assertFalse("Request must still be pending", pendingCall.isDone());
+ assertCallRejected(circuitBreaker, async, executor);
+ verify(mockRequest, times(1)).execute();
+
+ assertTrue(pendingHttpResponse.complete(mockResponse));
+ TestResponse response = pendingCall.get(5, TimeUnit.SECONDS);
+ assertEquals("late success", response.getValue());
+ assertEquals(200, response.get__httpStatusCode__());
+ assertEquals(CircuitBreaker.State.OPEN, circuitBreaker.getState());
+ assertCallRejected(circuitBreaker, async, executor);
+ verify(mockRequest, times(1)).execute();
+ } finally {
+ circuitBreaker.getR4jCircuitBreaker().transitionToDisabledState();
+ pendingHttpResponse.cancel(true);
+ if (pendingCall != null) {
+ pendingCall.cancel(true);
+ }
+ executor.shutdownNow();
+ assertTrue(
+ "Call executor must terminate",
+ executor.awaitTermination(5, TimeUnit.SECONDS));
+ }
+ }
+
+ private Future callWithCircuitBreaker(
+ OciCircuitBreakerImpl circuitBreaker, boolean async, ExecutorService executor) {
+ ClientCall call =
+ ClientCall.builder(mockClient, new TestRequest(), responseBuilder)
+ .circuitBreaker(circuitBreaker)
+ .retryConfiguration(RetryConfiguration.NO_RETRY_CONFIGURATION)
+ .logger(mockLogger, "mockLogger")
+ .method(Method.GET)
+ .accept(JSON_MEDIA_TYPE)
+ .handleBody(String.class, TestResponse.Builder::value);
+ return async ? call.callAsync(null) : executor.submit(call::callSync);
+ }
+
+ private void assertCallRejected(
+ OciCircuitBreakerImpl circuitBreaker, boolean async, ExecutorService executor)
+ throws Exception {
+ Future rejectedCall =
+ callWithCircuitBreaker(circuitBreaker, async, executor);
+ try {
+ rejectedCall.get(2, TimeUnit.SECONDS);
+ fail("Expected OPEN circuit breaker to reject the call");
+ } catch (ExecutionException e) {
+ assertThat(e.getCause(), instanceOf(BmcException.class));
+ assertThat(e.getCause().getCause(), instanceOf(CallNotAllowedException.class));
+ } finally {
+ rejectedCall.cancel(true);
+ }
+ }
}
}
diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/JavaCircuitBreakerDiagnosticsTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/JavaCircuitBreakerDiagnosticsTest.java
new file mode 100644
index 00000000000..7210ff6d2bf
--- /dev/null
+++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/JavaCircuitBreakerDiagnosticsTest.java
@@ -0,0 +1,1352 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.http.internal;
+
+import com.oracle.bmc.circuitbreaker.CallNotAllowedException;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerOpenEvent;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerOpenEvent.FailureCategory;
+import com.oracle.bmc.circuitbreaker.OciCircuitBreaker;
+import com.oracle.bmc.circuitbreaker.internal.resilience4j.OciCircuitBreakerImpl;
+import com.oracle.bmc.http.client.HttpClient;
+import com.oracle.bmc.http.client.HttpRequest;
+import com.oracle.bmc.http.client.Method;
+import com.oracle.bmc.model.BmcException;
+import com.oracle.bmc.retrier.RetryConfiguration;
+import io.github.resilience4j.circuitbreaker.CallNotPermittedException;
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
+import io.github.resilience4j.circuitbreaker.CircuitBreakerConfig;
+import io.github.resilience4j.circuitbreaker.internal.CircuitBreakerStateMachine;
+import java.io.InterruptedIOException;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.net.ConnectException;
+import java.net.UnknownHostException;
+import java.net.URI;
+import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.temporal.ChronoUnit;
+import java.util.Collections;
+import java.util.EnumMap;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.Future;
+import java.util.concurrent.FutureTask;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.function.BooleanSupplier;
+import java.util.function.Consumer;
+import javax.net.ssl.SSLException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+import org.slf4j.LoggerFactory;
+import static org.junit.Assert.*;
+import static org.mockito.Mockito.*;
+
+public class JavaCircuitBreakerDiagnosticsTest {
+ private String previousSummaryProperty;
+
+ @Before
+ public void enableSummaryPrinting() {
+ previousSummaryProperty =
+ System.getProperty(CircuitBreakerConfiguration.DIAGNOSTIC_SUMMARY_ENABLED_PROPERTY);
+ System.setProperty(CircuitBreakerConfiguration.DIAGNOSTIC_SUMMARY_ENABLED_PROPERTY, "true");
+ }
+
+ @After
+ public void restoreSummaryPrintingProperty() {
+ if (previousSummaryProperty == null) {
+ System.clearProperty(CircuitBreakerConfiguration.DIAGNOSTIC_SUMMARY_ENABLED_PROPERTY);
+ } else {
+ System.setProperty(
+ CircuitBreakerConfiguration.DIAGNOSTIC_SUMMARY_ENABLED_PROPERTY,
+ previousSummaryProperty);
+ }
+ }
+
+ @Test
+ public void summaryPrintingIsDisabledByDefaultAndPreservesHistory() {
+ assertSummaryPrintingPreservesSnapshotAndHistory(null, false);
+ }
+
+ @Test
+ public void summaryPrintingIsDisabledWhenFalseAndPreservesHistory() {
+ assertSummaryPrintingPreservesSnapshotAndHistory("false", false);
+ }
+
+ @Test
+ public void summaryPrintingIsEnabledWhenTrueAndPreservesHistory() {
+ assertSummaryPrintingPreservesSnapshotAndHistory("true", true);
+ }
+
+ private void assertSummaryPrintingPreservesSnapshotAndHistory(String setting, boolean enabled) {
+ if (setting == null) {
+ System.clearProperty(CircuitBreakerConfiguration.DIAGNOSTIC_SUMMARY_ENABLED_PROPERTY);
+ } else {
+ System.setProperty(
+ CircuitBreakerConfiguration.DIAGNOSTIC_SUMMARY_ENABLED_PROPERTY, setting);
+ }
+ OciCircuitBreaker breaker = breaker(1, 2);
+ failWith(breaker, http(503));
+ CircuitBreakerOpenEvent event = breaker.getOpenEvent();
+ assertNotNull(event);
+ assertEquals(1, event.getFailedCalls());
+ assertFalse(breaker.tryAcquirePermission());
+ CallNotAllowedException rejection = breaker.createCallNotAllowedException();
+ assertSame(event, rejection.getOpenEvent());
+ assertFalse(rejection.getMessage().contains("Diagnostic summary"));
+ for (String message :
+ new String[] {
+ breaker.circuitBreakerCallNotPermittedErrorMessage(null, rejection),
+ breaker.circuitBreakerCallNotPermittedErrorMessage(null)
+ }) {
+ assertEquals(enabled, message.contains("Diagnostic summary"));
+ assertEquals(enabled ? 1 : 0, occurrences(message, event.toString()));
+ assertTrue(message.contains("CircuitBreaker has been OPEN"));
+ assertTrue(message.contains("Recent failure history since last close:\n"));
+ assertTrue(message.contains(breaker.getHistoryAsString()));
+ }
+ assertEquals(1, breaker.getHistory().size());
+ }
+
+ private OciCircuitBreaker breaker(int minimumCalls, int historyLimit) {
+ HttpClient client = mock(HttpClient.class);
+ when(client.isProcessingException(any()))
+ .thenAnswer(invocation -> !(invocation.getArgument(0) instanceof BmcException));
+ return CircuitBreakerHelper.makeCircuitBreaker(
+ client,
+ CircuitBreakerConfiguration.builder()
+ .minimumNumberOfCalls(minimumCalls)
+ .failureRateThreshold(60)
+ .permittedNumberOfCallsInHalfOpenState(1)
+ .numberOfRecordedHistoryResponses(historyLimit)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build());
+ }
+
+ private void failWith(OciCircuitBreaker breaker, Throwable error) {
+ assertTrue(breaker.tryAcquirePermission());
+ Integer status =
+ error instanceof BmcException ? ((BmcException) error).getStatusCode() : null;
+ breaker.addToHistory(error, status, Collections.singletonMap("message", "failure"));
+ breaker.onError(1, TimeUnit.MILLISECONDS, error);
+ }
+
+ private void succeed(OciCircuitBreaker breaker) {
+ assertTrue(breaker.tryAcquirePermission());
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+ }
+
+ private BmcException http(int status) {
+ return new BmcException(status, "ServiceError", "failure", "request-id");
+ }
+
+ @Test
+ public void existingConstructorsClassifyHttpFailuresWithoutHistoryOrStatusExtractor() {
+ OciCircuitBreaker[] breakers = {
+ new OciCircuitBreakerImpl(
+ CircuitBreakerConfiguration.builder()
+ .minimumNumberOfCalls(2)
+ .numberOfRecordedHistoryResponses(0)
+ .build(),
+ error -> true),
+ new OciCircuitBreakerImpl(
+ CircuitBreaker.of(
+ "direct",
+ CircuitBreakerConfig.custom().minimumNumberOfCalls(2).build()),
+ 0)
+ };
+ for (OciCircuitBreaker breaker : breakers) {
+ // Exercise the existing onError API directly, without feeding status through history.
+ breaker.acquirePermission();
+ breaker.onError(1, TimeUnit.MILLISECONDS, http(500));
+ breaker.acquirePermission();
+ breaker.onError(1, TimeUnit.MILLISECONDS, new RuntimeException(http(429)));
+ CircuitBreakerOpenEvent event = breaker.getOpenEvent();
+ assertNotNull(event);
+ assertEquals(
+ Collections.singletonMap(FailureCategory.REMOTE_HTTP, 2L),
+ event.getFailureCounts());
+ Map expected = new HashMap<>();
+ expected.put(500, 1L);
+ expected.put(429, 1L);
+ assertEquals(expected, event.getHttpStatusCounts());
+ assertEquals(2, event.getFailedCalls());
+ breaker.addToHistory(http(503), 503, Collections.emptyMap());
+ assertTrue(breaker.getHistory().isEmpty());
+ assertTrue(
+ breaker.circuitBreakerCallNotPermittedErrorMessage(null)
+ .contains("Diagnostic summary for this opening:\n" + event));
+ }
+ }
+
+ @Test
+ public void clientSideBmcExceptionUsesUnderlyingFailureCategory() {
+ OciCircuitBreaker breaker =
+ new OciCircuitBreakerImpl(
+ CircuitBreakerConfiguration.builder().minimumNumberOfCalls(1).build(),
+ error -> true);
+ breaker.acquirePermission();
+ breaker.onError(
+ 1,
+ TimeUnit.MILLISECONDS,
+ new BmcException(false, "DNS failure", new UnknownHostException(), null));
+ assertEquals(
+ Collections.singletonMap(FailureCategory.DNS, 1L),
+ breaker.getOpenEvent().getFailureCounts());
+ assertTrue(breaker.getOpenEvent().getHttpStatusCounts().isEmpty());
+ }
+
+ @Test
+ public void mixedFailuresProduceCompleteOpeningSnapshotAndRejectionSummary() {
+ OciCircuitBreaker breaker = breaker(10, 10);
+ for (int i = 0; i < 3; i++) succeed(breaker);
+ failWith(breaker, http(500));
+ failWith(breaker, http(429));
+ failWith(breaker, new RuntimeException(new UnknownHostException()));
+ failWith(breaker, new RuntimeException(new ConnectException()));
+ failWith(breaker, new RuntimeException(new SSLException("")));
+ failWith(breaker, new RuntimeException(new InterruptedIOException()));
+ assertNull(breaker.getOpenEvent());
+ failWith(breaker, new IllegalStateException());
+ CircuitBreakerOpenEvent event = breaker.getOpenEvent();
+ assertNotNull(event);
+ assertEquals("CLOSED", event.getPreviousState());
+ assertEquals("OPEN", event.getState());
+ assertEquals(10, event.getTotalCalls());
+ assertEquals(7, event.getFailedCalls());
+ Map categories = new EnumMap<>(FailureCategory.class);
+ for (FailureCategory category : FailureCategory.values()) categories.put(category, 1L);
+ categories.put(FailureCategory.REMOTE_HTTP, 2L);
+ assertEquals(categories, event.getFailureCounts());
+ Map statuses = new HashMap<>();
+ statuses.put(500, 1L);
+ statuses.put(429, 1L);
+ assertEquals(statuses, event.getHttpStatusCounts());
+ for (int i = 0; i < 2; i++) {
+ assertFalse(breaker.tryAcquirePermission());
+ CallNotAllowedException rejection = breaker.createCallNotAllowedException();
+ assertSame(event, rejection.getOpenEvent());
+ assertEquals(event.getCorrelationId(), rejection.getCorrelationId());
+ assertFalse(rejection.getMessage().contains("Diagnostic summary"));
+ String message = breaker.circuitBreakerCallNotPermittedErrorMessage(null, rejection);
+ assertTrue(message.contains("ObservedFailures - 7"));
+ assertTrue(message.contains("HttpStatusCounts - {429=1, 500=1}"));
+ assertTrue(
+ message.indexOf("Diagnostic summary")
+ < message.indexOf("Recent failure history since last close:"));
+ }
+ }
+
+ @Test
+ public void reopeningCountsOnlyHalfOpenProbesAndCloseClearsHistory() {
+ OciCircuitBreaker breaker = breaker(2, 5);
+ failWith(breaker, http(500));
+ failWith(breaker, http(429));
+ CircuitBreakerOpenEvent first = breaker.getOpenEvent();
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ failWith(breaker, http(503));
+ CircuitBreakerOpenEvent second = breaker.getOpenEvent();
+ assertEquals("HALF_OPEN", second.getPreviousState());
+ assertEquals(1, second.getTotalCalls());
+ assertEquals(1, second.getFailedCalls());
+ assertEquals(
+ Collections.singletonMap(FailureCategory.REMOTE_HTTP, 1L),
+ second.getFailureCounts());
+ assertEquals(Collections.singletonMap(503, 1L), second.getHttpStatusCounts());
+ assertNotEquals(first.getCorrelationId(), second.getCorrelationId());
+ assertEquals(3, breaker.getHistory().size());
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ succeed(breaker);
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ assertNull(breaker.getOpenEvent());
+ assertTrue(breaker.getHistory().isEmpty());
+ failWith(breaker, http(500));
+ assertFalse(breaker.getHistory().isEmpty());
+ breaker.getR4jCircuitBreaker().reset();
+ assertTrue(breaker.getHistory().isEmpty());
+ assertNull(breaker.getOpenEvent());
+ }
+
+ @Test
+ public void historyRetainsObservationTimestampAndEvictsOldestEntry() {
+ OciCircuitBreaker breaker = breaker(10, 2);
+ Instant before = Instant.now().truncatedTo(ChronoUnit.MILLIS);
+ failWith(breaker, http(500));
+ OciCircuitBreaker.ErrorHistoryItem item = breaker.getHistory().get(0);
+ Instant observed = item.getObservedAt().truncatedTo(ChronoUnit.MILLIS);
+ assertFalse(observed.isBefore(before));
+ assertFalse(observed.isAfter(Instant.now()));
+ failWith(breaker, http(429));
+ assertSame(item, breaker.getHistory().get(0));
+ String entry = item.toString();
+ assertEquals(
+ observed,
+ Instant.parse(entry.substring("Timestamp: ".length(), entry.indexOf(';'))));
+ failWith(breaker, http(503));
+ assertEquals(2, breaker.getHistory().size());
+ assertEquals(429, breaker.getHistory().get(0).getStatus());
+ assertEquals(503, breaker.getHistory().get(1).getStatus());
+ }
+
+ @Test
+ public void ignoredFailuresDoNotEnterTheDiagnosticCounts() {
+ OciCircuitBreaker breaker = breaker(3, 4);
+ failWith(breaker, http(400));
+ failWith(breaker, http(500));
+ failWith(breaker, http(429));
+ assertEquals(3, breaker.getOpenEvent().getTotalCalls());
+ assertEquals(2, breaker.getOpenEvent().getFailedCalls());
+ assertEquals(
+ Collections.singletonMap(FailureCategory.REMOTE_HTTP, 2L),
+ breaker.getOpenEvent().getFailureCounts());
+ assertFalse(breaker.getOpenEvent().getHttpStatusCounts().containsKey(400));
+ }
+
+ @Test
+ public void countBasedWindowEvictsFailuresWhenSuccessesArrive() {
+ OciCircuitBreaker breaker =
+ new OciCircuitBreakerImpl(
+ CircuitBreaker.of(
+ "count-based",
+ CircuitBreakerConfig.custom()
+ .slidingWindowSize(3)
+ .minimumNumberOfCalls(3)
+ .failureRateThreshold(60)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build()),
+ 3);
+ failWith(breaker, new RuntimeException(new UnknownHostException()));
+ succeed(breaker);
+ succeed(breaker);
+ succeed(breaker);
+ failWith(breaker, new RuntimeException(new ConnectException()));
+ failWith(breaker, new RuntimeException(new ConnectException()));
+ assertEquals(3, breaker.getOpenEvent().getTotalCalls());
+ assertEquals(2, breaker.getOpenEvent().getFailedCalls());
+ assertEquals(
+ Collections.singletonMap(FailureCategory.CONNECTION, 2L),
+ breaker.getOpenEvent().getFailureCounts());
+ }
+
+ @Test
+ public void directPermissionRejectionDoesNotLeakToReusedThread() throws Exception {
+ OciCircuitBreaker breaker = breaker(1, 0);
+ failWith(breaker, http(500));
+ assertNotNull(breaker.getOpenEvent());
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ try {
+ // A direct permission check ends without building an SDK rejection exception.
+ executor.submit(
+ () -> {
+ assertFalse(breaker.tryAcquirePermission());
+ assertThrows(
+ CallNotPermittedException.class,
+ breaker::acquirePermission);
+ })
+ .get(5, TimeUnit.SECONDS);
+ breaker.getR4jCircuitBreaker().reset();
+ assertNull(breaker.getOpenEvent());
+
+ // Reuse the same worker: its next exception must not retain the old opening.
+ CallNotAllowedException rejection =
+ executor.submit(breaker::createCallNotAllowedException)
+ .get(5, TimeUnit.SECONDS);
+ assertNull(
+ "A direct permission check must not leave an opening exception on the thread",
+ rejection.getOpenEvent());
+ assertNull(rejection.getCorrelationId());
+ } finally {
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ }
+ }
+
+ @Test
+ public void sdkPermissionCaptureIsClearedOnSuccessAndRejection() throws Exception {
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ try {
+ for (boolean rejected : new boolean[] {false, true}) {
+ OciCircuitBreaker breaker = breaker(1, 0);
+ if (rejected) failWith(breaker, http(500));
+ executor.submit(
+ () -> {
+ if (rejected) {
+ assertThrows(
+ CallNotAllowedException.class,
+ breaker::acquirePermissionOrThrow);
+ } else {
+ breaker.acquirePermissionOrThrow();
+ breaker.onSuccess(1, TimeUnit.MILLISECONDS);
+ }
+ })
+ .get(5, TimeUnit.SECONDS);
+ breaker.getR4jCircuitBreaker().reset();
+ assertNull(
+ executor.submit(breaker::createCallNotAllowedException)
+ .get(5, TimeUnit.SECONDS)
+ .getOpenEvent());
+ }
+ } finally {
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ }
+ }
+
+ @Test
+ public void sdkPermissionCapturePreservesPermissionAndExceptionFactoryOverrides() {
+ CallNotAllowedException customRejection =
+ CallNotAllowedException.createCallNotAllowedException("custom rejection", false);
+ OciCircuitBreaker breaker =
+ new OciCircuitBreakerImpl(diagnosticRaceBreaker("custom-permission"), 0) {
+ @Override
+ public boolean tryAcquirePermission() {
+ return false;
+ }
+
+ @Override
+ public CallNotAllowedException createCallNotAllowedException() {
+ return customRejection;
+ }
+ };
+ assertSame(
+ customRejection,
+ assertThrows(CallNotAllowedException.class, breaker::acquirePermissionOrThrow));
+ }
+
+ @Test
+ public void concurrentFailuresContributeToOneOpening() throws Exception {
+ OciCircuitBreaker breaker = breaker(2, 2);
+ CountDownLatch start = new CountDownLatch(1);
+ ExecutorService executor = Executors.newFixedThreadPool(2);
+ try {
+ Future> dns =
+ executor.submit(
+ () -> {
+ await(start);
+ failWith(breaker, new RuntimeException(new UnknownHostException()));
+ });
+ Future> connection =
+ executor.submit(
+ () -> {
+ await(start);
+ failWith(breaker, new RuntimeException(new ConnectException()));
+ });
+ start.countDown();
+ dns.get(5, TimeUnit.SECONDS);
+ connection.get(5, TimeUnit.SECONDS);
+ assertEquals(2, breaker.getOpenEvent().getFailedCalls());
+ Map expected = new EnumMap<>(FailureCategory.class);
+ expected.put(FailureCategory.DNS, 1L);
+ expected.put(FailureCategory.CONNECTION, 1L);
+ assertEquals(expected, breaker.getOpenEvent().getFailureCounts());
+ } finally {
+ executor.shutdownNow();
+ }
+ }
+
+ @Test
+ public void concurrentOpeningUsesBestEffortCountsWithoutSerializingReports() throws Exception {
+ OciCircuitBreaker breaker = breaker(1, 0);
+ assertConcurrentOpening(
+ breaker,
+ breaker::tryAcquirePermission,
+ error -> breaker.onError(1, TimeUnit.MILLISECONDS, error));
+ }
+
+ private void assertConcurrentOpening(
+ OciCircuitBreaker breaker,
+ BooleanSupplier acquirePermission,
+ Consumer reportFailure)
+ throws Exception {
+ CountDownLatch dnsRecorded = new CountDownLatch(1);
+ CountDownLatch resumeDns = new CountDownLatch(1);
+ // This listener runs after diagnostic observation but before resilience4j updates metrics.
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onError(
+ event -> {
+ if (event.getThrowable() instanceof UnknownHostException) {
+ dnsRecorded.countDown();
+ await(resumeDns);
+ }
+ });
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ FutureTask connection =
+ new FutureTask<>(
+ () -> {
+ reportFailure.accept(new ConnectException());
+ return null;
+ });
+ Thread connectionThread = new Thread(connection, "concurrent-opening-connection");
+ try {
+ // Both calls start while CLOSED, before either failure can open the breaker.
+ assertTrue(acquirePermission.getAsBoolean());
+ assertTrue(acquirePermission.getAsBoolean());
+ Future> dns = executor.submit(() -> reportFailure.accept(new UnknownHostException()));
+ await(dnsRecorded);
+ connectionThread.start();
+ // Diagnostic collection must not serialize protected result reporting.
+ connection.get(5, TimeUnit.SECONDS);
+ resumeDns.countDown();
+ dns.get(5, TimeUnit.SECONDS);
+ CircuitBreakerOpenEvent opening = breaker.getOpenEvent();
+
+ assertNotNull(opening);
+ assertEquals(1, opening.getFailedCalls());
+ Map observed = new EnumMap<>(FailureCategory.class);
+ observed.put(FailureCategory.DNS, 1L);
+ observed.put(FailureCategory.CONNECTION, 1L);
+ assertEquals(observed, opening.getFailureCounts());
+ assertTrue(opening.toString().contains("ObservedFailures - 2"));
+ assertSame(opening, breaker.getOpenEvent());
+ } finally {
+ resumeDns.countDown();
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ connectionThread.join(TimeUnit.SECONDS.toMillis(5));
+ assertFalse(connectionThread.isAlive());
+ }
+ }
+
+ private void await(CountDownLatch latch) {
+ try {
+ assertTrue(latch.await(5, TimeUnit.SECONDS));
+ } catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new AssertionError(e);
+ }
+ }
+
+ @Test
+ public void rejectionDuringOpeningPublicationKeepsOpeningCorrelation() throws Exception {
+ CircuitBreaker raw = diagnosticRaceBreaker("opening-publication");
+ CountDownLatch opened = new CountDownLatch(1);
+ CountDownLatch publishOpening = new CountDownLatch(1);
+ // Pause after Resilience4j changes state, before the SDK publishes its opening snapshot.
+ raw.getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition().getToState()
+ == CircuitBreaker.State.OPEN) {
+ opened.countDown();
+ await(publishOpening);
+ }
+ });
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ FutureTask rejected =
+ new FutureTask<>(
+ () ->
+ assertThrows(
+ CallNotAllowedException.class,
+ breaker::acquirePermissionOrThrow));
+ Thread rejectionThread = new Thread(rejected, "opening-publication-rejection");
+ try {
+ breaker.acquirePermissionOrThrow();
+ Future> opening =
+ executor.submit(
+ () ->
+ breaker.onError(
+ 1, TimeUnit.MILLISECONDS, new UnknownHostException()));
+ await(opened);
+ rejectionThread.start();
+ awaitCompletionOrBlocking(rejected, rejectionThread);
+ publishOpening.countDown();
+ opening.get(5, TimeUnit.SECONDS);
+ CallNotAllowedException rejection = rejected.get(5, TimeUnit.SECONDS);
+
+ CircuitBreakerOpenEvent event = breaker.getOpenEvent();
+ assertNotNull(event);
+ assertSame(
+ "The rejection must capture the opening that denied it",
+ event,
+ rejection.getOpenEvent());
+ assertEquals(event.getCorrelationId(), rejection.getCorrelationId());
+ assertTrue(
+ breaker.circuitBreakerCallNotPermittedErrorMessage(null, rejection)
+ .contains(event.toString()));
+ } finally {
+ publishOpening.countDown();
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ rejectionThread.join(TimeUnit.SECONDS.toMillis(5));
+ assertFalse(rejectionThread.isAlive());
+ }
+ }
+
+ @Test
+ public void probeDuringHalfOpenPublicationExcludesPreviousWindow() throws Exception {
+ CircuitBreaker raw = diagnosticRaceBreaker("half-open-publication");
+ CountDownLatch halfOpened = new CountDownLatch(1);
+ CountDownLatch publishHalfOpen = new CountDownLatch(1);
+ // A probe can acquire permission before the transition's diagnostic window reset runs.
+ raw.getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition().getToState()
+ == CircuitBreaker.State.HALF_OPEN) {
+ halfOpened.countDown();
+ await(publishHalfOpen);
+ }
+ });
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ breaker.acquirePermissionOrThrow();
+ breaker.onError(1, TimeUnit.MILLISECONDS, new UnknownHostException());
+ CircuitBreakerOpenEvent firstOpening = breaker.getOpenEvent();
+ assertNotNull(firstOpening);
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ FutureTask probe =
+ new FutureTask<>(
+ () -> {
+ breaker.acquirePermissionOrThrow();
+ breaker.onError(1, TimeUnit.MILLISECONDS, new ConnectException());
+ return null;
+ });
+ Thread probeThread = new Thread(probe, "half-open-publication-probe");
+ try {
+ Future> transition = executor.submit(raw::transitionToHalfOpenState);
+ await(halfOpened);
+ probeThread.start();
+ awaitCompletionOrBlocking(probe, probeThread);
+ publishHalfOpen.countDown();
+ transition.get(5, TimeUnit.SECONDS);
+ probe.get(5, TimeUnit.SECONDS);
+
+ CircuitBreakerOpenEvent reopening = breaker.getOpenEvent();
+ assertNotNull(reopening);
+ assertEquals("HALF_OPEN", reopening.getPreviousState());
+ assertNotEquals(firstOpening.getCorrelationId(), reopening.getCorrelationId());
+ assertEquals(1, reopening.getTotalCalls());
+ assertEquals(1, reopening.getFailedCalls());
+ assertEquals(
+ "Only the new probe belongs to the HALF_OPEN evaluation window",
+ Collections.singletonMap(FailureCategory.CONNECTION, 1L),
+ reopening.getFailureCounts());
+ } finally {
+ publishHalfOpen.countDown();
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ probeThread.join(TimeUnit.SECONDS.toMillis(5));
+ assertFalse(probeThread.isAlive());
+ }
+ }
+
+ @Test
+ public void diagnosticsDoNotReadPrivateEvaluationClock() {
+ Clock clock = mock(Clock.class);
+ Instant initialTime = Instant.now();
+ when(clock.instant()).thenReturn(initialTime);
+ CircuitBreaker raw =
+ new CircuitBreakerStateMachine(
+ "time-window-clock",
+ CircuitBreakerConfig.custom()
+ .slidingWindowType(
+ CircuitBreakerConfig.SlidingWindowType.TIME_BASED)
+ .slidingWindowSize(60)
+ .minimumNumberOfCalls(2)
+ .failureRateThreshold(100)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build(),
+ clock);
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ failWith(breaker, new UnknownHostException());
+ assertNull(breaker.getOpenEvent());
+
+ // Advance the evaluation window deterministically, without sleeping or changing production
+ // code.
+ when(clock.instant()).thenReturn(initialTime.plusSeconds(61));
+ failWith(breaker, new ConnectException());
+ assertNull(breaker.getOpenEvent());
+ failWith(breaker, new SSLException("test TLS failure"));
+
+ CircuitBreakerOpenEvent opening = breaker.getOpenEvent();
+ assertNotNull(opening);
+ assertEquals(2, opening.getTotalCalls());
+ assertEquals(2, opening.getFailedCalls());
+ Map expected = new EnumMap<>(FailureCategory.class);
+ expected.put(FailureCategory.DNS, 1L);
+ expected.put(FailureCategory.CONNECTION, 1L);
+ expected.put(FailureCategory.TLS, 1L);
+ assertEquals(
+ "Observation counts use wall time while native metrics retain their own clock",
+ expected,
+ opening.getFailureCounts());
+ }
+
+ @Test
+ public void openingMayExcludeObservationExpiredBeforeMetricUpdate() {
+ Clock clock = mock(Clock.class);
+ when(clock.instant()).thenReturn(Instant.now());
+ CircuitBreaker raw =
+ new CircuitBreakerStateMachine(
+ "error-callback-boundary",
+ CircuitBreakerConfig.custom()
+ .slidingWindowType(
+ CircuitBreakerConfig.SlidingWindowType.TIME_BASED)
+ .slidingWindowSize(1)
+ .minimumNumberOfCalls(1)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build(),
+ clock);
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ raw.getEventPublisher()
+ .onError(
+ event -> {
+ // Diagnostics have observed this failure; metrics are updated next.
+ Instant metricTime = awaitNextSecond();
+ // Hold metric time steady so assertions cannot expire its bucket.
+ when(clock.instant()).thenReturn(metricTime);
+ });
+ failWith(breaker, new UnknownHostException());
+
+ CircuitBreakerOpenEvent opening = breaker.getOpenEvent();
+ assertNotNull(opening);
+ assertEquals(1, opening.getTotalCalls());
+ assertEquals(1, opening.getFailedCalls());
+ // Observation time and native metric-update time can fall in different one-second windows.
+ assertTrue(opening.getFailureCounts().isEmpty());
+ assertTrue(opening.getHttpStatusCounts().isEmpty());
+ assertTrue(opening.toString().contains("ObservedFailures - 0"));
+ }
+
+ @Test
+ public void delayedCloseCallbackDoesNotEraseNewClosedWindowObservations() throws Exception {
+ CircuitBreaker raw =
+ CircuitBreaker.of(
+ "delayed-close",
+ CircuitBreakerConfig.custom()
+ .minimumNumberOfCalls(2)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build());
+ CountDownLatch closed = new CountDownLatch(1);
+ CountDownLatch publishClose = new CountDownLatch(1);
+ raw.getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition().getToState()
+ == CircuitBreaker.State.CLOSED) {
+ closed.countDown();
+ await(publishClose);
+ }
+ });
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ failWith(breaker, new UnknownHostException());
+ failWith(breaker, new UnknownHostException());
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ try {
+ Future> closing = executor.submit(raw::transitionToClosedState);
+ await(closed);
+ failWith(breaker, new ConnectException());
+ publishClose.countDown();
+ closing.get(5, TimeUnit.SECONDS);
+ failWith(breaker, new SSLException("new CLOSED window"));
+ Map expected = new EnumMap<>(FailureCategory.class);
+ expected.put(FailureCategory.CONNECTION, 1L);
+ expected.put(FailureCategory.TLS, 1L);
+ assertEquals(expected, breaker.getOpenEvent().getFailureCounts());
+ } finally {
+ publishClose.countDown();
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ }
+ }
+
+ @Test
+ public void failedClosingProbeDoesNotEnterNewClosedWindow() {
+ OciCircuitBreaker breaker =
+ new OciCircuitBreakerImpl(
+ CircuitBreaker.of(
+ "closing-probe",
+ CircuitBreakerConfig.custom()
+ .slidingWindowSize(10)
+ .minimumNumberOfCalls(3)
+ .failureRateThreshold(60)
+ .permittedNumberOfCallsInHalfOpenState(3)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build()),
+ 5);
+ failWith(breaker, new UnknownHostException());
+ failWith(breaker, new UnknownHostException());
+ failWith(breaker, new UnknownHostException());
+ breaker.getR4jCircuitBreaker().transitionToHalfOpenState();
+ succeed(breaker);
+ succeed(breaker);
+ failWith(breaker, new ConnectException());
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ assertNull(breaker.getOpenEvent());
+ assertTrue(breaker.getHistory().isEmpty());
+
+ succeed(breaker);
+ failWith(breaker, new SSLException("new CLOSED window"));
+ failWith(breaker, new SSLException("new CLOSED window"));
+ CircuitBreakerOpenEvent opening = breaker.getOpenEvent();
+ assertNotNull(opening);
+ assertEquals(2, opening.getFailedCalls());
+ assertEquals(Collections.singletonMap(FailureCategory.TLS, 2L), opening.getFailureCounts());
+ }
+
+ @Test
+ public void permissionAcquisitionDoesNotDeadlockAutomaticHalfOpen() throws Exception {
+ Clock clock = mock(Clock.class);
+ Instant initial = Instant.now();
+ CountDownLatch permissionInOpen = new CountDownLatch(1);
+ CountDownLatch resumePermission = new CountDownLatch(1);
+ CountDownLatch timerInHalfOpen = new CountDownLatch(1);
+ CountDownLatch resumeTimer = new CountDownLatch(1);
+ when(clock.instant())
+ .thenAnswer(
+ ignored -> {
+ if (Thread.currentThread().getName().equals("automatic-permission")) {
+ permissionInOpen.countDown();
+ await(resumePermission);
+ return initial.plusSeconds(2);
+ }
+ return initial;
+ });
+ CircuitBreaker raw =
+ new CircuitBreakerStateMachine(
+ "automatic-recovery",
+ CircuitBreakerConfig.custom()
+ .minimumNumberOfCalls(1)
+ .permittedNumberOfCallsInHalfOpenState(1)
+ .automaticTransitionFromOpenToHalfOpenEnabled(true)
+ .waitDurationInOpenState(Duration.ofSeconds(1))
+ .build(),
+ clock);
+ raw.getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition().getToState()
+ == CircuitBreaker.State.HALF_OPEN) {
+ timerInHalfOpen.countDown();
+ await(resumeTimer);
+ }
+ });
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ FutureTask permission =
+ new FutureTask<>(
+ () -> {
+ breaker.acquirePermissionOrThrow();
+ return null;
+ });
+ Thread worker = new Thread(permission, "automatic-permission");
+ worker.setDaemon(true);
+ try {
+ failWith(breaker, new UnknownHostException());
+ worker.start();
+ await(permissionInOpen);
+ await(timerInHalfOpen);
+ resumeTimer.countDown();
+ resumePermission.countDown();
+ permission.get(5, TimeUnit.SECONDS);
+ assertEquals(CircuitBreaker.State.HALF_OPEN, breaker.getState());
+ } finally {
+ resumeTimer.countDown();
+ resumePermission.countDown();
+ worker.join(TimeUnit.SECONDS.toMillis(5));
+ assertFalse(
+ "Permission acquisition must finish during automatic recovery",
+ worker.isAlive());
+ }
+ }
+
+ @Test
+ public void transitionDuringErrorReportingDoesNotCarryPreviousWindowFailures()
+ throws Exception {
+ CircuitBreaker raw = diagnosticRaceBreaker("transition-during-report");
+ CountDownLatch halfOpen = new CountDownLatch(1);
+ CountDownLatch publishHalfOpen = new CountDownLatch(1);
+ raw.getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition().getToState()
+ == CircuitBreaker.State.HALF_OPEN) {
+ halfOpen.countDown();
+ await(publishHalfOpen);
+ }
+ });
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ failWith(breaker, new UnknownHostException());
+ FutureTask transition =
+ new FutureTask<>(
+ () -> {
+ raw.transitionToHalfOpenState();
+ return null;
+ });
+ Thread timer = new Thread(transition, "transition-during-report");
+ timer.setDaemon(true);
+ raw.getEventPublisher()
+ .onError(
+ event -> {
+ if (event.getThrowable() instanceof ConnectException) {
+ timer.start();
+ await(halfOpen);
+ }
+ });
+ try {
+ // An already in-flight result can arrive while OPEN, then be counted in HALF_OPEN.
+ breaker.onError(1, TimeUnit.MILLISECONDS, new ConnectException());
+ CircuitBreakerOpenEvent opening = breaker.getOpenEvent();
+ assertNotNull(opening);
+ assertEquals("HALF_OPEN", opening.getPreviousState());
+ assertEquals(1, opening.getFailedCalls());
+ // The event preceded the window replacement; its category may be unavailable.
+ assertFalse(opening.getFailureCounts().containsKey(FailureCategory.DNS));
+ } finally {
+ publishHalfOpen.countDown();
+ transition.get(5, TimeUnit.SECONDS);
+ timer.join(TimeUnit.SECONDS.toMillis(5));
+ }
+ }
+
+ @Test
+ @SuppressWarnings("removal")
+ public void constructionDoesNotRequireDeepReflectionPermission() {
+ CircuitBreaker raw = diagnosticRaceBreaker("restricted-construction");
+ // Initialize constructor lambdas before installing the restrictive policy.
+ new OciCircuitBreakerImpl(diagnosticRaceBreaker("warm-construction"), 0);
+ System.clearProperty(CircuitBreakerConfiguration.DIAGNOSTIC_SUMMARY_ENABLED_PROPERTY);
+ SecurityManager previous = System.getSecurityManager();
+ SecurityManager restricted =
+ new SecurityManager() {
+ @Override
+ public void checkPermission(java.security.Permission permission) {
+ if (permission instanceof java.lang.reflect.ReflectPermission
+ && permission.getName().equals("suppressAccessChecks")) {
+ throw new SecurityException("Deep reflection is denied");
+ }
+ }
+ };
+ try {
+ try {
+ System.setSecurityManager(restricted);
+ } catch (UnsupportedOperationException unsupported) {
+ org.junit.Assume.assumeNoException(unsupported);
+ }
+ assertNotNull(new OciCircuitBreakerImpl(raw, 0));
+ } finally {
+ if (System.getSecurityManager() == restricted) {
+ System.setSecurityManager(previous);
+ }
+ }
+ }
+
+ @Test
+ public void directResilience4jReportsKeepOriginalBehaviorWithBestEffortCounts()
+ throws Exception {
+ CircuitBreaker raw = diagnosticRaceBreaker("direct-reporting");
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 0);
+ CircuitBreaker exposed = breaker.getR4jCircuitBreaker();
+ assertSame("The SDK must return the supplied Resilience4j breaker", raw, exposed);
+ assertConcurrentOpening(
+ breaker,
+ exposed::tryAcquirePermission,
+ error -> exposed.onError(1, TimeUnit.MILLISECONDS, error));
+ }
+
+ private CircuitBreaker diagnosticRaceBreaker(String name) {
+ return CircuitBreaker.of(
+ name,
+ CircuitBreakerConfig.custom()
+ .slidingWindowSize(10)
+ .minimumNumberOfCalls(1)
+ .permittedNumberOfCallsInHalfOpenState(1)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build());
+ }
+
+ private void awaitCompletionOrBlocking(Future> result, Thread thread) {
+ long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(5);
+ while (!result.isDone()) {
+ Thread.State state = thread.getState();
+ if (state == Thread.State.BLOCKED || state == Thread.State.WAITING) {
+ return;
+ }
+ assertTrue("Competing call did not complete or block", System.nanoTime() < deadline);
+ Thread.yield();
+ }
+ }
+
+ private Instant awaitNextSecond() {
+ long second = Instant.now().getEpochSecond();
+ long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(5);
+ Instant current = Instant.now();
+ while (current.getEpochSecond() <= second) {
+ assertTrue("Clock did not cross the second boundary", System.nanoTime() < deadline);
+ try {
+ TimeUnit.MILLISECONDS.sleep(1);
+ } catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new AssertionError(e);
+ }
+ current = Instant.now();
+ }
+ return current;
+ }
+
+ @Test
+ public void rejectionWithoutSnapshotDoesNotUseAnotherOpening() {
+ OciCircuitBreaker breaker = breaker(1, 1);
+ failWith(breaker, http(500));
+ CallNotAllowedException rejection =
+ CallNotAllowedException.createCallNotAllowedException("open", false);
+ assertFalse(
+ breaker.circuitBreakerCallNotPermittedErrorMessage(null, rejection)
+ .contains("Diagnostic summary"));
+ }
+
+ @Test
+ public void forcedOpenHasNoFailureSummary() {
+ OciCircuitBreaker breaker = breaker(1, 1);
+ breaker.getR4jCircuitBreaker().transitionToForcedOpenState();
+ assertNull(breaker.getOpenEvent());
+ assertFalse(
+ breaker.circuitBreakerCallNotPermittedErrorMessage(null)
+ .contains("Diagnostic summary"));
+ }
+
+ @Test
+ public void customBreakerWithoutSnapshotKeepsItsMessage() {
+ OciCircuitBreaker custom = mock(LegacyBreaker.class, CALLS_REAL_METHODS);
+ doReturn("legacy rejection").when(custom).circuitBreakerCallNotPermittedErrorMessage(any());
+ assertNull(custom.getOpenEvent());
+ assertEquals(
+ "legacy rejection",
+ custom.circuitBreakerCallNotPermittedErrorMessage(
+ null,
+ CallNotAllowedException.createCallNotAllowedException("open", false)));
+ }
+
+ @Test
+ public void clientCallIncludesSnapshotInSyncAndAsyncRejections() throws Exception {
+ assertClientCallRejections(breaker -> {}, 503);
+ }
+
+ @Test
+ public void clientCallPreservesSnapshotWhenResetDuringRejection() throws Exception {
+ assertClientCallRejections(breaker -> breaker.getR4jCircuitBreaker().reset(), null);
+ }
+
+ @Test
+ public void clientCallPreservesSnapshotWhenReopenedDuringRejection() throws Exception {
+ assertClientCallRejections(
+ breaker -> {
+ breaker.getR4jCircuitBreaker().reset();
+ failWith(breaker, http(429));
+ },
+ 429);
+ }
+
+ private void assertClientCallRejections(
+ Consumer onRejection, Integer expectedCurrentStatus)
+ throws Exception {
+ for (boolean synchronous : new boolean[] {true, false}) {
+ OciCircuitBreaker breaker = breaker(1, 2);
+ failWith(breaker, http(503));
+ CircuitBreakerOpenEvent original = breaker.getOpenEvent();
+ assertNotNull(original);
+ AtomicBoolean firstRejection = new AtomicBoolean(true);
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onCallNotPermitted(
+ ignored -> {
+ if (firstRejection.compareAndSet(true, false)) {
+ onRejection.accept(breaker);
+ }
+ });
+ HttpClient client = mock(HttpClient.class);
+ HttpRequest request = mock(HttpRequest.class);
+ when(client.createRequest(any())).thenReturn(request);
+ when(request.copy()).thenReturn(request);
+ when(request.offloadExecutor(any())).thenReturn(request);
+ when(request.uri()).thenReturn(URI.create("https://localhost"));
+ ClientCall<
+ ClientCallTest.TestRequest,
+ ClientCallTest.TestResponse,
+ ClientCallTest.TestResponse.Builder>
+ call =
+ ClientCall.builder(
+ client,
+ new ClientCallTest.TestRequest(),
+ ClientCallTest.TestResponse::builder)
+ .circuitBreaker(breaker)
+ .retryConfiguration(RetryConfiguration.NO_RETRY_CONFIGURATION)
+ .serviceDetails(
+ "Diagnostics", "TestOperation", "https://localhost/api")
+ .logger(LoggerFactory.getLogger(getClass()), "diagnostics-test")
+ .method(Method.GET);
+ BmcException rejection;
+ if (synchronous) {
+ rejection = assertThrows(BmcException.class, call::callSync);
+ } else {
+ Future result = call.callAsync(null);
+ ExecutionException failure =
+ assertThrows(
+ ExecutionException.class, () -> result.get(5, TimeUnit.SECONDS));
+ assertTrue(failure.getCause() instanceof BmcException);
+ rejection = (BmcException) failure.getCause();
+ }
+ assertFalse("Rejection listener was not invoked", firstRejection.get());
+ assertRejection(rejection, original);
+ assertTrue(rejection.isClientSide());
+ assertEquals("Diagnostics", rejection.getServiceDetails().getServiceName());
+ assertEquals("TestOperation", rejection.getServiceDetails().getOperationName());
+ assertEquals("https://localhost", rejection.getServiceDetails().getRequestEndpoint());
+ assertEquals(
+ "https://localhost/api", rejection.getServiceDetails().getApiReferenceLink());
+ assertTrue(
+ rejection
+ .getMessage()
+ .contains("URL which CircuitBreaker rejected is - https://localhost"));
+ CircuitBreakerOpenEvent current = breaker.getOpenEvent();
+ if (expectedCurrentStatus == null) {
+ assertNull(current);
+ } else {
+ assertNotNull(current);
+ assertEquals(
+ Collections.singletonMap(expectedCurrentStatus, 1L),
+ current.getHttpStatusCounts());
+ }
+ if (current != null && current != original) {
+ assertNotEquals(original.getCorrelationId(), current.getCorrelationId());
+ assertFalse(rejection.getMessage().contains(current.toString()));
+ }
+ verify(request, never()).execute();
+ }
+ }
+
+ @Test
+ public void rejectionFactoryPreservesMessageAndCapturedSnapshot() {
+ OciCircuitBreaker breaker = breaker(1, 0);
+ failWith(breaker, http(503));
+ CircuitBreakerOpenEvent event = breaker.getOpenEvent();
+ CallNotAllowedException rejection =
+ CallNotAllowedException.createCallNotAllowedException(
+ "original reason", false, event);
+ assertEquals("original reason", rejection.getMessage());
+ assertSame(event, rejection.getOpenEvent());
+ assertEquals(event.getCorrelationId(), rejection.getCorrelationId());
+ assertEquals(0, rejection.getStackTrace().length);
+ }
+
+ @Test
+ public void capturedRejectionKeepsItsSummaryAfterReopening() {
+ OciCircuitBreaker breaker = breaker(1, 0);
+ failWith(breaker, http(500));
+ CircuitBreakerOpenEvent original = breaker.getOpenEvent();
+ AtomicBoolean reopen = new AtomicBoolean(true);
+ breaker.getR4jCircuitBreaker()
+ .getEventPublisher()
+ .onCallNotPermitted(
+ ignored -> {
+ if (reopen.compareAndSet(true, false)) {
+ breaker.getR4jCircuitBreaker().reset();
+ failWith(breaker, http(429));
+ // A later direct rejection must not replace the SDK call's
+ // snapshot.
+ assertFalse(breaker.tryAcquirePermission());
+ }
+ });
+ CallNotAllowedException rejection =
+ assertThrows(CallNotAllowedException.class, breaker::acquirePermissionOrThrow);
+ CircuitBreakerOpenEvent current = breaker.getOpenEvent();
+ assertNotEquals(original.getCorrelationId(), current.getCorrelationId());
+ assertSame(original, rejection.getOpenEvent());
+ String message = breaker.circuitBreakerCallNotPermittedErrorMessage(null, rejection);
+ assertEquals(1, occurrences(message, original.toString()));
+ assertFalse(message.contains(current.toString()));
+ }
+
+ @Test
+ public void delayedHistoryCleanupPreservesFreshClosedWindow() throws Exception {
+ assertDelayedHistoryCleanup(2);
+ }
+
+ @Test
+ public void delayedHistoryCleanupPreservesFreshOpening() throws Exception {
+ assertDelayedHistoryCleanup(1);
+ }
+
+ @Test
+ public void delayedClosedCleanupClearsHistoryBeforeDirectReopening() throws Exception {
+ CircuitBreaker raw = diagnosticRaceBreaker("direct-reopening-history");
+ CountDownLatch closed = new CountDownLatch(1);
+ CountDownLatch publishClose = new CountDownLatch(1);
+ raw.getEventPublisher()
+ .onStateTransition(
+ event -> {
+ if (event.getStateTransition().getToState()
+ == CircuitBreaker.State.CLOSED) {
+ closed.countDown();
+ await(publishClose);
+ }
+ });
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 4);
+ failWith(breaker, http(500));
+ assertEquals(1, breaker.getHistory().size());
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ try {
+ Future> closing = executor.submit(raw::transitionToClosedState);
+ await(closed);
+ assertEquals(CircuitBreaker.State.CLOSED, raw.getState());
+ // Direct reporting bypasses addToHistory(), so the error listener must clear history.
+ raw.acquirePermission();
+ raw.onError(1, TimeUnit.MILLISECONDS, new ConnectException());
+ assertEquals(CircuitBreaker.State.OPEN, raw.getState());
+ assertTrue(
+ "Previous window history survived reopening", breaker.getHistory().isEmpty());
+ publishClose.countDown();
+ closing.get(5, TimeUnit.SECONDS);
+
+ assertTrue(breaker.getHistory().isEmpty());
+ assertEquals(
+ Collections.singletonMap(FailureCategory.CONNECTION, 1L),
+ breaker.getOpenEvent().getFailureCounts());
+ } finally {
+ publishClose.countDown();
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ }
+ }
+
+ @Test
+ public void delayedResetWhileAlreadyClosedPreservesNewObservations() throws Exception {
+ CircuitBreaker raw =
+ CircuitBreaker.of(
+ "delayed-reset-while-closed",
+ CircuitBreakerConfig.custom()
+ .minimumNumberOfCalls(2)
+ .failureRateThreshold(100)
+ .waitDurationInOpenState(Duration.ofHours(1))
+ .build());
+ CountDownLatch resetStarted = new CountDownLatch(1);
+ CountDownLatch publishReset = new CountDownLatch(1);
+ // Resetting CLOSED replaces its metrics without publishing another CLOSED transition.
+ raw.getEventPublisher()
+ .onReset(
+ event -> {
+ resetStarted.countDown();
+ await(publishReset);
+ });
+ OciCircuitBreaker breaker = new OciCircuitBreakerImpl(raw, 4);
+ failWith(breaker, http(500));
+ ExecutorService executor = Executors.newSingleThreadExecutor();
+ try {
+ Future> resetting = executor.submit(raw::reset);
+ await(resetStarted);
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ failWith(breaker, http(503));
+ publishReset.countDown();
+ resetting.get(5, TimeUnit.SECONDS);
+ failWith(breaker, http(429));
+
+ CircuitBreakerOpenEvent event = breaker.getOpenEvent();
+ assertNotNull(event);
+ assertEquals(2, event.getFailedCalls());
+ assertEquals(
+ Collections.singletonMap(FailureCategory.REMOTE_HTTP, 2L),
+ event.getFailureCounts());
+ Map expectedStatuses = new HashMap<>();
+ expectedStatuses.put(503, 1L);
+ expectedStatuses.put(429, 1L);
+ assertEquals(expectedStatuses, event.getHttpStatusCounts());
+ } finally {
+ publishReset.countDown();
+ executor.shutdownNow();
+ assertTrue(executor.awaitTermination(5, TimeUnit.SECONDS));
+ }
+ }
+
+ private void assertDelayedHistoryCleanup(int minimumCalls) throws Exception {
+ for (boolean reset : new boolean[] {false, true}) {
+ OciCircuitBreaker breaker = breaker(minimumCalls, 4);
+ for (int call = 0; call < minimumCalls; call++) {
+ failWith(breaker, http(500));
+ }
+ CircuitBreaker raw = breaker.getR4jCircuitBreaker();
+ FutureTask cleanup =
+ new FutureTask<>(
+ () -> {
+ if (reset) raw.reset();
+ else raw.transitionToClosedState();
+ return null;
+ });
+ Thread worker = new Thread(cleanup, "delayed-history-cleanup");
+ try {
+ String freshHistory;
+ synchronized (breaker) {
+ worker.start();
+ long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(5);
+ while (worker.getState() != Thread.State.BLOCKED) {
+ assertTrue(
+ "History cleanup did not reach its monitor",
+ System.nanoTime() < deadline);
+ Thread.yield();
+ }
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ failWith(breaker, http(503));
+ freshHistory = breaker.getHistoryAsString();
+ assertTrue(freshHistory.contains("status: 503"));
+ assertFalse(freshHistory.contains("status: 500"));
+ }
+ cleanup.get(5, TimeUnit.SECONDS);
+ assertEquals(freshHistory, breaker.getHistoryAsString());
+ assertEquals(1, breaker.getHistory().size());
+ if (minimumCalls == 2) {
+ assertEquals(CircuitBreaker.State.CLOSED, breaker.getState());
+ failWith(breaker, http(429));
+ }
+ CircuitBreakerOpenEvent event = breaker.getOpenEvent();
+ assertEquals(minimumCalls, event.getFailedCalls());
+ assertEquals(
+ Collections.singletonMap(FailureCategory.REMOTE_HTTP, (long) minimumCalls),
+ event.getFailureCounts());
+ assertEquals(Long.valueOf(1), event.getHttpStatusCounts().get(503));
+ } finally {
+ worker.join(TimeUnit.SECONDS.toMillis(5));
+ assertFalse("History cleanup did not finish", worker.isAlive());
+ }
+ }
+ }
+
+ // Concrete bridges allow this repository's Mockito version to invoke interface defaults.
+ private abstract static class LegacyBreaker implements OciCircuitBreaker {
+ @Override
+ public CircuitBreakerOpenEvent getOpenEvent() {
+ return OciCircuitBreaker.super.getOpenEvent();
+ }
+
+ @Override
+ public String circuitBreakerCallNotPermittedErrorMessage(
+ String uri, CallNotAllowedException rejection) {
+ return OciCircuitBreaker.super.circuitBreakerCallNotPermittedErrorMessage(
+ uri, rejection);
+ }
+ }
+
+ private void assertRejection(BmcException rejection, CircuitBreakerOpenEvent event) {
+ assertTrue(rejection.getCause() instanceof CallNotAllowedException);
+ CallNotAllowedException cause = (CallNotAllowedException) rejection.getCause();
+ assertSame(event, cause.getOpenEvent());
+ assertEquals(event.getCorrelationId(), cause.getCorrelationId());
+ assertTrue(
+ rejection.getMessage().contains("Diagnostic summary for this opening:\n" + event));
+ assertEquals(1, occurrences(rejection.getMessage(), event.toString()));
+ StringWriter chain = new StringWriter();
+ rejection.printStackTrace(new PrintWriter(chain));
+ assertEquals(1, occurrences(chain.toString(), event.toString()));
+ }
+
+ private int occurrences(String text, String fragment) {
+ return (text.length() - text.replace(fragment, "").length()) / fragment.length();
+ }
+}
diff --git a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ParamEncoderTest.java b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ParamEncoderTest.java
index 977945feae4..e4af81feeda 100644
--- a/bmc-common/src/test/java/com/oracle/bmc/http/internal/ParamEncoderTest.java
+++ b/bmc-common/src/test/java/com/oracle/bmc/http/internal/ParamEncoderTest.java
@@ -8,6 +8,7 @@
import org.junit.Test;
import java.io.UnsupportedEncodingException;
+import java.net.URI;
import java.net.URLDecoder;
public class ParamEncoderTest {
@@ -30,6 +31,22 @@ public void encodeDecodePath() throws UnsupportedEncodingException {
}
}
+ @Test
+ public void encodePathParamProducesValidUri() {
+ String[][] cases = {
+ {"par[]\\^|/part+1", "par%5B%5D%5C%5E%7C%2Fpart+1"},
+ {"par%5B%5D%2F%", "par%255B%255D%252F%25"},
+ {"par-._~!$&'()*+,;=:@09", "par-._~!$&'()*+,;=:@09"}
+ };
+ for (String[] testCase : cases) {
+ String encoded = ParamEncoder.encodePathParam(testCase[0]);
+ Assert.assertEquals(testCase[0], testCase[1], encoded);
+ URI uri = URI.create("https://example.com/p/" + encoded);
+ Assert.assertEquals("/p/" + testCase[1], uri.getRawPath());
+ Assert.assertEquals("/p/" + testCase[0], uri.getPath());
+ }
+ }
+
private static final String JERSEY_COMPATIBILITY_JERSEY_RESULT =
"?foo=%00&?foo=%01&?foo=%02&?foo=%03&?foo=%04&?foo=%05&?foo=%06&?foo=%07&?foo=%08&?foo=%09&?foo=%0A&?foo=%0B&?foo=%0C&?foo=%0D&?foo=%0E&?foo=%0F&?foo=%10&?foo=%11&?foo=%12&?foo=%13&?foo=%14&?foo=%15&?foo=%16&?foo=%17&?foo=%18&?foo=%19&?foo=%1A&?foo=%1B&?foo=%1C&?foo=%1D&?foo=%1E&?foo=%1F&?foo=%21&?foo=%22&?foo=%23&?foo=%24&?foo=%25&?foo=%26&?foo=%27&?foo=%28&?foo=%29&?foo=%2A&?foo=%2B&?foo=%2C&?foo=-&?foo=.&?foo=%2F&?foo=0&?foo=1&?foo=2&?foo=3&?foo=4&?foo=5&?foo=6&?foo=7&?foo=8&?foo=9&?foo=%3A&?foo=%3B&?foo=%3C&?foo=%3D&?foo=%3E&?foo=%3F&?foo=%40&?foo=A&?foo=B&?foo=C&?foo=D&?foo=E&?foo=F&?foo=G&?foo=H&?foo=I&?foo=J&?foo=K&?foo=L&?foo=M&?foo=N&?foo=O&?foo=P&?foo=Q&?foo=R&?foo=S&?foo=T&?foo=U&?foo=V&?foo=W&?foo=X&?foo=Y&?foo=Z&?foo=%5B&?foo=%5C&?foo=%5D&?foo=%5E&?foo=_&?foo=%60&?foo=a&?foo=b&?foo=c&?foo=d&?foo=e&?foo=f&?foo=g&?foo=h&?foo=i&?foo=j&?foo=k&?foo=l&?foo=m&?foo=n&?foo=o&?foo=p&?foo=q&?foo=r&?foo=s&?foo=t&?foo=u&?foo=v&?foo=w&?foo=x&?foo=y&?foo=z&?foo=%7C&?foo=%7F&?foo=%C2%80&?foo=%C2%81&?foo=%C2%82&?foo=%C2%83&?foo=%C2%84&?foo=%C2%85&?foo=%C2%86&?foo=%C2%87&?foo=%C2%88&?foo=%C2%89&?foo=%C2%8A&?foo=%C2%8B&?foo=%C2%8C&?foo=%C2%8D&?foo=%C2%8E&?foo=%C2%8F&?foo=%C2%90&?foo=%C2%91&?foo=%C2%92&?foo=%C2%93&?foo=%C2%94&?foo=%C2%95&?foo=%C2%96&?foo=%C2%97&?foo=%C2%98&?foo=%C2%99&?foo=%C2%9A&?foo=%C2%9B&?foo=%C2%9C&?foo=%C2%9D&?foo=%C2%9E&?foo=%C2%9F&?foo=%C2%A0&?foo=%C2%A1&?foo=%C2%A2&?foo=%C2%A3&?foo=%C2%A4&?foo=%C2%A5&?foo=%C2%A6&?foo=%C2%A7&?foo=%C2%A8&?foo=%C2%A9&?foo=%C2%AA&?foo=%C2%AB&?foo=%C2%AC&?foo=%C2%AD&?foo=%C2%AE&?foo=%C2%AF&?foo=%C2%B0&?foo=%C2%B1&?foo=%C2%B2&?foo=%C2%B3&?foo=%C2%B4&?foo=%C2%B5&?foo=%C2%B6&?foo=%C2%B7&?foo=%C2%B8&?foo=%C2%B9&?foo=%C2%BA&?foo=%C2%BB&?foo=%C2%BC&?foo=%C2%BD&?foo=%C2%BE&?foo=%C2%BF&?foo=%C3%80&?foo=%C3%81&?foo=%C3%82&?foo=%C3%83&?foo=%C3%84&?foo=%C3%85&?foo=%C3%86&?foo=%C3%87&?foo=%C3%88&?foo=%C3%89&?foo=%C3%8A&?foo=%C3%8B&?foo=%C3%8C&?foo=%C3%8D&?foo=%C3%8E&?foo=%C3%8F&?foo=%C3%90&?foo=%C3%91&?foo=%C3%92&?foo=%C3%93&?foo=%C3%94&?foo=%C3%95&?foo=%C3%96&?foo=%C3%97&?foo=%C3%98&?foo=%C3%99&?foo=%C3%9A&?foo=%C3%9B&?foo=%C3%9C&?foo=%C3%9D&?foo=%C3%9E&?foo=%C3%9F&?foo=%C3%A0&?foo=%C3%A1&?foo=%C3%A2&?foo=%C3%A3&?foo=%C3%A4&?foo=%C3%A5&?foo=%C3%A6&?foo=%C3%A7&?foo=%C3%A8&?foo=%C3%A9&?foo=%C3%AA&?foo=%C3%AB&?foo=%C3%AC&?foo=%C3%AD&?foo=%C3%AE&?foo=%C3%AF&?foo=%C3%B0&?foo=%C3%B1&?foo=%C3%B2&?foo=%C3%B3&?foo=%C3%B4&?foo=%C3%B5&?foo=%C3%B6&?foo=%C3%B7&?foo=%C3%B8&?foo=%C3%B9&?foo=%C3%BA&?foo=%C3%BB&?foo=%C3%BC&?foo=%C3%BD&?foo=%C3%BE&?foo=%C3%BF&?foo=%C4%80&?foo=%C4%81&?foo=%C4%82&?foo=%C4%83&?foo=%C4%84&?foo=%C4%85&?foo=%C4%86&?foo=%C4%87&?foo=%C4%88&?foo=%C4%89&?foo=%C4%8A&?foo=%C4%8B&?foo=%C4%8C&?foo=%C4%8D&?foo=%C4%8E&?foo=%C4%8F&?foo=%C4%90&?foo=%C4%91&?foo=%C4%92&?foo=%C4%93&?foo=%C4%94&?foo=%C4%95&?foo=%C4%96&?foo=%C4%97&?foo=%C4%98&?foo=%C4%99&?foo=%C4%9A&?foo=%C4%9B&?foo=%C4%9C&?foo=%C4%9D&?foo=%C4%9E&?foo=%C4%9F&?foo=%C4%A0&?foo=%C4%A1&?foo=%C4%A2&?foo=%C4%A3&?foo=%C4%A4&?foo=%C4%A5&?foo=%C4%A6&?foo=%C4%A7&?foo=%C4%A8&?foo=%C4%A9&?foo=%C4%AA&?foo=%C4%AB&?foo=%C4%AC&?foo=%C4%AD&?foo=%C4%AE&?foo=%C4%AF&?foo=%C4%B0&?foo=%C4%B1&?foo=%C4%B2&?foo=%C4%B3&?foo=%C4%B4&?foo=%C4%B5&?foo=%C4%B6&?foo=%C4%B7&?foo=%C4%B8&?foo=%C4%B9&?foo=%C4%BA&?foo=%C4%BB&?foo=%C4%BC&?foo=%C4%BD&?foo=%C4%BE&?foo=%C4%BF&?foo=%C5%80&?foo=%C5%81&?foo=%C5%82&?foo=%C5%83&?foo=%C5%84&?foo=%C5%85&?foo=%C5%86&?foo=%C5%87&?foo=%C5%88&?foo=%C5%89&?foo=%C5%8A&?foo=%C5%8B&?foo=%C5%8C&?foo=%C5%8D&?foo=%C5%8E&?foo=%C5%8F&?foo=%C5%90&?foo=%C5%91&?foo=%C5%92&?foo=%C5%93&?foo=%C5%94&?foo=%C5%95&?foo=%C5%96&?foo=%C5%97&?foo=%C5%98&?foo=%C5%99&?foo=%C5%9A&?foo=%C5%9B&?foo=%C5%9C&?foo=%C5%9D&?foo=%C5%9E&?foo=%C5%9F&?foo=%C5%A0&?foo=%C5%A1&?foo=%C5%A2&?foo=%C5%A3&?foo=%C5%A4&?foo=%C5%A5&?foo=%C5%A6&?foo=%C5%A7&?foo=%C5%A8&?foo=%C5%A9&?foo=%C5%AA&?foo=%C5%AB&?foo=%C5%AC&?foo=%C5%AD&?foo=%C5%AE&?foo=%C5%AF&?foo=%C5%B0&?foo=%C5%B1&?foo=%C5%B2&?foo=%C5%B3&?foo=%C5%B4&?foo=%C5%B5&?foo=%C5%B6&?foo=%C5%B7&?foo=%C5%B8&?foo=%C5%B9&?foo=%C5%BA&?foo=%C5%BB&?foo=%C5%BC&?foo=%C5%BD&?foo=%C5%BE&?foo=%C5%BF&?foo=%C6%80&?foo=%C6%81&?foo=%C6%82&?foo=%C6%83&?foo=%C6%84&?foo=%C6%85&?foo=%C6%86&?foo=%C6%87&?foo=%C6%88&?foo=%C6%89&?foo=%C6%8A&?foo=%C6%8B&?foo=%C6%8C&?foo=%C6%8D&?foo=%C6%8E&?foo=%C6%8F&?foo=%C6%90&?foo=%C6%91&?foo=%C6%92&?foo=%C6%93&?foo=%C6%94&?foo=%C6%95&?foo=%C6%96&?foo=%C6%97&?foo=%C6%98&?foo=%C6%99&?foo=%C6%9A&?foo=%C6%9B&?foo=%C6%9C&?foo=%C6%9D&?foo=%C6%9E&?foo=%C6%9F&?foo=%C6%A0&?foo=%C6%A1&?foo=%C6%A2&?foo=%C6%A3&?foo=%C6%A4&?foo=%C6%A5&?foo=%C6%A6&?foo=%C6%A7&?foo=%C6%A8&?foo=%C6%A9&?foo=%C6%AA&?foo=%C6%AB&?foo=%C6%AC&?foo=%C6%AD&?foo=%C6%AE&?foo=%C6%AF&?foo=%C6%B0&?foo=%C6%B1&?foo=%C6%B2&?foo=%C6%B3&?foo=%C6%B4&?foo=%C6%B5&?foo=%C6%B6&?foo=%C6%B7&?foo=%C6%B8&?foo=%C6%B9&?foo=%C6%BA&?foo=%C6%BB&?foo=%C6%BC&?foo=%C6%BD&?foo=%C6%BE&?foo=%C6%BF&?foo=%C7%80&?foo=%C7%81&?foo=%C7%82&?foo=%C7%83&?foo=%C7%84&?foo=%C7%85&?foo=%C7%86&?foo=%C7%87&?foo=%C7%88&?foo=%C7%89&?foo=%C7%8A&?foo=%C7%8B&?foo=%C7%8C&?foo=%C7%8D&?foo=%C7%8E&?foo=%C7%8F&?foo=%C7%90&?foo=%C7%91&?foo=%C7%92&?foo=%C7%93&?foo=%C7%94&?foo=%C7%95&?foo=%C7%96&?foo=%C7%97&?foo=%C7%98&?foo=%C7%99&?foo=%C7%9A&?foo=%C7%9B&?foo=%C7%9C&?foo=%C7%9D&?foo=%C7%9E&?foo=%C7%9F&?foo=%C7%A0&?foo=%C7%A1&?foo=%C7%A2&?foo=%C7%A3&?foo=%C7%A4&?foo=%C7%A5&?foo=%C7%A6&?foo=%C7%A7&?foo=%C7%A8&?foo=%C7%A9&?foo=%C7%AA&?foo=%C7%AB&?foo=%C7%AC&?foo=%C7%AD&?foo=%C7%AE&?foo=%C7%AF&?foo=%C7%B0&?foo=%C7%B1&?foo=%C7%B2&?foo=%C7%B3&?foo=%C7%B4&?foo=%C7%B5&?foo=%C7%B6&?foo=%C7%B7&?foo=%C7%B8&?foo=%C7%B9&?foo=%C7%BA&?foo=%C7%BB&?foo=%C7%BC&?foo=%C7%BD&?foo=%C7%BE&?foo=%C7%BF";
@@ -77,18 +94,13 @@ public void jerseyDoubleEncode() throws UnsupportedEncodingException {
}
private static final String VERSION2_COMPATIBILITY_PATH_EXPECTED =
- "%00%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22%23$%25&'()*+,-.%2F0123456789:;%3C=%3E%3F@ABCDEFGHIJKLMNOPQRSTUVWXYZ_%60abcdefghijklmnopqrstuvwxyz%7B%7D~%7F%C2%80%C2%81%C2%82%C2%83%C2%84%C2%85%C2%86%C2%87%C2%88%C2%89%C2%8A%C2%8B%C2%8C%C2%8D%C2%8E%C2%8F%C2%90%C2%91%C2%92%C2%93%C2%94%C2%95%C2%96%C2%97%C2%98%C2%99%C2%9A%C2%9B%C2%9C%C2%9D%C2%9E%C2%9F%C2%A0%C2%A1%C2%A2%C2%A3%C2%A4%C2%A5%C2%A6%C2%A7%C2%A8%C2%A9%C2%AA%C2%AB%C2%AC%C2%AD%C2%AE%C2%AF%C2%B0%C2%B1%C2%B2%C2%B3%C2%B4%C2%B5%C2%B6%C2%B7%C2%B8%C2%B9%C2%BA%C2%BB%C2%BC%C2%BD%C2%BE%C2%BF%C3%80%C3%81%C3%82%C3%83%C3%84%C3%85%C3%86%C3%87%C3%88%C3%89%C3%8A%C3%8B%C3%8C%C3%8D%C3%8E%C3%8F%C3%90%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%9B%C3%9C%C3%9D%C3%9E%C3%9F%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%A8%C3%A9%C3%AA%C3%AB%C3%AC%C3%AD%C3%AE%C3%AF%C3%B0%C3%B1%C3%B2%C3%B3%C3%B4%C3%B5%C3%B6%C3%B7%C3%B8%C3%B9%C3%BA%C3%BB%C3%BC%C3%BD%C3%BE%C3%BF%C4%80%C4%81%C4%82%C4%83%C4%84%C4%85%C4%86%C4%87%C4%88%C4%89%C4%8A%C4%8B%C4%8C%C4%8D%C4%8E%C4%8F%C4%90%C4%91%C4%92%C4%93%C4%94%C4%95%C4%96%C4%97%C4%98%C4%99%C4%9A%C4%9B%C4%9C%C4%9D%C4%9E%C4%9F%C4%A0%C4%A1%C4%A2%C4%A3%C4%A4%C4%A5%C4%A6%C4%A7%C4%A8%C4%A9%C4%AA%C4%AB%C4%AC%C4%AD%C4%AE%C4%AF%C4%B0%C4%B1%C4%B2%C4%B3%C4%B4%C4%B5%C4%B6%C4%B7%C4%B8%C4%B9%C4%BA%C4%BB%C4%BC%C4%BD%C4%BE%C4%BF%C5%80%C5%81%C5%82%C5%83%C5%84%C5%85%C5%86%C5%87%C5%88%C5%89%C5%8A%C5%8B%C5%8C%C5%8D%C5%8E%C5%8F%C5%90%C5%91%C5%92%C5%93%C5%94%C5%95%C5%96%C5%97%C5%98%C5%99%C5%9A%C5%9B%C5%9C%C5%9D%C5%9E%C5%9F%C5%A0%C5%A1%C5%A2%C5%A3%C5%A4%C5%A5%C5%A6%C5%A7%C5%A8%C5%A9%C5%AA%C5%AB%C5%AC%C5%AD%C5%AE%C5%AF%C5%B0%C5%B1%C5%B2%C5%B3%C5%B4%C5%B5%C5%B6%C5%B7%C5%B8%C5%B9%C5%BA%C5%BB%C5%BC%C5%BD%C5%BE%C5%BF%C6%80%C6%81%C6%82%C6%83%C6%84%C6%85%C6%86%C6%87%C6%88%C6%89%C6%8A%C6%8B%C6%8C%C6%8D%C6%8E%C6%8F%C6%90%C6%91%C6%92%C6%93%C6%94%C6%95%C6%96%C6%97%C6%98%C6%99%C6%9A%C6%9B%C6%9C%C6%9D%C6%9E%C6%9F%C6%A0%C6%A1%C6%A2%C6%A3%C6%A4%C6%A5%C6%A6%C6%A7%C6%A8%C6%A9%C6%AA%C6%AB%C6%AC%C6%AD%C6%AE%C6%AF%C6%B0%C6%B1%C6%B2%C6%B3%C6%B4%C6%B5%C6%B6%C6%B7%C6%B8%C6%B9%C6%BA%C6%BB%C6%BC%C6%BD%C6%BE%C6%BF%C7%80%C7%81%C7%82%C7%83%C7%84%C7%85%C7%86%C7%87%C7%88%C7%89%C7%8A%C7%8B%C7%8C%C7%8D%C7%8E%C7%8F%C7%90%C7%91%C7%92%C7%93%C7%94%C7%95%C7%96%C7%97%C7%98%C7%99%C7%9A%C7%9B%C7%9C%C7%9D%C7%9E%C7%9F%C7%A0%C7%A1%C7%A2%C7%A3%C7%A4%C7%A5%C7%A6%C7%A7%C7%A8%C7%A9%C7%AA%C7%AB%C7%AC%C7%AD%C7%AE%C7%AF%C7%B0%C7%B1%C7%B2%C7%B3%C7%B4%C7%B5%C7%B6%C7%B7%C7%B8%C7%B9%C7%BA%C7%BB%C7%BC%C7%BD%C7%BE%C7%BF";
+ "%00%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20!%22%23$%25&'()*+,-.%2F0123456789:;%3C=%3E%3F@ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F%C2%80%C2%81%C2%82%C2%83%C2%84%C2%85%C2%86%C2%87%C2%88%C2%89%C2%8A%C2%8B%C2%8C%C2%8D%C2%8E%C2%8F%C2%90%C2%91%C2%92%C2%93%C2%94%C2%95%C2%96%C2%97%C2%98%C2%99%C2%9A%C2%9B%C2%9C%C2%9D%C2%9E%C2%9F%C2%A0%C2%A1%C2%A2%C2%A3%C2%A4%C2%A5%C2%A6%C2%A7%C2%A8%C2%A9%C2%AA%C2%AB%C2%AC%C2%AD%C2%AE%C2%AF%C2%B0%C2%B1%C2%B2%C2%B3%C2%B4%C2%B5%C2%B6%C2%B7%C2%B8%C2%B9%C2%BA%C2%BB%C2%BC%C2%BD%C2%BE%C2%BF%C3%80%C3%81%C3%82%C3%83%C3%84%C3%85%C3%86%C3%87%C3%88%C3%89%C3%8A%C3%8B%C3%8C%C3%8D%C3%8E%C3%8F%C3%90%C3%91%C3%92%C3%93%C3%94%C3%95%C3%96%C3%97%C3%98%C3%99%C3%9A%C3%9B%C3%9C%C3%9D%C3%9E%C3%9F%C3%A0%C3%A1%C3%A2%C3%A3%C3%A4%C3%A5%C3%A6%C3%A7%C3%A8%C3%A9%C3%AA%C3%AB%C3%AC%C3%AD%C3%AE%C3%AF%C3%B0%C3%B1%C3%B2%C3%B3%C3%B4%C3%B5%C3%B6%C3%B7%C3%B8%C3%B9%C3%BA%C3%BB%C3%BC%C3%BD%C3%BE%C3%BF%C4%80%C4%81%C4%82%C4%83%C4%84%C4%85%C4%86%C4%87%C4%88%C4%89%C4%8A%C4%8B%C4%8C%C4%8D%C4%8E%C4%8F%C4%90%C4%91%C4%92%C4%93%C4%94%C4%95%C4%96%C4%97%C4%98%C4%99%C4%9A%C4%9B%C4%9C%C4%9D%C4%9E%C4%9F%C4%A0%C4%A1%C4%A2%C4%A3%C4%A4%C4%A5%C4%A6%C4%A7%C4%A8%C4%A9%C4%AA%C4%AB%C4%AC%C4%AD%C4%AE%C4%AF%C4%B0%C4%B1%C4%B2%C4%B3%C4%B4%C4%B5%C4%B6%C4%B7%C4%B8%C4%B9%C4%BA%C4%BB%C4%BC%C4%BD%C4%BE%C4%BF%C5%80%C5%81%C5%82%C5%83%C5%84%C5%85%C5%86%C5%87%C5%88%C5%89%C5%8A%C5%8B%C5%8C%C5%8D%C5%8E%C5%8F%C5%90%C5%91%C5%92%C5%93%C5%94%C5%95%C5%96%C5%97%C5%98%C5%99%C5%9A%C5%9B%C5%9C%C5%9D%C5%9E%C5%9F%C5%A0%C5%A1%C5%A2%C5%A3%C5%A4%C5%A5%C5%A6%C5%A7%C5%A8%C5%A9%C5%AA%C5%AB%C5%AC%C5%AD%C5%AE%C5%AF%C5%B0%C5%B1%C5%B2%C5%B3%C5%B4%C5%B5%C5%B6%C5%B7%C5%B8%C5%B9%C5%BA%C5%BB%C5%BC%C5%BD%C5%BE%C5%BF%C6%80%C6%81%C6%82%C6%83%C6%84%C6%85%C6%86%C6%87%C6%88%C6%89%C6%8A%C6%8B%C6%8C%C6%8D%C6%8E%C6%8F%C6%90%C6%91%C6%92%C6%93%C6%94%C6%95%C6%96%C6%97%C6%98%C6%99%C6%9A%C6%9B%C6%9C%C6%9D%C6%9E%C6%9F%C6%A0%C6%A1%C6%A2%C6%A3%C6%A4%C6%A5%C6%A6%C6%A7%C6%A8%C6%A9%C6%AA%C6%AB%C6%AC%C6%AD%C6%AE%C6%AF%C6%B0%C6%B1%C6%B2%C6%B3%C6%B4%C6%B5%C6%B6%C6%B7%C6%B8%C6%B9%C6%BA%C6%BB%C6%BC%C6%BD%C6%BE%C6%BF%C7%80%C7%81%C7%82%C7%83%C7%84%C7%85%C7%86%C7%87%C7%88%C7%89%C7%8A%C7%8B%C7%8C%C7%8D%C7%8E%C7%8F%C7%90%C7%91%C7%92%C7%93%C7%94%C7%95%C7%96%C7%97%C7%98%C7%99%C7%9A%C7%9B%C7%9C%C7%9D%C7%9E%C7%9F%C7%A0%C7%A1%C7%A2%C7%A3%C7%A4%C7%A5%C7%A6%C7%A7%C7%A8%C7%A9%C7%AA%C7%AB%C7%AC%C7%AD%C7%AE%C7%AF%C7%B0%C7%B1%C7%B2%C7%B3%C7%B4%C7%B5%C7%B6%C7%B7%C7%B8%C7%B9%C7%BA%C7%BB%C7%BC%C7%BD%C7%BE%C7%BF";
@Test
public void version2CompatibilityPath() throws UnsupportedEncodingException {
+ // compare the current encoder with the version 2 encoding baseline
StringBuilder sb = new StringBuilder();
for (char c = 0; c < 0x200; c++) {
- // for some reason, the escaper used in version 2 escapes these, even though they're
- // allowed in a path.
- if ("[]\\^|".indexOf(c) != -1) {
- continue;
- }
-
String s = String.valueOf(c);
sb.append(ParamEncoder.encodePathParam(s));
}
diff --git a/bmc-common/src/test/java/com/oracle/bmc/util/CircuitBreakerUtilsTest.java b/bmc-common/src/test/java/com/oracle/bmc/util/CircuitBreakerUtilsTest.java
new file mode 100644
index 00000000000..40bb0f409ec
--- /dev/null
+++ b/bmc-common/src/test/java/com/oracle/bmc/util/CircuitBreakerUtilsTest.java
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.util;
+
+import static org.junit.Assert.assertEquals;
+
+import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
+import org.junit.Test;
+
+public class CircuitBreakerUtilsTest {
+ @Test
+ public void authClientRetainsOneHalfOpenProbeWhileOrdinaryDefaultsPermitTen() {
+ assertEquals(
+ 1,
+ CircuitBreakerUtils.getDefaultAuthClientCircuitBreakerConfiguration()
+ .getPermittedNumberOfCallsInHalfOpenState());
+ assertEquals(
+ 10,
+ CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER_CONFIGURATION
+ .getPermittedNumberOfCallsInHalfOpenState());
+ assertEquals(
+ 10, new CircuitBreakerConfiguration().getPermittedNumberOfCallsInHalfOpenState());
+ assertEquals(
+ 10,
+ CircuitBreakerConfiguration.builder()
+ .build()
+ .getPermittedNumberOfCallsInHalfOpenState());
+ }
+}
diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml
index dee9d5e5daa..7ada9ee64e3 100644
--- a/bmc-computecloudatcustomer/pom.xml
+++ b/bmc-computecloudatcustomer/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-computecloudatcustomer
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml
index cb76c871e43..59e2c8f9712 100644
--- a/bmc-computeinstanceagent/pom.xml
+++ b/bmc-computeinstanceagent/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-computeinstanceagent
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml
index 2d4ada744ae..89ec5962eb7 100644
--- a/bmc-containerengine/pom.xml
+++ b/bmc-containerengine/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml
index 8a4cb50f06b..95382dea3b9 100644
--- a/bmc-containerinstances/pom.xml
+++ b/bmc-containerinstances/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-containerinstances
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-containerregistry/pom.xml b/bmc-containerregistry/pom.xml
index eca32200ca8..712c688eb10 100644
--- a/bmc-containerregistry/pom.xml
+++ b/bmc-containerregistry/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-containerregistry
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml
index 3c2d6809fcd..5be6eceae1c 100644
--- a/bmc-core/pom.xml
+++ b/bmc-core/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,12 +18,12 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-workrequests
- 3.101.0
+ 3.102.0
diff --git a/bmc-costad/pom.xml b/bmc-costad/pom.xml
index 8a050d0d6cb..cbdf3829345 100644
--- a/bmc-costad/pom.xml
+++ b/bmc-costad/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-costad
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml
index 6cdb73a73d6..712ce000112 100644
--- a/bmc-dashboardservice/pom.xml
+++ b/bmc-dashboardservice/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-dashboardservice
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml
index 5d9cccee507..93118d39282 100644
--- a/bmc-database/pom.xml
+++ b/bmc-database/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,12 +18,12 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-workrequests
- 3.101.0
+ 3.102.0
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java
index 36ebf68bb69..6c4f0cf761d 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousDatabaseConnectionUrls.java
@@ -40,6 +40,8 @@ public final class AutonomousDatabaseConnectionUrls
"ordsUrl",
"databaseTransformsUrl",
"essbaseUrl",
+ "a2aUrl",
+ "mcpUrl",
"spatialStudioUrl"
})
public AutonomousDatabaseConnectionUrls(
@@ -52,6 +54,8 @@ public AutonomousDatabaseConnectionUrls(
String ordsUrl,
String databaseTransformsUrl,
String essbaseUrl,
+ String a2aUrl,
+ String mcpUrl,
String spatialStudioUrl) {
super();
this.sqlDevWebUrl = sqlDevWebUrl;
@@ -63,6 +67,8 @@ public AutonomousDatabaseConnectionUrls(
this.ordsUrl = ordsUrl;
this.databaseTransformsUrl = databaseTransformsUrl;
this.essbaseUrl = essbaseUrl;
+ this.a2aUrl = a2aUrl;
+ this.mcpUrl = mcpUrl;
this.spatialStudioUrl = spatialStudioUrl;
}
@@ -227,6 +233,44 @@ public Builder essbaseUrl(String essbaseUrl) {
this.__explicitlySet__.add("essbaseUrl");
return this;
}
+ /**
+ * The URL of the Agent-to-Agent (A2A) server for the Autonomous AI Database. Applicable to
+ * Autonomous AI Database Serverless only.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("a2aUrl")
+ private String a2aUrl;
+
+ /**
+ * The URL of the Agent-to-Agent (A2A) server for the Autonomous AI Database. Applicable to
+ * Autonomous AI Database Serverless only.
+ *
+ * @param a2aUrl the value to set
+ * @return this builder
+ */
+ public Builder a2aUrl(String a2aUrl) {
+ this.a2aUrl = a2aUrl;
+ this.__explicitlySet__.add("a2aUrl");
+ return this;
+ }
+ /**
+ * The URL of the Model Context Protocol (MCP) server for the Autonomous AI Database.
+ * Applicable to Autonomous AI Database Serverless only.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("mcpUrl")
+ private String mcpUrl;
+
+ /**
+ * The URL of the Model Context Protocol (MCP) server for the Autonomous AI Database.
+ * Applicable to Autonomous AI Database Serverless only.
+ *
+ * @param mcpUrl the value to set
+ * @return this builder
+ */
+ public Builder mcpUrl(String mcpUrl) {
+ this.mcpUrl = mcpUrl;
+ this.__explicitlySet__.add("mcpUrl");
+ return this;
+ }
/**
* The URL of the Spatial Studio for the Autonomous AI Database. Applicable to Autonomous AI
* Database Serverless only.
@@ -262,6 +306,8 @@ public AutonomousDatabaseConnectionUrls build() {
this.ordsUrl,
this.databaseTransformsUrl,
this.essbaseUrl,
+ this.a2aUrl,
+ this.mcpUrl,
this.spatialStudioUrl);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
@@ -298,6 +344,12 @@ public Builder copy(AutonomousDatabaseConnectionUrls model) {
if (model.wasPropertyExplicitlySet("essbaseUrl")) {
this.essbaseUrl(model.getEssbaseUrl());
}
+ if (model.wasPropertyExplicitlySet("a2aUrl")) {
+ this.a2aUrl(model.getA2aUrl());
+ }
+ if (model.wasPropertyExplicitlySet("mcpUrl")) {
+ this.mcpUrl(model.getMcpUrl());
+ }
if (model.wasPropertyExplicitlySet("spatialStudioUrl")) {
this.spatialStudioUrl(model.getSpatialStudioUrl());
}
@@ -453,6 +505,40 @@ public String getEssbaseUrl() {
return essbaseUrl;
}
+ /**
+ * The URL of the Agent-to-Agent (A2A) server for the Autonomous AI Database. Applicable to
+ * Autonomous AI Database Serverless only.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("a2aUrl")
+ private final String a2aUrl;
+
+ /**
+ * The URL of the Agent-to-Agent (A2A) server for the Autonomous AI Database. Applicable to
+ * Autonomous AI Database Serverless only.
+ *
+ * @return the value
+ */
+ public String getA2aUrl() {
+ return a2aUrl;
+ }
+
+ /**
+ * The URL of the Model Context Protocol (MCP) server for the Autonomous AI Database. Applicable
+ * to Autonomous AI Database Serverless only.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("mcpUrl")
+ private final String mcpUrl;
+
+ /**
+ * The URL of the Model Context Protocol (MCP) server for the Autonomous AI Database. Applicable
+ * to Autonomous AI Database Serverless only.
+ *
+ * @return the value
+ */
+ public String getMcpUrl() {
+ return mcpUrl;
+ }
+
/**
* The URL of the Spatial Studio for the Autonomous AI Database. Applicable to Autonomous AI
* Database Serverless only.
@@ -496,6 +582,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", ordsUrl=").append(String.valueOf(this.ordsUrl));
sb.append(", databaseTransformsUrl=").append(String.valueOf(this.databaseTransformsUrl));
sb.append(", essbaseUrl=").append(String.valueOf(this.essbaseUrl));
+ sb.append(", a2aUrl=").append(String.valueOf(this.a2aUrl));
+ sb.append(", mcpUrl=").append(String.valueOf(this.mcpUrl));
sb.append(", spatialStudioUrl=").append(String.valueOf(this.spatialStudioUrl));
sb.append(")");
return sb.toString();
@@ -523,6 +611,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.ordsUrl, other.ordsUrl)
&& java.util.Objects.equals(this.databaseTransformsUrl, other.databaseTransformsUrl)
&& java.util.Objects.equals(this.essbaseUrl, other.essbaseUrl)
+ && java.util.Objects.equals(this.a2aUrl, other.a2aUrl)
+ && java.util.Objects.equals(this.mcpUrl, other.mcpUrl)
&& java.util.Objects.equals(this.spatialStudioUrl, other.spatialStudioUrl)
&& super.equals(other);
}
@@ -554,6 +644,8 @@ public int hashCode() {
? 43
: this.databaseTransformsUrl.hashCode());
result = (result * PRIME) + (this.essbaseUrl == null ? 43 : this.essbaseUrl.hashCode());
+ result = (result * PRIME) + (this.a2aUrl == null ? 43 : this.a2aUrl.hashCode());
+ result = (result * PRIME) + (this.mcpUrl == null ? 43 : this.mcpUrl.hashCode());
result =
(result * PRIME)
+ (this.spatialStudioUrl == null ? 43 : this.spatialStudioUrl.hashCode());
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java
index 85ef17fad16..0bec84462bb 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateExadataInfrastructureDetails.java
@@ -53,7 +53,8 @@ public final class CreateExadataInfrastructureDetails
"databaseServerType",
"storageServerType",
"freeformTags",
- "definedTags"
+ "definedTags",
+ "sslInspectionConfiguration"
})
public CreateExadataInfrastructureDetails(
String compartmentId,
@@ -81,7 +82,8 @@ public CreateExadataInfrastructureDetails(
String databaseServerType,
String storageServerType,
java.util.Map freeformTags,
- java.util.Map> definedTags) {
+ java.util.Map> definedTags,
+ SslInspectionConfiguration sslInspectionConfiguration) {
super();
this.compartmentId = compartmentId;
this.displayName = displayName;
@@ -109,6 +111,7 @@ public CreateExadataInfrastructureDetails(
this.storageServerType = storageServerType;
this.freeformTags = freeformTags;
this.definedTags = definedTags;
+ this.sslInspectionConfiguration = sslInspectionConfiguration;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -537,6 +540,16 @@ public Builder definedTags(
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("sslInspectionConfiguration")
+ private SslInspectionConfiguration sslInspectionConfiguration;
+
+ public Builder sslInspectionConfiguration(
+ SslInspectionConfiguration sslInspectionConfiguration) {
+ this.sslInspectionConfiguration = sslInspectionConfiguration;
+ this.__explicitlySet__.add("sslInspectionConfiguration");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -568,7 +581,8 @@ public CreateExadataInfrastructureDetails build() {
this.databaseServerType,
this.storageServerType,
this.freeformTags,
- this.definedTags);
+ this.definedTags,
+ this.sslInspectionConfiguration);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -655,6 +669,9 @@ public Builder copy(CreateExadataInfrastructureDetails model) {
if (model.wasPropertyExplicitlySet("definedTags")) {
this.definedTags(model.getDefinedTags());
}
+ if (model.wasPropertyExplicitlySet("sslInspectionConfiguration")) {
+ this.sslInspectionConfiguration(model.getSslInspectionConfiguration());
+ }
return this;
}
}
@@ -1034,6 +1051,13 @@ public java.util.Map> getDefinedTags() {
return definedTags;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("sslInspectionConfiguration")
+ private final SslInspectionConfiguration sslInspectionConfiguration;
+
+ public SslInspectionConfiguration getSslInspectionConfiguration() {
+ return sslInspectionConfiguration;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -1089,6 +1113,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", storageServerType=").append(String.valueOf(this.storageServerType));
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
sb.append(", definedTags=").append(String.valueOf(this.definedTags));
+ sb.append(", sslInspectionConfiguration=")
+ .append(String.valueOf(this.sslInspectionConfiguration));
sb.append(")");
return sb.toString();
}
@@ -1135,6 +1161,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.storageServerType, other.storageServerType)
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
&& java.util.Objects.equals(this.definedTags, other.definedTags)
+ && java.util.Objects.equals(
+ this.sslInspectionConfiguration, other.sslInspectionConfiguration)
&& super.equals(other);
}
@@ -1210,6 +1238,11 @@ public int hashCode() {
+ (this.storageServerType == null ? 43 : this.storageServerType.hashCode());
result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode());
result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode());
+ result =
+ (result * PRIME)
+ + (this.sslInspectionConfiguration == null
+ ? 43
+ : this.sslInspectionConfiguration.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java
index b9898baf0e7..024c2abb39a 100644
--- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DatabaseTool.java
@@ -21,14 +21,25 @@
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public final class DatabaseTool extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"name", "isEnabled", "computeCount", "maxIdleTimeInMinutes"})
+ @java.beans.ConstructorProperties({
+ "name",
+ "isEnabled",
+ "computeCount",
+ "maxIdleTimeInMinutes",
+ "estimatedConcurrentSessions"
+ })
public DatabaseTool(
- Name name, Boolean isEnabled, Float computeCount, Integer maxIdleTimeInMinutes) {
+ Name name,
+ Boolean isEnabled,
+ Float computeCount,
+ Integer maxIdleTimeInMinutes,
+ Integer estimatedConcurrentSessions) {
super();
this.name = name;
this.isEnabled = isEnabled;
this.computeCount = computeCount;
this.maxIdleTimeInMinutes = maxIdleTimeInMinutes;
+ this.estimatedConcurrentSessions = estimatedConcurrentSessions;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -97,6 +108,27 @@ public Builder maxIdleTimeInMinutes(Integer maxIdleTimeInMinutes) {
this.__explicitlySet__.add("maxIdleTimeInMinutes");
return this;
}
+ /**
+ * Specifies the estimated number of concurrent user sessions (range 1\u201364 for Graph,
+ * 1\u2013256 for OML, default 1). applies only to OML and Graph tools\u2014not applicable
+ * to DLA, Data Transforms, or Spatial.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("estimatedConcurrentSessions")
+ private Integer estimatedConcurrentSessions;
+
+ /**
+ * Specifies the estimated number of concurrent user sessions (range 1\u201364 for Graph,
+ * 1\u2013256 for OML, default 1). applies only to OML and Graph tools\u2014not applicable
+ * to DLA, Data Transforms, or Spatial.
+ *
+ * @param estimatedConcurrentSessions the value to set
+ * @return this builder
+ */
+ public Builder estimatedConcurrentSessions(Integer estimatedConcurrentSessions) {
+ this.estimatedConcurrentSessions = estimatedConcurrentSessions;
+ this.__explicitlySet__.add("estimatedConcurrentSessions");
+ return this;
+ }
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -107,7 +139,8 @@ public DatabaseTool build() {
this.name,
this.isEnabled,
this.computeCount,
- this.maxIdleTimeInMinutes);
+ this.maxIdleTimeInMinutes,
+ this.estimatedConcurrentSessions);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -128,6 +161,9 @@ public Builder copy(DatabaseTool model) {
if (model.wasPropertyExplicitlySet("maxIdleTimeInMinutes")) {
this.maxIdleTimeInMinutes(model.getMaxIdleTimeInMinutes());
}
+ if (model.wasPropertyExplicitlySet("estimatedConcurrentSessions")) {
+ this.estimatedConcurrentSessions(model.getEstimatedConcurrentSessions());
+ }
return this;
}
}
@@ -152,6 +188,8 @@ public enum Name implements com.oracle.bmc.http.internal.BmcEnum {
MongodbApi("MONGODB_API"),
SpatialStudio("SPATIAL_STUDIO"),
Essbase("ESSBASE"),
+ A2A("A2A"),
+ Mcp("MCP"),
/**
* This value is used if a service returns a value for this enum that is not recognized by
@@ -246,6 +284,25 @@ public Integer getMaxIdleTimeInMinutes() {
return maxIdleTimeInMinutes;
}
+ /**
+ * Specifies the estimated number of concurrent user sessions (range 1\u201364 for Graph,
+ * 1\u2013256 for OML, default 1). applies only to OML and Graph tools\u2014not applicable to
+ * DLA, Data Transforms, or Spatial.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("estimatedConcurrentSessions")
+ private final Integer estimatedConcurrentSessions;
+
+ /**
+ * Specifies the estimated number of concurrent user sessions (range 1\u201364 for Graph,
+ * 1\u2013256 for OML, default 1). applies only to OML and Graph tools\u2014not applicable to
+ * DLA, Data Transforms, or Spatial.
+ *
+ * @return the value
+ */
+ public Integer getEstimatedConcurrentSessions() {
+ return estimatedConcurrentSessions;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -265,6 +322,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", isEnabled=").append(String.valueOf(this.isEnabled));
sb.append(", computeCount=").append(String.valueOf(this.computeCount));
sb.append(", maxIdleTimeInMinutes=").append(String.valueOf(this.maxIdleTimeInMinutes));
+ sb.append(", estimatedConcurrentSessions=")
+ .append(String.valueOf(this.estimatedConcurrentSessions));
sb.append(")");
return sb.toString();
}
@@ -283,6 +342,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.isEnabled, other.isEnabled)
&& java.util.Objects.equals(this.computeCount, other.computeCount)
&& java.util.Objects.equals(this.maxIdleTimeInMinutes, other.maxIdleTimeInMinutes)
+ && java.util.Objects.equals(
+ this.estimatedConcurrentSessions, other.estimatedConcurrentSessions)
&& super.equals(other);
}
@@ -298,6 +359,11 @@ public int hashCode() {
+ (this.maxIdleTimeInMinutes == null
? 43
: this.maxIdleTimeInMinutes.hashCode());
+ result =
+ (result * PRIME)
+ + (this.estimatedConcurrentSessions == null
+ ? 43
+ : this.estimatedConcurrentSessions.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
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 5a7772548c9..dca86b5f9b7 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
@@ -79,7 +79,8 @@ public final class ExadataInfrastructure
"exascaleConfig",
"databaseServerType",
"storageServerType",
- "computeModel"
+ "computeModel",
+ "sslInspectionConfiguration"
})
public ExadataInfrastructure(
String id,
@@ -137,7 +138,8 @@ public ExadataInfrastructure(
ExascaleConfigDetails exascaleConfig,
String databaseServerType,
String storageServerType,
- ComputeModel computeModel) {
+ ComputeModel computeModel,
+ SslInspectionConfiguration sslInspectionConfiguration) {
super();
this.id = id;
this.compartmentId = compartmentId;
@@ -195,6 +197,7 @@ public ExadataInfrastructure(
this.databaseServerType = databaseServerType;
this.storageServerType = storageServerType;
this.computeModel = computeModel;
+ this.sslInspectionConfiguration = sslInspectionConfiguration;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -1113,6 +1116,16 @@ public Builder computeModel(ComputeModel computeModel) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("sslInspectionConfiguration")
+ private SslInspectionConfiguration sslInspectionConfiguration;
+
+ public Builder sslInspectionConfiguration(
+ SslInspectionConfiguration sslInspectionConfiguration) {
+ this.sslInspectionConfiguration = sslInspectionConfiguration;
+ this.__explicitlySet__.add("sslInspectionConfiguration");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -1174,7 +1187,8 @@ public ExadataInfrastructure build() {
this.exascaleConfig,
this.databaseServerType,
this.storageServerType,
- this.computeModel);
+ this.computeModel,
+ this.sslInspectionConfiguration);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -1351,6 +1365,9 @@ public Builder copy(ExadataInfrastructure model) {
if (model.wasPropertyExplicitlySet("computeModel")) {
this.computeModel(model.getComputeModel());
}
+ if (model.wasPropertyExplicitlySet("sslInspectionConfiguration")) {
+ this.sslInspectionConfiguration(model.getSslInspectionConfiguration());
+ }
return this;
}
}
@@ -2368,6 +2385,13 @@ public ComputeModel getComputeModel() {
return computeModel;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("sslInspectionConfiguration")
+ private final SslInspectionConfiguration sslInspectionConfiguration;
+
+ public SslInspectionConfiguration getSslInspectionConfiguration() {
+ return sslInspectionConfiguration;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -2456,6 +2480,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType));
sb.append(", storageServerType=").append(String.valueOf(this.storageServerType));
sb.append(", computeModel=").append(String.valueOf(this.computeModel));
+ sb.append(", sslInspectionConfiguration=")
+ .append(String.valueOf(this.sslInspectionConfiguration));
sb.append(")");
return sb.toString();
}
@@ -2539,6 +2565,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.databaseServerType, other.databaseServerType)
&& java.util.Objects.equals(this.storageServerType, other.storageServerType)
&& java.util.Objects.equals(this.computeModel, other.computeModel)
+ && java.util.Objects.equals(
+ this.sslInspectionConfiguration, other.sslInspectionConfiguration)
&& super.equals(other);
}
@@ -2722,6 +2750,11 @@ public int hashCode() {
(result * PRIME)
+ (this.storageServerType == null ? 43 : this.storageServerType.hashCode());
result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode());
+ result =
+ (result * PRIME)
+ + (this.sslInspectionConfiguration == null
+ ? 43
+ : this.sslInspectionConfiguration.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
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 32d352b7c7d..1d6e0901401 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
@@ -82,7 +82,8 @@ public final class ExadataInfrastructureSummary
"exascaleConfig",
"databaseServerType",
"storageServerType",
- "computeModel"
+ "computeModel",
+ "sslInspectionConfiguration"
})
public ExadataInfrastructureSummary(
String id,
@@ -140,7 +141,8 @@ public ExadataInfrastructureSummary(
ExascaleConfigDetails exascaleConfig,
String databaseServerType,
String storageServerType,
- ComputeModel computeModel) {
+ ComputeModel computeModel,
+ SslInspectionConfiguration sslInspectionConfiguration) {
super();
this.id = id;
this.compartmentId = compartmentId;
@@ -198,6 +200,7 @@ public ExadataInfrastructureSummary(
this.databaseServerType = databaseServerType;
this.storageServerType = storageServerType;
this.computeModel = computeModel;
+ this.sslInspectionConfiguration = sslInspectionConfiguration;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -1116,6 +1119,16 @@ public Builder computeModel(ComputeModel computeModel) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("sslInspectionConfiguration")
+ private SslInspectionConfiguration sslInspectionConfiguration;
+
+ public Builder sslInspectionConfiguration(
+ SslInspectionConfiguration sslInspectionConfiguration) {
+ this.sslInspectionConfiguration = sslInspectionConfiguration;
+ this.__explicitlySet__.add("sslInspectionConfiguration");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -1177,7 +1190,8 @@ public ExadataInfrastructureSummary build() {
this.exascaleConfig,
this.databaseServerType,
this.storageServerType,
- this.computeModel);
+ this.computeModel,
+ this.sslInspectionConfiguration);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -1354,6 +1368,9 @@ public Builder copy(ExadataInfrastructureSummary model) {
if (model.wasPropertyExplicitlySet("computeModel")) {
this.computeModel(model.getComputeModel());
}
+ if (model.wasPropertyExplicitlySet("sslInspectionConfiguration")) {
+ this.sslInspectionConfiguration(model.getSslInspectionConfiguration());
+ }
return this;
}
}
@@ -2371,6 +2388,13 @@ public ComputeModel getComputeModel() {
return computeModel;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("sslInspectionConfiguration")
+ private final SslInspectionConfiguration sslInspectionConfiguration;
+
+ public SslInspectionConfiguration getSslInspectionConfiguration() {
+ return sslInspectionConfiguration;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -2459,6 +2483,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", databaseServerType=").append(String.valueOf(this.databaseServerType));
sb.append(", storageServerType=").append(String.valueOf(this.storageServerType));
sb.append(", computeModel=").append(String.valueOf(this.computeModel));
+ sb.append(", sslInspectionConfiguration=")
+ .append(String.valueOf(this.sslInspectionConfiguration));
sb.append(")");
return sb.toString();
}
@@ -2542,6 +2568,8 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.databaseServerType, other.databaseServerType)
&& java.util.Objects.equals(this.storageServerType, other.storageServerType)
&& java.util.Objects.equals(this.computeModel, other.computeModel)
+ && java.util.Objects.equals(
+ this.sslInspectionConfiguration, other.sslInspectionConfiguration)
&& super.equals(other);
}
@@ -2725,6 +2753,11 @@ public int hashCode() {
(result * PRIME)
+ (this.storageServerType == null ? 43 : this.storageServerType.hashCode());
result = (result * PRIME) + (this.computeModel == null ? 43 : this.computeModel.hashCode());
+ result =
+ (result * PRIME)
+ + (this.sslInspectionConfiguration == null
+ ? 43
+ : this.sslInspectionConfiguration.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/SslInspectionConfiguration.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/SslInspectionConfiguration.java
new file mode 100644
index 00000000000..7367d748862
--- /dev/null
+++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/SslInspectionConfiguration.java
@@ -0,0 +1,183 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.database.model;
+
+/**
+ * SSL inspection configuration for the Exadata infrastructure.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = SslInspectionConfiguration.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class SslInspectionConfiguration
+ extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"isEnabled", "certificateAuthorityId"})
+ public SslInspectionConfiguration(Boolean isEnabled, String certificateAuthorityId) {
+ super();
+ this.isEnabled = isEnabled;
+ this.certificateAuthorityId = certificateAuthorityId;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /** Indicates whether SSL inspection is enabled for the Exadata infrastructure. */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private Boolean isEnabled;
+
+ /**
+ * Indicates whether SSL inspection is enabled for the Exadata infrastructure.
+ *
+ * @param isEnabled the value to set
+ * @return this builder
+ */
+ public Builder isEnabled(Boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ this.__explicitlySet__.add("isEnabled");
+ return this;
+ }
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * certificate authority.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("certificateAuthorityId")
+ private String certificateAuthorityId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * certificate authority.
+ *
+ * @param certificateAuthorityId the value to set
+ * @return this builder
+ */
+ public Builder certificateAuthorityId(String certificateAuthorityId) {
+ this.certificateAuthorityId = certificateAuthorityId;
+ this.__explicitlySet__.add("certificateAuthorityId");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public SslInspectionConfiguration build() {
+ SslInspectionConfiguration model =
+ new SslInspectionConfiguration(this.isEnabled, this.certificateAuthorityId);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(SslInspectionConfiguration model) {
+ if (model.wasPropertyExplicitlySet("isEnabled")) {
+ this.isEnabled(model.getIsEnabled());
+ }
+ if (model.wasPropertyExplicitlySet("certificateAuthorityId")) {
+ this.certificateAuthorityId(model.getCertificateAuthorityId());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /** Indicates whether SSL inspection is enabled for the Exadata infrastructure. */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private final Boolean isEnabled;
+
+ /**
+ * Indicates whether SSL inspection is enabled for the Exadata infrastructure.
+ *
+ * @return the value
+ */
+ public Boolean getIsEnabled() {
+ return isEnabled;
+ }
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * certificate authority.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("certificateAuthorityId")
+ private final String certificateAuthorityId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * certificate authority.
+ *
+ * @return the value
+ */
+ public String getCertificateAuthorityId() {
+ return certificateAuthorityId;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("SslInspectionConfiguration(");
+ sb.append("super=").append(super.toString());
+ sb.append("isEnabled=").append(String.valueOf(this.isEnabled));
+ sb.append(", certificateAuthorityId=").append(String.valueOf(this.certificateAuthorityId));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof SslInspectionConfiguration)) {
+ return false;
+ }
+
+ SslInspectionConfiguration other = (SslInspectionConfiguration) o;
+ return java.util.Objects.equals(this.isEnabled, other.isEnabled)
+ && java.util.Objects.equals(
+ this.certificateAuthorityId, other.certificateAuthorityId)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode());
+ result =
+ (result * PRIME)
+ + (this.certificateAuthorityId == null
+ ? 43
+ : this.certificateAuthorityId.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json
index e9640824e51..f9015c986c3 100644
--- a/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json
+++ b/bmc-database/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-database/reflect-config.json
@@ -10704,6 +10704,20 @@
"allDeclaredFields": true,
"allDeclaredMethods": true
},
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.database.model.SslInspectionConfiguration",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "queryAllDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.database.model.SslInspectionConfiguration$Builder",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "allDeclaredConstructors": true
+ },
{
"condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
"name": "com.oracle.bmc.database.model.StackMonitoringConfig",
diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml
index f16e4a3eabf..236fa02235a 100644
--- a/bmc-databasemanagement/pom.xml
+++ b/bmc-databasemanagement/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-databasemanagement
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml
index 011c5cf1bfe..cc1195320d9 100644
--- a/bmc-databasemigration/pom.xml
+++ b/bmc-databasemigration/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-databasemigration
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml
index f0667033ff5..29ae1342550 100644
--- a/bmc-databasetools/pom.xml
+++ b/bmc-databasetools/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-databasetools
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-databasetoolsruntime/pom.xml b/bmc-databasetoolsruntime/pom.xml
index a7c5aedac62..789d6c6c839 100644
--- a/bmc-databasetoolsruntime/pom.xml
+++ b/bmc-databasetoolsruntime/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-databasetoolsruntime
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml
index b6d73f52ff1..93d313eec7c 100644
--- a/bmc-datacatalog/pom.xml
+++ b/bmc-datacatalog/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-datacatalog
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-datacc/pom.xml b/bmc-datacc/pom.xml
index 8b3496cd5f7..c8b11f2edcd 100644
--- a/bmc-datacc/pom.xml
+++ b/bmc-datacc/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-datacc
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml
index ac51a37d467..72cc5154dfa 100644
--- a/bmc-dataflow/pom.xml
+++ b/bmc-dataflow/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-dataflow
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml
index 33732f0fc5b..c802fc8b1f5 100644
--- a/bmc-dataintegration/pom.xml
+++ b/bmc-dataintegration/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-dataintegration
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml
index 3a9766bfbf7..99ee9e389c6 100644
--- a/bmc-datalabelingservice/pom.xml
+++ b/bmc-datalabelingservice/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-datalabelingservice
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml
index 91f823bc6ea..9cf306b4a06 100644
--- a/bmc-datalabelingservicedataplane/pom.xml
+++ b/bmc-datalabelingservicedataplane/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-datalabelingservicedataplane
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml
index b09d8d4480a..a32970dd627 100644
--- a/bmc-datasafe/pom.xml
+++ b/bmc-datasafe/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-datasafe
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml
index 2bb91ed1a81..5981e34b323 100644
--- a/bmc-datascience/pom.xml
+++ b/bmc-datascience/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-datascience
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-dblm/pom.xml b/bmc-dblm/pom.xml
index bb3712f4c5f..398c5a9d390 100644
--- a/bmc-dblm/pom.xml
+++ b/bmc-dblm/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-dblm
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-dbmulticloud/pom.xml b/bmc-dbmulticloud/pom.xml
index d6de4664d10..95480e0763b 100644
--- a/bmc-dbmulticloud/pom.xml
+++ b/bmc-dbmulticloud/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-dbmulticloud
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-ddfs/pom.xml b/bmc-ddfs/pom.xml
index a9178cff006..dad4741852a 100644
--- a/bmc-ddfs/pom.xml
+++ b/bmc-ddfs/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-ddfs
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-delegateaccesscontrol/pom.xml b/bmc-delegateaccesscontrol/pom.xml
index 8ac44f81a8b..53bd4fcf7af 100644
--- a/bmc-delegateaccesscontrol/pom.xml
+++ b/bmc-delegateaccesscontrol/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-delegateaccesscontrol
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml
index 0c777f07439..09ec5ce7a5e 100644
--- a/bmc-demandsignal/pom.xml
+++ b/bmc-demandsignal/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-demandsignal
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml
index 48aab7c171f..980ac31c05e 100644
--- a/bmc-desktops/pom.xml
+++ b/bmc-desktops/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-desktops
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml
index 8a77d951fc4..1f32809ff46 100644
--- a/bmc-devops/pom.xml
+++ b/bmc-devops/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-devops
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-dif/pom.xml b/bmc-dif/pom.xml
index fc5bb321a37..a2017a12c7c 100644
--- a/bmc-dif/pom.xml
+++ b/bmc-dif/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-dif
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml
index b7f58ab3f39..df9ea4875cd 100644
--- a/bmc-disasterrecovery/pom.xml
+++ b/bmc-disasterrecovery/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-disasterrecovery
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-distributeddatabase/pom.xml b/bmc-distributeddatabase/pom.xml
index 363f4704080..865f55811ab 100644
--- a/bmc-distributeddatabase/pom.xml
+++ b/bmc-distributeddatabase/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-distributeddatabase
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml
index 4780120c164..c6f14625316 100644
--- a/bmc-dns/pom.xml
+++ b/bmc-dns/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,12 +18,12 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-workrequests
- 3.101.0
+ 3.102.0
diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml
index c37abedf223..c58b26f5149 100644
--- a/bmc-email/pom.xml
+++ b/bmc-email/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml
index fc1f14472f5..7dae535763d 100644
--- a/bmc-emaildataplane/pom.xml
+++ b/bmc-emaildataplane/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-emaildataplane
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml
index ffd888e483f..14872fe819c 100644
--- a/bmc-emwarehouse/pom.xml
+++ b/bmc-emwarehouse/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-emwarehouse
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml
index 9fd16d8ab75..587eadb3f16 100644
--- a/bmc-encryption/pom.xml
+++ b/bmc-encryption/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,17 +18,17 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-common-httpclient
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-keymanagement
- 3.101.0
+ 3.102.0
com.fasterxml.jackson.core
@@ -48,7 +48,7 @@
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-jersey
- 3.101.0
+ 3.102.0
test
diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml
index 2dc3df8e326..d08be1ce84b 100644
--- a/bmc-enforcer-rules/pom.xml
+++ b/bmc-enforcer-rules/pom.xml
@@ -6,7 +6,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
oci-java-sdk-enforcer-rules
diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml
index 32dab4492e7..a4949f31ede 100644
--- a/bmc-events/pom.xml
+++ b/bmc-events/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-events
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml
index 2f9d3127f6c..2de4bb30c62 100644
--- a/bmc-examples/pom.xml
+++ b/bmc-examples/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-examples
@@ -71,14 +71,14 @@
com.oracle.oci.sdk
oci-java-sdk-bom
- 3.101.0
+ 3.102.0
pom
import
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-jersey
- 3.101.0
+ 3.102.0
pom
import
diff --git a/bmc-examples/src/main/java/CircuitBreakerEventListenerExample.java b/bmc-examples/src/main/java/CircuitBreakerEventListenerExample.java
new file mode 100644
index 00000000000..d2c7f29f93b
--- /dev/null
+++ b/bmc-examples/src/main/java/CircuitBreakerEventListenerExample.java
@@ -0,0 +1,82 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+import com.oracle.bmc.ClientConfiguration;
+import com.oracle.bmc.ConfigFileReader;
+import com.oracle.bmc.Region;
+import com.oracle.bmc.auth.AuthenticationDetailsProvider;
+import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerConfiguration;
+import com.oracle.bmc.circuitbreaker.CircuitBreakerEventListener;
+import com.oracle.bmc.identity.IdentityClient;
+import com.oracle.bmc.identity.requests.ListRegionsRequest;
+import com.oracle.bmc.identity.responses.ListRegionsResponse;
+import io.github.resilience4j.circuitbreaker.CircuitBreaker;
+import java.time.Duration;
+
+/** Example demonstrating how to implement and use CircuitBreakerEventListener. */
+public class CircuitBreakerEventListenerExample {
+
+ public static void main(String[] args) throws Exception {
+ // Uses the DEFAULT profile in ~/.oci/config. To select another file or profile,
+ // use ConfigFileReader.parse(configurationFilePath, profile) instead.
+ final ConfigFileReader.ConfigFile configFile = ConfigFileReader.parseDefault();
+ final AuthenticationDetailsProvider provider =
+ new ConfigFileAuthenticationDetailsProvider(configFile);
+
+ ClientConfiguration configuration =
+ ClientConfiguration.builder()
+ .circuitBreakerConfiguration(
+ CircuitBreakerConfiguration.builder()
+ .circuitBreakerEventListener(new MyCircuitBreakerListener())
+ .build())
+ .build();
+
+ try (IdentityClient identityClient =
+ IdentityClient.builder().configuration(configuration).build(provider)) {
+ identityClient.setRegion(Region.US_PHOENIX_1);
+ System.out.println("Querying for list of regions");
+ final ListRegionsResponse response =
+ identityClient.listRegions(ListRegionsRequest.builder().build());
+ System.out.println("List of regions: " + response.getItems());
+ }
+ }
+
+ // Simple implementation that prints a message for each supported event.
+ public static class MyCircuitBreakerListener implements CircuitBreakerEventListener {
+ @Override
+ public void onSuccess(Duration duration) {
+ System.out.println("Call succeeded in " + duration.toMillis() + " ms");
+ }
+
+ @Override
+ public void onError(Throwable throwable) {
+ System.out.println("Call failed with error: " + throwable);
+ }
+
+ @Override
+ public void onStateTransition(CircuitBreaker.StateTransition stateTransition) {
+ System.out.println(
+ "State changed: "
+ + stateTransition.getFromState()
+ + " -> "
+ + stateTransition.getToState());
+ }
+
+ @Override
+ public void onCallNotPermitted() {
+ System.out.println("Circuit breaker blocked the call (not permitted).");
+ }
+
+ @Override
+ public void onReset() {
+ System.out.println("Circuit breaker was reset.");
+ }
+
+ @Override
+ public void onFailureRateExceeded() {
+ System.out.println("Failure rate threshold exceeded.");
+ }
+ }
+}
diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml
index fd4a7912acc..c859d78eae9 100644
--- a/bmc-filestorage/pom.xml
+++ b/bmc-filestorage/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
diff --git a/bmc-fleetappsmanagement/pom.xml b/bmc-fleetappsmanagement/pom.xml
index fc2bca4f9fa..4675875282a 100644
--- a/bmc-fleetappsmanagement/pom.xml
+++ b/bmc-fleetappsmanagement/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-fleetappsmanagement
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml
index b97808326b8..2f64bd8a1dc 100644
--- a/bmc-fleetsoftwareupdate/pom.xml
+++ b/bmc-fleetsoftwareupdate/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-fleetsoftwareupdate
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml
index cb622e573ed..1ef07927b1a 100644
--- a/bmc-full/pom.xml
+++ b/bmc-full/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-full
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-bom
- 3.101.0
+ 3.102.0
pom
import
diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml
index b547439aead..75f8b676ab8 100644
--- a/bmc-functions/pom.xml
+++ b/bmc-functions/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-functions
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml
index 9171885189a..aa1d720708c 100644
--- a/bmc-fusionapps/pom.xml
+++ b/bmc-fusionapps/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-fusionapps
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java
index f399657fb2d..b3a7b1764a2 100644
--- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java
+++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/Action.java
@@ -26,6 +26,9 @@
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(
value = UpgradeAction.class,
name = "QUARTERLY_UPGRADE"),
+ @com.fasterxml.jackson.annotation.JsonSubTypes.Type(
+ value = ApplicationMigrationAction.class,
+ name = "APPLICATION_MIGRATION"),
@com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = VertexAction.class, name = "VERTEX")
})
@com.fasterxml.jackson.annotation.JsonFilter(
@@ -185,6 +188,7 @@ public enum ActionType implements com.oracle.bmc.http.internal.BmcEnum {
QuarterlyUpgrade("QUARTERLY_UPGRADE"),
Patch("PATCH"),
Vertex("VERTEX"),
+ ApplicationMigration("APPLICATION_MIGRATION"),
/**
* This value is used if a service returns a value for this enum that is not recognized by
diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ApplicationMigrationAction.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ApplicationMigrationAction.java
new file mode 100644
index 00000000000..c7daa83d9a2
--- /dev/null
+++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/ApplicationMigrationAction.java
@@ -0,0 +1,304 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.fusionapps.model;
+
+/**
+ * Action indicating a SaaS application migrating to Fusion Applications.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20211201")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = ApplicationMigrationAction.Builder.class)
+@com.fasterxml.jackson.annotation.JsonTypeInfo(
+ use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
+ include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
+ property = "actionType")
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class ApplicationMigrationAction extends Action {
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ @com.fasterxml.jackson.annotation.JsonProperty("referenceKey")
+ private String referenceKey;
+
+ public Builder referenceKey(String referenceKey) {
+ this.referenceKey = referenceKey;
+ this.__explicitlySet__.add("referenceKey");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("state")
+ private State state;
+
+ public Builder state(State state) {
+ this.state = state;
+ this.__explicitlySet__.add("state");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonProperty("description")
+ private String description;
+
+ public Builder description(String description) {
+ this.description = description;
+ this.__explicitlySet__.add("description");
+ return this;
+ }
+ /** Name of SaaS Application being migrated. */
+ @com.fasterxml.jackson.annotation.JsonProperty("applicationType")
+ private String applicationType;
+
+ /**
+ * Name of SaaS Application being migrated.
+ *
+ * @param applicationType the value to set
+ * @return this builder
+ */
+ public Builder applicationType(String applicationType) {
+ this.applicationType = applicationType;
+ this.__explicitlySet__.add("applicationType");
+ return this;
+ }
+ /** Source environment name derived from source pod name */
+ @com.fasterxml.jackson.annotation.JsonProperty("sourceEnvironmentName")
+ private String sourceEnvironmentName;
+
+ /**
+ * Source environment name derived from source pod name
+ *
+ * @param sourceEnvironmentName the value to set
+ * @return this builder
+ */
+ public Builder sourceEnvironmentName(String sourceEnvironmentName) {
+ this.sourceEnvironmentName = sourceEnvironmentName;
+ this.__explicitlySet__.add("sourceEnvironmentName");
+ return this;
+ }
+ /** Source environment id derived from appman instance id */
+ @com.fasterxml.jackson.annotation.JsonProperty("sourceEnvironmentId")
+ private String sourceEnvironmentId;
+
+ /**
+ * Source environment id derived from appman instance id
+ *
+ * @param sourceEnvironmentId the value to set
+ * @return this builder
+ */
+ public Builder sourceEnvironmentId(String sourceEnvironmentId) {
+ this.sourceEnvironmentId = sourceEnvironmentId;
+ this.__explicitlySet__.add("sourceEnvironmentId");
+ return this;
+ }
+ /** Source environment url derived from source url */
+ @com.fasterxml.jackson.annotation.JsonProperty("sourceEnvironmentUrl")
+ private String sourceEnvironmentUrl;
+
+ /**
+ * Source environment url derived from source url
+ *
+ * @param sourceEnvironmentUrl the value to set
+ * @return this builder
+ */
+ public Builder sourceEnvironmentUrl(String sourceEnvironmentUrl) {
+ this.sourceEnvironmentUrl = sourceEnvironmentUrl;
+ this.__explicitlySet__.add("sourceEnvironmentUrl");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public ApplicationMigrationAction build() {
+ ApplicationMigrationAction model =
+ new ApplicationMigrationAction(
+ this.referenceKey,
+ this.state,
+ this.description,
+ this.applicationType,
+ this.sourceEnvironmentName,
+ this.sourceEnvironmentId,
+ this.sourceEnvironmentUrl);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(ApplicationMigrationAction model) {
+ if (model.wasPropertyExplicitlySet("referenceKey")) {
+ this.referenceKey(model.getReferenceKey());
+ }
+ if (model.wasPropertyExplicitlySet("state")) {
+ this.state(model.getState());
+ }
+ if (model.wasPropertyExplicitlySet("description")) {
+ this.description(model.getDescription());
+ }
+ if (model.wasPropertyExplicitlySet("applicationType")) {
+ this.applicationType(model.getApplicationType());
+ }
+ if (model.wasPropertyExplicitlySet("sourceEnvironmentName")) {
+ this.sourceEnvironmentName(model.getSourceEnvironmentName());
+ }
+ if (model.wasPropertyExplicitlySet("sourceEnvironmentId")) {
+ this.sourceEnvironmentId(model.getSourceEnvironmentId());
+ }
+ if (model.wasPropertyExplicitlySet("sourceEnvironmentUrl")) {
+ this.sourceEnvironmentUrl(model.getSourceEnvironmentUrl());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ @Deprecated
+ public ApplicationMigrationAction(
+ String referenceKey,
+ State state,
+ String description,
+ String applicationType,
+ String sourceEnvironmentName,
+ String sourceEnvironmentId,
+ String sourceEnvironmentUrl) {
+ super(referenceKey, state, description);
+ this.applicationType = applicationType;
+ this.sourceEnvironmentName = sourceEnvironmentName;
+ this.sourceEnvironmentId = sourceEnvironmentId;
+ this.sourceEnvironmentUrl = sourceEnvironmentUrl;
+ }
+
+ /** Name of SaaS Application being migrated. */
+ @com.fasterxml.jackson.annotation.JsonProperty("applicationType")
+ private final String applicationType;
+
+ /**
+ * Name of SaaS Application being migrated.
+ *
+ * @return the value
+ */
+ public String getApplicationType() {
+ return applicationType;
+ }
+
+ /** Source environment name derived from source pod name */
+ @com.fasterxml.jackson.annotation.JsonProperty("sourceEnvironmentName")
+ private final String sourceEnvironmentName;
+
+ /**
+ * Source environment name derived from source pod name
+ *
+ * @return the value
+ */
+ public String getSourceEnvironmentName() {
+ return sourceEnvironmentName;
+ }
+
+ /** Source environment id derived from appman instance id */
+ @com.fasterxml.jackson.annotation.JsonProperty("sourceEnvironmentId")
+ private final String sourceEnvironmentId;
+
+ /**
+ * Source environment id derived from appman instance id
+ *
+ * @return the value
+ */
+ public String getSourceEnvironmentId() {
+ return sourceEnvironmentId;
+ }
+
+ /** Source environment url derived from source url */
+ @com.fasterxml.jackson.annotation.JsonProperty("sourceEnvironmentUrl")
+ private final String sourceEnvironmentUrl;
+
+ /**
+ * Source environment url derived from source url
+ *
+ * @return the value
+ */
+ public String getSourceEnvironmentUrl() {
+ return sourceEnvironmentUrl;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("ApplicationMigrationAction(");
+ sb.append("super=").append(super.toString(includeByteArrayContents));
+ sb.append(", applicationType=").append(String.valueOf(this.applicationType));
+ sb.append(", sourceEnvironmentName=").append(String.valueOf(this.sourceEnvironmentName));
+ sb.append(", sourceEnvironmentId=").append(String.valueOf(this.sourceEnvironmentId));
+ sb.append(", sourceEnvironmentUrl=").append(String.valueOf(this.sourceEnvironmentUrl));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof ApplicationMigrationAction)) {
+ return false;
+ }
+
+ ApplicationMigrationAction other = (ApplicationMigrationAction) o;
+ return java.util.Objects.equals(this.applicationType, other.applicationType)
+ && java.util.Objects.equals(this.sourceEnvironmentName, other.sourceEnvironmentName)
+ && java.util.Objects.equals(this.sourceEnvironmentId, other.sourceEnvironmentId)
+ && java.util.Objects.equals(this.sourceEnvironmentUrl, other.sourceEnvironmentUrl)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result =
+ (result * PRIME)
+ + (this.applicationType == null ? 43 : this.applicationType.hashCode());
+ result =
+ (result * PRIME)
+ + (this.sourceEnvironmentName == null
+ ? 43
+ : this.sourceEnvironmentName.hashCode());
+ result =
+ (result * PRIME)
+ + (this.sourceEnvironmentId == null
+ ? 43
+ : this.sourceEnvironmentId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.sourceEnvironmentUrl == null
+ ? 43
+ : this.sourceEnvironmentUrl.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java
index 655b499e457..cbbb91c2ec0 100644
--- a/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java
+++ b/bmc-fusionapps/src/main/java/com/oracle/bmc/fusionapps/model/FusionEnvironment.java
@@ -598,8 +598,8 @@ public Builder isSuspended(Boolean isSuspended) {
/**
* Additional egress rules that should be applied to the environment. Some standard ports
* are open for general use; see [Securing Network Access to a Fusion Applications
- * Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If
- * access to a non-standard port is required, however, they can be listed here.
+ * Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache).
+ * If access to a non-standard port is required, however, they can be listed here.
*/
@com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules")
private java.util.List additionalEgressRules;
@@ -607,8 +607,8 @@ public Builder isSuspended(Boolean isSuspended) {
/**
* Additional egress rules that should be applied to the environment. Some standard ports
* are open for general use; see [Securing Network Access to a Fusion Applications
- * Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If
- * access to a non-standard port is required, however, they can be listed here.
+ * Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache).
+ * If access to a non-standard port is required, however, they can be listed here.
*
* @param additionalEgressRules the value to set
* @return this builder
@@ -1280,8 +1280,8 @@ public Boolean getIsSuspended() {
/**
* Additional egress rules that should be applied to the environment. Some standard ports are
* open for general use; see [Securing Network Access to a Fusion Applications
- * Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If access
- * to a non-standard port is required, however, they can be listed here.
+ * Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache).
+ * If access to a non-standard port is required, however, they can be listed here.
*/
@com.fasterxml.jackson.annotation.JsonProperty("additionalEgressRules")
private final java.util.List additionalEgressRules;
@@ -1289,8 +1289,8 @@ public Boolean getIsSuspended() {
/**
* Additional egress rules that should be applied to the environment. Some standard ports are
* open for general use; see [Securing Network Access to a Fusion Applications
- * Environment][iaas/Content/fusion-applications/plan-environment.htm#internet-cache]. If access
- * to a non-standard port is required, however, they can be listed here.
+ * Environment](https://docs.oracle.com/iaas/Content/fusion-applications/plan-environment.htm#internet-cache).
+ * If access to a non-standard port is required, however, they can be listed here.
*
* @return the value
*/
diff --git a/bmc-fusionapps/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-fusionapps/reflect-config.json b/bmc-fusionapps/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-fusionapps/reflect-config.json
index a6c9fce0f29..039222ef9b8 100644
--- a/bmc-fusionapps/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-fusionapps/reflect-config.json
+++ b/bmc-fusionapps/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-fusionapps/reflect-config.json
@@ -74,6 +74,20 @@
"allDeclaredMethods": true,
"allDeclaredConstructors": true
},
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.fusionapps.model.ApplicationMigrationAction",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "queryAllDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.fusionapps.model.ApplicationMigrationAction$Builder",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "allDeclaredConstructors": true
+ },
{
"condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
"name": "com.oracle.bmc.fusionapps.model.Capabilities",
diff --git a/bmc-gdp/pom.xml b/bmc-gdp/pom.xml
index ae8116d143a..f3bc5aa2c97 100644
--- a/bmc-gdp/pom.xml
+++ b/bmc-gdp/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-gdp
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml
index 23477e43660..177a65ecebe 100644
--- a/bmc-generativeai/pom.xml
+++ b/bmc-generativeai/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-generativeai
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-generativeaiagent/pom.xml b/bmc-generativeaiagent/pom.xml
index 5d45cacbc0e..6f7bc6c476a 100644
--- a/bmc-generativeaiagent/pom.xml
+++ b/bmc-generativeaiagent/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-generativeaiagent
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-generativeaiagentruntime/pom.xml b/bmc-generativeaiagentruntime/pom.xml
index bde08e9326a..40011535138 100644
--- a/bmc-generativeaiagentruntime/pom.xml
+++ b/bmc-generativeaiagentruntime/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-generativeaiagentruntime
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-generativeaidata/pom.xml b/bmc-generativeaidata/pom.xml
index 90109b4e33e..bdb7cd61303 100644
--- a/bmc-generativeaidata/pom.xml
+++ b/bmc-generativeaidata/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-generativeaidata
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml
index bf843c3fe58..bdfd5c5b491 100644
--- a/bmc-generativeaiinference/pom.xml
+++ b/bmc-generativeaiinference/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-generativeaiinference
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-generativeaisandbox/pom.xml b/bmc-generativeaisandbox/pom.xml
index 9031b4d5bef..67054ae3ade 100644
--- a/bmc-generativeaisandbox/pom.xml
+++ b/bmc-generativeaisandbox/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-generativeaisandbox
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml
index 65538d27c4a..642fa269614 100644
--- a/bmc-genericartifactscontent/pom.xml
+++ b/bmc-genericartifactscontent/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-genericartifactscontent
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml
index eb3a3575cd6..5602bd7e0ac 100644
--- a/bmc-goldengate/pom.xml
+++ b/bmc-goldengate/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-goldengate
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml
index 4c1be648a21..35afec274aa 100644
--- a/bmc-governancerulescontrolplane/pom.xml
+++ b/bmc-governancerulescontrolplane/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-governancerulescontrolplane
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml
index 5d3e2d85566..9ee43d0e764 100644
--- a/bmc-healthchecks/pom.xml
+++ b/bmc-healthchecks/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-healthchecks
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml
index d41bd3cf92c..263d9a57b5c 100644
--- a/bmc-identity/pom.xml
+++ b/bmc-identity/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml
index 5ad384096ad..0f982a3a979 100644
--- a/bmc-identitydataplane/pom.xml
+++ b/bmc-identitydataplane/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-identitydataplane
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml
index 8dd8fc2f74b..3679f55ad26 100644
--- a/bmc-identitydomains/pom.xml
+++ b/bmc-identitydomains/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-identitydomains
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml
index 8d47e63008d..3bee4dffaae 100644
--- a/bmc-integration/pom.xml
+++ b/bmc-integration/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-integration
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-iot/pom.xml b/bmc-iot/pom.xml
index 678861162d0..a7b71028942 100644
--- a/bmc-iot/pom.xml
+++ b/bmc-iot/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-iot
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml
index 80c878edc14..abdae36f9bc 100644
--- a/bmc-jms/pom.xml
+++ b/bmc-jms/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-jms
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml
index 19a28f0d5ab..cad0bced468 100644
--- a/bmc-jmsjavadownloads/pom.xml
+++ b/bmc-jmsjavadownloads/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-jmsjavadownloads
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-jmsutils/pom.xml b/bmc-jmsutils/pom.xml
index cb4ca264c1c..cfdeb729ff9 100644
--- a/bmc-jmsutils/pom.xml
+++ b/bmc-jmsutils/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-jmsutils
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml
index 44f79e91c47..e015a2ebc32 100644
--- a/bmc-keymanagement/pom.xml
+++ b/bmc-keymanagement/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-keymanagement
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml
index 470f3256330..1509430eb6f 100644
--- a/bmc-licensemanager/pom.xml
+++ b/bmc-licensemanager/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-licensemanager
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml
index 94df3e24d26..8c269f569e2 100644
--- a/bmc-limits/pom.xml
+++ b/bmc-limits/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-limits
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-limitsincrease/pom.xml b/bmc-limitsincrease/pom.xml
index 61ec030e53c..d9c5e44e899 100644
--- a/bmc-limitsincrease/pom.xml
+++ b/bmc-limitsincrease/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-limitsincrease
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml
index dc337f10727..a77b8ea9cb5 100644
--- a/bmc-loadbalancer/pom.xml
+++ b/bmc-loadbalancer/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,7 +18,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthChecker.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthChecker.java
index 630ce03f61e..4058d008905 100644
--- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthChecker.java
+++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthChecker.java
@@ -31,6 +31,8 @@ public final class HealthChecker extends com.oracle.bmc.http.client.internal.Exp
"timeoutInMillis",
"intervalInMillis",
"responseBodyRegex",
+ "isDynamicBackendWeightEnabled",
+ "defaultWeight",
"isForcePlainText"
})
public HealthChecker(
@@ -42,6 +44,8 @@ public HealthChecker(
Integer timeoutInMillis,
Integer intervalInMillis,
String responseBodyRegex,
+ Boolean isDynamicBackendWeightEnabled,
+ Integer defaultWeight,
Boolean isForcePlainText) {
super();
this.protocol = protocol;
@@ -52,6 +56,8 @@ public HealthChecker(
this.timeoutInMillis = timeoutInMillis;
this.intervalInMillis = intervalInMillis;
this.responseBodyRegex = responseBodyRegex;
+ this.isDynamicBackendWeightEnabled = isDynamicBackendWeightEnabled;
+ this.defaultWeight = defaultWeight;
this.isForcePlainText = isForcePlainText;
}
@@ -235,6 +241,82 @@ public Builder responseBodyRegex(String responseBodyRegex) {
this.__explicitlySet__.add("responseBodyRegex");
return this;
}
+ /**
+ * Indicates whether dynamic backend weights are enabled for HTTP health checks.
+ *
+ * When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the
+ * backend's effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value,
+ * the load balancer uses {@code defaultWeight}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isDynamicBackendWeightEnabled")
+ private Boolean isDynamicBackendWeightEnabled;
+
+ /**
+ * Indicates whether dynamic backend weights are enabled for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the
+ * backend's effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value,
+ * the load balancer uses {@code defaultWeight}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ * @param isDynamicBackendWeightEnabled the value to set
+ * @return this builder
+ */
+ public Builder isDynamicBackendWeightEnabled(Boolean isDynamicBackendWeightEnabled) {
+ this.isDynamicBackendWeightEnabled = isDynamicBackendWeightEnabled;
+ this.__explicitlySet__.add("isDynamicBackendWeightEnabled");
+ return this;
+ }
+ /**
+ * The fallback backend weight used when dynamic backend weights are enabled and the
+ * backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value is an integer from {@code 1} through {@code 100}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ *
Example: {@code 1}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("defaultWeight")
+ private Integer defaultWeight;
+
+ /**
+ * The fallback backend weight used when dynamic backend weights are enabled and the
+ * backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value is an integer from {@code 1} through {@code 100}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ *
Example: {@code 1}
+ *
+ * @param defaultWeight the value to set
+ * @return this builder
+ */
+ public Builder defaultWeight(Integer defaultWeight) {
+ this.defaultWeight = defaultWeight;
+ this.__explicitlySet__.add("defaultWeight");
+ return this;
+ }
/**
* Specifies if health checks should always be done using plain text instead of depending on
* whether or not the associated backend set is using SSL.
@@ -287,6 +369,8 @@ public HealthChecker build() {
this.timeoutInMillis,
this.intervalInMillis,
this.responseBodyRegex,
+ this.isDynamicBackendWeightEnabled,
+ this.defaultWeight,
this.isForcePlainText);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
@@ -320,6 +404,12 @@ public Builder copy(HealthChecker model) {
if (model.wasPropertyExplicitlySet("responseBodyRegex")) {
this.responseBodyRegex(model.getResponseBodyRegex());
}
+ if (model.wasPropertyExplicitlySet("isDynamicBackendWeightEnabled")) {
+ this.isDynamicBackendWeightEnabled(model.getIsDynamicBackendWeightEnabled());
+ }
+ if (model.wasPropertyExplicitlySet("defaultWeight")) {
+ this.defaultWeight(model.getDefaultWeight());
+ }
if (model.wasPropertyExplicitlySet("isForcePlainText")) {
this.isForcePlainText(model.getIsForcePlainText());
}
@@ -496,6 +586,74 @@ public String getResponseBodyRegex() {
return responseBodyRegex;
}
+ /**
+ * Indicates whether dynamic backend weights are enabled for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the backend's
+ * effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value, the
+ * load balancer uses {@code defaultWeight}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isDynamicBackendWeightEnabled")
+ private final Boolean isDynamicBackendWeightEnabled;
+
+ /**
+ * Indicates whether dynamic backend weights are enabled for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the backend's
+ * effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value, the
+ * load balancer uses {@code defaultWeight}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ * @return the value
+ */
+ public Boolean getIsDynamicBackendWeightEnabled() {
+ return isDynamicBackendWeightEnabled;
+ }
+
+ /**
+ * The fallback backend weight used when dynamic backend weights are enabled and the backend's
+ * HTTP health check response does not include a valid {@code X-Dynamic-Backend-Weight} header
+ * value.
+ *
+ *
This value is an integer from {@code 1} through {@code 100}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ *
Example: {@code 1}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("defaultWeight")
+ private final Integer defaultWeight;
+
+ /**
+ * The fallback backend weight used when dynamic backend weights are enabled and the backend's
+ * HTTP health check response does not include a valid {@code X-Dynamic-Backend-Weight} header
+ * value.
+ *
+ *
This value is an integer from {@code 1} through {@code 100}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ *
Example: {@code 1}
+ *
+ * @return the value
+ */
+ public Integer getDefaultWeight() {
+ return defaultWeight;
+ }
+
/**
* Specifies if health checks should always be done using plain text instead of depending on
* whether or not the associated backend set is using SSL.
@@ -554,6 +712,9 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", timeoutInMillis=").append(String.valueOf(this.timeoutInMillis));
sb.append(", intervalInMillis=").append(String.valueOf(this.intervalInMillis));
sb.append(", responseBodyRegex=").append(String.valueOf(this.responseBodyRegex));
+ sb.append(", isDynamicBackendWeightEnabled=")
+ .append(String.valueOf(this.isDynamicBackendWeightEnabled));
+ sb.append(", defaultWeight=").append(String.valueOf(this.defaultWeight));
sb.append(", isForcePlainText=").append(String.valueOf(this.isForcePlainText));
sb.append(")");
return sb.toString();
@@ -577,6 +738,9 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.timeoutInMillis, other.timeoutInMillis)
&& java.util.Objects.equals(this.intervalInMillis, other.intervalInMillis)
&& java.util.Objects.equals(this.responseBodyRegex, other.responseBodyRegex)
+ && java.util.Objects.equals(
+ this.isDynamicBackendWeightEnabled, other.isDynamicBackendWeightEnabled)
+ && java.util.Objects.equals(this.defaultWeight, other.defaultWeight)
&& java.util.Objects.equals(this.isForcePlainText, other.isForcePlainText)
&& super.equals(other);
}
@@ -599,6 +763,14 @@ public int hashCode() {
result =
(result * PRIME)
+ (this.responseBodyRegex == null ? 43 : this.responseBodyRegex.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isDynamicBackendWeightEnabled == null
+ ? 43
+ : this.isDynamicBackendWeightEnabled.hashCode());
+ result =
+ (result * PRIME)
+ + (this.defaultWeight == null ? 43 : this.defaultWeight.hashCode());
result =
(result * PRIME)
+ (this.isForcePlainText == null ? 43 : this.isForcePlainText.hashCode());
diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthCheckerDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthCheckerDetails.java
index c22a9f729ee..1aefa4653a0 100644
--- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthCheckerDetails.java
+++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/HealthCheckerDetails.java
@@ -32,6 +32,8 @@ public final class HealthCheckerDetails
"timeoutInMillis",
"intervalInMillis",
"responseBodyRegex",
+ "isDynamicBackendWeightEnabled",
+ "defaultWeight",
"isForcePlainText"
})
public HealthCheckerDetails(
@@ -43,6 +45,8 @@ public HealthCheckerDetails(
Integer timeoutInMillis,
Integer intervalInMillis,
String responseBodyRegex,
+ Boolean isDynamicBackendWeightEnabled,
+ Integer defaultWeight,
Boolean isForcePlainText) {
super();
this.protocol = protocol;
@@ -53,6 +57,8 @@ public HealthCheckerDetails(
this.timeoutInMillis = timeoutInMillis;
this.intervalInMillis = intervalInMillis;
this.responseBodyRegex = responseBodyRegex;
+ this.isDynamicBackendWeightEnabled = isDynamicBackendWeightEnabled;
+ this.defaultWeight = defaultWeight;
this.isForcePlainText = isForcePlainText;
}
@@ -232,6 +238,102 @@ public Builder responseBodyRegex(String responseBodyRegex) {
this.__explicitlySet__.add("responseBodyRegex");
return this;
}
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the
+ * backend's effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value,
+ * the load balancer uses {@code defaultWeight}.
+ *
+ *
If omitted during create, the default is {@code false}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isDynamicBackendWeightEnabled")
+ private Boolean isDynamicBackendWeightEnabled;
+
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the
+ * backend's effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value,
+ * the load balancer uses {@code defaultWeight}.
+ *
+ *
If omitted during create, the default is {@code false}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ * @param isDynamicBackendWeightEnabled the value to set
+ * @return this builder
+ */
+ public Builder isDynamicBackendWeightEnabled(Boolean isDynamicBackendWeightEnabled) {
+ this.isDynamicBackendWeightEnabled = isDynamicBackendWeightEnabled;
+ this.__explicitlySet__.add("isDynamicBackendWeightEnabled");
+ return this;
+ }
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled
+ * and the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Setting {@code defaultWeight} does not enable dynamic backend weights. To enable
+ * dynamic backend weights, set {@code isDynamicBackendWeightEnabled} to {@code true}. If
+ * your request includes {@code defaultWeight}, you must also set {@code
+ * isDynamicBackendWeightEnabled} to {@code true}; otherwise, the request is rejected.
+ *
+ *
On create, if dynamic backend weights are enabled and this field is omitted or null,
+ * the service uses {@code 1}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ *
Example: {@code 1}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("defaultWeight")
+ private Integer defaultWeight;
+
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled
+ * and the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Setting {@code defaultWeight} does not enable dynamic backend weights. To enable
+ * dynamic backend weights, set {@code isDynamicBackendWeightEnabled} to {@code true}. If
+ * your request includes {@code defaultWeight}, you must also set {@code
+ * isDynamicBackendWeightEnabled} to {@code true}; otherwise, the request is rejected.
+ *
+ *
On create, if dynamic backend weights are enabled and this field is omitted or null,
+ * the service uses {@code 1}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ *
Example: {@code 1}
+ *
+ * @param defaultWeight the value to set
+ * @return this builder
+ */
+ public Builder defaultWeight(Integer defaultWeight) {
+ this.defaultWeight = defaultWeight;
+ this.__explicitlySet__.add("defaultWeight");
+ return this;
+ }
/**
* Specifies if health checks should always be done using plain text instead of depending on
* whether or not the associated backend set is using SSL.
@@ -284,6 +386,8 @@ public HealthCheckerDetails build() {
this.timeoutInMillis,
this.intervalInMillis,
this.responseBodyRegex,
+ this.isDynamicBackendWeightEnabled,
+ this.defaultWeight,
this.isForcePlainText);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
@@ -317,6 +421,12 @@ public Builder copy(HealthCheckerDetails model) {
if (model.wasPropertyExplicitlySet("responseBodyRegex")) {
this.responseBodyRegex(model.getResponseBodyRegex());
}
+ if (model.wasPropertyExplicitlySet("isDynamicBackendWeightEnabled")) {
+ this.isDynamicBackendWeightEnabled(model.getIsDynamicBackendWeightEnabled());
+ }
+ if (model.wasPropertyExplicitlySet("defaultWeight")) {
+ this.defaultWeight(model.getDefaultWeight());
+ }
if (model.wasPropertyExplicitlySet("isForcePlainText")) {
this.isForcePlainText(model.getIsForcePlainText());
}
@@ -491,6 +601,94 @@ public String getResponseBodyRegex() {
return responseBodyRegex;
}
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the backend's
+ * effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value, the
+ * load balancer uses {@code defaultWeight}.
+ *
+ *
If omitted during create, the default is {@code false}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isDynamicBackendWeightEnabled")
+ private final Boolean isDynamicBackendWeightEnabled;
+
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the backend's
+ * effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value, the
+ * load balancer uses {@code defaultWeight}.
+ *
+ *
If omitted during create, the default is {@code false}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ * @return the value
+ */
+ public Boolean getIsDynamicBackendWeightEnabled() {
+ return isDynamicBackendWeightEnabled;
+ }
+
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled and
+ * the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Setting {@code defaultWeight} does not enable dynamic backend weights. To enable dynamic
+ * backend weights, set {@code isDynamicBackendWeightEnabled} to {@code true}. If your request
+ * includes {@code defaultWeight}, you must also set {@code isDynamicBackendWeightEnabled} to
+ * {@code true}; otherwise, the request is rejected.
+ *
+ *
On create, if dynamic backend weights are enabled and this field is omitted or null, the
+ * service uses {@code 1}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ *
Example: {@code 1}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("defaultWeight")
+ private final Integer defaultWeight;
+
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled and
+ * the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Setting {@code defaultWeight} does not enable dynamic backend weights. To enable dynamic
+ * backend weights, set {@code isDynamicBackendWeightEnabled} to {@code true}. If your request
+ * includes {@code defaultWeight}, you must also set {@code isDynamicBackendWeightEnabled} to
+ * {@code true}; otherwise, the request is rejected.
+ *
+ *
On create, if dynamic backend weights are enabled and this field is omitted or null, the
+ * service uses {@code 1}.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ *
Example: {@code 1}
+ *
+ * @return the value
+ */
+ public Integer getDefaultWeight() {
+ return defaultWeight;
+ }
+
/**
* Specifies if health checks should always be done using plain text instead of depending on
* whether or not the associated backend set is using SSL.
@@ -549,6 +747,9 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", timeoutInMillis=").append(String.valueOf(this.timeoutInMillis));
sb.append(", intervalInMillis=").append(String.valueOf(this.intervalInMillis));
sb.append(", responseBodyRegex=").append(String.valueOf(this.responseBodyRegex));
+ sb.append(", isDynamicBackendWeightEnabled=")
+ .append(String.valueOf(this.isDynamicBackendWeightEnabled));
+ sb.append(", defaultWeight=").append(String.valueOf(this.defaultWeight));
sb.append(", isForcePlainText=").append(String.valueOf(this.isForcePlainText));
sb.append(")");
return sb.toString();
@@ -572,6 +773,9 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.timeoutInMillis, other.timeoutInMillis)
&& java.util.Objects.equals(this.intervalInMillis, other.intervalInMillis)
&& java.util.Objects.equals(this.responseBodyRegex, other.responseBodyRegex)
+ && java.util.Objects.equals(
+ this.isDynamicBackendWeightEnabled, other.isDynamicBackendWeightEnabled)
+ && java.util.Objects.equals(this.defaultWeight, other.defaultWeight)
&& java.util.Objects.equals(this.isForcePlainText, other.isForcePlainText)
&& super.equals(other);
}
@@ -594,6 +798,14 @@ public int hashCode() {
result =
(result * PRIME)
+ (this.responseBodyRegex == null ? 43 : this.responseBodyRegex.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isDynamicBackendWeightEnabled == null
+ ? 43
+ : this.isDynamicBackendWeightEnabled.hashCode());
+ result =
+ (result * PRIME)
+ + (this.defaultWeight == null ? 43 : this.defaultWeight.hashCode());
result =
(result * PRIME)
+ (this.isForcePlainText == null ? 43 : this.isForcePlainText.hashCode());
diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java
index 41f04c17103..21373ce650f 100644
--- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java
+++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/LoadBalancer.java
@@ -39,6 +39,7 @@ public final class LoadBalancer extends com.oracle.bmc.http.client.internal.Expl
"lifecycleState",
"timeCreated",
"ipAddresses",
+ "reservedIpAddresses",
"shapeName",
"shapeDetails",
"isPrivate",
@@ -68,6 +69,7 @@ public LoadBalancer(
LifecycleState lifecycleState,
java.util.Date timeCreated,
java.util.List ipAddresses,
+ java.util.List reservedIpAddresses,
String shapeName,
ShapeDetails shapeDetails,
Boolean isPrivate,
@@ -96,6 +98,7 @@ public LoadBalancer(
this.lifecycleState = lifecycleState;
this.timeCreated = timeCreated;
this.ipAddresses = ipAddresses;
+ this.reservedIpAddresses = reservedIpAddresses;
this.shapeName = shapeName;
this.shapeDetails = shapeDetails;
this.isPrivate = isPrivate;
@@ -231,6 +234,21 @@ public Builder ipAddresses(java.util.List ipAddresses) {
this.__explicitlySet__.add("ipAddresses");
return this;
}
+ /** An array of reservedIP addresses. */
+ @com.fasterxml.jackson.annotation.JsonProperty("reservedIpAddresses")
+ private java.util.List reservedIpAddresses;
+
+ /**
+ * An array of reservedIP addresses.
+ *
+ * @param reservedIpAddresses the value to set
+ * @return this builder
+ */
+ public Builder reservedIpAddresses(java.util.List reservedIpAddresses) {
+ this.reservedIpAddresses = reservedIpAddresses;
+ this.__explicitlySet__.add("reservedIpAddresses");
+ return this;
+ }
/**
* A template that determines the total pre-provisioned bandwidth (ingress plus egress). To
* get a list of available shapes, use the {@link #listShapes(ListShapesRequest) listShapes}
@@ -701,6 +719,7 @@ public LoadBalancer build() {
this.lifecycleState,
this.timeCreated,
this.ipAddresses,
+ this.reservedIpAddresses,
this.shapeName,
this.shapeDetails,
this.isPrivate,
@@ -748,6 +767,9 @@ public Builder copy(LoadBalancer model) {
if (model.wasPropertyExplicitlySet("ipAddresses")) {
this.ipAddresses(model.getIpAddresses());
}
+ if (model.wasPropertyExplicitlySet("reservedIpAddresses")) {
+ this.reservedIpAddresses(model.getReservedIpAddresses());
+ }
if (model.wasPropertyExplicitlySet("shapeName")) {
this.shapeName(model.getShapeName());
}
@@ -971,6 +993,19 @@ public java.util.List getIpAddresses() {
return ipAddresses;
}
+ /** An array of reservedIP addresses. */
+ @com.fasterxml.jackson.annotation.JsonProperty("reservedIpAddresses")
+ private final java.util.List reservedIpAddresses;
+
+ /**
+ * An array of reservedIP addresses.
+ *
+ * @return the value
+ */
+ public java.util.List getReservedIpAddresses() {
+ return reservedIpAddresses;
+ }
+
/**
* A template that determines the total pre-provisioned bandwidth (ingress plus egress). To get
* a list of available shapes, use the {@link #listShapes(ListShapesRequest) listShapes}
@@ -1454,6 +1489,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState));
sb.append(", timeCreated=").append(String.valueOf(this.timeCreated));
sb.append(", ipAddresses=").append(String.valueOf(this.ipAddresses));
+ sb.append(", reservedIpAddresses=").append(String.valueOf(this.reservedIpAddresses));
sb.append(", shapeName=").append(String.valueOf(this.shapeName));
sb.append(", shapeDetails=").append(String.valueOf(this.shapeDetails));
sb.append(", isPrivate=").append(String.valueOf(this.isPrivate));
@@ -1497,6 +1533,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.lifecycleState, other.lifecycleState)
&& java.util.Objects.equals(this.timeCreated, other.timeCreated)
&& java.util.Objects.equals(this.ipAddresses, other.ipAddresses)
+ && java.util.Objects.equals(this.reservedIpAddresses, other.reservedIpAddresses)
&& java.util.Objects.equals(this.shapeName, other.shapeName)
&& java.util.Objects.equals(this.shapeDetails, other.shapeDetails)
&& java.util.Objects.equals(this.isPrivate, other.isPrivate)
@@ -1537,6 +1574,11 @@ public int hashCode() {
+ (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode());
result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode());
result = (result * PRIME) + (this.ipAddresses == null ? 43 : this.ipAddresses.hashCode());
+ result =
+ (result * PRIME)
+ + (this.reservedIpAddresses == null
+ ? 43
+ : this.reservedIpAddresses.hashCode());
result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.hashCode());
result = (result * PRIME) + (this.shapeDetails == null ? 43 : this.shapeDetails.hashCode());
result = (result * PRIME) + (this.isPrivate == null ? 43 : this.isPrivate.hashCode());
diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ReservedIP.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ReservedIP.java
index 7926b649234..c5b88fc0a27 100644
--- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ReservedIP.java
+++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/ReservedIP.java
@@ -30,18 +30,19 @@ public ReservedIP(String id) {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
/**
- * Ocid of the Reserved IP/Public Ip created with VCN.
+ * Ocid of the Reserved IP (Public IP or Private IP) created with VCN.
*
* Reserved IPs are IPs which already registered using VCN API.
*
- *
Create a reserved Public IP and then while creating the load balancer pass the ocid of
- * the reserved IP in this field reservedIp to attach the Ip to Load balancer. Load balancer
- * will be configured to listen to traffic on this IP.
+ *
For public load balancers, create a reserved Public IP and pass the OCID in this
+ * field. For private load balancers, create a reserved Private IP and pass the OCID in this
+ * field. Load balancer will be configured to listen to traffic on this IP.
*
*
Reserved IPs will not be deleted when the Load balancer is deleted. They will be
* unattached from the Load balancer.
*
- *
Example: "ocid1.publicip.oc1.phx.unique_ID"
+ *
Public IP Example: "ocid1.publicip.oc1.phx.unique_ID" Private IP Example:
+ * "ocid1.privateip.oc1.phx.unique_ID"
*
*
IPV6 example: "ocid1.ipv6.oc1.phx.unique_ID"
*/
@@ -49,18 +50,19 @@ public static class Builder {
private String id;
/**
- * Ocid of the Reserved IP/Public Ip created with VCN.
+ * Ocid of the Reserved IP (Public IP or Private IP) created with VCN.
*
*
Reserved IPs are IPs which already registered using VCN API.
*
- *
Create a reserved Public IP and then while creating the load balancer pass the ocid of
- * the reserved IP in this field reservedIp to attach the Ip to Load balancer. Load balancer
- * will be configured to listen to traffic on this IP.
+ *
For public load balancers, create a reserved Public IP and pass the OCID in this
+ * field. For private load balancers, create a reserved Private IP and pass the OCID in this
+ * field. Load balancer will be configured to listen to traffic on this IP.
*
*
Reserved IPs will not be deleted when the Load balancer is deleted. They will be
* unattached from the Load balancer.
*
- *
Example: "ocid1.publicip.oc1.phx.unique_ID"
+ *
Public IP Example: "ocid1.publicip.oc1.phx.unique_ID" Private IP Example:
+ * "ocid1.privateip.oc1.phx.unique_ID"
*
*
IPV6 example: "ocid1.ipv6.oc1.phx.unique_ID"
*
@@ -103,18 +105,19 @@ public Builder toBuilder() {
}
/**
- * Ocid of the Reserved IP/Public Ip created with VCN.
+ * Ocid of the Reserved IP (Public IP or Private IP) created with VCN.
*
*
Reserved IPs are IPs which already registered using VCN API.
*
- *
Create a reserved Public IP and then while creating the load balancer pass the ocid of the
- * reserved IP in this field reservedIp to attach the Ip to Load balancer. Load balancer will be
- * configured to listen to traffic on this IP.
+ *
For public load balancers, create a reserved Public IP and pass the OCID in this field.
+ * For private load balancers, create a reserved Private IP and pass the OCID in this field.
+ * Load balancer will be configured to listen to traffic on this IP.
*
*
Reserved IPs will not be deleted when the Load balancer is deleted. They will be
* unattached from the Load balancer.
*
- *
Example: "ocid1.publicip.oc1.phx.unique_ID"
+ *
Public IP Example: "ocid1.publicip.oc1.phx.unique_ID" Private IP Example:
+ * "ocid1.privateip.oc1.phx.unique_ID"
*
*
IPV6 example: "ocid1.ipv6.oc1.phx.unique_ID"
*/
@@ -122,18 +125,19 @@ public Builder toBuilder() {
private final String id;
/**
- * Ocid of the Reserved IP/Public Ip created with VCN.
+ * Ocid of the Reserved IP (Public IP or Private IP) created with VCN.
*
*
Reserved IPs are IPs which already registered using VCN API.
*
- *
Create a reserved Public IP and then while creating the load balancer pass the ocid of the
- * reserved IP in this field reservedIp to attach the Ip to Load balancer. Load balancer will be
- * configured to listen to traffic on this IP.
+ *
For public load balancers, create a reserved Public IP and pass the OCID in this field.
+ * For private load balancers, create a reserved Private IP and pass the OCID in this field.
+ * Load balancer will be configured to listen to traffic on this IP.
*
*
Reserved IPs will not be deleted when the Load balancer is deleted. They will be
* unattached from the Load balancer.
*
- *
Example: "ocid1.publicip.oc1.phx.unique_ID"
+ *
Public IP Example: "ocid1.publicip.oc1.phx.unique_ID" Private IP Example:
+ * "ocid1.privateip.oc1.phx.unique_ID"
*
*
IPV6 example: "ocid1.ipv6.oc1.phx.unique_ID"
*
diff --git a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateHealthCheckerDetails.java b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateHealthCheckerDetails.java
index e49e3e6505d..e752004c417 100644
--- a/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateHealthCheckerDetails.java
+++ b/bmc-loadbalancer/src/main/java/com/oracle/bmc/loadbalancer/model/UpdateHealthCheckerDetails.java
@@ -32,6 +32,8 @@ public final class UpdateHealthCheckerDetails
"timeoutInMillis",
"intervalInMillis",
"responseBodyRegex",
+ "isDynamicBackendWeightEnabled",
+ "defaultWeight",
"isForcePlainText"
})
public UpdateHealthCheckerDetails(
@@ -43,6 +45,8 @@ public UpdateHealthCheckerDetails(
Integer timeoutInMillis,
Integer intervalInMillis,
String responseBodyRegex,
+ Boolean isDynamicBackendWeightEnabled,
+ Integer defaultWeight,
Boolean isForcePlainText) {
super();
this.protocol = protocol;
@@ -53,6 +57,8 @@ public UpdateHealthCheckerDetails(
this.timeoutInMillis = timeoutInMillis;
this.intervalInMillis = intervalInMillis;
this.responseBodyRegex = responseBodyRegex;
+ this.isDynamicBackendWeightEnabled = isDynamicBackendWeightEnabled;
+ this.defaultWeight = defaultWeight;
this.isForcePlainText = isForcePlainText;
}
@@ -230,6 +236,110 @@ public Builder responseBodyRegex(String responseBodyRegex) {
this.__explicitlySet__.add("responseBodyRegex");
return this;
}
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the
+ * backend's effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value,
+ * the load balancer uses {@code defaultWeight}.
+ *
+ *
Update semantics: * omitted: preserve existing value. * false: disable dynamic backend
+ * weight. * true: enable dynamic backend weight.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isDynamicBackendWeightEnabled")
+ private Boolean isDynamicBackendWeightEnabled;
+
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the
+ * backend's effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value,
+ * the load balancer uses {@code defaultWeight}.
+ *
+ *
Update semantics: * omitted: preserve existing value. * false: disable dynamic backend
+ * weight. * true: enable dynamic backend weight.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ * @param isDynamicBackendWeightEnabled the value to set
+ * @return this builder
+ */
+ public Builder isDynamicBackendWeightEnabled(Boolean isDynamicBackendWeightEnabled) {
+ this.isDynamicBackendWeightEnabled = isDynamicBackendWeightEnabled;
+ this.__explicitlySet__.add("isDynamicBackendWeightEnabled");
+ return this;
+ }
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled
+ * and the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Update semantics: * provided: replace the existing value. * omitted or null: preserve
+ * the existing configured value.
+ *
+ *
If dynamic backend weights are enabled and no existing {@code defaultWeight} is
+ * present, the service uses {@code 1}.
+ *
+ *
Setting or updating {@code defaultWeight} does not enable dynamic backend weights. To
+ * enable dynamic backend weights, set {@code isDynamicBackendWeightEnabled} to {@code
+ * true}. If your request includes {@code defaultWeight}, you must also set {@code
+ * isDynamicBackendWeightEnabled} to {@code true}; otherwise, the request is rejected.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ *
Example: {@code 1}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("defaultWeight")
+ private Integer defaultWeight;
+
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled
+ * and the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Update semantics: * provided: replace the existing value. * omitted or null: preserve
+ * the existing configured value.
+ *
+ *
If dynamic backend weights are enabled and no existing {@code defaultWeight} is
+ * present, the service uses {@code 1}.
+ *
+ *
Setting or updating {@code defaultWeight} does not enable dynamic backend weights. To
+ * enable dynamic backend weights, set {@code isDynamicBackendWeightEnabled} to {@code
+ * true}. If your request includes {@code defaultWeight}, you must also set {@code
+ * isDynamicBackendWeightEnabled} to {@code true}; otherwise, the request is rejected.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime
+ * effect.
+ *
+ *
Example: {@code 1}
+ *
+ * @param defaultWeight the value to set
+ * @return this builder
+ */
+ public Builder defaultWeight(Integer defaultWeight) {
+ this.defaultWeight = defaultWeight;
+ this.__explicitlySet__.add("defaultWeight");
+ return this;
+ }
/**
* Specifies if health checks should always be done using plain text instead of depending on
* whether or not the associated backend set is using SSL.
@@ -282,6 +392,8 @@ public UpdateHealthCheckerDetails build() {
this.timeoutInMillis,
this.intervalInMillis,
this.responseBodyRegex,
+ this.isDynamicBackendWeightEnabled,
+ this.defaultWeight,
this.isForcePlainText);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
@@ -315,6 +427,12 @@ public Builder copy(UpdateHealthCheckerDetails model) {
if (model.wasPropertyExplicitlySet("responseBodyRegex")) {
this.responseBodyRegex(model.getResponseBodyRegex());
}
+ if (model.wasPropertyExplicitlySet("isDynamicBackendWeightEnabled")) {
+ this.isDynamicBackendWeightEnabled(model.getIsDynamicBackendWeightEnabled());
+ }
+ if (model.wasPropertyExplicitlySet("defaultWeight")) {
+ this.defaultWeight(model.getDefaultWeight());
+ }
if (model.wasPropertyExplicitlySet("isForcePlainText")) {
this.isForcePlainText(model.getIsForcePlainText());
}
@@ -487,6 +605,102 @@ public String getResponseBodyRegex() {
return responseBodyRegex;
}
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the backend's
+ * effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value, the
+ * load balancer uses {@code defaultWeight}.
+ *
+ *
Update semantics: * omitted: preserve existing value. * false: disable dynamic backend
+ * weight. * true: enable dynamic backend weight.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isDynamicBackendWeightEnabled")
+ private final Boolean isDynamicBackendWeightEnabled;
+
+ /**
+ * You can enable dynamic backend weights for HTTP health checks.
+ *
+ *
When enabled, the load balancer reads the {@code X-Dynamic-Backend-Weight} header from
+ * each backend's HTTP health check response. The load balancer uses that value as the backend's
+ * effective weight when distributing traffic.
+ *
+ *
A valid header value is an integer from {@code 0} through {@code 100}.
+ *
+ *
If the backend response does not include this header, or includes an invalid value, the
+ * load balancer uses {@code defaultWeight}.
+ *
+ *
Update semantics: * omitted: preserve existing value. * false: disable dynamic backend
+ * weight. * true: enable dynamic backend weight.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ * @return the value
+ */
+ public Boolean getIsDynamicBackendWeightEnabled() {
+ return isDynamicBackendWeightEnabled;
+ }
+
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled and
+ * the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Update semantics: * provided: replace the existing value. * omitted or null: preserve the
+ * existing configured value.
+ *
+ *
If dynamic backend weights are enabled and no existing {@code defaultWeight} is present,
+ * the service uses {@code 1}.
+ *
+ *
Setting or updating {@code defaultWeight} does not enable dynamic backend weights. To
+ * enable dynamic backend weights, set {@code isDynamicBackendWeightEnabled} to {@code true}. If
+ * your request includes {@code defaultWeight}, you must also set {@code
+ * isDynamicBackendWeightEnabled} to {@code true}; otherwise, the request is rejected.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ *
Example: {@code 1}
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("defaultWeight")
+ private final Integer defaultWeight;
+
+ /**
+ * You can configure this fallback backend weight when dynamic backend weights are enabled and
+ * the backend's HTTP health check response does not include a valid {@code
+ * X-Dynamic-Backend-Weight} header value.
+ *
+ *
This value must be an integer from {@code 1} through {@code 100}.
+ *
+ *
Update semantics: * provided: replace the existing value. * omitted or null: preserve the
+ * existing configured value.
+ *
+ *
If dynamic backend weights are enabled and no existing {@code defaultWeight} is present,
+ * the service uses {@code 1}.
+ *
+ *
Setting or updating {@code defaultWeight} does not enable dynamic backend weights. To
+ * enable dynamic backend weights, set {@code isDynamicBackendWeightEnabled} to {@code true}. If
+ * your request includes {@code defaultWeight}, you must also set {@code
+ * isDynamicBackendWeightEnabled} to {@code true}; otherwise, the request is rejected.
+ *
+ *
For TCP health checks, this field is accepted and stored, but it has no runtime effect.
+ *
+ *
Example: {@code 1}
+ *
+ * @return the value
+ */
+ public Integer getDefaultWeight() {
+ return defaultWeight;
+ }
+
/**
* Specifies if health checks should always be done using plain text instead of depending on
* whether or not the associated backend set is using SSL.
@@ -545,6 +759,9 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", timeoutInMillis=").append(String.valueOf(this.timeoutInMillis));
sb.append(", intervalInMillis=").append(String.valueOf(this.intervalInMillis));
sb.append(", responseBodyRegex=").append(String.valueOf(this.responseBodyRegex));
+ sb.append(", isDynamicBackendWeightEnabled=")
+ .append(String.valueOf(this.isDynamicBackendWeightEnabled));
+ sb.append(", defaultWeight=").append(String.valueOf(this.defaultWeight));
sb.append(", isForcePlainText=").append(String.valueOf(this.isForcePlainText));
sb.append(")");
return sb.toString();
@@ -568,6 +785,9 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.timeoutInMillis, other.timeoutInMillis)
&& java.util.Objects.equals(this.intervalInMillis, other.intervalInMillis)
&& java.util.Objects.equals(this.responseBodyRegex, other.responseBodyRegex)
+ && java.util.Objects.equals(
+ this.isDynamicBackendWeightEnabled, other.isDynamicBackendWeightEnabled)
+ && java.util.Objects.equals(this.defaultWeight, other.defaultWeight)
&& java.util.Objects.equals(this.isForcePlainText, other.isForcePlainText)
&& super.equals(other);
}
@@ -590,6 +810,14 @@ public int hashCode() {
result =
(result * PRIME)
+ (this.responseBodyRegex == null ? 43 : this.responseBodyRegex.hashCode());
+ result =
+ (result * PRIME)
+ + (this.isDynamicBackendWeightEnabled == null
+ ? 43
+ : this.isDynamicBackendWeightEnabled.hashCode());
+ result =
+ (result * PRIME)
+ + (this.defaultWeight == null ? 43 : this.defaultWeight.hashCode());
result =
(result * PRIME)
+ (this.isForcePlainText == null ? 43 : this.isForcePlainText.hashCode());
diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml
index a3839c100b1..b3353c7928f 100644
--- a/bmc-lockbox/pom.xml
+++ b/bmc-lockbox/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-lockbox
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml
index b9907276655..e32e24eb3b1 100644
--- a/bmc-loganalytics/pom.xml
+++ b/bmc-loganalytics/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-loganalytics
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml
index 3bf2cee1bd9..49b77541063 100644
--- a/bmc-logging/pom.xml
+++ b/bmc-logging/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-logging
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml
index 3a7f760b24f..d19eb3453ce 100644
--- a/bmc-loggingingestion/pom.xml
+++ b/bmc-loggingingestion/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-loggingingestion
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml
index afc67e7dd78..14171115e63 100644
--- a/bmc-loggingsearch/pom.xml
+++ b/bmc-loggingsearch/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-loggingsearch
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-lustrefilestorage/pom.xml b/bmc-lustrefilestorage/pom.xml
index c1f25184648..e9c8e1ee42a 100644
--- a/bmc-lustrefilestorage/pom.xml
+++ b/bmc-lustrefilestorage/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-lustrefilestorage
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/CreateLustreFileSystemDetails.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/CreateLustreFileSystemDetails.java
index e0d93e7f9bc..895f8dc1bb2 100644
--- a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/CreateLustreFileSystemDetails.java
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/CreateLustreFileSystemDetails.java
@@ -38,7 +38,8 @@ public final class CreateLustreFileSystemDetails
"performanceTier",
"clusterPlacementGroupId",
"rootSquashConfiguration",
- "maintenanceWindow"
+ "maintenanceWindow",
+ "tieringConfiguration"
})
public CreateLustreFileSystemDetails(
String compartmentId,
@@ -55,7 +56,8 @@ public CreateLustreFileSystemDetails(
PerformanceTier performanceTier,
String clusterPlacementGroupId,
RootSquashConfiguration rootSquashConfiguration,
- MaintenanceWindow maintenanceWindow) {
+ MaintenanceWindow maintenanceWindow,
+ TieringConfigurationDetails tieringConfiguration) {
super();
this.compartmentId = compartmentId;
this.availabilityDomain = availabilityDomain;
@@ -72,6 +74,7 @@ public CreateLustreFileSystemDetails(
this.clusterPlacementGroupId = clusterPlacementGroupId;
this.rootSquashConfiguration = rootSquashConfiguration;
this.maintenanceWindow = maintenanceWindow;
+ this.tieringConfiguration = tieringConfiguration;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -371,6 +374,15 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private TieringConfigurationDetails tieringConfiguration;
+
+ public Builder tieringConfiguration(TieringConfigurationDetails tieringConfiguration) {
+ this.tieringConfiguration = tieringConfiguration;
+ this.__explicitlySet__.add("tieringConfiguration");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -391,7 +403,8 @@ public CreateLustreFileSystemDetails build() {
this.performanceTier,
this.clusterPlacementGroupId,
this.rootSquashConfiguration,
- this.maintenanceWindow);
+ this.maintenanceWindow,
+ this.tieringConfiguration);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -445,6 +458,9 @@ public Builder copy(CreateLustreFileSystemDetails model) {
if (model.wasPropertyExplicitlySet("maintenanceWindow")) {
this.maintenanceWindow(model.getMaintenanceWindow());
}
+ if (model.wasPropertyExplicitlySet("tieringConfiguration")) {
+ this.tieringConfiguration(model.getTieringConfiguration());
+ }
return this;
}
}
@@ -757,6 +773,13 @@ public MaintenanceWindow getMaintenanceWindow() {
return maintenanceWindow;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private final TieringConfigurationDetails tieringConfiguration;
+
+ public TieringConfigurationDetails getTieringConfiguration() {
+ return tieringConfiguration;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -789,6 +812,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", rootSquashConfiguration=")
.append(String.valueOf(this.rootSquashConfiguration));
sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow));
+ sb.append(", tieringConfiguration=").append(String.valueOf(this.tieringConfiguration));
sb.append(")");
return sb.toString();
}
@@ -820,6 +844,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(
this.rootSquashConfiguration, other.rootSquashConfiguration)
&& java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow)
+ && java.util.Objects.equals(this.tieringConfiguration, other.tieringConfiguration)
&& super.equals(other);
}
@@ -868,6 +893,11 @@ public int hashCode() {
result =
(result * PRIME)
+ (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode());
+ result =
+ (result * PRIME)
+ + (this.tieringConfiguration == null
+ ? 43
+ : this.tieringConfiguration.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystem.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystem.java
index a3ac8564457..3eb385f9035 100644
--- a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystem.java
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystem.java
@@ -56,7 +56,8 @@ public final class LustreFileSystem
"timeBillingCycleEnd",
"maintenanceWindow",
"maintenanceWindowMetadata",
- "rootSquashConfiguration"
+ "rootSquashConfiguration",
+ "tieringConfiguration"
})
public LustreFileSystem(
String id,
@@ -84,7 +85,8 @@ public LustreFileSystem(
java.util.Date timeBillingCycleEnd,
MaintenanceWindow maintenanceWindow,
MaintenanceWindowMetadataDetails maintenanceWindowMetadata,
- RootSquashConfiguration rootSquashConfiguration) {
+ RootSquashConfiguration rootSquashConfiguration,
+ TieringConfiguration tieringConfiguration) {
super();
this.id = id;
this.compartmentId = compartmentId;
@@ -112,6 +114,7 @@ public LustreFileSystem(
this.maintenanceWindow = maintenanceWindow;
this.maintenanceWindowMetadata = maintenanceWindowMetadata;
this.rootSquashConfiguration = rootSquashConfiguration;
+ this.tieringConfiguration = tieringConfiguration;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -621,6 +624,15 @@ public Builder rootSquashConfiguration(RootSquashConfiguration rootSquashConfigu
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private TieringConfiguration tieringConfiguration;
+
+ public Builder tieringConfiguration(TieringConfiguration tieringConfiguration) {
+ this.tieringConfiguration = tieringConfiguration;
+ this.__explicitlySet__.add("tieringConfiguration");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -652,7 +664,8 @@ public LustreFileSystem build() {
this.timeBillingCycleEnd,
this.maintenanceWindow,
this.maintenanceWindowMetadata,
- this.rootSquashConfiguration);
+ this.rootSquashConfiguration,
+ this.tieringConfiguration);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -739,6 +752,9 @@ public Builder copy(LustreFileSystem model) {
if (model.wasPropertyExplicitlySet("rootSquashConfiguration")) {
this.rootSquashConfiguration(model.getRootSquashConfiguration());
}
+ if (model.wasPropertyExplicitlySet("tieringConfiguration")) {
+ this.tieringConfiguration(model.getTieringConfiguration());
+ }
return this;
}
}
@@ -1300,6 +1316,13 @@ public RootSquashConfiguration getRootSquashConfiguration() {
return rootSquashConfiguration;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private final TieringConfiguration tieringConfiguration;
+
+ public TieringConfiguration getTieringConfiguration() {
+ return tieringConfiguration;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -1345,6 +1368,7 @@ public String toString(boolean includeByteArrayContents) {
.append(String.valueOf(this.maintenanceWindowMetadata));
sb.append(", rootSquashConfiguration=")
.append(String.valueOf(this.rootSquashConfiguration));
+ sb.append(", tieringConfiguration=").append(String.valueOf(this.tieringConfiguration));
sb.append(")");
return sb.toString();
}
@@ -1389,6 +1413,7 @@ public boolean equals(Object o) {
this.maintenanceWindowMetadata, other.maintenanceWindowMetadata)
&& java.util.Objects.equals(
this.rootSquashConfiguration, other.rootSquashConfiguration)
+ && java.util.Objects.equals(this.tieringConfiguration, other.tieringConfiguration)
&& super.equals(other);
}
@@ -1464,6 +1489,11 @@ public int hashCode() {
+ (this.rootSquashConfiguration == null
? 43
: this.rootSquashConfiguration.hashCode());
+ result =
+ (result * PRIME)
+ + (this.tieringConfiguration == null
+ ? 43
+ : this.tieringConfiguration.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystemSummary.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystemSummary.java
index 1efb768eaee..08b2512007c 100644
--- a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystemSummary.java
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/LustreFileSystemSummary.java
@@ -47,7 +47,8 @@ public final class LustreFileSystemSummary
"lnet",
"clusterPlacementGroupId",
"majorVersion",
- "rootSquashConfiguration"
+ "rootSquashConfiguration",
+ "tieringConfiguration"
})
public LustreFileSystemSummary(
String id,
@@ -73,7 +74,8 @@ public LustreFileSystemSummary(
String lnet,
String clusterPlacementGroupId,
String majorVersion,
- RootSquashConfiguration rootSquashConfiguration) {
+ RootSquashConfiguration rootSquashConfiguration,
+ TieringConfigurationSummary tieringConfiguration) {
super();
this.id = id;
this.compartmentId = compartmentId;
@@ -99,6 +101,7 @@ public LustreFileSystemSummary(
this.clusterPlacementGroupId = clusterPlacementGroupId;
this.majorVersion = majorVersion;
this.rootSquashConfiguration = rootSquashConfiguration;
+ this.tieringConfiguration = tieringConfiguration;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -597,6 +600,15 @@ public Builder rootSquashConfiguration(RootSquashConfiguration rootSquashConfigu
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private TieringConfigurationSummary tieringConfiguration;
+
+ public Builder tieringConfiguration(TieringConfigurationSummary tieringConfiguration) {
+ this.tieringConfiguration = tieringConfiguration;
+ this.__explicitlySet__.add("tieringConfiguration");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -626,7 +638,8 @@ public LustreFileSystemSummary build() {
this.lnet,
this.clusterPlacementGroupId,
this.majorVersion,
- this.rootSquashConfiguration);
+ this.rootSquashConfiguration,
+ this.tieringConfiguration);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -707,6 +720,9 @@ public Builder copy(LustreFileSystemSummary model) {
if (model.wasPropertyExplicitlySet("rootSquashConfiguration")) {
this.rootSquashConfiguration(model.getRootSquashConfiguration());
}
+ if (model.wasPropertyExplicitlySet("tieringConfiguration")) {
+ this.tieringConfiguration(model.getTieringConfiguration());
+ }
return this;
}
}
@@ -1211,6 +1227,13 @@ public RootSquashConfiguration getRootSquashConfiguration() {
return rootSquashConfiguration;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private final TieringConfigurationSummary tieringConfiguration;
+
+ public TieringConfigurationSummary getTieringConfiguration() {
+ return tieringConfiguration;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -1253,6 +1276,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", majorVersion=").append(String.valueOf(this.majorVersion));
sb.append(", rootSquashConfiguration=")
.append(String.valueOf(this.rootSquashConfiguration));
+ sb.append(", tieringConfiguration=").append(String.valueOf(this.tieringConfiguration));
sb.append(")");
return sb.toString();
}
@@ -1294,6 +1318,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(this.majorVersion, other.majorVersion)
&& java.util.Objects.equals(
this.rootSquashConfiguration, other.rootSquashConfiguration)
+ && java.util.Objects.equals(this.tieringConfiguration, other.tieringConfiguration)
&& super.equals(other);
}
@@ -1361,6 +1386,11 @@ public int hashCode() {
+ (this.rootSquashConfiguration == null
? 43
: this.rootSquashConfiguration.hashCode());
+ result =
+ (result * PRIME)
+ + (this.tieringConfiguration == null
+ ? 43
+ : this.tieringConfiguration.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfiguration.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfiguration.java
new file mode 100644
index 00000000000..42344bf2360
--- /dev/null
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfiguration.java
@@ -0,0 +1,335 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.lustrefilestorage.model;
+
+/**
+ * Tiering configuration for a Lustre file system. Tiering archives eligible file data to Object
+ * Storage while keeping files visible at their original Lustre paths, and restores archived data
+ * transparently when accessed. When {@code policyMode} is {@code CUSTOM}, this object includes the
+ * custom policy rules configured for the file system. When {@code policyMode} is {@code DEFAULT},
+ * the service applies the built-in tiering policy rule, which archives files larger than 1 MB that
+ * have not been accessed for more than 30 days.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250228")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = TieringConfiguration.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class TieringConfiguration
+ extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"isEnabled", "policyMode", "ruleCount", "rules"})
+ public TieringConfiguration(
+ Boolean isEnabled,
+ PolicyMode policyMode,
+ Integer ruleCount,
+ java.util.List rules) {
+ super();
+ this.isEnabled = isEnabled;
+ this.policyMode = policyMode;
+ this.ruleCount = ruleCount;
+ this.rules = rules;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /** Whether tiering is enabled for the Lustre file system. */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private Boolean isEnabled;
+
+ /**
+ * Whether tiering is enabled for the Lustre file system.
+ *
+ * @param isEnabled the value to set
+ * @return this builder
+ */
+ public Builder isEnabled(Boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ this.__explicitlySet__.add("isEnabled");
+ return this;
+ }
+ /**
+ * Whether the service default policy rule or custom policy rules are used. When set to
+ * {@code DEFAULT}, the service applies the built-in tiering policy rule, which archives
+ * files larger than 1 MB that have not been accessed for more than 30 days. When set to
+ * {@code CUSTOM}, the service uses the policy rules configured in {@code rules}.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("policyMode")
+ private PolicyMode policyMode;
+
+ /**
+ * Whether the service default policy rule or custom policy rules are used. When set to
+ * {@code DEFAULT}, the service applies the built-in tiering policy rule, which archives
+ * files larger than 1 MB that have not been accessed for more than 30 days. When set to
+ * {@code CUSTOM}, the service uses the policy rules configured in {@code rules}.
+ *
+ * @param policyMode the value to set
+ * @return this builder
+ */
+ public Builder policyMode(PolicyMode policyMode) {
+ this.policyMode = policyMode;
+ this.__explicitlySet__.add("policyMode");
+ return this;
+ }
+ /** Service-computed number of custom tiering policy rules. */
+ @com.fasterxml.jackson.annotation.JsonProperty("ruleCount")
+ private Integer ruleCount;
+
+ /**
+ * Service-computed number of custom tiering policy rules.
+ *
+ * @param ruleCount the value to set
+ * @return this builder
+ */
+ public Builder ruleCount(Integer ruleCount) {
+ this.ruleCount = ruleCount;
+ this.__explicitlySet__.add("ruleCount");
+ return this;
+ }
+ /**
+ * Custom tiering policy rules configured for the Lustre file system. This property is only
+ * applicable when {@code policyMode} is {@code CUSTOM}. When {@code policyMode} is {@code
+ * DEFAULT}, the service applies the built-in tiering policy rule instead. An enabled custom
+ * policy contains 1 to 50 rules. When tiering is disabled, custom policy rules are
+ * optional.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("rules")
+ private java.util.List rules;
+
+ /**
+ * Custom tiering policy rules configured for the Lustre file system. This property is only
+ * applicable when {@code policyMode} is {@code CUSTOM}. When {@code policyMode} is {@code
+ * DEFAULT}, the service applies the built-in tiering policy rule instead. An enabled custom
+ * policy contains 1 to 50 rules. When tiering is disabled, custom policy rules are
+ * optional.
+ *
+ * @param rules the value to set
+ * @return this builder
+ */
+ public Builder rules(java.util.List rules) {
+ this.rules = rules;
+ this.__explicitlySet__.add("rules");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public TieringConfiguration build() {
+ TieringConfiguration model =
+ new TieringConfiguration(
+ this.isEnabled, this.policyMode, this.ruleCount, this.rules);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(TieringConfiguration model) {
+ if (model.wasPropertyExplicitlySet("isEnabled")) {
+ this.isEnabled(model.getIsEnabled());
+ }
+ if (model.wasPropertyExplicitlySet("policyMode")) {
+ this.policyMode(model.getPolicyMode());
+ }
+ if (model.wasPropertyExplicitlySet("ruleCount")) {
+ this.ruleCount(model.getRuleCount());
+ }
+ if (model.wasPropertyExplicitlySet("rules")) {
+ this.rules(model.getRules());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /** Whether tiering is enabled for the Lustre file system. */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private final Boolean isEnabled;
+
+ /**
+ * Whether tiering is enabled for the Lustre file system.
+ *
+ * @return the value
+ */
+ public Boolean getIsEnabled() {
+ return isEnabled;
+ }
+
+ /**
+ * Whether the service default policy rule or custom policy rules are used. When set to {@code
+ * DEFAULT}, the service applies the built-in tiering policy rule, which archives files larger
+ * than 1 MB that have not been accessed for more than 30 days. When set to {@code CUSTOM}, the
+ * service uses the policy rules configured in {@code rules}.
+ */
+ public enum PolicyMode implements com.oracle.bmc.http.internal.BmcEnum {
+ Default("DEFAULT"),
+ Custom("CUSTOM"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by
+ * this version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(PolicyMode.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (PolicyMode v : PolicyMode.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ PolicyMode(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static PolicyMode create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'PolicyMode', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
+ /**
+ * Whether the service default policy rule or custom policy rules are used. When set to {@code
+ * DEFAULT}, the service applies the built-in tiering policy rule, which archives files larger
+ * than 1 MB that have not been accessed for more than 30 days. When set to {@code CUSTOM}, the
+ * service uses the policy rules configured in {@code rules}.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("policyMode")
+ private final PolicyMode policyMode;
+
+ /**
+ * Whether the service default policy rule or custom policy rules are used. When set to {@code
+ * DEFAULT}, the service applies the built-in tiering policy rule, which archives files larger
+ * than 1 MB that have not been accessed for more than 30 days. When set to {@code CUSTOM}, the
+ * service uses the policy rules configured in {@code rules}.
+ *
+ * @return the value
+ */
+ public PolicyMode getPolicyMode() {
+ return policyMode;
+ }
+
+ /** Service-computed number of custom tiering policy rules. */
+ @com.fasterxml.jackson.annotation.JsonProperty("ruleCount")
+ private final Integer ruleCount;
+
+ /**
+ * Service-computed number of custom tiering policy rules.
+ *
+ * @return the value
+ */
+ public Integer getRuleCount() {
+ return ruleCount;
+ }
+
+ /**
+ * Custom tiering policy rules configured for the Lustre file system. This property is only
+ * applicable when {@code policyMode} is {@code CUSTOM}. When {@code policyMode} is {@code
+ * DEFAULT}, the service applies the built-in tiering policy rule instead. An enabled custom
+ * policy contains 1 to 50 rules. When tiering is disabled, custom policy rules are optional.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("rules")
+ private final java.util.List rules;
+
+ /**
+ * Custom tiering policy rules configured for the Lustre file system. This property is only
+ * applicable when {@code policyMode} is {@code CUSTOM}. When {@code policyMode} is {@code
+ * DEFAULT}, the service applies the built-in tiering policy rule instead. An enabled custom
+ * policy contains 1 to 50 rules. When tiering is disabled, custom policy rules are optional.
+ *
+ * @return the value
+ */
+ public java.util.List getRules() {
+ return rules;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("TieringConfiguration(");
+ sb.append("super=").append(super.toString());
+ sb.append("isEnabled=").append(String.valueOf(this.isEnabled));
+ sb.append(", policyMode=").append(String.valueOf(this.policyMode));
+ sb.append(", ruleCount=").append(String.valueOf(this.ruleCount));
+ sb.append(", rules=").append(String.valueOf(this.rules));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof TieringConfiguration)) {
+ return false;
+ }
+
+ TieringConfiguration other = (TieringConfiguration) o;
+ return java.util.Objects.equals(this.isEnabled, other.isEnabled)
+ && java.util.Objects.equals(this.policyMode, other.policyMode)
+ && java.util.Objects.equals(this.ruleCount, other.ruleCount)
+ && java.util.Objects.equals(this.rules, other.rules)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode());
+ result = (result * PRIME) + (this.policyMode == null ? 43 : this.policyMode.hashCode());
+ result = (result * PRIME) + (this.ruleCount == null ? 43 : this.ruleCount.hashCode());
+ result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfigurationDetails.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfigurationDetails.java
new file mode 100644
index 00000000000..e626bdb3a89
--- /dev/null
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfigurationDetails.java
@@ -0,0 +1,295 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.lustrefilestorage.model;
+
+/**
+ * Tiering configuration details for a Lustre file system. Tiering archives eligible file data to
+ * Object Storage while keeping files visible at their original Lustre paths and restoring archived
+ * data transparently when accessed. When tiering is enabled and {@code policyMode} is {@code
+ * CUSTOM}, provide one or more policy rules. When tiering is disabled, custom policy rules are
+ * optional. If {@code policyMode} is {@code DEFAULT}, the service applies the built-in tiering
+ * policy rule, which archives files larger than 1 MB that have not been accessed for more than 30
+ * days.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250228")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = TieringConfigurationDetails.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class TieringConfigurationDetails
+ extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"isEnabled", "policyMode", "rules"})
+ public TieringConfigurationDetails(
+ Boolean isEnabled, PolicyMode policyMode, java.util.List rules) {
+ super();
+ this.isEnabled = isEnabled;
+ this.policyMode = policyMode;
+ this.rules = rules;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * Whether tiering is enabled for the Lustre file system. If unspecified, defaults to {@code
+ * false}.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private Boolean isEnabled;
+
+ /**
+ * Whether tiering is enabled for the Lustre file system. If unspecified, defaults to {@code
+ * false}.
+ *
+ * @param isEnabled the value to set
+ * @return this builder
+ */
+ public Builder isEnabled(Boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ this.__explicitlySet__.add("isEnabled");
+ return this;
+ }
+ /**
+ * Whether the service default policy rule or custom policy rules are used. If unspecified,
+ * defaults to {@code DEFAULT}. When set to {@code DEFAULT}, the service applies the
+ * built-in tiering policy rule, which archives files larger than 1 MB that have not been
+ * accessed for more than 30 days. When set to {@code CUSTOM}, the service uses the policy
+ * rules specified in {@code rules}.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("policyMode")
+ private PolicyMode policyMode;
+
+ /**
+ * Whether the service default policy rule or custom policy rules are used. If unspecified,
+ * defaults to {@code DEFAULT}. When set to {@code DEFAULT}, the service applies the
+ * built-in tiering policy rule, which archives files larger than 1 MB that have not been
+ * accessed for more than 30 days. When set to {@code CUSTOM}, the service uses the policy
+ * rules specified in {@code rules}.
+ *
+ * @param policyMode the value to set
+ * @return this builder
+ */
+ public Builder policyMode(PolicyMode policyMode) {
+ this.policyMode = policyMode;
+ this.__explicitlySet__.add("policyMode");
+ return this;
+ }
+ /**
+ * Custom tiering policy rules. Specify this only when {@code policyMode} is {@code CUSTOM}.
+ * When {@code policyMode} is {@code DEFAULT}, omit this property; the service applies the
+ * built-in tiering policy rule instead. An enabled custom policy must contain 1 to 50
+ * rules. When tiering is disabled, custom policy rules are optional.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("rules")
+ private java.util.List rules;
+
+ /**
+ * Custom tiering policy rules. Specify this only when {@code policyMode} is {@code CUSTOM}.
+ * When {@code policyMode} is {@code DEFAULT}, omit this property; the service applies the
+ * built-in tiering policy rule instead. An enabled custom policy must contain 1 to 50
+ * rules. When tiering is disabled, custom policy rules are optional.
+ *
+ * @param rules the value to set
+ * @return this builder
+ */
+ public Builder rules(java.util.List rules) {
+ this.rules = rules;
+ this.__explicitlySet__.add("rules");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public TieringConfigurationDetails build() {
+ TieringConfigurationDetails model =
+ new TieringConfigurationDetails(this.isEnabled, this.policyMode, this.rules);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(TieringConfigurationDetails model) {
+ if (model.wasPropertyExplicitlySet("isEnabled")) {
+ this.isEnabled(model.getIsEnabled());
+ }
+ if (model.wasPropertyExplicitlySet("policyMode")) {
+ this.policyMode(model.getPolicyMode());
+ }
+ if (model.wasPropertyExplicitlySet("rules")) {
+ this.rules(model.getRules());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * Whether tiering is enabled for the Lustre file system. If unspecified, defaults to {@code
+ * false}.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private final Boolean isEnabled;
+
+ /**
+ * Whether tiering is enabled for the Lustre file system. If unspecified, defaults to {@code
+ * false}.
+ *
+ * @return the value
+ */
+ public Boolean getIsEnabled() {
+ return isEnabled;
+ }
+
+ /**
+ * Whether the service default policy rule or custom policy rules are used. If unspecified,
+ * defaults to {@code DEFAULT}. When set to {@code DEFAULT}, the service applies the built-in
+ * tiering policy rule, which archives files larger than 1 MB that have not been accessed for
+ * more than 30 days. When set to {@code CUSTOM}, the service uses the policy rules specified in
+ * {@code rules}.
+ */
+ public enum PolicyMode implements com.oracle.bmc.http.internal.BmcEnum {
+ Default("DEFAULT"),
+ Custom("CUSTOM"),
+ ;
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (PolicyMode v : PolicyMode.values()) {
+ map.put(v.getValue(), v);
+ }
+ }
+
+ PolicyMode(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static PolicyMode create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ throw new IllegalArgumentException("Invalid PolicyMode: " + key);
+ }
+ };
+ /**
+ * Whether the service default policy rule or custom policy rules are used. If unspecified,
+ * defaults to {@code DEFAULT}. When set to {@code DEFAULT}, the service applies the built-in
+ * tiering policy rule, which archives files larger than 1 MB that have not been accessed for
+ * more than 30 days. When set to {@code CUSTOM}, the service uses the policy rules specified in
+ * {@code rules}.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("policyMode")
+ private final PolicyMode policyMode;
+
+ /**
+ * Whether the service default policy rule or custom policy rules are used. If unspecified,
+ * defaults to {@code DEFAULT}. When set to {@code DEFAULT}, the service applies the built-in
+ * tiering policy rule, which archives files larger than 1 MB that have not been accessed for
+ * more than 30 days. When set to {@code CUSTOM}, the service uses the policy rules specified in
+ * {@code rules}.
+ *
+ * @return the value
+ */
+ public PolicyMode getPolicyMode() {
+ return policyMode;
+ }
+
+ /**
+ * Custom tiering policy rules. Specify this only when {@code policyMode} is {@code CUSTOM}.
+ * When {@code policyMode} is {@code DEFAULT}, omit this property; the service applies the
+ * built-in tiering policy rule instead. An enabled custom policy must contain 1 to 50 rules.
+ * When tiering is disabled, custom policy rules are optional.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("rules")
+ private final java.util.List rules;
+
+ /**
+ * Custom tiering policy rules. Specify this only when {@code policyMode} is {@code CUSTOM}.
+ * When {@code policyMode} is {@code DEFAULT}, omit this property; the service applies the
+ * built-in tiering policy rule instead. An enabled custom policy must contain 1 to 50 rules.
+ * When tiering is disabled, custom policy rules are optional.
+ *
+ * @return the value
+ */
+ public java.util.List getRules() {
+ return rules;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("TieringConfigurationDetails(");
+ sb.append("super=").append(super.toString());
+ sb.append("isEnabled=").append(String.valueOf(this.isEnabled));
+ sb.append(", policyMode=").append(String.valueOf(this.policyMode));
+ sb.append(", rules=").append(String.valueOf(this.rules));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof TieringConfigurationDetails)) {
+ return false;
+ }
+
+ TieringConfigurationDetails other = (TieringConfigurationDetails) o;
+ return java.util.Objects.equals(this.isEnabled, other.isEnabled)
+ && java.util.Objects.equals(this.policyMode, other.policyMode)
+ && java.util.Objects.equals(this.rules, other.rules)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode());
+ result = (result * PRIME) + (this.policyMode == null ? 43 : this.policyMode.hashCode());
+ result = (result * PRIME) + (this.rules == null ? 43 : this.rules.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfigurationSummary.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfigurationSummary.java
new file mode 100644
index 00000000000..3d2f3b7ef48
--- /dev/null
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringConfigurationSummary.java
@@ -0,0 +1,253 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.lustrefilestorage.model;
+
+/**
+ * Summary of tiering configuration for a Lustre file system.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250228")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = TieringConfigurationSummary.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class TieringConfigurationSummary
+ extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({"isEnabled", "policyMode", "ruleCount"})
+ public TieringConfigurationSummary(
+ Boolean isEnabled, PolicyMode policyMode, Integer ruleCount) {
+ super();
+ this.isEnabled = isEnabled;
+ this.policyMode = policyMode;
+ this.ruleCount = ruleCount;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /** Whether tiering is enabled for the Lustre file system. */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private Boolean isEnabled;
+
+ /**
+ * Whether tiering is enabled for the Lustre file system.
+ *
+ * @param isEnabled the value to set
+ * @return this builder
+ */
+ public Builder isEnabled(Boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ this.__explicitlySet__.add("isEnabled");
+ return this;
+ }
+ /** Whether the built-in tiering policy rule or custom policy rules are used. */
+ @com.fasterxml.jackson.annotation.JsonProperty("policyMode")
+ private PolicyMode policyMode;
+
+ /**
+ * Whether the built-in tiering policy rule or custom policy rules are used.
+ *
+ * @param policyMode the value to set
+ * @return this builder
+ */
+ public Builder policyMode(PolicyMode policyMode) {
+ this.policyMode = policyMode;
+ this.__explicitlySet__.add("policyMode");
+ return this;
+ }
+ /** Service-computed number of custom tiering policy rules. */
+ @com.fasterxml.jackson.annotation.JsonProperty("ruleCount")
+ private Integer ruleCount;
+
+ /**
+ * Service-computed number of custom tiering policy rules.
+ *
+ * @param ruleCount the value to set
+ * @return this builder
+ */
+ public Builder ruleCount(Integer ruleCount) {
+ this.ruleCount = ruleCount;
+ this.__explicitlySet__.add("ruleCount");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public TieringConfigurationSummary build() {
+ TieringConfigurationSummary model =
+ new TieringConfigurationSummary(
+ this.isEnabled, this.policyMode, this.ruleCount);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(TieringConfigurationSummary model) {
+ if (model.wasPropertyExplicitlySet("isEnabled")) {
+ this.isEnabled(model.getIsEnabled());
+ }
+ if (model.wasPropertyExplicitlySet("policyMode")) {
+ this.policyMode(model.getPolicyMode());
+ }
+ if (model.wasPropertyExplicitlySet("ruleCount")) {
+ this.ruleCount(model.getRuleCount());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /** Whether tiering is enabled for the Lustre file system. */
+ @com.fasterxml.jackson.annotation.JsonProperty("isEnabled")
+ private final Boolean isEnabled;
+
+ /**
+ * Whether tiering is enabled for the Lustre file system.
+ *
+ * @return the value
+ */
+ public Boolean getIsEnabled() {
+ return isEnabled;
+ }
+
+ /** Whether the built-in tiering policy rule or custom policy rules are used. */
+ public enum PolicyMode implements com.oracle.bmc.http.internal.BmcEnum {
+ Default("DEFAULT"),
+ Custom("CUSTOM"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by
+ * this version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(PolicyMode.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (PolicyMode v : PolicyMode.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ PolicyMode(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static PolicyMode create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'PolicyMode', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
+ /** Whether the built-in tiering policy rule or custom policy rules are used. */
+ @com.fasterxml.jackson.annotation.JsonProperty("policyMode")
+ private final PolicyMode policyMode;
+
+ /**
+ * Whether the built-in tiering policy rule or custom policy rules are used.
+ *
+ * @return the value
+ */
+ public PolicyMode getPolicyMode() {
+ return policyMode;
+ }
+
+ /** Service-computed number of custom tiering policy rules. */
+ @com.fasterxml.jackson.annotation.JsonProperty("ruleCount")
+ private final Integer ruleCount;
+
+ /**
+ * Service-computed number of custom tiering policy rules.
+ *
+ * @return the value
+ */
+ public Integer getRuleCount() {
+ return ruleCount;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("TieringConfigurationSummary(");
+ sb.append("super=").append(super.toString());
+ sb.append("isEnabled=").append(String.valueOf(this.isEnabled));
+ sb.append(", policyMode=").append(String.valueOf(this.policyMode));
+ sb.append(", ruleCount=").append(String.valueOf(this.ruleCount));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof TieringConfigurationSummary)) {
+ return false;
+ }
+
+ TieringConfigurationSummary other = (TieringConfigurationSummary) o;
+ return java.util.Objects.equals(this.isEnabled, other.isEnabled)
+ && java.util.Objects.equals(this.policyMode, other.policyMode)
+ && java.util.Objects.equals(this.ruleCount, other.ruleCount)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.isEnabled == null ? 43 : this.isEnabled.hashCode());
+ result = (result * PRIME) + (this.policyMode == null ? 43 : this.policyMode.hashCode());
+ result = (result * PRIME) + (this.ruleCount == null ? 43 : this.ruleCount.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringPolicyRule.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringPolicyRule.java
new file mode 100644
index 00000000000..126ce55a9e4
--- /dev/null
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/TieringPolicyRule.java
@@ -0,0 +1,410 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.lustrefilestorage.model;
+
+/**
+ * A path-based tiering policy rule.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20250228")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = TieringPolicyRule.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class TieringPolicyRule
+ extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({
+ "pathPrefixes",
+ "action",
+ "minSizeInBytes",
+ "archiveAfterDaysSinceLastAccess",
+ "releaseAfterDaysSinceLastAccess"
+ })
+ public TieringPolicyRule(
+ java.util.List pathPrefixes,
+ Action action,
+ Long minSizeInBytes,
+ Integer archiveAfterDaysSinceLastAccess,
+ Integer releaseAfterDaysSinceLastAccess) {
+ super();
+ this.pathPrefixes = pathPrefixes;
+ this.action = action;
+ this.minSizeInBytes = minSizeInBytes;
+ this.archiveAfterDaysSinceLastAccess = archiveAfterDaysSinceLastAccess;
+ this.releaseAfterDaysSinceLastAccess = releaseAfterDaysSinceLastAccess;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /**
+ * One or more absolute path prefixes in the Lustre file system to which this rule applies.
+ * The service preserves the order of path prefixes in responses. Each path prefix can
+ * contain up to 4096 characters. Each rule must contain at least one path prefix, and a
+ * tiering policy can contain up to 100 path prefixes total across all rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("pathPrefixes")
+ private java.util.List pathPrefixes;
+
+ /**
+ * One or more absolute path prefixes in the Lustre file system to which this rule applies.
+ * The service preserves the order of path prefixes in responses. Each path prefix can
+ * contain up to 4096 characters. Each rule must contain at least one path prefix, and a
+ * tiering policy can contain up to 100 path prefixes total across all rules.
+ *
+ * @param pathPrefixes the value to set
+ * @return this builder
+ */
+ public Builder pathPrefixes(java.util.List pathPrefixes) {
+ this.pathPrefixes = pathPrefixes;
+ this.__explicitlySet__.add("pathPrefixes");
+ return this;
+ }
+ /**
+ * The action to apply to files whose paths match this rule. {@code ARCHIVE} makes matching
+ * files eligible to be archived to Object Storage. {@code SKIP} excludes matching files
+ * from being archived.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("action")
+ private Action action;
+
+ /**
+ * The action to apply to files whose paths match this rule. {@code ARCHIVE} makes matching
+ * files eligible to be archived to Object Storage. {@code SKIP} excludes matching files
+ * from being archived.
+ *
+ * @param action the value to set
+ * @return this builder
+ */
+ public Builder action(Action action) {
+ this.action = action;
+ this.__explicitlySet__.add("action");
+ return this;
+ }
+ /**
+ * Optional minimum file size in bytes for an ARCHIVE rule to apply. Must not be specified
+ * for SKIP rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("minSizeInBytes")
+ private Long minSizeInBytes;
+
+ /**
+ * Optional minimum file size in bytes for an ARCHIVE rule to apply. Must not be specified
+ * for SKIP rules.
+ *
+ * @param minSizeInBytes the value to set
+ * @return this builder
+ */
+ public Builder minSizeInBytes(Long minSizeInBytes) {
+ this.minSizeInBytes = minSizeInBytes;
+ this.__explicitlySet__.add("minSizeInBytes");
+ return this;
+ }
+ /**
+ * Required for ARCHIVE rules. Archive files that have not been accessed for this many days.
+ * Must not be specified for SKIP rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("archiveAfterDaysSinceLastAccess")
+ private Integer archiveAfterDaysSinceLastAccess;
+
+ /**
+ * Required for ARCHIVE rules. Archive files that have not been accessed for this many days.
+ * Must not be specified for SKIP rules.
+ *
+ * @param archiveAfterDaysSinceLastAccess the value to set
+ * @return this builder
+ */
+ public Builder archiveAfterDaysSinceLastAccess(Integer archiveAfterDaysSinceLastAccess) {
+ this.archiveAfterDaysSinceLastAccess = archiveAfterDaysSinceLastAccess;
+ this.__explicitlySet__.add("archiveAfterDaysSinceLastAccess");
+ return this;
+ }
+ /**
+ * Required for ARCHIVE rules. Release archived file data from files that have not been
+ * accessed for this many days. This value must be greater than {@code
+ * archiveAfterDaysSinceLastAccess}. Must not be specified for SKIP rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("releaseAfterDaysSinceLastAccess")
+ private Integer releaseAfterDaysSinceLastAccess;
+
+ /**
+ * Required for ARCHIVE rules. Release archived file data from files that have not been
+ * accessed for this many days. This value must be greater than {@code
+ * archiveAfterDaysSinceLastAccess}. Must not be specified for SKIP rules.
+ *
+ * @param releaseAfterDaysSinceLastAccess the value to set
+ * @return this builder
+ */
+ public Builder releaseAfterDaysSinceLastAccess(Integer releaseAfterDaysSinceLastAccess) {
+ this.releaseAfterDaysSinceLastAccess = releaseAfterDaysSinceLastAccess;
+ this.__explicitlySet__.add("releaseAfterDaysSinceLastAccess");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public TieringPolicyRule build() {
+ TieringPolicyRule model =
+ new TieringPolicyRule(
+ this.pathPrefixes,
+ this.action,
+ this.minSizeInBytes,
+ this.archiveAfterDaysSinceLastAccess,
+ this.releaseAfterDaysSinceLastAccess);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(TieringPolicyRule model) {
+ if (model.wasPropertyExplicitlySet("pathPrefixes")) {
+ this.pathPrefixes(model.getPathPrefixes());
+ }
+ if (model.wasPropertyExplicitlySet("action")) {
+ this.action(model.getAction());
+ }
+ if (model.wasPropertyExplicitlySet("minSizeInBytes")) {
+ this.minSizeInBytes(model.getMinSizeInBytes());
+ }
+ if (model.wasPropertyExplicitlySet("archiveAfterDaysSinceLastAccess")) {
+ this.archiveAfterDaysSinceLastAccess(model.getArchiveAfterDaysSinceLastAccess());
+ }
+ if (model.wasPropertyExplicitlySet("releaseAfterDaysSinceLastAccess")) {
+ this.releaseAfterDaysSinceLastAccess(model.getReleaseAfterDaysSinceLastAccess());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /**
+ * One or more absolute path prefixes in the Lustre file system to which this rule applies. The
+ * service preserves the order of path prefixes in responses. Each path prefix can contain up to
+ * 4096 characters. Each rule must contain at least one path prefix, and a tiering policy can
+ * contain up to 100 path prefixes total across all rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("pathPrefixes")
+ private final java.util.List pathPrefixes;
+
+ /**
+ * One or more absolute path prefixes in the Lustre file system to which this rule applies. The
+ * service preserves the order of path prefixes in responses. Each path prefix can contain up to
+ * 4096 characters. Each rule must contain at least one path prefix, and a tiering policy can
+ * contain up to 100 path prefixes total across all rules.
+ *
+ * @return the value
+ */
+ public java.util.List getPathPrefixes() {
+ return pathPrefixes;
+ }
+
+ /**
+ * The action to apply to files whose paths match this rule. {@code ARCHIVE} makes matching
+ * files eligible to be archived to Object Storage. {@code SKIP} excludes matching files from
+ * being archived.
+ */
+ public enum Action implements com.oracle.bmc.http.internal.BmcEnum {
+ Archive("ARCHIVE"),
+ Skip("SKIP"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by
+ * this version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Action.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (Action v : Action.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ Action(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static Action create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'Action', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+ };
+ /**
+ * The action to apply to files whose paths match this rule. {@code ARCHIVE} makes matching
+ * files eligible to be archived to Object Storage. {@code SKIP} excludes matching files from
+ * being archived.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("action")
+ private final Action action;
+
+ /**
+ * The action to apply to files whose paths match this rule. {@code ARCHIVE} makes matching
+ * files eligible to be archived to Object Storage. {@code SKIP} excludes matching files from
+ * being archived.
+ *
+ * @return the value
+ */
+ public Action getAction() {
+ return action;
+ }
+
+ /**
+ * Optional minimum file size in bytes for an ARCHIVE rule to apply. Must not be specified for
+ * SKIP rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("minSizeInBytes")
+ private final Long minSizeInBytes;
+
+ /**
+ * Optional minimum file size in bytes for an ARCHIVE rule to apply. Must not be specified for
+ * SKIP rules.
+ *
+ * @return the value
+ */
+ public Long getMinSizeInBytes() {
+ return minSizeInBytes;
+ }
+
+ /**
+ * Required for ARCHIVE rules. Archive files that have not been accessed for this many days.
+ * Must not be specified for SKIP rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("archiveAfterDaysSinceLastAccess")
+ private final Integer archiveAfterDaysSinceLastAccess;
+
+ /**
+ * Required for ARCHIVE rules. Archive files that have not been accessed for this many days.
+ * Must not be specified for SKIP rules.
+ *
+ * @return the value
+ */
+ public Integer getArchiveAfterDaysSinceLastAccess() {
+ return archiveAfterDaysSinceLastAccess;
+ }
+
+ /**
+ * Required for ARCHIVE rules. Release archived file data from files that have not been accessed
+ * for this many days. This value must be greater than {@code archiveAfterDaysSinceLastAccess}.
+ * Must not be specified for SKIP rules.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("releaseAfterDaysSinceLastAccess")
+ private final Integer releaseAfterDaysSinceLastAccess;
+
+ /**
+ * Required for ARCHIVE rules. Release archived file data from files that have not been accessed
+ * for this many days. This value must be greater than {@code archiveAfterDaysSinceLastAccess}.
+ * Must not be specified for SKIP rules.
+ *
+ * @return the value
+ */
+ public Integer getReleaseAfterDaysSinceLastAccess() {
+ return releaseAfterDaysSinceLastAccess;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("TieringPolicyRule(");
+ sb.append("super=").append(super.toString());
+ sb.append("pathPrefixes=").append(String.valueOf(this.pathPrefixes));
+ sb.append(", action=").append(String.valueOf(this.action));
+ sb.append(", minSizeInBytes=").append(String.valueOf(this.minSizeInBytes));
+ sb.append(", archiveAfterDaysSinceLastAccess=")
+ .append(String.valueOf(this.archiveAfterDaysSinceLastAccess));
+ sb.append(", releaseAfterDaysSinceLastAccess=")
+ .append(String.valueOf(this.releaseAfterDaysSinceLastAccess));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof TieringPolicyRule)) {
+ return false;
+ }
+
+ TieringPolicyRule other = (TieringPolicyRule) o;
+ return java.util.Objects.equals(this.pathPrefixes, other.pathPrefixes)
+ && java.util.Objects.equals(this.action, other.action)
+ && java.util.Objects.equals(this.minSizeInBytes, other.minSizeInBytes)
+ && java.util.Objects.equals(
+ this.archiveAfterDaysSinceLastAccess, other.archiveAfterDaysSinceLastAccess)
+ && java.util.Objects.equals(
+ this.releaseAfterDaysSinceLastAccess, other.releaseAfterDaysSinceLastAccess)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result = (result * PRIME) + (this.pathPrefixes == null ? 43 : this.pathPrefixes.hashCode());
+ result = (result * PRIME) + (this.action == null ? 43 : this.action.hashCode());
+ result =
+ (result * PRIME)
+ + (this.minSizeInBytes == null ? 43 : this.minSizeInBytes.hashCode());
+ result =
+ (result * PRIME)
+ + (this.archiveAfterDaysSinceLastAccess == null
+ ? 43
+ : this.archiveAfterDaysSinceLastAccess.hashCode());
+ result =
+ (result * PRIME)
+ + (this.releaseAfterDaysSinceLastAccess == null
+ ? 43
+ : this.releaseAfterDaysSinceLastAccess.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/UpdateLustreFileSystemDetails.java b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/UpdateLustreFileSystemDetails.java
index 0a5d0cec988..07a1b5b18da 100644
--- a/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/UpdateLustreFileSystemDetails.java
+++ b/bmc-lustrefilestorage/src/main/java/com/oracle/bmc/lustrefilestorage/model/UpdateLustreFileSystemDetails.java
@@ -32,7 +32,8 @@ public final class UpdateLustreFileSystemDetails
"kmsKeyId",
"capacityInGBs",
"rootSquashConfiguration",
- "maintenanceWindow"
+ "maintenanceWindow",
+ "tieringConfiguration"
})
public UpdateLustreFileSystemDetails(
String displayName,
@@ -43,7 +44,8 @@ public UpdateLustreFileSystemDetails(
String kmsKeyId,
Integer capacityInGBs,
RootSquashConfiguration rootSquashConfiguration,
- MaintenanceWindow maintenanceWindow) {
+ MaintenanceWindow maintenanceWindow,
+ TieringConfigurationDetails tieringConfiguration) {
super();
this.displayName = displayName;
this.fileSystemDescription = fileSystemDescription;
@@ -54,6 +56,7 @@ public UpdateLustreFileSystemDetails(
this.capacityInGBs = capacityInGBs;
this.rootSquashConfiguration = rootSquashConfiguration;
this.maintenanceWindow = maintenanceWindow;
+ this.tieringConfiguration = tieringConfiguration;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
@@ -231,6 +234,15 @@ public Builder maintenanceWindow(MaintenanceWindow maintenanceWindow) {
return this;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private TieringConfigurationDetails tieringConfiguration;
+
+ public Builder tieringConfiguration(TieringConfigurationDetails tieringConfiguration) {
+ this.tieringConfiguration = tieringConfiguration;
+ this.__explicitlySet__.add("tieringConfiguration");
+ return this;
+ }
+
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
@@ -245,7 +257,8 @@ public UpdateLustreFileSystemDetails build() {
this.kmsKeyId,
this.capacityInGBs,
this.rootSquashConfiguration,
- this.maintenanceWindow);
+ this.maintenanceWindow,
+ this.tieringConfiguration);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -281,6 +294,9 @@ public Builder copy(UpdateLustreFileSystemDetails model) {
if (model.wasPropertyExplicitlySet("maintenanceWindow")) {
this.maintenanceWindow(model.getMaintenanceWindow());
}
+ if (model.wasPropertyExplicitlySet("tieringConfiguration")) {
+ this.tieringConfiguration(model.getTieringConfiguration());
+ }
return this;
}
}
@@ -447,6 +463,13 @@ public MaintenanceWindow getMaintenanceWindow() {
return maintenanceWindow;
}
+ @com.fasterxml.jackson.annotation.JsonProperty("tieringConfiguration")
+ private final TieringConfigurationDetails tieringConfiguration;
+
+ public TieringConfigurationDetails getTieringConfiguration() {
+ return tieringConfiguration;
+ }
+
@Override
public String toString() {
return this.toString(true);
@@ -472,6 +495,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append(", rootSquashConfiguration=")
.append(String.valueOf(this.rootSquashConfiguration));
sb.append(", maintenanceWindow=").append(String.valueOf(this.maintenanceWindow));
+ sb.append(", tieringConfiguration=").append(String.valueOf(this.tieringConfiguration));
sb.append(")");
return sb.toString();
}
@@ -496,6 +520,7 @@ public boolean equals(Object o) {
&& java.util.Objects.equals(
this.rootSquashConfiguration, other.rootSquashConfiguration)
&& java.util.Objects.equals(this.maintenanceWindow, other.maintenanceWindow)
+ && java.util.Objects.equals(this.tieringConfiguration, other.tieringConfiguration)
&& super.equals(other);
}
@@ -524,6 +549,11 @@ public int hashCode() {
result =
(result * PRIME)
+ (this.maintenanceWindow == null ? 43 : this.maintenanceWindow.hashCode());
+ result =
+ (result * PRIME)
+ + (this.tieringConfiguration == null
+ ? 43
+ : this.tieringConfiguration.hashCode());
result = (result * PRIME) + super.hashCode();
return result;
}
diff --git a/bmc-lustrefilestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-lustrefilestorage/reflect-config.json b/bmc-lustrefilestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-lustrefilestorage/reflect-config.json
index 9e6ffe7185c..ae7c0bde63b 100644
--- a/bmc-lustrefilestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-lustrefilestorage/reflect-config.json
+++ b/bmc-lustrefilestorage/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-lustrefilestorage/reflect-config.json
@@ -439,6 +439,86 @@
"allDeclaredFields": true,
"allDeclaredMethods": true
},
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfiguration",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "queryAllDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfiguration$Builder",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "allDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfiguration$PolicyMode",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfigurationDetails",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "queryAllDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfigurationDetails$Builder",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "allDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfigurationDetails$PolicyMode",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfigurationSummary",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "queryAllDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfigurationSummary$Builder",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "allDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringConfigurationSummary$PolicyMode",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringPolicyRule",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "queryAllDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringPolicyRule$Builder",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "allDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.lustrefilestorage.model.TieringPolicyRule$Action",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true
+ },
{
"condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
"name": "com.oracle.bmc.lustrefilestorage.model.UpdateLustreFileSystemDetails",
diff --git a/bmc-managedkafka/pom.xml b/bmc-managedkafka/pom.xml
index 88e32a3e5d5..0ba0c210dbf 100644
--- a/bmc-managedkafka/pom.xml
+++ b/bmc-managedkafka/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-managedkafka
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml
index 3bf57bf62ed..be956f74b83 100644
--- a/bmc-managementagent/pom.xml
+++ b/bmc-managementagent/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-managementagent
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml
index 7abe53a70cd..f344ec993c2 100644
--- a/bmc-managementdashboard/pom.xml
+++ b/bmc-managementdashboard/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-managementdashboard
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml
index 805ad060fb5..a190c19d319 100644
--- a/bmc-marketplace/pom.xml
+++ b/bmc-marketplace/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-marketplace
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml
index 6023b659b2c..3a3d498fd37 100644
--- a/bmc-marketplaceprivateoffer/pom.xml
+++ b/bmc-marketplaceprivateoffer/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-marketplaceprivateoffer
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml
index fcf9824aaed..db7468e0632 100644
--- a/bmc-marketplacepublisher/pom.xml
+++ b/bmc-marketplacepublisher/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-marketplacepublisher
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml
index 9c2515ee8f0..13040aadcfc 100644
--- a/bmc-mediaservices/pom.xml
+++ b/bmc-mediaservices/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-mediaservices
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-mngdmac/pom.xml b/bmc-mngdmac/pom.xml
index 479dbaf7640..a05318f9b86 100644
--- a/bmc-mngdmac/pom.xml
+++ b/bmc-mngdmac/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-mngdmac
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-modeldeployment/pom.xml b/bmc-modeldeployment/pom.xml
index 240ead485a2..ee80ceab56a 100644
--- a/bmc-modeldeployment/pom.xml
+++ b/bmc-modeldeployment/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-modeldeployment
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml
index 00ad3be6ade..a05db44918f 100644
--- a/bmc-monitoring/pom.xml
+++ b/bmc-monitoring/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-monitoring
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-multicloud/pom.xml b/bmc-multicloud/pom.xml
index 177175ff3b5..ddd86ccb139 100644
--- a/bmc-multicloud/pom.xml
+++ b/bmc-multicloud/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-multicloud
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml
index b91549310fd..4249f3e9db1 100644
--- a/bmc-mysql/pom.xml
+++ b/bmc-mysql/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-mysql
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml
index 6456eb13d6a..f76a5dc5e9b 100644
--- a/bmc-networkfirewall/pom.xml
+++ b/bmc-networkfirewall/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-networkfirewall
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml
index dce908052f4..7899120a890 100644
--- a/bmc-networkloadbalancer/pom.xml
+++ b/bmc-networkloadbalancer/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-networkloadbalancer
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml
index ec6dde520d4..65580744f64 100644
--- a/bmc-nosql/pom.xml
+++ b/bmc-nosql/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-nosql
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml
index c4fa894d3ae..ea93d82d4f6 100644
--- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml
+++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk-objectstorage-parent
- 3.101.0
+ 3.102.0
../pom.xml
@@ -18,12 +18,12 @@
com.oracle.oci.sdk
oci-java-sdk-objectstorage-generated
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-objectstorage-extensions
- 3.101.0
+ 3.102.0
diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml
index 4749b6410e3..c77dba744ad 100644
--- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml
+++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk-objectstorage-parent
- 3.101.0
+ 3.102.0
../pom.xml
@@ -25,17 +25,17 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-common-httpclient
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-objectstorage-generated
- 3.101.0
+ 3.102.0
org.slf4j
diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml
index 98c91dd3046..a84c45769c6 100644
--- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml
+++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk-objectstorage-parent
- 3.101.0
+ 3.102.0
../pom.xml
@@ -19,7 +19,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml
index d0d81c2616e..15ddc08ed0a 100644
--- a/bmc-objectstorage/pom.xml
+++ b/bmc-objectstorage/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml
index a2009174e19..cdccdead7de 100644
--- a/bmc-oce/pom.xml
+++ b/bmc-oce/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-oce
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml
index 3c25b4f9a27..afe900565c1 100644
--- a/bmc-ocicontrolcenter/pom.xml
+++ b/bmc-ocicontrolcenter/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-ocicontrolcenter
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-ociproductcatalog/pom.xml b/bmc-ociproductcatalog/pom.xml
index d7d7bd5af70..8abd11cae2b 100644
--- a/bmc-ociproductcatalog/pom.xml
+++ b/bmc-ociproductcatalog/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-ociproductcatalog
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml
index 3756a6da95f..c94f5ffc859 100644
--- a/bmc-ocvp/pom.xml
+++ b/bmc-ocvp/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-ocvp
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolAsyncClient.java
index 3228bdb6022..7432b6f675a 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolAsyncClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolAsyncClient.java
@@ -170,7 +170,7 @@ public java.util.concurrent.Future deleteByol(
.serviceDetails(
"Byol",
"DeleteByol",
- "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/BYOL/DeleteByol")
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Byol/DeleteByol")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteByolRequest::builder)
.basePath("/20230701")
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolClient.java
index 28be884bc55..413aee2c832 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ByolClient.java
@@ -189,7 +189,7 @@ public DeleteByolResponse deleteByol(DeleteByolRequest request) {
.serviceDetails(
"Byol",
"DeleteByol",
- "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/BYOL/DeleteByol")
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Byol/DeleteByol")
.method(com.oracle.bmc.http.client.Method.DELETE)
.requestBuilder(DeleteByolRequest::builder)
.basePath("/20230701")
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java
index f390ff61d48..151c1f7121d 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Cluster.java
@@ -154,6 +154,24 @@ GenerateHostDistributionReportResponse generateHostDistributionReport(
*/
ListClustersResponse listClusters(ListClustersRequest request);
+ /**
+ * Retrieves status of the operation performed on the Cluster. For each type of operation, only
+ * status of the latest operation is returned.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs. This operation uses
+ * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
+ * provided. The specifics of the default retry strategy are described here
+ * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ * Example: Click here to see how to use
+ * RetrieveClusterOperationStatus API.
+ */
+ RetrieveClusterOperationStatusResponse retrieveClusterOperationStatus(
+ RetrieveClusterOperationStatusRequest request);
+
/**
* Updates the specified Cluster.
*
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java
index 457b890dbd0..61fa9ef45bb 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsync.java
@@ -151,6 +151,25 @@ java.util.concurrent.Future listClusters(
com.oracle.bmc.responses.AsyncHandler
handler);
+ /**
+ * Retrieves status of the operation performed on the Cluster. For each type of operation, only
+ * status of the latest operation is returned.
+ *
+ * @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
+ retrieveClusterOperationStatus(
+ RetrieveClusterOperationStatusRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ RetrieveClusterOperationStatusRequest,
+ RetrieveClusterOperationStatusResponse>
+ handler);
+
/**
* Updates the specified Cluster.
*
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java
index db9acf8a125..d71c4637b26 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterAsyncClient.java
@@ -258,6 +258,48 @@ public java.util.concurrent.Future listClusters(
.callAsync(handler);
}
+ @Override
+ public java.util.concurrent.Future
+ retrieveClusterOperationStatus(
+ RetrieveClusterOperationStatusRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ RetrieveClusterOperationStatusRequest,
+ RetrieveClusterOperationStatusResponse>
+ handler) {
+
+ Validate.notBlank(request.getClusterId(), "clusterId must not be blank");
+
+ Validate.notBlank(request.getOperationName(), "operationName must not be blank");
+
+ return clientCall(request, RetrieveClusterOperationStatusResponse::builder)
+ .logger(LOG, "retrieveClusterOperationStatus")
+ .serviceDetails(
+ "Cluster",
+ "RetrieveClusterOperationStatus",
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/RetrieveClusterOperationStatus")
+ .method(com.oracle.bmc.http.client.Method.POST)
+ .requestBuilder(RetrieveClusterOperationStatusRequest::builder)
+ .basePath("/20230701")
+ .appendPathParam("clusters")
+ .appendPathParam(request.getClusterId())
+ .appendPathParam("actions")
+ .appendPathParam("retrieveOperationStatus")
+ .appendPathParam(request.getOperationName())
+ .accept("application/json")
+ .appendHeader("if-match", request.getIfMatch())
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .appendHeader("opc-retry-token", request.getOpcRetryToken())
+ .handleBody(
+ com.oracle.bmc.ocvp.model.ResourceOperation.class,
+ RetrieveClusterOperationStatusResponse.Builder::resourceOperation)
+ .handleResponseHeaderString(
+ "etag", RetrieveClusterOperationStatusResponse.Builder::etag)
+ .handleResponseHeaderString(
+ "opc-request-id",
+ RetrieveClusterOperationStatusResponse.Builder::opcRequestId)
+ .callAsync(handler);
+ }
+
@Override
public java.util.concurrent.Future updateCluster(
UpdateClusterRequest request,
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java
index fe7b3ec0e4b..e237f3bb366 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/ClusterClient.java
@@ -273,6 +273,44 @@ public ListClustersResponse listClusters(ListClustersRequest request) {
.callSync();
}
+ @Override
+ public RetrieveClusterOperationStatusResponse retrieveClusterOperationStatus(
+ RetrieveClusterOperationStatusRequest request) {
+
+ Validate.notBlank(request.getClusterId(), "clusterId must not be blank");
+
+ Validate.notBlank(request.getOperationName(), "operationName must not be blank");
+
+ return clientCall(request, RetrieveClusterOperationStatusResponse::builder)
+ .logger(LOG, "retrieveClusterOperationStatus")
+ .serviceDetails(
+ "Cluster",
+ "RetrieveClusterOperationStatus",
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Cluster/RetrieveClusterOperationStatus")
+ .method(com.oracle.bmc.http.client.Method.POST)
+ .requestBuilder(RetrieveClusterOperationStatusRequest::builder)
+ .basePath("/20230701")
+ .appendPathParam("clusters")
+ .appendPathParam(request.getClusterId())
+ .appendPathParam("actions")
+ .appendPathParam("retrieveOperationStatus")
+ .appendPathParam(request.getOperationName())
+ .accept("application/json")
+ .appendHeader("if-match", request.getIfMatch())
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .appendHeader("opc-retry-token", request.getOpcRetryToken())
+ .operationUsesDefaultRetries()
+ .handleBody(
+ com.oracle.bmc.ocvp.model.ResourceOperation.class,
+ RetrieveClusterOperationStatusResponse.Builder::resourceOperation)
+ .handleResponseHeaderString(
+ "etag", RetrieveClusterOperationStatusResponse.Builder::etag)
+ .handleResponseHeaderString(
+ "opc-request-id",
+ RetrieveClusterOperationStatusResponse.Builder::opcRequestId)
+ .callSync();
+ }
+
@Override
public UpdateClusterResponse updateCluster(UpdateClusterRequest request) {
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Datastore.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Datastore.java
index ef18c59f6b5..1a278cf5f07 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Datastore.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Datastore.java
@@ -158,7 +158,8 @@ ChangeDatastoreCompartmentResponse changeDatastoreCompartment(
/**
* List the Datastores in the specified compartment. The list can be filtered by compartment,
- * datastore id, display name and lifecycle state.
+ * datastore id, display name and lifecycle state. Either compartmentId or datastoreId must be
+ * provided.
*
* @param request The request object containing the details to send
* @return A response object containing details about the completed operation
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsync.java
index 86a088f8ac5..872ed558032 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsync.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsync.java
@@ -151,7 +151,8 @@ java.util.concurrent.Future getDatastore(
/**
* List the Datastores in the specified compartment. The list can be filtered by compartment,
- * datastore id, display name and lifecycle state.
+ * datastore id, display name and lifecycle state. Either compartmentId or datastoreId must be
+ * provided.
*
* @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-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsyncClient.java
index 4bf5d4d0231..234280788c3 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsyncClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreAsyncClient.java
@@ -266,7 +266,6 @@ public java.util.concurrent.Future listDatastores(
final com.oracle.bmc.responses.AsyncHandler<
ListDatastoresRequest, ListDatastoresResponse>
handler) {
- Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListDatastoresResponse::builder)
.logger(LOG, "listDatastores")
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClient.java
index f34d5b62d07..ff005be46ed 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClient.java
@@ -276,7 +276,6 @@ public GetDatastoreResponse getDatastore(GetDatastoreRequest request) {
@Override
public ListDatastoresResponse listDatastores(ListDatastoresRequest request) {
- Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListDatastoresResponse::builder)
.logger(LOG, "listDatastores")
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreCluster.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreCluster.java
index c5ed95c543b..655ef4cb4c0 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreCluster.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreCluster.java
@@ -228,7 +228,8 @@ DetachDatastoreClusterFromEsxiHostResponse detachDatastoreClusterFromEsxiHost(
/**
* List the Datastore Clusters in the specified compartment. The list can be filtered by
- * compartment, Datastore Cluster, Display name and Lifecycle state
+ * compartment, Datastore Cluster, Display name and Lifecycle state. Either compartmentId or
+ * datastoreClusterId must be provided.
*
* @param request The request object containing the details to send
* @return A response object containing details about the completed operation
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsync.java
index 8075c6ef249..0c5f0d32c3c 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsync.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsync.java
@@ -231,7 +231,8 @@ java.util.concurrent.Future getDatastoreCluster(
/**
* List the Datastore Clusters in the specified compartment. The list can be filtered by
- * compartment, Datastore Cluster, Display name and Lifecycle state
+ * compartment, Datastore Cluster, Display name and Lifecycle state. Either compartmentId or
+ * datastoreClusterId must be provided.
*
* @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-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsyncClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsyncClient.java
index 03fa25377ab..2a4112f8afd 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsyncClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterAsyncClient.java
@@ -435,7 +435,6 @@ public java.util.concurrent.Future listDatastoreC
final com.oracle.bmc.responses.AsyncHandler<
ListDatastoreClustersRequest, ListDatastoreClustersResponse>
handler) {
- Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListDatastoreClustersResponse::builder)
.logger(LOG, "listDatastoreClusters")
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterClient.java
index 9ccfa71dc79..75dd67be43b 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/DatastoreClusterClient.java
@@ -428,7 +428,6 @@ public GetDatastoreClusterResponse getDatastoreCluster(GetDatastoreClusterReques
@Override
public ListDatastoreClustersResponse listDatastoreClusters(
ListDatastoreClustersRequest request) {
- Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required");
return clientCall(request, ListDatastoreClustersResponse::builder)
.logger(LOG, "listDatastoreClusters")
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHost.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHost.java
index 6c815f49625..98202fe277c 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHost.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHost.java
@@ -176,6 +176,24 @@ public interface EsxiHost extends AutoCloseable {
*/
ReplaceHostResponse replaceHost(ReplaceHostRequest request);
+ /**
+ * Retrieves status of the operation performed on the ESXi host. For each type of operation,
+ * only status of the latest operation is returned.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs. This operation uses
+ * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
+ * provided. The specifics of the default retry strategy are described here
+ * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ * Example: Click here to see how to use
+ * RetrieveEsxiHostOperationStatus API.
+ */
+ RetrieveEsxiHostOperationStatusResponse retrieveEsxiHostOperationStatus(
+ RetrieveEsxiHostOperationStatusRequest request);
+
/**
* Swap billing between two Active ESXi hosts.
*
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsync.java
index f2012a7cfe8..f2d85bc1145 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsync.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostAsync.java
@@ -171,6 +171,25 @@ java.util.concurrent.Future replaceHost(
ReplaceHostRequest request,
com.oracle.bmc.responses.AsyncHandler handler);
+ /**
+ * Retrieves status of the operation performed on the ESXi host. For each type of operation,
+ * only status of the latest operation is returned.
+ *
+ * @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
+ retrieveEsxiHostOperationStatus(
+ RetrieveEsxiHostOperationStatusRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ RetrieveEsxiHostOperationStatusRequest,
+ RetrieveEsxiHostOperationStatusResponse>
+ handler);
+
/**
* Swap billing between two Active ESXi hosts.
*
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 60d19b56221..a925d35a18d 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
@@ -293,6 +293,48 @@ public java.util.concurrent.Future replaceHost(
.callAsync(handler);
}
+ @Override
+ public java.util.concurrent.Future
+ retrieveEsxiHostOperationStatus(
+ RetrieveEsxiHostOperationStatusRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ RetrieveEsxiHostOperationStatusRequest,
+ RetrieveEsxiHostOperationStatusResponse>
+ handler) {
+
+ Validate.notBlank(request.getEsxiHostId(), "esxiHostId must not be blank");
+
+ Validate.notBlank(request.getOperationName(), "operationName must not be blank");
+
+ return clientCall(request, RetrieveEsxiHostOperationStatusResponse::builder)
+ .logger(LOG, "retrieveEsxiHostOperationStatus")
+ .serviceDetails(
+ "EsxiHost",
+ "RetrieveEsxiHostOperationStatus",
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Esxihost/RetrieveEsxiHostOperationStatus")
+ .method(com.oracle.bmc.http.client.Method.POST)
+ .requestBuilder(RetrieveEsxiHostOperationStatusRequest::builder)
+ .basePath("/20230701")
+ .appendPathParam("esxiHosts")
+ .appendPathParam(request.getEsxiHostId())
+ .appendPathParam("actions")
+ .appendPathParam("retrieveOperationStatus")
+ .appendPathParam(request.getOperationName())
+ .accept("application/json")
+ .appendHeader("if-match", request.getIfMatch())
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .appendHeader("opc-retry-token", request.getOpcRetryToken())
+ .handleBody(
+ com.oracle.bmc.ocvp.model.ResourceOperation.class,
+ RetrieveEsxiHostOperationStatusResponse.Builder::resourceOperation)
+ .handleResponseHeaderString(
+ "etag", RetrieveEsxiHostOperationStatusResponse.Builder::etag)
+ .handleResponseHeaderString(
+ "opc-request-id",
+ RetrieveEsxiHostOperationStatusResponse.Builder::opcRequestId)
+ .callAsync(handler);
+ }
+
@Override
public java.util.concurrent.Future swapBilling(
SwapBillingRequest request,
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java
index d8cfa11d4c1..5c7eb289dc4 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/EsxiHostClient.java
@@ -306,6 +306,44 @@ public ReplaceHostResponse replaceHost(ReplaceHostRequest request) {
.callSync();
}
+ @Override
+ public RetrieveEsxiHostOperationStatusResponse retrieveEsxiHostOperationStatus(
+ RetrieveEsxiHostOperationStatusRequest request) {
+
+ Validate.notBlank(request.getEsxiHostId(), "esxiHostId must not be blank");
+
+ Validate.notBlank(request.getOperationName(), "operationName must not be blank");
+
+ return clientCall(request, RetrieveEsxiHostOperationStatusResponse::builder)
+ .logger(LOG, "retrieveEsxiHostOperationStatus")
+ .serviceDetails(
+ "EsxiHost",
+ "RetrieveEsxiHostOperationStatus",
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Esxihost/RetrieveEsxiHostOperationStatus")
+ .method(com.oracle.bmc.http.client.Method.POST)
+ .requestBuilder(RetrieveEsxiHostOperationStatusRequest::builder)
+ .basePath("/20230701")
+ .appendPathParam("esxiHosts")
+ .appendPathParam(request.getEsxiHostId())
+ .appendPathParam("actions")
+ .appendPathParam("retrieveOperationStatus")
+ .appendPathParam(request.getOperationName())
+ .accept("application/json")
+ .appendHeader("if-match", request.getIfMatch())
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .appendHeader("opc-retry-token", request.getOpcRetryToken())
+ .operationUsesDefaultRetries()
+ .handleBody(
+ com.oracle.bmc.ocvp.model.ResourceOperation.class,
+ RetrieveEsxiHostOperationStatusResponse.Builder::resourceOperation)
+ .handleResponseHeaderString(
+ "etag", RetrieveEsxiHostOperationStatusResponse.Builder::etag)
+ .handleResponseHeaderString(
+ "opc-request-id",
+ RetrieveEsxiHostOperationStatusResponse.Builder::opcRequestId)
+ .callSync();
+ }
+
@Override
public SwapBillingResponse swapBilling(SwapBillingRequest request) {
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java
index d0c5585402e..085eaf4cee5 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/Sddc.java
@@ -291,6 +291,24 @@ ListSupportedVmwareSoftwareVersionsResponse listSupportedVmwareSoftwareVersions(
*/
RetrievePasswordResponse retrievePassword(RetrievePasswordRequest request);
+ /**
+ * Retrieves status of the operation performed on the SDDC. For each type of operation, only
+ * status of the latest operation is returned.
+ *
+ * @param request The request object containing the details to send
+ * @return A response object containing details about the completed operation
+ * @throws BmcException when an error occurs. This operation uses
+ * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
+ * provided. The specifics of the default retry strategy are described here
+ * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
+ * Example: Click here to see how to use
+ * RetrieveSddcOperationStatus API.
+ */
+ RetrieveSddcOperationStatusResponse retrieveSddcOperationStatus(
+ RetrieveSddcOperationStatusRequest request);
+
/**
* Retrieve the list of available VMware binaries for the SDDC.
*
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java
index c25310d10ab..8edac9ca9b3 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcAsync.java
@@ -284,6 +284,23 @@ java.util.concurrent.Future retrievePassword(
com.oracle.bmc.responses.AsyncHandler
handler);
+ /**
+ * Retrieves status of the operation performed on the SDDC. For each type of operation, only
+ * status of the latest operation is returned.
+ *
+ * @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 retrieveSddcOperationStatus(
+ RetrieveSddcOperationStatusRequest request,
+ com.oracle.bmc.responses.AsyncHandler<
+ RetrieveSddcOperationStatusRequest, RetrieveSddcOperationStatusResponse>
+ handler);
+
/**
* Retrieve the list of available VMware binaries for the SDDC.
*
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 15e8df81e87..59d7dca5562 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
@@ -541,6 +541,47 @@ public java.util.concurrent.Future retrievePassword(
.callAsync(handler);
}
+ @Override
+ public java.util.concurrent.Future
+ retrieveSddcOperationStatus(
+ RetrieveSddcOperationStatusRequest request,
+ final com.oracle.bmc.responses.AsyncHandler<
+ RetrieveSddcOperationStatusRequest,
+ RetrieveSddcOperationStatusResponse>
+ handler) {
+
+ Validate.notBlank(request.getSddcId(), "sddcId must not be blank");
+
+ Validate.notBlank(request.getOperationName(), "operationName must not be blank");
+
+ return clientCall(request, RetrieveSddcOperationStatusResponse::builder)
+ .logger(LOG, "retrieveSddcOperationStatus")
+ .serviceDetails(
+ "Sddc",
+ "RetrieveSddcOperationStatus",
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrieveSddcOperationStatus")
+ .method(com.oracle.bmc.http.client.Method.POST)
+ .requestBuilder(RetrieveSddcOperationStatusRequest::builder)
+ .basePath("/20230701")
+ .appendPathParam("sddcs")
+ .appendPathParam(request.getSddcId())
+ .appendPathParam("actions")
+ .appendPathParam("retrieveOperationStatus")
+ .appendPathParam(request.getOperationName())
+ .accept("application/json")
+ .appendHeader("if-match", request.getIfMatch())
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .appendHeader("opc-retry-token", request.getOpcRetryToken())
+ .handleBody(
+ com.oracle.bmc.ocvp.model.ResourceOperation.class,
+ RetrieveSddcOperationStatusResponse.Builder::resourceOperation)
+ .handleResponseHeaderString(
+ "etag", RetrieveSddcOperationStatusResponse.Builder::etag)
+ .handleResponseHeaderString(
+ "opc-request-id", RetrieveSddcOperationStatusResponse.Builder::opcRequestId)
+ .callAsync(handler);
+ }
+
@Override
public java.util.concurrent.Future retrieveVmwareBinaries(
RetrieveVmwareBinariesRequest request,
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java
index d4f55e09fe1..8b6fe6bc047 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/SddcClient.java
@@ -536,6 +536,43 @@ public RetrievePasswordResponse retrievePassword(RetrievePasswordRequest request
.callSync();
}
+ @Override
+ public RetrieveSddcOperationStatusResponse retrieveSddcOperationStatus(
+ RetrieveSddcOperationStatusRequest request) {
+
+ Validate.notBlank(request.getSddcId(), "sddcId must not be blank");
+
+ Validate.notBlank(request.getOperationName(), "operationName must not be blank");
+
+ return clientCall(request, RetrieveSddcOperationStatusResponse::builder)
+ .logger(LOG, "retrieveSddcOperationStatus")
+ .serviceDetails(
+ "Sddc",
+ "RetrieveSddcOperationStatus",
+ "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrieveSddcOperationStatus")
+ .method(com.oracle.bmc.http.client.Method.POST)
+ .requestBuilder(RetrieveSddcOperationStatusRequest::builder)
+ .basePath("/20230701")
+ .appendPathParam("sddcs")
+ .appendPathParam(request.getSddcId())
+ .appendPathParam("actions")
+ .appendPathParam("retrieveOperationStatus")
+ .appendPathParam(request.getOperationName())
+ .accept("application/json")
+ .appendHeader("if-match", request.getIfMatch())
+ .appendHeader("opc-request-id", request.getOpcRequestId())
+ .appendHeader("opc-retry-token", request.getOpcRetryToken())
+ .operationUsesDefaultRetries()
+ .handleBody(
+ com.oracle.bmc.ocvp.model.ResourceOperation.class,
+ RetrieveSddcOperationStatusResponse.Builder::resourceOperation)
+ .handleResponseHeaderString(
+ "etag", RetrieveSddcOperationStatusResponse.Builder::etag)
+ .handleResponseHeaderString(
+ "opc-request-id", RetrieveSddcOperationStatusResponse.Builder::opcRequestId)
+ .callSync();
+ }
+
@Override
public RetrieveVmwareBinariesResponse retrieveVmwareBinaries(
RetrieveVmwareBinariesRequest request) {
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java
index 905e10ce209..76f2642e3bd 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/FaultDomainHostDistributionState.java
@@ -10,7 +10,15 @@ public enum FaultDomainHostDistributionState implements com.oracle.bmc.http.inte
EvenlyDistributed("EVENLY_DISTRIBUTED"),
UnevenlyDistributed("UNEVENLY_DISTRIBUTED"),
Unsupported("UNSUPPORTED"),
- ;
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(FaultDomainHostDistributionState.class);
private final String value;
private static java.util.Map map;
@@ -18,7 +26,9 @@ public enum FaultDomainHostDistributionState implements com.oracle.bmc.http.inte
static {
map = new java.util.HashMap<>();
for (FaultDomainHostDistributionState v : FaultDomainHostDistributionState.values()) {
- map.put(v.getValue(), v);
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
}
}
@@ -36,6 +46,9 @@ public static FaultDomainHostDistributionState create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
- throw new IllegalArgumentException("Invalid FaultDomainHostDistributionState: " + key);
+ LOG.warn(
+ "Received unknown value '{}' for enum 'FaultDomainHostDistributionState', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
}
}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.java
index b1420ae410c..51e0b1de6e9 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/HostDistributionReportDetails.java
@@ -32,10 +32,16 @@ public HostDistributionReportDetails(
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
-
+ /** Current Fault Domain distribution state. */
@com.fasterxml.jackson.annotation.JsonProperty("faultDomainHostDistributionState")
private FaultDomainHostDistributionState faultDomainHostDistributionState;
+ /**
+ * Current Fault Domain distribution state.
+ *
+ * @param faultDomainHostDistributionState the value to set
+ * @return this builder
+ */
public Builder faultDomainHostDistributionState(
FaultDomainHostDistributionState faultDomainHostDistributionState) {
this.faultDomainHostDistributionState = faultDomainHostDistributionState;
@@ -73,57 +79,15 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
- /** */
- public enum FaultDomainHostDistributionState implements com.oracle.bmc.http.internal.BmcEnum {
- EvenlyDistributed("EVENLY_DISTRIBUTED"),
- UnevenlyDistributed("UNEVENLY_DISTRIBUTED"),
- Unsupported("UNSUPPORTED"),
-
- /**
- * This value is used if a service returns a value for this enum that is not recognized by
- * this version of the SDK.
- */
- UnknownEnumValue(null);
-
- private static final org.slf4j.Logger LOG =
- org.slf4j.LoggerFactory.getLogger(FaultDomainHostDistributionState.class);
-
- private final String value;
- private static java.util.Map map;
-
- static {
- map = new java.util.HashMap<>();
- for (FaultDomainHostDistributionState v : FaultDomainHostDistributionState.values()) {
- if (v != UnknownEnumValue) {
- map.put(v.getValue(), v);
- }
- }
- }
-
- FaultDomainHostDistributionState(String value) {
- this.value = value;
- }
-
- @com.fasterxml.jackson.annotation.JsonValue
- public String getValue() {
- return value;
- }
-
- @com.fasterxml.jackson.annotation.JsonCreator
- public static FaultDomainHostDistributionState create(String key) {
- if (map.containsKey(key)) {
- return map.get(key);
- }
- LOG.warn(
- "Received unknown value '{}' for enum 'FaultDomainHostDistributionState', returning UnknownEnumValue",
- key);
- return UnknownEnumValue;
- }
- };
-
+ /** Current Fault Domain distribution state. */
@com.fasterxml.jackson.annotation.JsonProperty("faultDomainHostDistributionState")
private final FaultDomainHostDistributionState faultDomainHostDistributionState;
+ /**
+ * Current Fault Domain distribution state.
+ *
+ * @return the value
+ */
public FaultDomainHostDistributionState getFaultDomainHostDistributionState() {
return faultDomainHostDistributionState;
}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java
index 571fef306ce..d8b54de8dca 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/InplaceUpgradeDetails.java
@@ -23,17 +23,42 @@
public final class InplaceUpgradeDetails
extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
@Deprecated
- @java.beans.ConstructorProperties({"initialFaultDomainHostDistribution", "vcfByolAllocationId"})
+ @java.beans.ConstructorProperties({
+ "capacityReservationId",
+ "initialFaultDomainHostDistribution",
+ "vcfByolAllocationId"
+ })
public InplaceUpgradeDetails(
+ String capacityReservationId,
FaultDomainHostDistributionModes initialFaultDomainHostDistribution,
String vcfByolAllocationId) {
super();
+ this.capacityReservationId = capacityReservationId;
this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution;
this.vcfByolAllocationId = vcfByolAllocationId;
}
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId")
+ private String capacityReservationId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ *
+ * @param capacityReservationId the value to set
+ * @return this builder
+ */
+ public Builder capacityReservationId(String capacityReservationId) {
+ this.capacityReservationId = capacityReservationId;
+ this.__explicitlySet__.add("capacityReservationId");
+ return this;
+ }
/** Initial Fault Domain Host distribution mode for the ESXi host. */
@com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution")
private FaultDomainHostDistributionModes initialFaultDomainHostDistribution;
@@ -76,7 +101,9 @@ public Builder vcfByolAllocationId(String vcfByolAllocationId) {
public InplaceUpgradeDetails build() {
InplaceUpgradeDetails model =
new InplaceUpgradeDetails(
- this.initialFaultDomainHostDistribution, this.vcfByolAllocationId);
+ this.capacityReservationId,
+ this.initialFaultDomainHostDistribution,
+ this.vcfByolAllocationId);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
@@ -85,6 +112,9 @@ public InplaceUpgradeDetails build() {
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(InplaceUpgradeDetails model) {
+ if (model.wasPropertyExplicitlySet("capacityReservationId")) {
+ this.capacityReservationId(model.getCapacityReservationId());
+ }
if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) {
this.initialFaultDomainHostDistribution(
model.getInitialFaultDomainHostDistribution());
@@ -105,6 +135,23 @@ public Builder toBuilder() {
return new Builder().copy(this);
}
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId")
+ private final String capacityReservationId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ *
+ * @return the value
+ */
+ public String getCapacityReservationId() {
+ return capacityReservationId;
+ }
+
/** Initial Fault Domain Host distribution mode for the ESXi host. */
@com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution")
private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution;
@@ -150,7 +197,8 @@ public String toString(boolean includeByteArrayContents) {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("InplaceUpgradeDetails(");
sb.append("super=").append(super.toString());
- sb.append("initialFaultDomainHostDistribution=")
+ sb.append("capacityReservationId=").append(String.valueOf(this.capacityReservationId));
+ sb.append(", initialFaultDomainHostDistribution=")
.append(String.valueOf(this.initialFaultDomainHostDistribution));
sb.append(", vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId));
sb.append(")");
@@ -167,7 +215,8 @@ public boolean equals(Object o) {
}
InplaceUpgradeDetails other = (InplaceUpgradeDetails) o;
- return java.util.Objects.equals(
+ return java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId)
+ && java.util.Objects.equals(
this.initialFaultDomainHostDistribution,
other.initialFaultDomainHostDistribution)
&& java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId)
@@ -178,6 +227,11 @@ public boolean equals(Object o) {
public int hashCode() {
final int PRIME = 59;
int result = 1;
+ result =
+ (result * PRIME)
+ + (this.capacityReservationId == null
+ ? 43
+ : this.capacityReservationId.hashCode());
result =
(result * PRIME)
+ (this.initialFaultDomainHostDistribution == null
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java
index fd37396e8a9..474b3ea7b5d 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/OperationTypes.java
@@ -42,6 +42,7 @@ public enum OperationTypes implements com.oracle.bmc.http.internal.BmcEnum {
ManagementApplianceEsxiHostDeletion("MANAGEMENT_APPLIANCE_ESXI_HOST_DELETION"),
ManagementApplianceDatastoreProvisioning("MANAGEMENT_APPLIANCE_DATASTORE_PROVISIONING"),
ManagementApplianceDatastoreDelete("MANAGEMENT_APPLIANCE_DATASTORE_DELETE"),
+ ManagementApplianceRenameResource("MANAGEMENT_APPLIANCE_RENAME_RESOURCE"),
CreateByol("CREATE_BYOL"),
UpdateByol("UPDATE_BYOL"),
DeleteByol("DELETE_BYOL"),
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java
index 97e45d9e1b3..1da44cc4323 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ReplaceHostDetails.java
@@ -25,15 +25,18 @@ public final class ReplaceHostDetails
@Deprecated
@java.beans.ConstructorProperties({
"esxiSoftwareVersion",
+ "capacityReservationId",
"initialFaultDomainHostDistribution",
"vcfByolAllocationId"
})
public ReplaceHostDetails(
String esxiSoftwareVersion,
+ String capacityReservationId,
FaultDomainHostDistributionModes initialFaultDomainHostDistribution,
String vcfByolAllocationId) {
super();
this.esxiSoftwareVersion = esxiSoftwareVersion;
+ this.capacityReservationId = capacityReservationId;
this.initialFaultDomainHostDistribution = initialFaultDomainHostDistribution;
this.vcfByolAllocationId = vcfByolAllocationId;
}
@@ -65,6 +68,25 @@ public Builder esxiSoftwareVersion(String esxiSoftwareVersion) {
this.__explicitlySet__.add("esxiSoftwareVersion");
return this;
}
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId")
+ private String capacityReservationId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ *
+ * @param capacityReservationId the value to set
+ * @return this builder
+ */
+ public Builder capacityReservationId(String capacityReservationId) {
+ this.capacityReservationId = capacityReservationId;
+ this.__explicitlySet__.add("capacityReservationId");
+ return this;
+ }
/** Initial Fault Domain Host distribution mode for the ESXi host. */
@com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution")
private FaultDomainHostDistributionModes initialFaultDomainHostDistribution;
@@ -108,6 +130,7 @@ public ReplaceHostDetails build() {
ReplaceHostDetails model =
new ReplaceHostDetails(
this.esxiSoftwareVersion,
+ this.capacityReservationId,
this.initialFaultDomainHostDistribution,
this.vcfByolAllocationId);
for (String explicitlySetProperty : this.__explicitlySet__) {
@@ -121,6 +144,9 @@ public Builder copy(ReplaceHostDetails model) {
if (model.wasPropertyExplicitlySet("esxiSoftwareVersion")) {
this.esxiSoftwareVersion(model.getEsxiSoftwareVersion());
}
+ if (model.wasPropertyExplicitlySet("capacityReservationId")) {
+ this.capacityReservationId(model.getCapacityReservationId());
+ }
if (model.wasPropertyExplicitlySet("initialFaultDomainHostDistribution")) {
this.initialFaultDomainHostDistribution(
model.getInitialFaultDomainHostDistribution());
@@ -164,6 +190,23 @@ public String getEsxiSoftwareVersion() {
return esxiSoftwareVersion;
}
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("capacityReservationId")
+ private final String capacityReservationId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * Capacity Reservation.
+ *
+ * @return the value
+ */
+ public String getCapacityReservationId() {
+ return capacityReservationId;
+ }
+
/** Initial Fault Domain Host distribution mode for the ESXi host. */
@com.fasterxml.jackson.annotation.JsonProperty("initialFaultDomainHostDistribution")
private final FaultDomainHostDistributionModes initialFaultDomainHostDistribution;
@@ -210,6 +253,7 @@ public String toString(boolean includeByteArrayContents) {
sb.append("ReplaceHostDetails(");
sb.append("super=").append(super.toString());
sb.append("esxiSoftwareVersion=").append(String.valueOf(this.esxiSoftwareVersion));
+ sb.append(", capacityReservationId=").append(String.valueOf(this.capacityReservationId));
sb.append(", initialFaultDomainHostDistribution=")
.append(String.valueOf(this.initialFaultDomainHostDistribution));
sb.append(", vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId));
@@ -228,6 +272,7 @@ public boolean equals(Object o) {
ReplaceHostDetails other = (ReplaceHostDetails) o;
return java.util.Objects.equals(this.esxiSoftwareVersion, other.esxiSoftwareVersion)
+ && java.util.Objects.equals(this.capacityReservationId, other.capacityReservationId)
&& java.util.Objects.equals(
this.initialFaultDomainHostDistribution,
other.initialFaultDomainHostDistribution)
@@ -244,6 +289,11 @@ public int hashCode() {
+ (this.esxiSoftwareVersion == null
? 43
: this.esxiSoftwareVersion.hashCode());
+ result =
+ (result * PRIME)
+ + (this.capacityReservationId == null
+ ? 43
+ : this.capacityReservationId.hashCode());
result =
(result * PRIME)
+ (this.initialFaultDomainHostDistribution == null
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ResourceOperation.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ResourceOperation.java
new file mode 100644
index 00000000000..5a126f4af81
--- /dev/null
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ResourceOperation.java
@@ -0,0 +1,281 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ocvp.model;
+
+/**
+ * Status of the operation performed on the SDDC / Clster / ESXi host.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model
+ * distinguishes fields that are {@code null} because they are unset from fields that are explicitly
+ * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a
+ * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link
+ * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set
+ * fields into account. The constructor, on the other hand, does not take the explicitly set fields
+ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code
+ * null}).
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
+ builder = ResourceOperation.Builder.class)
+@com.fasterxml.jackson.annotation.JsonFilter(
+ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
+public final class ResourceOperation
+ extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel {
+ @Deprecated
+ @java.beans.ConstructorProperties({
+ "operationName",
+ "operationStatus",
+ "timeOperationStarted",
+ "timeOperationFinished"
+ })
+ public ResourceOperation(
+ String operationName,
+ ResourceOperationStatus operationStatus,
+ java.util.Date timeOperationStarted,
+ java.util.Date timeOperationFinished) {
+ super();
+ this.operationName = operationName;
+ this.operationStatus = operationStatus;
+ this.timeOperationStarted = timeOperationStarted;
+ this.timeOperationFinished = timeOperationFinished;
+ }
+
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
+ public static class Builder {
+ /** Name of the operation. */
+ @com.fasterxml.jackson.annotation.JsonProperty("operationName")
+ private String operationName;
+
+ /**
+ * Name of the operation.
+ *
+ * @param operationName the value to set
+ * @return this builder
+ */
+ public Builder operationName(String operationName) {
+ this.operationName = operationName;
+ this.__explicitlySet__.add("operationName");
+ return this;
+ }
+ /** The operation status. */
+ @com.fasterxml.jackson.annotation.JsonProperty("operationStatus")
+ private ResourceOperationStatus operationStatus;
+
+ /**
+ * The operation status.
+ *
+ * @param operationStatus the value to set
+ * @return this builder
+ */
+ public Builder operationStatus(ResourceOperationStatus operationStatus) {
+ this.operationStatus = operationStatus;
+ this.__explicitlySet__.add("operationStatus");
+ return this;
+ }
+ /**
+ * The date and time the operation started at {@code IN_PROGRESS} state, in the format
+ * defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("timeOperationStarted")
+ private java.util.Date timeOperationStarted;
+
+ /**
+ * The date and time the operation started at {@code IN_PROGRESS} state, in the format
+ * defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ *
+ * @param timeOperationStarted the value to set
+ * @return this builder
+ */
+ public Builder timeOperationStarted(java.util.Date timeOperationStarted) {
+ this.timeOperationStarted = timeOperationStarted;
+ this.__explicitlySet__.add("timeOperationStarted");
+ return this;
+ }
+ /**
+ * The date and time the operation reached a terminal state, either {@code FAILED} OR {@code
+ * SUCCEEDED}. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("timeOperationFinished")
+ private java.util.Date timeOperationFinished;
+
+ /**
+ * The date and time the operation reached a terminal state, either {@code FAILED} OR {@code
+ * SUCCEEDED}. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ *
+ * @param timeOperationFinished the value to set
+ * @return this builder
+ */
+ public Builder timeOperationFinished(java.util.Date timeOperationFinished) {
+ this.timeOperationFinished = timeOperationFinished;
+ this.__explicitlySet__.add("timeOperationFinished");
+ return this;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ private final java.util.Set __explicitlySet__ = new java.util.HashSet();
+
+ public ResourceOperation build() {
+ ResourceOperation model =
+ new ResourceOperation(
+ this.operationName,
+ this.operationStatus,
+ this.timeOperationStarted,
+ this.timeOperationFinished);
+ for (String explicitlySetProperty : this.__explicitlySet__) {
+ model.markPropertyAsExplicitlySet(explicitlySetProperty);
+ }
+ return model;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonIgnore
+ public Builder copy(ResourceOperation model) {
+ if (model.wasPropertyExplicitlySet("operationName")) {
+ this.operationName(model.getOperationName());
+ }
+ if (model.wasPropertyExplicitlySet("operationStatus")) {
+ this.operationStatus(model.getOperationStatus());
+ }
+ if (model.wasPropertyExplicitlySet("timeOperationStarted")) {
+ this.timeOperationStarted(model.getTimeOperationStarted());
+ }
+ if (model.wasPropertyExplicitlySet("timeOperationFinished")) {
+ this.timeOperationFinished(model.getTimeOperationFinished());
+ }
+ return this;
+ }
+ }
+
+ /** Create a new builder. */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ public Builder toBuilder() {
+ return new Builder().copy(this);
+ }
+
+ /** Name of the operation. */
+ @com.fasterxml.jackson.annotation.JsonProperty("operationName")
+ private final String operationName;
+
+ /**
+ * Name of the operation.
+ *
+ * @return the value
+ */
+ public String getOperationName() {
+ return operationName;
+ }
+
+ /** The operation status. */
+ @com.fasterxml.jackson.annotation.JsonProperty("operationStatus")
+ private final ResourceOperationStatus operationStatus;
+
+ /**
+ * The operation status.
+ *
+ * @return the value
+ */
+ public ResourceOperationStatus getOperationStatus() {
+ return operationStatus;
+ }
+
+ /**
+ * The date and time the operation started at {@code IN_PROGRESS} state, in the format defined
+ * by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("timeOperationStarted")
+ private final java.util.Date timeOperationStarted;
+
+ /**
+ * The date and time the operation started at {@code IN_PROGRESS} state, in the format defined
+ * by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ *
+ * @return the value
+ */
+ public java.util.Date getTimeOperationStarted() {
+ return timeOperationStarted;
+ }
+
+ /**
+ * The date and time the operation reached a terminal state, either {@code FAILED} OR {@code
+ * SUCCEEDED}. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("timeOperationFinished")
+ private final java.util.Date timeOperationFinished;
+
+ /**
+ * The date and time the operation reached a terminal state, either {@code FAILED} OR {@code
+ * SUCCEEDED}. Format is defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
+ *
+ * @return the value
+ */
+ public java.util.Date getTimeOperationFinished() {
+ return timeOperationFinished;
+ }
+
+ @Override
+ public String toString() {
+ return this.toString(true);
+ }
+
+ /**
+ * Return a string representation of the object.
+ *
+ * @param includeByteArrayContents true to include the full contents of byte arrays
+ * @return string representation
+ */
+ public String toString(boolean includeByteArrayContents) {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("ResourceOperation(");
+ sb.append("super=").append(super.toString());
+ sb.append("operationName=").append(String.valueOf(this.operationName));
+ sb.append(", operationStatus=").append(String.valueOf(this.operationStatus));
+ sb.append(", timeOperationStarted=").append(String.valueOf(this.timeOperationStarted));
+ sb.append(", timeOperationFinished=").append(String.valueOf(this.timeOperationFinished));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof ResourceOperation)) {
+ return false;
+ }
+
+ ResourceOperation other = (ResourceOperation) o;
+ return java.util.Objects.equals(this.operationName, other.operationName)
+ && java.util.Objects.equals(this.operationStatus, other.operationStatus)
+ && java.util.Objects.equals(this.timeOperationStarted, other.timeOperationStarted)
+ && java.util.Objects.equals(this.timeOperationFinished, other.timeOperationFinished)
+ && super.equals(other);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = 1;
+ result =
+ (result * PRIME)
+ + (this.operationName == null ? 43 : this.operationName.hashCode());
+ result =
+ (result * PRIME)
+ + (this.operationStatus == null ? 43 : this.operationStatus.hashCode());
+ result =
+ (result * PRIME)
+ + (this.timeOperationStarted == null
+ ? 43
+ : this.timeOperationStarted.hashCode());
+ result =
+ (result * PRIME)
+ + (this.timeOperationFinished == null
+ ? 43
+ : this.timeOperationFinished.hashCode());
+ result = (result * PRIME) + super.hashCode();
+ return result;
+ }
+}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ResourceOperationStatus.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ResourceOperationStatus.java
new file mode 100644
index 00000000000..7fe4750b9e2
--- /dev/null
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/ResourceOperationStatus.java
@@ -0,0 +1,55 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ocvp.model;
+
+/** Status of the operation. */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+public enum ResourceOperationStatus implements com.oracle.bmc.http.internal.BmcEnum {
+ InProgress("IN_PROGRESS"),
+ Failed("FAILED"),
+ PartialSucceed("PARTIAL_SUCCEED"),
+ Succeeded("SUCCEEDED"),
+
+ /**
+ * This value is used if a service returns a value for this enum that is not recognized by this
+ * version of the SDK.
+ */
+ UnknownEnumValue(null);
+
+ private static final org.slf4j.Logger LOG =
+ org.slf4j.LoggerFactory.getLogger(ResourceOperationStatus.class);
+
+ private final String value;
+ private static java.util.Map map;
+
+ static {
+ map = new java.util.HashMap<>();
+ for (ResourceOperationStatus v : ResourceOperationStatus.values()) {
+ if (v != UnknownEnumValue) {
+ map.put(v.getValue(), v);
+ }
+ }
+ }
+
+ ResourceOperationStatus(String value) {
+ this.value = value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonValue
+ public String getValue() {
+ return value;
+ }
+
+ @com.fasterxml.jackson.annotation.JsonCreator
+ public static ResourceOperationStatus create(String key) {
+ if (map.containsKey(key)) {
+ return map.get(key);
+ }
+ LOG.warn(
+ "Received unknown value '{}' for enum 'ResourceOperationStatus', returning UnknownEnumValue",
+ key);
+ return UnknownEnumValue;
+ }
+}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateEsxiHostDetails.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateEsxiHostDetails.java
index cfa8105d3f0..2aeb4077200 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateEsxiHostDetails.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/model/UpdateEsxiHostDetails.java
@@ -27,6 +27,8 @@ public final class UpdateEsxiHostDetails
"displayName",
"nextCommitment",
"billingDonorHostId",
+ "vmwareSoftwareVersion",
+ "esxiSoftwareVersion",
"vcfByolAllocationId",
"isVsanByolEnabled",
"freeformTags",
@@ -36,6 +38,8 @@ public UpdateEsxiHostDetails(
String displayName,
Commitment nextCommitment,
String billingDonorHostId,
+ String vmwareSoftwareVersion,
+ String esxiSoftwareVersion,
String vcfByolAllocationId,
Boolean isVsanByolEnabled,
java.util.Map freeformTags,
@@ -44,6 +48,8 @@ public UpdateEsxiHostDetails(
this.displayName = displayName;
this.nextCommitment = nextCommitment;
this.billingDonorHostId = billingDonorHostId;
+ this.vmwareSoftwareVersion = vmwareSoftwareVersion;
+ this.esxiSoftwareVersion = esxiSoftwareVersion;
this.vcfByolAllocationId = vcfByolAllocationId;
this.isVsanByolEnabled = isVsanByolEnabled;
this.freeformTags = freeformTags;
@@ -127,6 +133,60 @@ public Builder billingDonorHostId(String billingDonorHostId) {
this.__explicitlySet__.add("billingDonorHostId");
return this;
}
+ /**
+ * The version of VMware software that Oracle Cloud VMware Solution installed on the ESXi
+ * host. To get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform VMware software
+ * version upgrade. Make sure the version provided is the actual version installed on the
+ * ESXi host.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("vmwareSoftwareVersion")
+ private String vmwareSoftwareVersion;
+
+ /**
+ * The version of VMware software that Oracle Cloud VMware Solution installed on the ESXi
+ * host. To get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform VMware software
+ * version upgrade. Make sure the version provided is the actual version installed on the
+ * ESXi host.
+ *
+ * @param vmwareSoftwareVersion the value to set
+ * @return this builder
+ */
+ public Builder vmwareSoftwareVersion(String vmwareSoftwareVersion) {
+ this.vmwareSoftwareVersion = vmwareSoftwareVersion;
+ this.__explicitlySet__.add("vmwareSoftwareVersion");
+ return this;
+ }
+ /**
+ * The version of ESXi software that Oracle Cloud VMware Solution installed on the ESXi
+ * host. To get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform ESXi software
+ * version upgrade. Make sure the version provided is the actual version installed on the
+ * ESXi host.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("esxiSoftwareVersion")
+ private String esxiSoftwareVersion;
+
+ /**
+ * The version of ESXi software that Oracle Cloud VMware Solution installed on the ESXi
+ * host. To get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform ESXi software
+ * version upgrade. Make sure the version provided is the actual version installed on the
+ * ESXi host.
+ *
+ * @param esxiSoftwareVersion the value to set
+ * @return this builder
+ */
+ public Builder esxiSoftwareVersion(String esxiSoftwareVersion) {
+ this.esxiSoftwareVersion = esxiSoftwareVersion;
+ this.__explicitlySet__.add("esxiSoftwareVersion");
+ return this;
+ }
/**
* The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
* Byol Allocation for VCF (VMware Cloud Foundation) deployment.
@@ -222,6 +282,8 @@ public UpdateEsxiHostDetails build() {
this.displayName,
this.nextCommitment,
this.billingDonorHostId,
+ this.vmwareSoftwareVersion,
+ this.esxiSoftwareVersion,
this.vcfByolAllocationId,
this.isVsanByolEnabled,
this.freeformTags,
@@ -243,6 +305,12 @@ public Builder copy(UpdateEsxiHostDetails model) {
if (model.wasPropertyExplicitlySet("billingDonorHostId")) {
this.billingDonorHostId(model.getBillingDonorHostId());
}
+ if (model.wasPropertyExplicitlySet("vmwareSoftwareVersion")) {
+ this.vmwareSoftwareVersion(model.getVmwareSoftwareVersion());
+ }
+ if (model.wasPropertyExplicitlySet("esxiSoftwareVersion")) {
+ this.esxiSoftwareVersion(model.getEsxiSoftwareVersion());
+ }
if (model.wasPropertyExplicitlySet("vcfByolAllocationId")) {
this.vcfByolAllocationId(model.getVcfByolAllocationId());
}
@@ -337,6 +405,56 @@ public String getBillingDonorHostId() {
return billingDonorHostId;
}
+ /**
+ * The version of VMware software that Oracle Cloud VMware Solution installed on the ESXi host.
+ * To get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform VMware software
+ * version upgrade. Make sure the version provided is the actual version installed on the ESXi
+ * host.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("vmwareSoftwareVersion")
+ private final String vmwareSoftwareVersion;
+
+ /**
+ * The version of VMware software that Oracle Cloud VMware Solution installed on the ESXi host.
+ * To get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform VMware software
+ * version upgrade. Make sure the version provided is the actual version installed on the ESXi
+ * host.
+ *
+ * @return the value
+ */
+ public String getVmwareSoftwareVersion() {
+ return vmwareSoftwareVersion;
+ }
+
+ /**
+ * The version of ESXi software that Oracle Cloud VMware Solution installed on the ESXi host. To
+ * get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform ESXi software
+ * version upgrade. Make sure the version provided is the actual version installed on the ESXi
+ * host.
+ */
+ @com.fasterxml.jackson.annotation.JsonProperty("esxiSoftwareVersion")
+ private final String esxiSoftwareVersion;
+
+ /**
+ * The version of ESXi software that Oracle Cloud VMware Solution installed on the ESXi host. To
+ * get a list of the available versions, use {@link
+ * #listSupportedVmwareSoftwareVersions(ListSupportedVmwareSoftwareVersionsRequest)
+ * listSupportedVmwareSoftwareVersions}. **Note:** This API will not perform ESXi software
+ * version upgrade. Make sure the version provided is the actual version installed on the ESXi
+ * host.
+ *
+ * @return the value
+ */
+ public String getEsxiSoftwareVersion() {
+ return esxiSoftwareVersion;
+ }
+
/**
* The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Byol
* Allocation for VCF (VMware Cloud Foundation) deployment.
@@ -431,6 +549,8 @@ public String toString(boolean includeByteArrayContents) {
sb.append("displayName=").append(String.valueOf(this.displayName));
sb.append(", nextCommitment=").append(String.valueOf(this.nextCommitment));
sb.append(", billingDonorHostId=").append(String.valueOf(this.billingDonorHostId));
+ sb.append(", vmwareSoftwareVersion=").append(String.valueOf(this.vmwareSoftwareVersion));
+ sb.append(", esxiSoftwareVersion=").append(String.valueOf(this.esxiSoftwareVersion));
sb.append(", vcfByolAllocationId=").append(String.valueOf(this.vcfByolAllocationId));
sb.append(", isVsanByolEnabled=").append(String.valueOf(this.isVsanByolEnabled));
sb.append(", freeformTags=").append(String.valueOf(this.freeformTags));
@@ -452,6 +572,8 @@ public boolean equals(Object o) {
return java.util.Objects.equals(this.displayName, other.displayName)
&& java.util.Objects.equals(this.nextCommitment, other.nextCommitment)
&& java.util.Objects.equals(this.billingDonorHostId, other.billingDonorHostId)
+ && java.util.Objects.equals(this.vmwareSoftwareVersion, other.vmwareSoftwareVersion)
+ && java.util.Objects.equals(this.esxiSoftwareVersion, other.esxiSoftwareVersion)
&& java.util.Objects.equals(this.vcfByolAllocationId, other.vcfByolAllocationId)
&& java.util.Objects.equals(this.isVsanByolEnabled, other.isVsanByolEnabled)
&& java.util.Objects.equals(this.freeformTags, other.freeformTags)
@@ -472,6 +594,16 @@ public int hashCode() {
+ (this.billingDonorHostId == null
? 43
: this.billingDonorHostId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.vmwareSoftwareVersion == null
+ ? 43
+ : this.vmwareSoftwareVersion.hashCode());
+ result =
+ (result * PRIME)
+ + (this.esxiSoftwareVersion == null
+ ? 43
+ : this.esxiSoftwareVersion.hashCode());
result =
(result * PRIME)
+ (this.vcfByolAllocationId == null
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoreClustersRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoreClustersRequest.java
index 47ba238f888..3583e83453c 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoreClustersRequest.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoreClustersRequest.java
@@ -17,13 +17,13 @@ public class ListDatastoreClustersRequest
/**
* The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
- * compartment.
+ * compartment as optional parameter.
*/
private String compartmentId;
/**
* The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
- * compartment.
+ * compartment as optional parameter.
*/
public String getCompartmentId() {
return compartmentId;
@@ -201,13 +201,13 @@ public static class Builder
/**
* The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
- * compartment.
+ * compartment as optional parameter.
*/
private String compartmentId = null;
/**
* The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
- * compartment.
+ * compartment as optional parameter.
*
* @param compartmentId the value to set
* @return this builder instance
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoresRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoresRequest.java
index 2c44c5cf893..65e06a4dfa8 100644
--- a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoresRequest.java
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/ListDatastoresRequest.java
@@ -15,13 +15,13 @@ public class ListDatastoresRequest extends com.oracle.bmc.requests.BmcRequestExample: Click here to see how to use
+ * RetrieveClusterOperationStatusRequest.
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+public class RetrieveClusterOperationStatusRequest
+ extends com.oracle.bmc.requests.BmcRequest {
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC
+ * Cluster.
+ */
+ private String clusterId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the SDDC
+ * Cluster.
+ */
+ public String getClusterId() {
+ return clusterId;
+ }
+ /** The name of operation. */
+ private String operationName;
+
+ /** The name of operation. */
+ public String getOperationName() {
+ return operationName;
+ }
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code
+ * if-match} parameter to the value of the etag from a previous GET or POST response for that
+ * resource. The resource will be updated or deleted only if the etag you provide matches the
+ * resource's current etag value.
+ */
+ private String ifMatch;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code
+ * if-match} parameter to the value of the etag from a previous GET or POST response for that
+ * resource. The resource will be updated or deleted only if the etag you provide matches the
+ * resource's current etag value.
+ */
+ public String getIfMatch() {
+ return ifMatch;
+ }
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular request,
+ * please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular request,
+ * please provide the request ID.
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after 24
+ * hours, but can be invalidated before then due to conflicting operations (for example, if a
+ * resource has been deleted and purged from the system, then a retry of the original creation
+ * request may be rejected).
+ */
+ private String opcRetryToken;
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after 24
+ * hours, but can be invalidated before then due to conflicting operations (for example, if a
+ * resource has been deleted and purged from the system, then a retry of the original creation
+ * request may be rejected).
+ */
+ public String getOpcRetryToken() {
+ return opcRetryToken;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ RetrieveClusterOperationStatusRequest, java.lang.Void> {
+ private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * SDDC Cluster.
+ */
+ private String clusterId = null;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * SDDC Cluster.
+ *
+ * @param clusterId the value to set
+ * @return this builder instance
+ */
+ public Builder clusterId(String clusterId) {
+ this.clusterId = clusterId;
+ return this;
+ }
+
+ /** The name of operation. */
+ private String operationName = null;
+
+ /**
+ * The name of operation.
+ *
+ * @param operationName the value to set
+ * @return this builder instance
+ */
+ public Builder operationName(String operationName) {
+ this.operationName = operationName;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
+ * {@code if-match} parameter to the value of the etag from a previous GET or POST response
+ * for that resource. The resource will be updated or deleted only if the etag you provide
+ * matches the resource's current etag value.
+ */
+ private String ifMatch = null;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
+ * {@code if-match} parameter to the value of the etag from a previous GET or POST response
+ * for that resource. The resource will be updated or deleted only if the etag you provide
+ * matches the resource's current etag value.
+ *
+ * @param ifMatch the value to set
+ * @return this builder instance
+ */
+ public Builder ifMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular
+ * request, please provide the request ID.
+ */
+ private String opcRequestId = null;
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular
+ * request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after
+ * 24 hours, but can be invalidated before then due to conflicting operations (for example,
+ * if a resource has been deleted and purged from the system, then a retry of the original
+ * creation request may be rejected).
+ */
+ private String opcRetryToken = null;
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after
+ * 24 hours, but can be invalidated before then due to conflicting operations (for example,
+ * if a resource has been deleted and purged from the system, then a retry of the original
+ * creation request may be rejected).
+ *
+ * @param opcRetryToken the value to set
+ * @return this builder instance
+ */
+ public Builder opcRetryToken(String opcRetryToken) {
+ this.opcRetryToken = opcRetryToken;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ *
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.http.client.RequestInterceptor invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ *
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ *
+ * @return this builder instance
+ */
+ public Builder copy(RetrieveClusterOperationStatusRequest o) {
+ clusterId(o.getClusterId());
+ operationName(o.getOperationName());
+ ifMatch(o.getIfMatch());
+ opcRequestId(o.getOpcRequestId());
+ opcRetryToken(o.getOpcRetryToken());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of RetrieveClusterOperationStatusRequest as configured by this builder
+ *
+ * Note that this method takes calls to {@link
+ * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ *
This is the preferred method to build an instance.
+ *
+ * @return instance of RetrieveClusterOperationStatusRequest
+ */
+ public RetrieveClusterOperationStatusRequest build() {
+ RetrieveClusterOperationStatusRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Build the instance of RetrieveClusterOperationStatusRequest as configured by this builder
+ *
+ *
Note that this method does not take calls to {@link
+ * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account,
+ * while the method {@link Builder#build} does
+ *
+ * @return instance of RetrieveClusterOperationStatusRequest
+ */
+ public RetrieveClusterOperationStatusRequest buildWithoutInvocationCallback() {
+ RetrieveClusterOperationStatusRequest request =
+ new RetrieveClusterOperationStatusRequest();
+ request.clusterId = clusterId;
+ request.operationName = operationName;
+ request.ifMatch = ifMatch;
+ request.opcRequestId = opcRequestId;
+ request.opcRetryToken = opcRetryToken;
+ return request;
+ // new RetrieveClusterOperationStatusRequest(clusterId, operationName, ifMatch,
+ // opcRequestId, opcRetryToken);
+ }
+ }
+
+ /**
+ * Return an instance of {@link Builder} that allows you to modify request properties.
+ *
+ * @return instance of {@link Builder} that allows you to modify request properties.
+ */
+ public Builder toBuilder() {
+ return new Builder()
+ .clusterId(clusterId)
+ .operationName(operationName)
+ .ifMatch(ifMatch)
+ .opcRequestId(opcRequestId)
+ .opcRetryToken(opcRetryToken);
+ }
+
+ /**
+ * Return a new builder for this request object.
+ *
+ * @return builder for the request object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",clusterId=").append(String.valueOf(this.clusterId));
+ sb.append(",operationName=").append(String.valueOf(this.operationName));
+ sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
+ sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RetrieveClusterOperationStatusRequest)) {
+ return false;
+ }
+
+ RetrieveClusterOperationStatusRequest other = (RetrieveClusterOperationStatusRequest) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.clusterId, other.clusterId)
+ && java.util.Objects.equals(this.operationName, other.operationName)
+ && java.util.Objects.equals(this.ifMatch, other.ifMatch)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.clusterId == null ? 43 : this.clusterId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.operationName == null ? 43 : this.operationName.hashCode());
+ result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveEsxiHostOperationStatusRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveEsxiHostOperationStatusRequest.java
new file mode 100644
index 00000000000..ba4793ce3e6
--- /dev/null
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveEsxiHostOperationStatusRequest.java
@@ -0,0 +1,343 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ocvp.requests;
+
+import com.oracle.bmc.ocvp.model.*;
+/**
+ * Example: Click here to see how to use
+ * RetrieveEsxiHostOperationStatusRequest.
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+public class RetrieveEsxiHostOperationStatusRequest
+ extends com.oracle.bmc.requests.BmcRequest {
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ESXi
+ * host.
+ */
+ private String esxiHostId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ESXi
+ * host.
+ */
+ public String getEsxiHostId() {
+ return esxiHostId;
+ }
+ /** The name of operation. */
+ private String operationName;
+
+ /** The name of operation. */
+ public String getOperationName() {
+ return operationName;
+ }
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code
+ * if-match} parameter to the value of the etag from a previous GET or POST response for that
+ * resource. The resource will be updated or deleted only if the etag you provide matches the
+ * resource's current etag value.
+ */
+ private String ifMatch;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code
+ * if-match} parameter to the value of the etag from a previous GET or POST response for that
+ * resource. The resource will be updated or deleted only if the etag you provide matches the
+ * resource's current etag value.
+ */
+ public String getIfMatch() {
+ return ifMatch;
+ }
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular request,
+ * please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular request,
+ * please provide the request ID.
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after 24
+ * hours, but can be invalidated before then due to conflicting operations (for example, if a
+ * resource has been deleted and purged from the system, then a retry of the original creation
+ * request may be rejected).
+ */
+ private String opcRetryToken;
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after 24
+ * hours, but can be invalidated before then due to conflicting operations (for example, if a
+ * resource has been deleted and purged from the system, then a retry of the original creation
+ * request may be rejected).
+ */
+ public String getOpcRetryToken() {
+ return opcRetryToken;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ RetrieveEsxiHostOperationStatusRequest, java.lang.Void> {
+ private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * ESXi host.
+ */
+ private String esxiHostId = null;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * ESXi host.
+ *
+ * @param esxiHostId the value to set
+ * @return this builder instance
+ */
+ public Builder esxiHostId(String esxiHostId) {
+ this.esxiHostId = esxiHostId;
+ return this;
+ }
+
+ /** The name of operation. */
+ private String operationName = null;
+
+ /**
+ * The name of operation.
+ *
+ * @param operationName the value to set
+ * @return this builder instance
+ */
+ public Builder operationName(String operationName) {
+ this.operationName = operationName;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
+ * {@code if-match} parameter to the value of the etag from a previous GET or POST response
+ * for that resource. The resource will be updated or deleted only if the etag you provide
+ * matches the resource's current etag value.
+ */
+ private String ifMatch = null;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
+ * {@code if-match} parameter to the value of the etag from a previous GET or POST response
+ * for that resource. The resource will be updated or deleted only if the etag you provide
+ * matches the resource's current etag value.
+ *
+ * @param ifMatch the value to set
+ * @return this builder instance
+ */
+ public Builder ifMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular
+ * request, please provide the request ID.
+ */
+ private String opcRequestId = null;
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular
+ * request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after
+ * 24 hours, but can be invalidated before then due to conflicting operations (for example,
+ * if a resource has been deleted and purged from the system, then a retry of the original
+ * creation request may be rejected).
+ */
+ private String opcRetryToken = null;
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after
+ * 24 hours, but can be invalidated before then due to conflicting operations (for example,
+ * if a resource has been deleted and purged from the system, then a retry of the original
+ * creation request may be rejected).
+ *
+ * @param opcRetryToken the value to set
+ * @return this builder instance
+ */
+ public Builder opcRetryToken(String opcRetryToken) {
+ this.opcRetryToken = opcRetryToken;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ *
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.http.client.RequestInterceptor invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ *
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ *
+ * @return this builder instance
+ */
+ public Builder copy(RetrieveEsxiHostOperationStatusRequest o) {
+ esxiHostId(o.getEsxiHostId());
+ operationName(o.getOperationName());
+ ifMatch(o.getIfMatch());
+ opcRequestId(o.getOpcRequestId());
+ opcRetryToken(o.getOpcRetryToken());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of RetrieveEsxiHostOperationStatusRequest as configured by this
+ * builder
+ *
+ * Note that this method takes calls to {@link
+ * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ *
This is the preferred method to build an instance.
+ *
+ * @return instance of RetrieveEsxiHostOperationStatusRequest
+ */
+ public RetrieveEsxiHostOperationStatusRequest build() {
+ RetrieveEsxiHostOperationStatusRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Build the instance of RetrieveEsxiHostOperationStatusRequest as configured by this
+ * builder
+ *
+ *
Note that this method does not take calls to {@link
+ * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account,
+ * while the method {@link Builder#build} does
+ *
+ * @return instance of RetrieveEsxiHostOperationStatusRequest
+ */
+ public RetrieveEsxiHostOperationStatusRequest buildWithoutInvocationCallback() {
+ RetrieveEsxiHostOperationStatusRequest request =
+ new RetrieveEsxiHostOperationStatusRequest();
+ request.esxiHostId = esxiHostId;
+ request.operationName = operationName;
+ request.ifMatch = ifMatch;
+ request.opcRequestId = opcRequestId;
+ request.opcRetryToken = opcRetryToken;
+ return request;
+ // new RetrieveEsxiHostOperationStatusRequest(esxiHostId, operationName, ifMatch,
+ // opcRequestId, opcRetryToken);
+ }
+ }
+
+ /**
+ * Return an instance of {@link Builder} that allows you to modify request properties.
+ *
+ * @return instance of {@link Builder} that allows you to modify request properties.
+ */
+ public Builder toBuilder() {
+ return new Builder()
+ .esxiHostId(esxiHostId)
+ .operationName(operationName)
+ .ifMatch(ifMatch)
+ .opcRequestId(opcRequestId)
+ .opcRetryToken(opcRetryToken);
+ }
+
+ /**
+ * Return a new builder for this request object.
+ *
+ * @return builder for the request object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",esxiHostId=").append(String.valueOf(this.esxiHostId));
+ sb.append(",operationName=").append(String.valueOf(this.operationName));
+ sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
+ sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RetrieveEsxiHostOperationStatusRequest)) {
+ return false;
+ }
+
+ RetrieveEsxiHostOperationStatusRequest other = (RetrieveEsxiHostOperationStatusRequest) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.esxiHostId, other.esxiHostId)
+ && java.util.Objects.equals(this.operationName, other.operationName)
+ && java.util.Objects.equals(this.ifMatch, other.ifMatch)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.esxiHostId == null ? 43 : this.esxiHostId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.operationName == null ? 43 : this.operationName.hashCode());
+ result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveSddcOperationStatusRequest.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveSddcOperationStatusRequest.java
new file mode 100644
index 00000000000..3cdfaff5669
--- /dev/null
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/requests/RetrieveSddcOperationStatusRequest.java
@@ -0,0 +1,340 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ocvp.requests;
+
+import com.oracle.bmc.ocvp.model.*;
+/**
+ * Example: Click here to see how to use
+ * RetrieveSddcOperationStatusRequest.
+ */
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+public class RetrieveSddcOperationStatusRequest
+ extends com.oracle.bmc.requests.BmcRequest {
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * SDDC.
+ */
+ private String sddcId;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * SDDC.
+ */
+ public String getSddcId() {
+ return sddcId;
+ }
+ /** The name of operation. */
+ private String operationName;
+
+ /** The name of operation. */
+ public String getOperationName() {
+ return operationName;
+ }
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code
+ * if-match} parameter to the value of the etag from a previous GET or POST response for that
+ * resource. The resource will be updated or deleted only if the etag you provide matches the
+ * resource's current etag value.
+ */
+ private String ifMatch;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code
+ * if-match} parameter to the value of the etag from a previous GET or POST response for that
+ * resource. The resource will be updated or deleted only if the etag you provide matches the
+ * resource's current etag value.
+ */
+ public String getIfMatch() {
+ return ifMatch;
+ }
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular request,
+ * please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular request,
+ * please provide the request ID.
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after 24
+ * hours, but can be invalidated before then due to conflicting operations (for example, if a
+ * resource has been deleted and purged from the system, then a retry of the original creation
+ * request may be rejected).
+ */
+ private String opcRetryToken;
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after 24
+ * hours, but can be invalidated before then due to conflicting operations (for example, if a
+ * resource has been deleted and purged from the system, then a retry of the original creation
+ * request may be rejected).
+ */
+ public String getOpcRetryToken() {
+ return opcRetryToken;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.requests.BmcRequest.Builder<
+ RetrieveSddcOperationStatusRequest, java.lang.Void> {
+ private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null;
+ private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * SDDC.
+ */
+ private String sddcId = null;
+
+ /**
+ * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the
+ * SDDC.
+ *
+ * @param sddcId the value to set
+ * @return this builder instance
+ */
+ public Builder sddcId(String sddcId) {
+ this.sddcId = sddcId;
+ return this;
+ }
+
+ /** The name of operation. */
+ private String operationName = null;
+
+ /**
+ * The name of operation.
+ *
+ * @param operationName the value to set
+ * @return this builder instance
+ */
+ public Builder operationName(String operationName) {
+ this.operationName = operationName;
+ return this;
+ }
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
+ * {@code if-match} parameter to the value of the etag from a previous GET or POST response
+ * for that resource. The resource will be updated or deleted only if the etag you provide
+ * matches the resource's current etag value.
+ */
+ private String ifMatch = null;
+
+ /**
+ * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
+ * {@code if-match} parameter to the value of the etag from a previous GET or POST response
+ * for that resource. The resource will be updated or deleted only if the etag you provide
+ * matches the resource's current etag value.
+ *
+ * @param ifMatch the value to set
+ * @return this builder instance
+ */
+ public Builder ifMatch(String ifMatch) {
+ this.ifMatch = ifMatch;
+ return this;
+ }
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular
+ * request, please provide the request ID.
+ */
+ private String opcRequestId = null;
+
+ /**
+ * Unique identifier for the request. If you need to contact Oracle about a particular
+ * request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder instance
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after
+ * 24 hours, but can be invalidated before then due to conflicting operations (for example,
+ * if a resource has been deleted and purged from the system, then a retry of the original
+ * creation request may be rejected).
+ */
+ private String opcRetryToken = null;
+
+ /**
+ * A token that uniquely identifies a request so it can be retried in case of a timeout or
+ * server error without risk of executing that same action again. Retry tokens expire after
+ * 24 hours, but can be invalidated before then due to conflicting operations (for example,
+ * if a resource has been deleted and purged from the system, then a retry of the original
+ * creation request may be rejected).
+ *
+ * @param opcRetryToken the value to set
+ * @return this builder instance
+ */
+ public Builder opcRetryToken(String opcRetryToken) {
+ this.opcRetryToken = opcRetryToken;
+ return this;
+ }
+
+ /**
+ * Set the invocation callback for the request to be built.
+ *
+ * @param invocationCallback the invocation callback to be set for the request
+ * @return this builder instance
+ */
+ public Builder invocationCallback(
+ com.oracle.bmc.http.client.RequestInterceptor invocationCallback) {
+ this.invocationCallback = invocationCallback;
+ return this;
+ }
+
+ /**
+ * Set the retry configuration for the request to be built.
+ *
+ * @param retryConfiguration the retry configuration to be used for the request
+ * @return this builder instance
+ */
+ public Builder retryConfiguration(
+ com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) {
+ this.retryConfiguration = retryConfiguration;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ *
+ * @return this builder instance
+ */
+ public Builder copy(RetrieveSddcOperationStatusRequest o) {
+ sddcId(o.getSddcId());
+ operationName(o.getOperationName());
+ ifMatch(o.getIfMatch());
+ opcRequestId(o.getOpcRequestId());
+ opcRetryToken(o.getOpcRetryToken());
+ invocationCallback(o.getInvocationCallback());
+ retryConfiguration(o.getRetryConfiguration());
+ return this;
+ }
+
+ /**
+ * Build the instance of RetrieveSddcOperationStatusRequest as configured by this builder
+ *
+ * Note that this method takes calls to {@link
+ * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account,
+ * while the method {@link Builder#buildWithoutInvocationCallback} does not.
+ *
+ *
This is the preferred method to build an instance.
+ *
+ * @return instance of RetrieveSddcOperationStatusRequest
+ */
+ public RetrieveSddcOperationStatusRequest build() {
+ RetrieveSddcOperationStatusRequest request = buildWithoutInvocationCallback();
+ request.setInvocationCallback(invocationCallback);
+ request.setRetryConfiguration(retryConfiguration);
+ return request;
+ }
+
+ /**
+ * Build the instance of RetrieveSddcOperationStatusRequest as configured by this builder
+ *
+ *
Note that this method does not take calls to {@link
+ * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account,
+ * while the method {@link Builder#build} does
+ *
+ * @return instance of RetrieveSddcOperationStatusRequest
+ */
+ public RetrieveSddcOperationStatusRequest buildWithoutInvocationCallback() {
+ RetrieveSddcOperationStatusRequest request = new RetrieveSddcOperationStatusRequest();
+ request.sddcId = sddcId;
+ request.operationName = operationName;
+ request.ifMatch = ifMatch;
+ request.opcRequestId = opcRequestId;
+ request.opcRetryToken = opcRetryToken;
+ return request;
+ // new RetrieveSddcOperationStatusRequest(sddcId, operationName, ifMatch, opcRequestId,
+ // opcRetryToken);
+ }
+ }
+
+ /**
+ * Return an instance of {@link Builder} that allows you to modify request properties.
+ *
+ * @return instance of {@link Builder} that allows you to modify request properties.
+ */
+ public Builder toBuilder() {
+ return new Builder()
+ .sddcId(sddcId)
+ .operationName(operationName)
+ .ifMatch(ifMatch)
+ .opcRequestId(opcRequestId)
+ .opcRetryToken(opcRetryToken);
+ }
+
+ /**
+ * Return a new builder for this request object.
+ *
+ * @return builder for the request object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",sddcId=").append(String.valueOf(this.sddcId));
+ sb.append(",operationName=").append(String.valueOf(this.operationName));
+ sb.append(",ifMatch=").append(String.valueOf(this.ifMatch));
+ sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId));
+ sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RetrieveSddcOperationStatusRequest)) {
+ return false;
+ }
+
+ RetrieveSddcOperationStatusRequest other = (RetrieveSddcOperationStatusRequest) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.sddcId, other.sddcId)
+ && java.util.Objects.equals(this.operationName, other.operationName)
+ && java.util.Objects.equals(this.ifMatch, other.ifMatch)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.sddcId == null ? 43 : this.sddcId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.operationName == null ? 43 : this.operationName.hashCode());
+ result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveClusterOperationStatusResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveClusterOperationStatusResponse.java
new file mode 100644
index 00000000000..41bff2222b4
--- /dev/null
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveClusterOperationStatusResponse.java
@@ -0,0 +1,212 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ocvp.responses;
+
+import com.oracle.bmc.ocvp.model.*;
+
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+public class RetrieveClusterOperationStatusResponse extends com.oracle.bmc.responses.BmcResponse {
+ /** For optimistic concurrency control. See {@code if-match}. */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @return the value
+ */
+ public String getEtag() {
+ return etag;
+ }
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ *
+ * @return the value
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ /** The returned {@code ResourceOperation} instance. */
+ private com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation;
+
+ /**
+ * The returned {@code ResourceOperation} instance.
+ *
+ * @return the value
+ */
+ public com.oracle.bmc.ocvp.model.ResourceOperation getResourceOperation() {
+ return resourceOperation;
+ }
+
+ @java.beans.ConstructorProperties({
+ "__httpStatusCode__",
+ "headers",
+ "etag",
+ "opcRequestId",
+ "resourceOperation"
+ })
+ private RetrieveClusterOperationStatusResponse(
+ int __httpStatusCode__,
+ java.util.Map> headers,
+ String etag,
+ String opcRequestId,
+ com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation) {
+ super(__httpStatusCode__, headers);
+ this.etag = etag;
+ this.opcRequestId = opcRequestId;
+ this.resourceOperation = resourceOperation;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.responses.BmcResponse.Builder<
+ RetrieveClusterOperationStatusResponse> {
+ private int __httpStatusCode__;
+
+ @Override
+ public Builder __httpStatusCode__(int __httpStatusCode__) {
+ this.__httpStatusCode__ = __httpStatusCode__;
+ return this;
+ }
+
+ private java.util.Map> headers;
+
+ @Override
+ public Builder headers(java.util.Map> headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /** For optimistic concurrency control. See {@code if-match}. */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @param etag the value to set
+ * @return this builder
+ */
+ public Builder etag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /** The returned {@code ResourceOperation} instance. */
+ private com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation;
+
+ /**
+ * The returned {@code ResourceOperation} instance.
+ *
+ * @param resourceOperation the value to set
+ * @return this builder
+ */
+ public Builder resourceOperation(
+ com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation) {
+ this.resourceOperation = resourceOperation;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ *
+ * @return this builder instance
+ */
+ @Override
+ public Builder copy(RetrieveClusterOperationStatusResponse o) {
+ __httpStatusCode__(o.get__httpStatusCode__());
+ headers(o.getHeaders());
+ etag(o.getEtag());
+ opcRequestId(o.getOpcRequestId());
+ resourceOperation(o.getResourceOperation());
+
+ return this;
+ }
+
+ /**
+ * Build the response object.
+ *
+ * @return the response object
+ */
+ @Override
+ public RetrieveClusterOperationStatusResponse build() {
+ return new RetrieveClusterOperationStatusResponse(
+ __httpStatusCode__, headers, etag, opcRequestId, resourceOperation);
+ }
+ }
+
+ /**
+ * Return a new builder for this response object.
+ *
+ * @return builder for the response object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",etag=").append(String.valueOf(etag));
+ sb.append(",opcRequestId=").append(String.valueOf(opcRequestId));
+ sb.append(",resourceOperation=").append(String.valueOf(resourceOperation));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RetrieveClusterOperationStatusResponse)) {
+ return false;
+ }
+
+ RetrieveClusterOperationStatusResponse other = (RetrieveClusterOperationStatusResponse) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.etag, other.etag)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.resourceOperation, other.resourceOperation);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.resourceOperation == null ? 43 : this.resourceOperation.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveEsxiHostOperationStatusResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveEsxiHostOperationStatusResponse.java
new file mode 100644
index 00000000000..1e483e8f24f
--- /dev/null
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveEsxiHostOperationStatusResponse.java
@@ -0,0 +1,212 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ocvp.responses;
+
+import com.oracle.bmc.ocvp.model.*;
+
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+public class RetrieveEsxiHostOperationStatusResponse extends com.oracle.bmc.responses.BmcResponse {
+ /** For optimistic concurrency control. See {@code if-match}. */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @return the value
+ */
+ public String getEtag() {
+ return etag;
+ }
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ *
+ * @return the value
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ /** The returned {@code ResourceOperation} instance. */
+ private com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation;
+
+ /**
+ * The returned {@code ResourceOperation} instance.
+ *
+ * @return the value
+ */
+ public com.oracle.bmc.ocvp.model.ResourceOperation getResourceOperation() {
+ return resourceOperation;
+ }
+
+ @java.beans.ConstructorProperties({
+ "__httpStatusCode__",
+ "headers",
+ "etag",
+ "opcRequestId",
+ "resourceOperation"
+ })
+ private RetrieveEsxiHostOperationStatusResponse(
+ int __httpStatusCode__,
+ java.util.Map> headers,
+ String etag,
+ String opcRequestId,
+ com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation) {
+ super(__httpStatusCode__, headers);
+ this.etag = etag;
+ this.opcRequestId = opcRequestId;
+ this.resourceOperation = resourceOperation;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.responses.BmcResponse.Builder<
+ RetrieveEsxiHostOperationStatusResponse> {
+ private int __httpStatusCode__;
+
+ @Override
+ public Builder __httpStatusCode__(int __httpStatusCode__) {
+ this.__httpStatusCode__ = __httpStatusCode__;
+ return this;
+ }
+
+ private java.util.Map> headers;
+
+ @Override
+ public Builder headers(java.util.Map> headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /** For optimistic concurrency control. See {@code if-match}. */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @param etag the value to set
+ * @return this builder
+ */
+ public Builder etag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /** The returned {@code ResourceOperation} instance. */
+ private com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation;
+
+ /**
+ * The returned {@code ResourceOperation} instance.
+ *
+ * @param resourceOperation the value to set
+ * @return this builder
+ */
+ public Builder resourceOperation(
+ com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation) {
+ this.resourceOperation = resourceOperation;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ *
+ * @return this builder instance
+ */
+ @Override
+ public Builder copy(RetrieveEsxiHostOperationStatusResponse o) {
+ __httpStatusCode__(o.get__httpStatusCode__());
+ headers(o.getHeaders());
+ etag(o.getEtag());
+ opcRequestId(o.getOpcRequestId());
+ resourceOperation(o.getResourceOperation());
+
+ return this;
+ }
+
+ /**
+ * Build the response object.
+ *
+ * @return the response object
+ */
+ @Override
+ public RetrieveEsxiHostOperationStatusResponse build() {
+ return new RetrieveEsxiHostOperationStatusResponse(
+ __httpStatusCode__, headers, etag, opcRequestId, resourceOperation);
+ }
+ }
+
+ /**
+ * Return a new builder for this response object.
+ *
+ * @return builder for the response object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",etag=").append(String.valueOf(etag));
+ sb.append(",opcRequestId=").append(String.valueOf(opcRequestId));
+ sb.append(",resourceOperation=").append(String.valueOf(resourceOperation));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RetrieveEsxiHostOperationStatusResponse)) {
+ return false;
+ }
+
+ RetrieveEsxiHostOperationStatusResponse other = (RetrieveEsxiHostOperationStatusResponse) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.etag, other.etag)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.resourceOperation, other.resourceOperation);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.resourceOperation == null ? 43 : this.resourceOperation.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveSddcOperationStatusResponse.java b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveSddcOperationStatusResponse.java
new file mode 100644
index 00000000000..d694c33350a
--- /dev/null
+++ b/bmc-ocvp/src/main/java/com/oracle/bmc/ocvp/responses/RetrieveSddcOperationStatusResponse.java
@@ -0,0 +1,212 @@
+/**
+ * Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
+ * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
+ */
+package com.oracle.bmc.ocvp.responses;
+
+import com.oracle.bmc.ocvp.model.*;
+
+@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230701")
+public class RetrieveSddcOperationStatusResponse extends com.oracle.bmc.responses.BmcResponse {
+ /** For optimistic concurrency control. See {@code if-match}. */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @return the value
+ */
+ public String getEtag() {
+ return etag;
+ }
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ *
+ * @return the value
+ */
+ public String getOpcRequestId() {
+ return opcRequestId;
+ }
+
+ /** The returned {@code ResourceOperation} instance. */
+ private com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation;
+
+ /**
+ * The returned {@code ResourceOperation} instance.
+ *
+ * @return the value
+ */
+ public com.oracle.bmc.ocvp.model.ResourceOperation getResourceOperation() {
+ return resourceOperation;
+ }
+
+ @java.beans.ConstructorProperties({
+ "__httpStatusCode__",
+ "headers",
+ "etag",
+ "opcRequestId",
+ "resourceOperation"
+ })
+ private RetrieveSddcOperationStatusResponse(
+ int __httpStatusCode__,
+ java.util.Map> headers,
+ String etag,
+ String opcRequestId,
+ com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation) {
+ super(__httpStatusCode__, headers);
+ this.etag = etag;
+ this.opcRequestId = opcRequestId;
+ this.resourceOperation = resourceOperation;
+ }
+
+ public static class Builder
+ implements com.oracle.bmc.responses.BmcResponse.Builder<
+ RetrieveSddcOperationStatusResponse> {
+ private int __httpStatusCode__;
+
+ @Override
+ public Builder __httpStatusCode__(int __httpStatusCode__) {
+ this.__httpStatusCode__ = __httpStatusCode__;
+ return this;
+ }
+
+ private java.util.Map> headers;
+
+ @Override
+ public Builder headers(java.util.Map> headers) {
+ this.headers = headers;
+ return this;
+ }
+
+ /** For optimistic concurrency control. See {@code if-match}. */
+ private String etag;
+
+ /**
+ * For optimistic concurrency control. See {@code if-match}.
+ *
+ * @param etag the value to set
+ * @return this builder
+ */
+ public Builder etag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ */
+ private String opcRequestId;
+
+ /**
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
+ * particular request, please provide the request ID.
+ *
+ * @param opcRequestId the value to set
+ * @return this builder
+ */
+ public Builder opcRequestId(String opcRequestId) {
+ this.opcRequestId = opcRequestId;
+ return this;
+ }
+
+ /** The returned {@code ResourceOperation} instance. */
+ private com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation;
+
+ /**
+ * The returned {@code ResourceOperation} instance.
+ *
+ * @param resourceOperation the value to set
+ * @return this builder
+ */
+ public Builder resourceOperation(
+ com.oracle.bmc.ocvp.model.ResourceOperation resourceOperation) {
+ this.resourceOperation = resourceOperation;
+ return this;
+ }
+
+ /**
+ * Copy method to populate the builder with values from the given instance.
+ *
+ * @return this builder instance
+ */
+ @Override
+ public Builder copy(RetrieveSddcOperationStatusResponse o) {
+ __httpStatusCode__(o.get__httpStatusCode__());
+ headers(o.getHeaders());
+ etag(o.getEtag());
+ opcRequestId(o.getOpcRequestId());
+ resourceOperation(o.getResourceOperation());
+
+ return this;
+ }
+
+ /**
+ * Build the response object.
+ *
+ * @return the response object
+ */
+ @Override
+ public RetrieveSddcOperationStatusResponse build() {
+ return new RetrieveSddcOperationStatusResponse(
+ __httpStatusCode__, headers, etag, opcRequestId, resourceOperation);
+ }
+ }
+
+ /**
+ * Return a new builder for this response object.
+ *
+ * @return builder for the response object
+ */
+ public static Builder builder() {
+ return new Builder();
+ }
+
+ @Override
+ public String toString() {
+ java.lang.StringBuilder sb = new java.lang.StringBuilder();
+ sb.append("(");
+ sb.append("super=").append(super.toString());
+ sb.append(",etag=").append(String.valueOf(etag));
+ sb.append(",opcRequestId=").append(String.valueOf(opcRequestId));
+ sb.append(",resourceOperation=").append(String.valueOf(resourceOperation));
+ sb.append(")");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof RetrieveSddcOperationStatusResponse)) {
+ return false;
+ }
+
+ RetrieveSddcOperationStatusResponse other = (RetrieveSddcOperationStatusResponse) o;
+ return super.equals(o)
+ && java.util.Objects.equals(this.etag, other.etag)
+ && java.util.Objects.equals(this.opcRequestId, other.opcRequestId)
+ && java.util.Objects.equals(this.resourceOperation, other.resourceOperation);
+ }
+
+ @Override
+ public int hashCode() {
+ final int PRIME = 59;
+ int result = super.hashCode();
+ result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode());
+ result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode());
+ result =
+ (result * PRIME)
+ + (this.resourceOperation == null ? 43 : this.resourceOperation.hashCode());
+ return result;
+ }
+}
diff --git a/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json b/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json
index d51cc1cb41e..30a76163fe9 100644
--- a/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json
+++ b/bmc-ocvp/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-ocvp/reflect-config.json
@@ -743,12 +743,6 @@
"allDeclaredMethods": true,
"allDeclaredConstructors": true
},
- {
- "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
- "name": "com.oracle.bmc.ocvp.model.HostDistributionReportDetails$FaultDomainHostDistributionState",
- "allDeclaredFields": true,
- "allDeclaredMethods": true
- },
{
"condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
"name": "com.oracle.bmc.ocvp.model.InitialClusterConfiguration",
@@ -971,6 +965,26 @@
"allDeclaredMethods": true,
"allDeclaredConstructors": true
},
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.ocvp.model.ResourceOperation",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "queryAllDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.ocvp.model.ResourceOperation$Builder",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true,
+ "allDeclaredConstructors": true
+ },
+ {
+ "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
+ "name": "com.oracle.bmc.ocvp.model.ResourceOperationStatus",
+ "allDeclaredFields": true,
+ "allDeclaredMethods": true
+ },
{
"condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" },
"name": "com.oracle.bmc.ocvp.model.Sddc",
diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml
index 71cf31e76e7..6e1ce7a4233 100644
--- a/bmc-oda/pom.xml
+++ b/bmc-oda/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-oda
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml
index 549aa972780..458192f59f6 100644
--- a/bmc-onesubscription/pom.xml
+++ b/bmc-onesubscription/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-onesubscription
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml
index e815c11e778..46ad9992fc6 100644
--- a/bmc-ons/pom.xml
+++ b/bmc-ons/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-ons
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml
index c9a8604ce55..553220c83d8 100644
--- a/bmc-opa/pom.xml
+++ b/bmc-opa/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-opa
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml
index 825cd027835..8e02f9756cb 100644
--- a/bmc-opensearch/pom.xml
+++ b/bmc-opensearch/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-opensearch
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml
index 4d569813e1b..bad830ce829 100644
--- a/bmc-operatoraccesscontrol/pom.xml
+++ b/bmc-operatoraccesscontrol/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-operatoraccesscontrol
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml
index 39f1be89e08..f394293572d 100644
--- a/bmc-opsi/pom.xml
+++ b/bmc-opsi/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-opsi
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml
index dfe012fef61..4d2764e24e8 100644
--- a/bmc-optimizer/pom.xml
+++ b/bmc-optimizer/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-optimizer
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml
index b49a2e8b50a..d133f4a9f9f 100644
--- a/bmc-osmanagementhub/pom.xml
+++ b/bmc-osmanagementhub/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-osmanagementhub
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml
index a3b3c81d758..3f45e92d2ab 100644
--- a/bmc-ospgateway/pom.xml
+++ b/bmc-ospgateway/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-ospgateway
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml
index dc6fac0dab1..afb477faa94 100644
--- a/bmc-osubbillingschedule/pom.xml
+++ b/bmc-osubbillingschedule/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-osubbillingschedule
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml
index 65320d7b0bb..1e45d4970de 100644
--- a/bmc-osuborganizationsubscription/pom.xml
+++ b/bmc-osuborganizationsubscription/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-osuborganizationsubscription
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml
index ff1bd9cdfbe..8dbec861f35 100644
--- a/bmc-osubsubscription/pom.xml
+++ b/bmc-osubsubscription/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-osubsubscription
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml
index a40890d7d98..1740ac1678f 100644
--- a/bmc-osubusage/pom.xml
+++ b/bmc-osubusage/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-osubusage
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml
index 95b8a434e45..c9448476446 100644
--- a/bmc-other-examples/bmc-jersey-examples/pom.xml
+++ b/bmc-other-examples/bmc-jersey-examples/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.oracle.oci.sdk
oci-java-sdk-jersey-examples
- 3.101.0
+ 3.102.0
Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client
This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client
https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm
@@ -58,7 +58,7 @@
com.oracle.oci.sdk
oci-java-sdk-enforcer-rules
- 3.101.0
+ 3.102.0
false
@@ -95,14 +95,14 @@
com.oracle.oci.sdk
oci-java-sdk-bom
- 3.101.0
+ 3.102.0
pom
import
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-jersey
- 3.101.0
+ 3.102.0
pom
import
diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml
index 51f4fc365d0..6dffbcf2921 100644
--- a/bmc-other-examples/bmc-jersey3-examples/pom.xml
+++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.oracle.oci.sdk
oci-java-sdk-jersey3-examples
- 3.101.0
+ 3.102.0
Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client
This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client
https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm
@@ -58,7 +58,7 @@
com.oracle.oci.sdk
oci-java-sdk-enforcer-rules
- 3.101.0
+ 3.102.0
false
@@ -95,14 +95,14 @@
com.oracle.oci.sdk
oci-java-sdk-bom
- 3.101.0
+ 3.102.0
pom
import
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-jersey3
- 3.101.0
+ 3.102.0
pom
import
diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml
index 7cae744494f..f2c54d2f0a6 100644
--- a/bmc-other-examples/native-maven-example/pom.xml
+++ b/bmc-other-examples/native-maven-example/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.oracle.oci.sdk
oci-java-sdk-examples-native
- 3.101.0
+ 3.102.0
Oracle Cloud Infrastructure SDK - Native Example
This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable
https://docs.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm
@@ -98,14 +98,14 @@
com.oracle.oci.sdk
oci-java-sdk-bom
- 3.101.0
+ 3.102.0
pom
import
com.oracle.oci.sdk
oci-java-sdk-common-httpclient-jersey
- 3.101.0
+ 3.102.0
pom
import
diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml
index acfbb772e46..b6dda16fa08 100644
--- a/bmc-other-examples/pom.xml
+++ b/bmc-other-examples/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
diff --git a/bmc-psa/pom.xml b/bmc-psa/pom.xml
index 3f251a5fb0f..3cce24355be 100644
--- a/bmc-psa/pom.xml
+++ b/bmc-psa/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-psa
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml
index f1761ffda59..bd2159341f0 100644
--- a/bmc-psql/pom.xml
+++ b/bmc-psql/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-psql
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-pss/pom.xml b/bmc-pss/pom.xml
index 257bc8cffff..c6ef2fdca03 100644
--- a/bmc-pss/pom.xml
+++ b/bmc-pss/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-pss
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml
index 6227d3a24da..d61cd5089c0 100644
--- a/bmc-queue/pom.xml
+++ b/bmc-queue/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-queue
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml
index 86bd0ab4b38..9bd2ec4af94 100644
--- a/bmc-recovery/pom.xml
+++ b/bmc-recovery/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-recovery
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml
index b30dfdf5fb9..106e6d2d708 100644
--- a/bmc-redis/pom.xml
+++ b/bmc-redis/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-redis
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-resourceanalytics/pom.xml b/bmc-resourceanalytics/pom.xml
index 98ce4fd40ca..a951fcde9a3 100644
--- a/bmc-resourceanalytics/pom.xml
+++ b/bmc-resourceanalytics/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-resourceanalytics
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml
index c2e9d3d54ae..72ac772b9b0 100644
--- a/bmc-resourcemanager/pom.xml
+++ b/bmc-resourcemanager/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-resourcemanager
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml
index 90c02a58fef..916e85f7825 100644
--- a/bmc-resourcescheduler/pom.xml
+++ b/bmc-resourcescheduler/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-resourcescheduler
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml
index 0fcb693d9d8..5dbe866ff27 100644
--- a/bmc-resourcesearch/pom.xml
+++ b/bmc-resourcesearch/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-resourcesearch
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml
index ca6220fb127..904703ab5d8 100644
--- a/bmc-rover/pom.xml
+++ b/bmc-rover/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-rover
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml
index 930eb4aecfe..5ae4073b15e 100644
--- a/bmc-sch/pom.xml
+++ b/bmc-sch/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-sch
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml
index 35e043e91ff..48f4d6556d5 100644
--- a/bmc-secrets/pom.xml
+++ b/bmc-secrets/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-secrets
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-securityattribute/pom.xml b/bmc-securityattribute/pom.xml
index c6ee79af388..745ac873de8 100644
--- a/bmc-securityattribute/pom.xml
+++ b/bmc-securityattribute/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-securityattribute
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-self/pom.xml b/bmc-self/pom.xml
index 836aac0ac79..f73b723800c 100644
--- a/bmc-self/pom.xml
+++ b/bmc-self/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-self
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml
index b8d19615f82..aa68373482f 100644
--- a/bmc-servicecatalog/pom.xml
+++ b/bmc-servicecatalog/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-servicecatalog
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml
index 8bfefdb74e8..890e425c10e 100644
--- a/bmc-servicemanagerproxy/pom.xml
+++ b/bmc-servicemanagerproxy/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-servicemanagerproxy
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-shaded/bmc-shaded-full/pom.xml b/bmc-shaded/bmc-shaded-full/pom.xml
index 71e964b31c6..849052cd4bb 100644
--- a/bmc-shaded/bmc-shaded-full/pom.xml
+++ b/bmc-shaded/bmc-shaded-full/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk-shaded
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-shaded-full
diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml
index 17d693aee0b..01ecfb6f187 100644
--- a/bmc-shaded/pom.xml
+++ b/bmc-shaded/pom.xml
@@ -5,7 +5,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml
index 4ca5a2ee725..33382b8c70c 100644
--- a/bmc-stackmonitoring/pom.xml
+++ b/bmc-stackmonitoring/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-stackmonitoring
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml
index 422c671d865..5ec0196d099 100644
--- a/bmc-streaming/pom.xml
+++ b/bmc-streaming/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-streaming
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml
index 0f7d0c22053..e470440a47a 100644
--- a/bmc-tenantmanagercontrolplane/pom.xml
+++ b/bmc-tenantmanagercontrolplane/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-tenantmanagercontrolplane
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml
index fb171f48296..8f426f8abcf 100644
--- a/bmc-threatintelligence/pom.xml
+++ b/bmc-threatintelligence/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-threatintelligence
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml
index 98eb9e75c7b..b6dfa5cbd04 100644
--- a/bmc-usage/pom.xml
+++ b/bmc-usage/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-usage
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml
index 7c82f05ec3f..d63e000f8e6 100644
--- a/bmc-usageapi/pom.xml
+++ b/bmc-usageapi/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-usageapi
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml
index bb695dae17b..3ec3c1720fa 100644
--- a/bmc-vault/pom.xml
+++ b/bmc-vault/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-vault
@@ -15,12 +15,12 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
com.oracle.oci.sdk
oci-java-sdk-workrequests
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml
index 371bf9d3da8..d00c7a828a1 100644
--- a/bmc-vbsinst/pom.xml
+++ b/bmc-vbsinst/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-vbsinst
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml
index c42dce1c18d..591b73fe235 100644
--- a/bmc-visualbuilder/pom.xml
+++ b/bmc-visualbuilder/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-visualbuilder
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml
index 7ef0262ddee..f962be8bb85 100644
--- a/bmc-vnmonitoring/pom.xml
+++ b/bmc-vnmonitoring/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-vnmonitoring
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml
index ef173bbd907..3f7ea843e86 100644
--- a/bmc-vulnerabilityscanning/pom.xml
+++ b/bmc-vulnerabilityscanning/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-vulnerabilityscanning
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml
index 94f2579f825..52ae181042e 100644
--- a/bmc-waa/pom.xml
+++ b/bmc-waa/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-waa
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml
index fef90e9794b..0762d99e51f 100644
--- a/bmc-waas/pom.xml
+++ b/bmc-waas/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-waas
@@ -16,7 +16,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml
index e9e35f28ca9..6ad58c188d9 100644
--- a/bmc-waf/pom.xml
+++ b/bmc-waf/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-waf
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-wlms/pom.xml b/bmc-wlms/pom.xml
index 285e23e4993..9e0e47532b4 100644
--- a/bmc-wlms/pom.xml
+++ b/bmc-wlms/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-wlms
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml
index 41c27c753cf..f0ee0adf893 100644
--- a/bmc-workrequests/pom.xml
+++ b/bmc-workrequests/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-workrequests
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/bmc-zpr/pom.xml b/bmc-zpr/pom.xml
index 825ec09cdba..2f265755875 100644
--- a/bmc-zpr/pom.xml
+++ b/bmc-zpr/pom.xml
@@ -4,7 +4,7 @@
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
../pom.xml
oci-java-sdk-zpr
@@ -15,7 +15,7 @@
com.oracle.oci.sdk
oci-java-sdk-common
- 3.101.0
+ 3.102.0
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index e4f1baa4476..96b19ceca09 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.oracle.oci.sdk
oci-java-sdk
- 3.101.0
+ 3.102.0
pom
Oracle Cloud Infrastructure SDK
This project contains the SDK used for Oracle Cloud Infrastructure