File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
src/main/java/com/sap/ai/sdk/core Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 156156 <plugin >
157157 <groupId >com.sap.cloud.sdk.datamodel</groupId >
158158 <artifactId >openapi-generator-maven-plugin</artifactId >
159- <version >5.15.0-SNAPSHOT</version >
160159 <configuration >
161160 <skip >true</skip >
162161 <!-- TODO: remove this once Cloud SDK 5.15.0 is released -->
Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ public HttpDestination getDestinationForDeploymentByScenario(
130130 return toInferenceDestination (resourceGroup , deploymentId );
131131 }
132132
133+ /**
134+ * Get an {@link ApiClient} to execute requests based on clients generated from OpenAPI
135+ * specifications.
136+ *
137+ * @return A new client object based on {@link #getBaseDestination()}.
138+ */
133139 @ Nonnull
134140 public ApiClient getApiClient () {
135141 val destination = getBaseDestination ();
@@ -176,6 +182,6 @@ private static String buildDeploymentPath(@Nonnull final String deploymentId) {
176182 * @param resourceGroup the resource group of the deleted deployment, usually "default".
177183 */
178184 public void reloadCachedDeployments (@ Nonnull final String resourceGroup ) {
179- new DeploymentResolver ( this ) .reloadDeployments (resourceGroup );
185+ deploymentResolver .reloadDeployments (resourceGroup );
180186 }
181187}
Original file line number Diff line number Diff line change 22
33import lombok .experimental .StandardException ;
44
5+ /** Exception thrown when a lookup for a deployment ID on the AI Core service failed. */
56@ StandardException
67public class DeploymentResolutionException extends RuntimeException {}
You can’t perform that action at this time.
0 commit comments