> completeWithResponse(BinaryData completeReque
* Returns information about the AI model.
* The method makes a REST API call to the `/info` route on the given endpoint.
* Response Body Schema
- *
+ *
*
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ChatCompletionsClient.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ChatCompletionsClient.java
index 77671227e57c..6eb7d2787c15 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ChatCompletionsClient.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ChatCompletionsClient.java
@@ -163,12 +163,12 @@ public Response completeWithResponse(BinaryData completeRequest, Req
* Returns information about the AI model.
* The method makes a REST API call to the `/info` route on the given endpoint.
* Response Body Schema
- *
+ *
*
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsAsyncClient.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsAsyncClient.java
index 652c4d207fa0..38c69d036fbc 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsAsyncClient.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsAsyncClient.java
@@ -83,6 +83,7 @@ public final class EmbeddingsAsyncClient {
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -98,7 +99,7 @@ public final class EmbeddingsAsyncClient {
* }
*
*
- * @param embedRequest The embedRequest parameter.
+ * @param body request options to pass to the endpoint using embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -111,8 +112,8 @@ public final class EmbeddingsAsyncClient {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> embedWithResponse(BinaryData embedRequest, RequestOptions requestOptions) {
- return this.serviceClient.embedWithResponseAsync(embedRequest, requestOptions);
+ Mono> embedWithResponse(BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.embedWithResponseAsync(body, requestOptions);
}
/**
@@ -124,7 +125,7 @@ Mono> embedWithResponse(BinaryData embedRequest, RequestOpt
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClient.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClient.java
index 7acec4c86e0f..d7406a0ba33a 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClient.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClient.java
@@ -81,6 +81,7 @@ public final class EmbeddingsClient {
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -96,7 +97,7 @@ public final class EmbeddingsClient {
* }
*
*
- * @param embedRequest The embedRequest parameter.
+ * @param body request options to pass to the endpoint using embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -108,8 +109,8 @@ public final class EmbeddingsClient {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Response embedWithResponse(BinaryData embedRequest, RequestOptions requestOptions) {
- return this.serviceClient.embedWithResponse(embedRequest, requestOptions);
+ Response embedWithResponse(BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.embedWithResponse(body, requestOptions);
}
/**
@@ -121,7 +122,7 @@ Response embedWithResponse(BinaryData embedRequest, RequestOptions r
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClientBuilder.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClientBuilder.java
index 47e2136b727c..f71af3a95c51 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClientBuilder.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/EmbeddingsClientBuilder.java
@@ -205,7 +205,7 @@ public EmbeddingsClientBuilder credential(TokenCredential tokenCredential) {
* Sets auth domain scopes for client authentication.
*
* @param scopes domain scope to authenticate against.
- * @return the ChatCompletionsClientBuilder.
+ * @return the EmbeddingsClientBuilder.
*/
public EmbeddingsClientBuilder scopes(String[] scopes) {
this.scopes = scopes;
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsAsyncClient.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsAsyncClient.java
index 4ecafd484b61..a6df9a2e45a5 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsAsyncClient.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsAsyncClient.java
@@ -5,11 +5,9 @@
import com.azure.ai.inference.implementation.ImageEmbeddingsClientImpl;
import com.azure.ai.inference.implementation.models.ImageEmbedRequest;
-import com.azure.ai.inference.models.EmbeddingEncodingFormat;
-import com.azure.ai.inference.models.EmbeddingInput;
-import com.azure.ai.inference.models.EmbeddingInputType;
import com.azure.ai.inference.models.EmbeddingsResult;
import com.azure.ai.inference.models.ExtraParameters;
+import com.azure.ai.inference.models.ImageEmbeddingInput;
import com.azure.ai.inference.models.ModelInfo;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ReturnType;
@@ -86,6 +84,7 @@ public final class ImageEmbeddingsAsyncClient {
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -101,7 +100,7 @@ public final class ImageEmbeddingsAsyncClient {
* }
*
*
- * @param embedRequest1 The embedRequest1 parameter.
+ * @param body request options to pass to the endpoint using images embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -114,8 +113,8 @@ public final class ImageEmbeddingsAsyncClient {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono> embedWithResponse(BinaryData embedRequest1, RequestOptions requestOptions) {
- return this.serviceClient.embedWithResponseAsync(embedRequest1, requestOptions);
+ Mono> embedWithResponse(BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.embedWithResponseAsync(body, requestOptions);
}
/**
@@ -127,7 +126,7 @@ Mono> embedWithResponse(BinaryData embedRequest1, RequestOp
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
@@ -148,11 +147,12 @@ Mono> getModelInfoWithResponse(RequestOptions requestOption
}
/**
- * Return the embedding vectors for given images.
- * The method makes a REST API call to the `/images/embeddings` route on the given endpoint.
+ * Return the embedding vectors for given text prompts.
+ * The method makes a REST API call to the `/embeddings` route on the given endpoint.
*
- * @param input Input image to embed. To embed multiple inputs in a single request, pass an array.
- * The input must not exceed the max input tokens for the model.
+ * @param input Inputs, instances of ImageEmbeddingsInput.
+ * To embed multiple inputs in a single request, pass an array
+ * of strings or array of token arrays.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -160,17 +160,16 @@ Mono> getModelInfoWithResponse(RequestOptions requestOption
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return representation of the response data from an embeddings request.
- * Embeddings measure the relatedness of text strings and are commonly used for search, clustering,
+ * Image embeddings measure the relatedness of images and are commonly used for search, clustering,
* recommendations, and other similar scenarios on successful completion of {@link Mono}.
*/
- @Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono embed(List input) {
+ public Mono embed(List input) {
// Generated convenience method for embedWithResponse
RequestOptions requestOptions = new RequestOptions();
- ImageEmbedRequest embedRequest1Obj = new ImageEmbedRequest(input);
- BinaryData embedRequest1 = BinaryData.fromObject(embedRequest1Obj);
- return embedWithResponse(embedRequest1, requestOptions).flatMap(FluxUtil::toMono)
+ ImageEmbedRequest embedRequestObj = new ImageEmbedRequest(input);
+ BinaryData embedRequest = BinaryData.fromObject(embedRequestObj);
+ return embedWithResponse(embedRequest, requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(EmbeddingsResult.class));
}
@@ -198,20 +197,10 @@ Mono getModelInfo() {
* Return the embedding vectors for given images.
* The method makes a REST API call to the `/images/embeddings` route on the given endpoint.
*
- * @param input Input image to embed. To embed multiple inputs in a single request, pass an array.
- * The input must not exceed the max input tokens for the model.
+ * @param body request options to pass to the endpoint using images embeddings path.
* @param extraParams Controls what happens if extra parameters, undefined by the REST API,
* are passed in the JSON request payload.
* This sets the HTTP request header `extra-parameters`.
- * @param dimensions Optional. The number of dimensions the resulting output embeddings should have.
- * Passing null causes the model to use its default value.
- * Returns a 422 error if the model doesn't support the value or parameter.
- * @param encodingFormat Optional. The number of dimensions the resulting output embeddings should have.
- * Passing null causes the model to use its default value.
- * Returns a 422 error if the model doesn't support the value or parameter.
- * @param inputType Optional. The type of the input.
- * Returns a 422 error if the model doesn't support the value or parameter.
- * @param model ID of the specific AI model to use, if more than one model is available on the endpoint.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -224,19 +213,37 @@ Mono getModelInfo() {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Mono embed(List input, ExtraParameters extraParams, Integer dimensions,
- EmbeddingEncodingFormat encodingFormat, EmbeddingInputType inputType, String model) {
+ Mono embed(ImageEmbedRequest body, ExtraParameters extraParams) {
// Generated convenience method for embedWithResponse
RequestOptions requestOptions = new RequestOptions();
- ImageEmbedRequest embedRequest1Obj = new ImageEmbedRequest(input).setDimensions(dimensions)
- .setEncodingFormat(encodingFormat)
- .setInputType(inputType)
- .setModel(model);
- BinaryData embedRequest1 = BinaryData.fromObject(embedRequest1Obj);
if (extraParams != null) {
requestOptions.setHeader(HttpHeaderName.fromString("extra-parameters"), extraParams.toString());
}
- return embedWithResponse(embedRequest1, requestOptions).flatMap(FluxUtil::toMono)
+ return embedWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono)
+ .map(protocolMethodData -> protocolMethodData.toObject(EmbeddingsResult.class));
+ }
+
+ /**
+ * Return the embedding vectors for given images.
+ * The method makes a REST API call to the `/images/embeddings` route on the given endpoint.
+ *
+ * @param body request options to pass to the endpoint using images embeddings path.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return representation of the response data from an embeddings request.
+ * Embeddings measure the relatedness of text strings and are commonly used for search, clustering,
+ * recommendations, and other similar scenarios on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Mono embed(ImageEmbedRequest body) {
+ // Generated convenience method for embedWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ return embedWithResponse(BinaryData.fromObject(body), requestOptions).flatMap(FluxUtil::toMono)
.map(protocolMethodData -> protocolMethodData.toObject(EmbeddingsResult.class));
}
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClient.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClient.java
index 7f3cd6f5314f..49bce791e378 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClient.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClient.java
@@ -5,11 +5,9 @@
import com.azure.ai.inference.implementation.ImageEmbeddingsClientImpl;
import com.azure.ai.inference.implementation.models.ImageEmbedRequest;
-import com.azure.ai.inference.models.EmbeddingEncodingFormat;
-import com.azure.ai.inference.models.EmbeddingInput;
-import com.azure.ai.inference.models.EmbeddingInputType;
import com.azure.ai.inference.models.EmbeddingsResult;
import com.azure.ai.inference.models.ExtraParameters;
+import com.azure.ai.inference.models.ImageEmbeddingInput;
import com.azure.ai.inference.models.ModelInfo;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.ReturnType;
@@ -84,6 +82,7 @@ public final class ImageEmbeddingsClient {
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -99,7 +98,7 @@ public final class ImageEmbeddingsClient {
* }
*
*
- * @param embedRequest1 The embedRequest1 parameter.
+ * @param body request options to pass to the endpoint using images embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -111,8 +110,34 @@ public final class ImageEmbeddingsClient {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- Response embedWithResponse(BinaryData embedRequest1, RequestOptions requestOptions) {
- return this.serviceClient.embedWithResponse(embedRequest1, requestOptions);
+ Response embedWithResponse(BinaryData body, RequestOptions requestOptions) {
+ return this.serviceClient.embedWithResponse(body, requestOptions);
+ }
+
+ /**
+ * Return the embedding vectors for given text prompts.
+ * The method makes a REST API call to the `/embeddings` route on the given endpoint.
+ *
+ * @param inputs ImageEmbeddingInput instances to embed, encoded as a string or array of tokens.
+ * To embed multiple inputs in a single request, pass an array
+ * of strings or array of token arrays.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws HttpResponseException thrown if the request is rejected by server.
+ * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
+ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
+ * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return representation of the response data from an embeddings request.
+ * Embeddings measure the relatedness of text strings and are commonly used for search, clustering,
+ * recommendations, and other similar scenarios.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EmbeddingsResult embed(List inputs) {
+ // Generated convenience method for embedWithResponse
+ RequestOptions requestOptions = new RequestOptions();
+ ImageEmbedRequest embedRequestObj = new ImageEmbedRequest(inputs);
+ BinaryData embedRequest = BinaryData.fromObject(embedRequestObj);
+ return embedWithResponse(embedRequest, requestOptions).getValue().toObject(EmbeddingsResult.class);
}
/**
@@ -124,7 +149,7 @@ Response embedWithResponse(BinaryData embedRequest1, RequestOptions
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
@@ -144,68 +169,59 @@ Response getModelInfoWithResponse(RequestOptions requestOptions) {
}
/**
- * Return the embedding vectors for given images.
- * The method makes a REST API call to the `/images/embeddings` route on the given endpoint.
+ * Returns information about the AI model.
+ * The method makes a REST API call to the `/info` route on the given endpoint.
*
- * @param input Input image to embed. To embed multiple inputs in a single request, pass an array.
- * The input must not exceed the max input tokens for the model.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return representation of the response data from an embeddings request.
- * Embeddings measure the relatedness of text strings and are commonly used for search, clustering,
- * recommendations, and other similar scenarios.
+ * @return represents some basic information about the AI model.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- EmbeddingsResult embed(List input) {
- // Generated convenience method for embedWithResponse
+ ModelInfo getModelInfo() {
+ // Generated convenience method for getModelInfoWithResponse
RequestOptions requestOptions = new RequestOptions();
- ImageEmbedRequest embedRequest1Obj = new ImageEmbedRequest(input);
- BinaryData embedRequest1 = BinaryData.fromObject(embedRequest1Obj);
- return embedWithResponse(embedRequest1, requestOptions).getValue().toObject(EmbeddingsResult.class);
+ return getModelInfoWithResponse(requestOptions).getValue().toObject(ModelInfo.class);
}
/**
- * Returns information about the AI model.
- * The method makes a REST API call to the `/info` route on the given endpoint.
+ * Return the embedding vectors for given images.
+ * The method makes a REST API call to the `/images/embeddings` route on the given endpoint.
*
+ * @param body request options to pass to the endpoint using images embeddings path.
+ * @param extraParams Controls what happens if extra parameters, undefined by the REST API,
+ * are passed in the JSON request payload.
+ * This sets the HTTP request header `extra-parameters`.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
* @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
* @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return represents some basic information about the AI model.
+ * @return representation of the response data from an embeddings request.
+ * Embeddings measure the relatedness of text strings and are commonly used for search, clustering,
+ * recommendations, and other similar scenarios.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- ModelInfo getModelInfo() {
- // Generated convenience method for getModelInfoWithResponse
+ EmbeddingsResult embed(ImageEmbedRequest body, ExtraParameters extraParams) {
+ // Generated convenience method for embedWithResponse
RequestOptions requestOptions = new RequestOptions();
- return getModelInfoWithResponse(requestOptions).getValue().toObject(ModelInfo.class);
+ if (extraParams != null) {
+ requestOptions.setHeader(HttpHeaderName.fromString("extra-parameters"), extraParams.toString());
+ }
+ return embedWithResponse(BinaryData.fromObject(body), requestOptions).getValue()
+ .toObject(EmbeddingsResult.class);
}
/**
* Return the embedding vectors for given images.
* The method makes a REST API call to the `/images/embeddings` route on the given endpoint.
*
- * @param input Input image to embed. To embed multiple inputs in a single request, pass an array.
- * The input must not exceed the max input tokens for the model.
- * @param extraParams Controls what happens if extra parameters, undefined by the REST API,
- * are passed in the JSON request payload.
- * This sets the HTTP request header `extra-parameters`.
- * @param dimensions Optional. The number of dimensions the resulting output embeddings should have.
- * Passing null causes the model to use its default value.
- * Returns a 422 error if the model doesn't support the value or parameter.
- * @param encodingFormat Optional. The number of dimensions the resulting output embeddings should have.
- * Passing null causes the model to use its default value.
- * Returns a 422 error if the model doesn't support the value or parameter.
- * @param inputType Optional. The type of the input.
- * Returns a 422 error if the model doesn't support the value or parameter.
- * @param model ID of the specific AI model to use, if more than one model is available on the endpoint.
+ * @param body request options to pass to the endpoint using images embeddings path.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -218,18 +234,10 @@ ModelInfo getModelInfo() {
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- EmbeddingsResult embed(List input, ExtraParameters extraParams, Integer dimensions,
- EmbeddingEncodingFormat encodingFormat, EmbeddingInputType inputType, String model) {
+ EmbeddingsResult embed(ImageEmbedRequest body) {
// Generated convenience method for embedWithResponse
RequestOptions requestOptions = new RequestOptions();
- ImageEmbedRequest embedRequest1Obj = new ImageEmbedRequest(input).setDimensions(dimensions)
- .setEncodingFormat(encodingFormat)
- .setInputType(inputType)
- .setModel(model);
- BinaryData embedRequest1 = BinaryData.fromObject(embedRequest1Obj);
- if (extraParams != null) {
- requestOptions.setHeader(HttpHeaderName.fromString("extra-parameters"), extraParams.toString());
- }
- return embedWithResponse(embedRequest1, requestOptions).getValue().toObject(EmbeddingsResult.class);
+ return embedWithResponse(BinaryData.fromObject(body), requestOptions).getValue()
+ .toObject(EmbeddingsResult.class);
}
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClientBuilder.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClientBuilder.java
index a9ea0a28beac..e77ba83f5d7b 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClientBuilder.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ImageEmbeddingsClientBuilder.java
@@ -65,6 +65,8 @@ public final class ImageEmbeddingsClientBuilder implements HttpTrait pipelinePolicies;
+ private String[] scopes = DEFAULT_SCOPES;
+
/**
* Create an instance of the ImageEmbeddingsClientBuilder.
*/
@@ -267,6 +269,17 @@ public ImageEmbeddingsClientBuilder retryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets auth domain scopes for client authentication.
+ *
+ * @param scopes domain scope to authenticate against.
+ * @return the ImageEmbeddingsClientBuilder.
+ */
+ public ImageEmbeddingsClientBuilder scopes(String[] scopes) {
+ this.scopes = scopes;
+ return this;
+ }
+
/**
* Builds an instance of ImageEmbeddingsClientImpl with the provided parameters.
*
@@ -317,7 +330,7 @@ private HttpPipeline createHttpPipeline() {
policies.add(new KeyCredentialPolicy("Authorization", keyCredential));
}
if (tokenCredential != null) {
- policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, DEFAULT_SCOPES));
+ policies.add(new BearerTokenAuthenticationPolicy(tokenCredential, this.scopes));
}
this.pipelinePolicies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ModelServiceVersion.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ModelServiceVersion.java
index 269914beaec8..afb04b228d19 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ModelServiceVersion.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/ModelServiceVersion.java
@@ -13,7 +13,12 @@ public enum ModelServiceVersion implements ServiceVersion {
/**
* Enum value 2024-05-01-preview.
*/
- V2024_05_01_PREVIEW("2024-05-01-preview");
+ V2024_05_01_PREVIEW("2024-05-01-preview"),
+
+ /**
+ * Enum value 2024-08-01-preview.
+ */
+ V2024_08_01_PREVIEW("2024-08-01-preview");
private final String version;
@@ -35,6 +40,6 @@ public String getVersion() {
* @return The latest {@link ModelServiceVersion}.
*/
public static ModelServiceVersion getLatest() {
- return V2024_05_01_PREVIEW;
+ return V2024_08_01_PREVIEW;
}
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ChatCompletionsClientImpl.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ChatCompletionsClientImpl.java
index 6d104cd366f5..6a89faaedaea 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ChatCompletionsClientImpl.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ChatCompletionsClientImpl.java
@@ -155,7 +155,7 @@ public interface ChatCompletionsClientService {
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono> complete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData completeRequest,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body,
RequestOptions requestOptions, Context context);
@Post("/chat/completions")
@@ -166,7 +166,7 @@ Mono> complete(@HostParam("endpoint") String endpoint,
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response completeSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData completeRequest,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body,
RequestOptions requestOptions, Context context);
@Get("/info")
@@ -212,7 +212,7 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* {
* messages (Required): [
* (Required){
- * role: String(system/user/assistant/tool) (Required)
+ * role: String(system/user/assistant/tool/developer) (Required)
* }
* ]
* frequency_penalty: Double (Optional)
@@ -265,7 +265,7 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* index: int (Required)
* finish_reason: String(stop/length/content_filter/tool_calls) (Required)
* message (Required): {
- * role: String(system/user/assistant/tool) (Required)
+ * role: String(system/user/assistant/tool/developer) (Required)
* content: String (Required)
* tool_calls (Optional): [
* (Optional){
@@ -284,7 +284,7 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* }
*
*
- * @param completeRequest The completeRequest parameter.
+ * @param body request options to pass to the endpoint using complete path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -295,12 +295,11 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* provided prompt data along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> completeWithResponseAsync(BinaryData completeRequest,
- RequestOptions requestOptions) {
+ public Mono> completeWithResponseAsync(BinaryData body, RequestOptions requestOptions) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.complete(this.getEndpoint(),
- this.getServiceVersion().getVersion(), contentType, accept, completeRequest, requestOptions, context));
+ this.getServiceVersion().getVersion(), contentType, accept, body, requestOptions, context));
}
/**
@@ -325,7 +324,7 @@ public Mono> completeWithResponseAsync(BinaryData completeR
* {
* messages (Required): [
* (Required){
- * role: String(system/user/assistant/tool) (Required)
+ * role: String(system/user/assistant/tool/developer) (Required)
* }
* ]
* frequency_penalty: Double (Optional)
@@ -378,7 +377,7 @@ public Mono> completeWithResponseAsync(BinaryData completeR
* index: int (Required)
* finish_reason: String(stop/length/content_filter/tool_calls) (Required)
* message (Required): {
- * role: String(system/user/assistant/tool) (Required)
+ * role: String(system/user/assistant/tool/developer) (Required)
* content: String (Required)
* tool_calls (Optional): [
* (Optional){
@@ -397,7 +396,7 @@ public Mono> completeWithResponseAsync(BinaryData completeR
* }
*
*
- * @param completeRequest The completeRequest parameter.
+ * @param body request options to pass to the endpoint using complete path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -408,11 +407,11 @@ public Mono> completeWithResponseAsync(BinaryData completeR
* provided prompt data along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response completeWithResponse(BinaryData completeRequest, RequestOptions requestOptions) {
+ public Response completeWithResponse(BinaryData body, RequestOptions requestOptions) {
final String contentType = "application/json";
final String accept = "application/json";
return service.completeSync(this.getEndpoint(), this.getServiceVersion().getVersion(), contentType, accept,
- completeRequest, requestOptions, Context.NONE);
+ body, requestOptions, Context.NONE);
}
/**
@@ -424,7 +423,7 @@ public Response completeWithResponse(BinaryData completeRequest, Req
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
@@ -454,7 +453,7 @@ public Mono> getModelInfoWithResponseAsync(RequestOptions r
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/EmbeddingsClientImpl.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/EmbeddingsClientImpl.java
index bd4e3a445921..3ff757182bbd 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/EmbeddingsClientImpl.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/EmbeddingsClientImpl.java
@@ -154,7 +154,7 @@ public interface EmbeddingsClientService {
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono> embed(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData embedRequest,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body,
RequestOptions requestOptions, Context context);
@Post("/embeddings")
@@ -165,7 +165,7 @@ Mono> embed(@HostParam("endpoint") String endpoint,
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response embedSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData embedRequest,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body,
RequestOptions requestOptions, Context context);
@Get("/info")
@@ -226,6 +226,7 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -241,7 +242,7 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* }
*
*
- * @param embedRequest The embedRequest parameter.
+ * @param body request options to pass to the endpoint using embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -253,11 +254,11 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> embedWithResponseAsync(BinaryData embedRequest, RequestOptions requestOptions) {
+ public Mono> embedWithResponseAsync(BinaryData body, RequestOptions requestOptions) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.embed(this.getEndpoint(), this.getServiceVersion().getVersion(),
- contentType, accept, embedRequest, requestOptions, context));
+ contentType, accept, body, requestOptions, context));
}
/**
@@ -297,6 +298,7 @@ public Mono> embedWithResponseAsync(BinaryData embedRequest
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -312,7 +314,7 @@ public Mono> embedWithResponseAsync(BinaryData embedRequest
* }
*
*
- * @param embedRequest The embedRequest parameter.
+ * @param body request options to pass to the endpoint using embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -323,11 +325,11 @@ public Mono> embedWithResponseAsync(BinaryData embedRequest
* recommendations, and other similar scenarios along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response embedWithResponse(BinaryData embedRequest, RequestOptions requestOptions) {
+ public Response embedWithResponse(BinaryData body, RequestOptions requestOptions) {
final String contentType = "application/json";
final String accept = "application/json";
- return service.embedSync(this.getEndpoint(), this.getServiceVersion().getVersion(), contentType, accept,
- embedRequest, requestOptions, Context.NONE);
+ return service.embedSync(this.getEndpoint(), this.getServiceVersion().getVersion(), contentType, accept, body,
+ requestOptions, Context.NONE);
}
/**
@@ -339,7 +341,7 @@ public Response embedWithResponse(BinaryData embedRequest, RequestOp
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
@@ -369,7 +371,7 @@ public Mono> getModelInfoWithResponseAsync(RequestOptions r
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ImageEmbeddingsClientImpl.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ImageEmbeddingsClientImpl.java
index 06c682f920c2..739594285376 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ImageEmbeddingsClientImpl.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/ImageEmbeddingsClientImpl.java
@@ -155,7 +155,7 @@ public interface ImageEmbeddingsClientService {
@UnexpectedResponseExceptionType(HttpResponseException.class)
Mono> embed(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData embedRequest1,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body,
RequestOptions requestOptions, Context context);
@Post("/images/embeddings")
@@ -166,7 +166,7 @@ Mono> embed(@HostParam("endpoint") String endpoint,
@UnexpectedResponseExceptionType(HttpResponseException.class)
Response embedSync(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData embedRequest1,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") BinaryData body,
RequestOptions requestOptions, Context context);
@Get("/info")
@@ -230,6 +230,7 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -245,7 +246,7 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* }
*
*
- * @param embedRequest1 The embedRequest1 parameter.
+ * @param body request options to pass to the endpoint using images embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -257,11 +258,11 @@ Response getModelInfoSync(@HostParam("endpoint") String endpoint,
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono> embedWithResponseAsync(BinaryData embedRequest1, RequestOptions requestOptions) {
+ public Mono> embedWithResponseAsync(BinaryData body, RequestOptions requestOptions) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil.withContext(context -> service.embed(this.getEndpoint(), this.getServiceVersion().getVersion(),
- contentType, accept, embedRequest1, requestOptions, context));
+ contentType, accept, body, requestOptions, context));
}
/**
@@ -304,6 +305,7 @@ public Mono> embedWithResponseAsync(BinaryData embedRequest
*
* {@code
* {
+ * id: String (Required)
* data (Required): [
* (Required){
* embedding: BinaryData (Required)
@@ -319,7 +321,7 @@ public Mono> embedWithResponseAsync(BinaryData embedRequest
* }
*
*
- * @param embedRequest1 The embedRequest1 parameter.
+ * @param body request options to pass to the endpoint using images embeddings path.
* @param requestOptions The options to configure the HTTP request before HTTP client sends it.
* @throws HttpResponseException thrown if the request is rejected by server.
* @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
@@ -330,11 +332,11 @@ public Mono> embedWithResponseAsync(BinaryData embedRequest
* recommendations, and other similar scenarios along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response embedWithResponse(BinaryData embedRequest1, RequestOptions requestOptions) {
+ public Response embedWithResponse(BinaryData body, RequestOptions requestOptions) {
final String contentType = "application/json";
final String accept = "application/json";
- return service.embedSync(this.getEndpoint(), this.getServiceVersion().getVersion(), contentType, accept,
- embedRequest1, requestOptions, Context.NONE);
+ return service.embedSync(this.getEndpoint(), this.getServiceVersion().getVersion(), contentType, accept, body,
+ requestOptions, Context.NONE);
}
/**
@@ -346,7 +348,7 @@ public Response embedWithResponse(BinaryData embedRequest1, RequestO
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
@@ -376,7 +378,7 @@ public Mono> getModelInfoWithResponseAsync(RequestOptions r
* {@code
* {
* model_name: String (Required)
- * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat) (Required)
+ * model_type: String(embeddings/image_generation/text_generation/image_embeddings/audio_generation/chat_completion) (Required)
* model_provider_name: String (Required)
* }
* }
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/models/ImageEmbedRequest.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/models/ImageEmbedRequest.java
index dea09778466c..b5535023e2f5 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/models/ImageEmbedRequest.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/implementation/models/ImageEmbedRequest.java
@@ -4,8 +4,8 @@
package com.azure.ai.inference.implementation.models;
import com.azure.ai.inference.models.EmbeddingEncodingFormat;
-import com.azure.ai.inference.models.EmbeddingInput;
import com.azure.ai.inference.models.EmbeddingInputType;
+import com.azure.ai.inference.models.ImageEmbeddingInput;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.azure.core.util.BinaryData;
@@ -29,7 +29,7 @@ public final class ImageEmbedRequest implements JsonSerializable input;
+ private final List input;
/*
* Optional. The number of dimensions the resulting output embeddings should have.
@@ -72,7 +72,7 @@ public final class ImageEmbedRequest implements JsonSerializable input) {
+ public ImageEmbedRequest(List input) {
this.input = input;
}
@@ -83,7 +83,7 @@ public ImageEmbedRequest(List input) {
* @return the input value.
*/
@Generated
- public List getInput() {
+ public List getInput() {
return this.input;
}
@@ -245,7 +245,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
@Generated
public static ImageEmbedRequest fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- List input = null;
+ List input = null;
Integer dimensions = null;
EmbeddingEncodingFormat encodingFormat = null;
EmbeddingInputType inputType = null;
@@ -255,7 +255,7 @@ public static ImageEmbedRequest fromJson(JsonReader jsonReader) throws IOExcepti
String fieldName = reader.getFieldName();
reader.nextToken();
if ("input".equals(fieldName)) {
- input = reader.readArray(reader1 -> EmbeddingInput.fromJson(reader1));
+ input = reader.readArray(reader1 -> ImageEmbeddingInput.fromJson(reader1));
} else if ("dimensions".equals(fieldName)) {
dimensions = reader.getNullable(JsonReader::getInt);
} else if ("encoding_format".equals(fieldName)) {
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsFunctionToolSelection.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsFunctionToolSelection.java
deleted file mode 100644
index 9db5a33e0b92..000000000000
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsFunctionToolSelection.java
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-package com.azure.ai.inference.models;
-
-import com.azure.core.annotation.Generated;
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * A tool selection of a specific, named function tool that will limit chat completions to using the named function.
- */
-@Immutable
-public final class ChatCompletionsFunctionToolSelection
- implements JsonSerializable {
-
- /*
- * The name of the function that should be called.
- */
- @Generated
- private final String name;
-
- /**
- * Creates an instance of ChatCompletionsFunctionToolSelection class.
- *
- * @param name the name value to set.
- */
- @Generated
- public ChatCompletionsFunctionToolSelection(String name) {
- this.name = name;
- }
-
- /**
- * Get the name property: The name of the function that should be called.
- *
- * @return the name value.
- */
- @Generated
- public String getName() {
- return this.name;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("name", this.name);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ChatCompletionsFunctionToolSelection from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ChatCompletionsFunctionToolSelection if the JsonReader was pointing to an instance of it,
- * or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ChatCompletionsFunctionToolSelection.
- */
- @Generated
- public static ChatCompletionsFunctionToolSelection fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- String name = null;
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
- if ("name".equals(fieldName)) {
- name = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
- return new ChatCompletionsFunctionToolSelection(name);
- });
- }
-}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedFunctionToolSelection.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedFunctionToolSelection.java
deleted file mode 100644
index 8bd85b26b30c..000000000000
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedFunctionToolSelection.java
+++ /dev/null
@@ -1,107 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.ai.inference.models;
-
-import com.azure.core.annotation.Generated;
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * A tool selection of a specific, named function tool that will limit chat completions to using the named function.
- */
-@Immutable
-public final class ChatCompletionsNamedFunctionToolSelection extends ChatCompletionsNamedToolSelection {
- /*
- * The object type.
- */
- @Generated
- private String type = "function";
-
- /*
- * The function that should be called.
- */
- @Generated
- private ChatCompletionsFunctionToolSelection function;
-
- /**
- * Creates an instance of ChatCompletionsNamedFunctionToolSelection class.
- *
- * @param function the function value to set.
- */
- @Generated
- public ChatCompletionsNamedFunctionToolSelection(ChatCompletionsFunctionToolSelection function) {
- super(function);
- }
-
- /**
- * Get the type property: The object type.
- *
- * @return the type value.
- */
- @Generated
- @Override
- public String getType() {
- return this.type;
- }
-
- /**
- * Get the function property: The function that should be called.
- *
- * @return the function value.
- */
- @Generated
- public ChatCompletionsFunctionToolSelection getFunction() {
- return this.function;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("function", this.function);
- jsonWriter.writeStringField("type", this.type);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ChatCompletionsNamedFunctionToolSelection from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ChatCompletionsNamedFunctionToolSelection if the JsonReader was pointing to an instance of
- * it, or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ChatCompletionsNamedFunctionToolSelection.
- */
- @Generated
- public static ChatCompletionsNamedFunctionToolSelection fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ChatCompletionsFunctionToolSelection function = null;
- String type = "function";
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("function".equals(fieldName)) {
- function = ChatCompletionsFunctionToolSelection.fromJson(reader);
- } else if ("type".equals(fieldName)) {
- type = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
- ChatCompletionsNamedFunctionToolSelection deserializedChatCompletionsNamedFunctionToolSelection
- = new ChatCompletionsNamedFunctionToolSelection(function);
- deserializedChatCompletionsNamedFunctionToolSelection.type = type;
-
- return deserializedChatCompletionsNamedFunctionToolSelection;
- });
- }
-}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolChoice.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolChoice.java
new file mode 100644
index 000000000000..d8b43f29a025
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolChoice.java
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * A tool selection of a specific, named function tool that will limit chat completions to using the named function.
+ */
+@Immutable
+public class ChatCompletionsNamedToolChoice implements JsonSerializable {
+
+ /*
+ * The type of the tool. Currently, only `function` is supported.
+ */
+ @Generated
+ private final String type = "function";
+
+ /*
+ * The function that should be called.
+ */
+ @Generated
+ private final ChatCompletionsNamedToolChoiceFunction function;
+
+ /**
+ * Creates an instance of ChatCompletionsNamedToolChoice class.
+ *
+ * @param function the function value to set.
+ */
+ @Generated
+ public ChatCompletionsNamedToolChoice(ChatCompletionsNamedToolChoiceFunction function) {
+ this.function = function;
+ }
+
+ /**
+ * Get the type property: The type of the tool. Currently, only `function` is supported.
+ *
+ * @return the type value.
+ */
+ @Generated
+ public String getType() {
+ return this.type;
+ }
+
+ /**
+ * Get the function property: The function that should be called.
+ *
+ * @return the function value.
+ */
+ @Generated
+ public ChatCompletionsNamedToolChoiceFunction getFunction() {
+ return this.function;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Generated
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeJsonField("function", this.function);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChatCompletionsNamedToolChoice from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChatCompletionsNamedToolChoice if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ChatCompletionsNamedToolChoice.
+ */
+ @Generated
+ public static ChatCompletionsNamedToolChoice fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChatCompletionsNamedToolChoiceFunction function = null;
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+ if ("function".equals(fieldName)) {
+ function = ChatCompletionsNamedToolChoiceFunction.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+ return new ChatCompletionsNamedToolChoice(function);
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolChoiceFunction.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolChoiceFunction.java
new file mode 100644
index 000000000000..24115a4bca04
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolChoiceFunction.java
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * A tool selection of a specific, named function tool that will limit chat completions to using the named function.
+ */
+@Immutable
+public final class ChatCompletionsNamedToolChoiceFunction
+ implements JsonSerializable {
+
+ /*
+ * The name of the function that should be called.
+ */
+ @Generated
+ private final String name;
+
+ /**
+ * Creates an instance of ChatCompletionsNamedToolChoiceFunction class.
+ *
+ * @param name the name value to set.
+ */
+ @Generated
+ public ChatCompletionsNamedToolChoiceFunction(String name) {
+ this.name = name;
+ }
+
+ /**
+ * Get the name property: The name of the function that should be called.
+ *
+ * @return the name value.
+ */
+ @Generated
+ public String getName() {
+ return this.name;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Generated
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChatCompletionsNamedToolChoiceFunction from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChatCompletionsNamedToolChoiceFunction if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ChatCompletionsNamedToolChoiceFunction.
+ */
+ @Generated
+ public static ChatCompletionsNamedToolChoiceFunction fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String name = null;
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+ if ("name".equals(fieldName)) {
+ name = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+ return new ChatCompletionsNamedToolChoiceFunction(name);
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolSelection.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolSelection.java
deleted file mode 100644
index 3eb8ccaf531a..000000000000
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsNamedToolSelection.java
+++ /dev/null
@@ -1,99 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-package com.azure.ai.inference.models;
-
-import com.azure.core.annotation.Generated;
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * A tool selection of a specific, named function tool that will limit chat completions to using the named function.
- */
-@Immutable
-public class ChatCompletionsNamedToolSelection implements JsonSerializable {
-
- /*
- * The type of the tool. Currently, only `function` is supported.
- */
- @Generated
- private final String type = "function";
-
- /*
- * The function that should be called.
- */
- @Generated
- private final ChatCompletionsFunctionToolSelection function;
-
- /**
- * Creates an instance of ChatCompletionsNamedToolSelection class.
- *
- * @param function the function value to set.
- */
- @Generated
- public ChatCompletionsNamedToolSelection(ChatCompletionsFunctionToolSelection function) {
- this.function = function;
- }
-
- /**
- * Get the type property: The type of the tool. Currently, only `function` is supported.
- *
- * @return the type value.
- */
- @Generated
- public String getType() {
- return this.type;
- }
-
- /**
- * Get the function property: The function that should be called.
- *
- * @return the function value.
- */
- @Generated
- public ChatCompletionsFunctionToolSelection getFunction() {
- return this.function;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("type", this.type);
- jsonWriter.writeJsonField("function", this.function);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ChatCompletionsNamedToolSelection from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ChatCompletionsNamedToolSelection if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the ChatCompletionsNamedToolSelection.
- */
- @Generated
- public static ChatCompletionsNamedToolSelection fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ChatCompletionsFunctionToolSelection function = null;
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
- if ("function".equals(fieldName)) {
- function = ChatCompletionsFunctionToolSelection.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
- return new ChatCompletionsNamedToolSelection(function);
- });
- }
-}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsOptions.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsOptions.java
index d3a382d9e169..8f5bac952b09 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsOptions.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsOptions.java
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
-
package com.azure.ai.inference.models;
import com.azure.ai.inference.implementation.accesshelpers.ChatCompletionsOptionsAccessHelper;
@@ -12,24 +11,28 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-
import java.io.IOException;
+import java.util.LinkedHashMap;
import java.util.List;
+import java.util.Map;
/**
- * Options for complete API.
+ * The ChatCompletionsOptions model.
*/
@Fluent
public final class ChatCompletionsOptions implements JsonSerializable {
+
static {
ChatCompletionsOptionsAccessHelper
.setAccessor(new ChatCompletionsOptionsAccessHelper.ChatCompletionsOptionsAccessor() {
+
@Override
public void setStream(ChatCompletionsOptions options, boolean stream) {
options.setStream(stream);
}
});
}
+
/*
* The collection of context messages associated with this chat completions request.
* Typical usage begins with a chat message for the System role that provides instructions for
@@ -95,9 +98,19 @@ public void setStream(ChatCompletionsOptions options, boolean stream) {
private Integer maxTokens;
/*
- * The format that the model must output. Use this to enable JSON mode instead of the default text mode.
- * Note that to enable JSON mode, some AI models may also require you to instruct the model to produce JSON
- * via a system or user message.
+ * An object specifying the format that the model must output.
+ *
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model
+ * will match your supplied JSON schema.
+ *
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid
+ * JSON.
+ *
+ * **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system
+ * or user message. Without this, the model may generate an unending stream of whitespace until the generation
+ * reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message
+ * content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded
+ * `max_tokens` or the conversation exceeded the max context length.
*/
@Generated
private ChatCompletionsResponseFormat responseFormat;
@@ -109,7 +122,8 @@ public void setStream(ChatCompletionsOptions options, boolean stream) {
private List stop;
/*
- * The available tool definitions that the chat completions request can use, including caller-defined functions.
+ * A list of tools the model may request to call. Currently, only functions are supported as a tool. The model
+ * may response with a function call request and provide the input arguments in JSON format for that function.
*/
@Generated
private List tools;
@@ -138,7 +152,6 @@ public void setStream(ChatCompletionsOptions options, boolean stream) {
* are passed in the JSON request payload.
* This sets the HTTP request header `extra-parameters`.
*/
- @Generated
private ExtraParameters extraParams;
/**
@@ -340,10 +353,19 @@ public ChatCompletionsOptions setMaxTokens(Integer maxTokens) {
}
/**
- * Get the responseFormat property: The format that the model must output. Use this to enable JSON mode instead of
- * the default text mode.
- * Note that to enable JSON mode, some AI models may also require you to instruct the model to produce JSON
- * via a system or user message.
+ * Get the responseFormat property: An object specifying the format that the model must output.
+ *
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model
+ * will match your supplied JSON schema.
+ *
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid
+ * JSON.
+ *
+ * **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system
+ * or user message. Without this, the model may generate an unending stream of whitespace until the generation
+ * reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message
+ * content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded
+ * `max_tokens` or the conversation exceeded the max context length.
*
* @return the responseFormat value.
*/
@@ -353,10 +375,19 @@ public ChatCompletionsResponseFormat getResponseFormat() {
}
/**
- * Set the responseFormat property: The format that the model must output. Use this to enable JSON mode instead of
- * the default text mode.
- * Note that to enable JSON mode, some AI models may also require you to instruct the model to produce JSON
- * via a system or user message.
+ * Set the responseFormat property: An object specifying the format that the model must output.
+ *
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model
+ * will match your supplied JSON schema.
+ *
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid
+ * JSON.
+ *
+ * **Important:** when using JSON mode, you **must** also instruct the model to produce JSON yourself via a system
+ * or user message. Without this, the model may generate an unending stream of whitespace until the generation
+ * reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message
+ * content may be partially cut off if `finish_reason="length"`, which indicates the generation exceeded
+ * `max_tokens` or the conversation exceeded the max context length.
*
* @param responseFormat the responseFormat value to set.
* @return the ChatCompletionsOptions object itself.
@@ -367,6 +398,20 @@ public ChatCompletionsOptions setResponseFormat(ChatCompletionsResponseFormat re
return this;
}
+ /**
+ * Set the responseFormat to a given JSON schema: The format that the model must output. Use this to enable JSON
+ * mode instead of
+ *
+ * @param name the name of the schema.
+ * @param jsonSchema the JSON schema value to set.
+ * @return the ChatCompletionsOptions object itself.
+ */
+ public ChatCompletionsOptions setJsonFormat(String name, Map jsonSchema) {
+ this.responseFormat = new ChatCompletionsResponseFormatJsonSchema(
+ new ChatCompletionsResponseFormatJsonSchemaDefinition(name, jsonSchema));
+ return this;
+ }
+
/**
* Get the stop property: A collection of textual sequences that will end completions generation.
*
@@ -390,8 +435,9 @@ public ChatCompletionsOptions setStop(List stop) {
}
/**
- * Get the tools property: The available tool definitions that the chat completions request can use, including
- * caller-defined functions.
+ * Get the tools property: A list of tools the model may request to call. Currently, only functions are supported as
+ * a tool. The model
+ * may response with a function call request and provide the input arguments in JSON format for that function.
*
* @return the tools value.
*/
@@ -401,8 +447,9 @@ public List getTools() {
}
/**
- * Set the tools property: The available tool definitions that the chat completions request can use, including
- * caller-defined functions.
+ * Set the tools property: A list of tools the model may request to call. Currently, only functions are supported as
+ * a tool. The model
+ * may response with a function call request and provide the input arguments in JSON format for that function.
*
* @param tools the tools value to set.
* @return the ChatCompletionsOptions object itself.
@@ -492,7 +539,6 @@ public ChatCompletionsOptions setModel(String model) {
*
* @return the extraParams value.
*/
- @Generated
public ExtraParameters getExtraParams() {
return this.extraParams;
}
@@ -505,7 +551,6 @@ public ExtraParameters getExtraParams() {
* @param extraParams the extraParams value to set.
* @return the ChatCompletionsOptions object itself.
*/
- @Generated
public ChatCompletionsOptions setExtraParams(ExtraParameters extraParams) {
this.extraParams = extraParams;
return this;
@@ -513,6 +558,7 @@ public ChatCompletionsOptions setExtraParams(ExtraParameters extraParams) {
/**
* {@inheritDoc}
+ *
* @throws IOException If an error occurs while writing fields to the ChatCompletionsOptions instance.
*/
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
@@ -548,66 +594,100 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
public static ChatCompletionsOptions fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
List messages = null;
- Integer maxTokens = null;
- Double temperature = null;
- Double topP = null;
- List stop = null;
- Double presencePenalty = null;
Double frequencyPenalty = null;
Boolean stream = null;
- String model = null;
- Long seed = null;
+ Double presencePenalty = null;
+ Double temperature = null;
+ Double topP = null;
+ Integer maxTokens = null;
ChatCompletionsResponseFormat responseFormat = null;
+ List stop = null;
List tools = null;
BinaryData toolChoice = null;
+ Long seed = null;
+ String model = null;
+ Map additionalProperties = null;
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("messages".equals(fieldName)) {
- messages = reader.readArray(ChatRequestMessage::fromJson);
- } else if ("max_tokens".equals(fieldName)) {
- maxTokens = reader.getNullable(JsonReader::getInt);
- } else if ("temperature".equals(fieldName)) {
- temperature = reader.getNullable(JsonReader::getDouble);
- } else if ("top_p".equals(fieldName)) {
- topP = reader.getNullable(JsonReader::getDouble);
- } else if ("stop".equals(fieldName)) {
- stop = reader.readArray(JsonReader::getString);
- } else if ("presence_penalty".equals(fieldName)) {
- presencePenalty = reader.getNullable(JsonReader::getDouble);
+ messages = reader.readArray(reader1 -> ChatRequestMessage.fromJson(reader1));
} else if ("frequency_penalty".equals(fieldName)) {
frequencyPenalty = reader.getNullable(JsonReader::getDouble);
} else if ("stream".equals(fieldName)) {
stream = reader.getNullable(JsonReader::getBoolean);
- } else if ("model".equals(fieldName)) {
- model = reader.getString();
- } else if ("seed".equals(fieldName)) {
- seed = reader.getNullable(JsonReader::getLong);
+ } else if ("presence_penalty".equals(fieldName)) {
+ presencePenalty = reader.getNullable(JsonReader::getDouble);
+ } else if ("temperature".equals(fieldName)) {
+ temperature = reader.getNullable(JsonReader::getDouble);
+ } else if ("top_p".equals(fieldName)) {
+ topP = reader.getNullable(JsonReader::getDouble);
+ } else if ("max_tokens".equals(fieldName)) {
+ maxTokens = reader.getNullable(JsonReader::getInt);
} else if ("response_format".equals(fieldName)) {
responseFormat = ChatCompletionsResponseFormat.fromJson(reader);
+ } else if ("stop".equals(fieldName)) {
+ stop = reader.readArray(reader1 -> reader1.getString());
} else if ("tools".equals(fieldName)) {
- tools = reader.readArray(ChatCompletionsToolDefinition::fromJson);
+ tools = reader.readArray(reader1 -> ChatCompletionsToolDefinition.fromJson(reader1));
} else if ("tool_choice".equals(fieldName)) {
toolChoice
= reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped()));
+ } else if ("seed".equals(fieldName)) {
+ seed = reader.getNullable(JsonReader::getLong);
+ } else if ("model".equals(fieldName)) {
+ model = reader.getString();
} else {
- reader.skipChildren();
+ if (additionalProperties == null) {
+ additionalProperties = new LinkedHashMap<>();
+ }
+ additionalProperties.put(fieldName,
+ reader.getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())));
}
}
ChatCompletionsOptions deserializedChatCompletionsOptions = new ChatCompletionsOptions(messages);
- deserializedChatCompletionsOptions.maxTokens = maxTokens;
- deserializedChatCompletionsOptions.temperature = temperature;
- deserializedChatCompletionsOptions.topP = topP;
- deserializedChatCompletionsOptions.stop = stop;
- deserializedChatCompletionsOptions.presencePenalty = presencePenalty;
deserializedChatCompletionsOptions.frequencyPenalty = frequencyPenalty;
deserializedChatCompletionsOptions.stream = stream;
- deserializedChatCompletionsOptions.model = model;
- deserializedChatCompletionsOptions.seed = seed;
+ deserializedChatCompletionsOptions.presencePenalty = presencePenalty;
+ deserializedChatCompletionsOptions.temperature = temperature;
+ deserializedChatCompletionsOptions.topP = topP;
+ deserializedChatCompletionsOptions.maxTokens = maxTokens;
deserializedChatCompletionsOptions.responseFormat = responseFormat;
+ deserializedChatCompletionsOptions.stop = stop;
deserializedChatCompletionsOptions.tools = tools;
deserializedChatCompletionsOptions.toolChoice = toolChoice;
+ deserializedChatCompletionsOptions.seed = seed;
+ deserializedChatCompletionsOptions.model = model;
+ deserializedChatCompletionsOptions.additionalProperties = additionalProperties;
return deserializedChatCompletionsOptions;
});
}
+
+ /*
+ * The ChatCompletionsOptions model
+ */
+ @Generated
+ private Map additionalProperties;
+
+ /**
+ * Get the additionalProperties property: The ChatCompletionsOptions model.
+ *
+ * @return the additionalProperties value.
+ */
+ @Generated
+ public Map getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ /**
+ * Set the additionalProperties property: The ChatCompletionsOptions model.
+ *
+ * @param additionalProperties the additionalProperties value to set.
+ * @return the ChatCompletionsOptions object itself.
+ */
+ @Generated
+ public ChatCompletionsOptions setAdditionalProperties(Map additionalProperties) {
+ this.additionalProperties = additionalProperties;
+ return this;
+ }
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormat.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormat.java
index 984ba391e541..e3a9759f3330 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormat.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormat.java
@@ -82,7 +82,9 @@ public static ChatCompletionsResponseFormat fromJson(JsonReader jsonReader) thro
if ("text".equals(discriminatorValue)) {
return ChatCompletionsResponseFormatText.fromJson(readerToUse.reset());
} else if ("json_object".equals(discriminatorValue)) {
- return ChatCompletionsResponseFormatJson.fromJson(readerToUse.reset());
+ return ChatCompletionsResponseFormatJsonObject.fromJson(readerToUse.reset());
+ } else if ("json_schema".equals(discriminatorValue)) {
+ return ChatCompletionsResponseFormatJsonSchema.fromJson(readerToUse.reset());
} else {
return fromJsonKnownDiscriminator(readerToUse.reset());
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJson.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJson.java
deleted file mode 100644
index 86db6bdbea4f..000000000000
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJson.java
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-package com.azure.ai.inference.models;
-
-import com.azure.core.annotation.Generated;
-import com.azure.core.annotation.Immutable;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-
-/**
- * A response format for Chat Completions that restricts responses to emitting valid JSON objects.
- * Note that to enable JSON mode, some AI models may also require you to instruct the model to produce JSON
- * via a system or user message.
- */
-@Immutable
-public final class ChatCompletionsResponseFormatJson extends ChatCompletionsResponseFormat {
-
- /*
- * The response format type to use for chat completions.
- */
- @Generated
- private String type = "json_object";
-
- /**
- * Creates an instance of ChatCompletionsResponseFormatJson class.
- */
- @Generated
- public ChatCompletionsResponseFormatJson() {
- }
-
- /**
- * Get the type property: The response format type to use for chat completions.
- *
- * @return the type value.
- */
- @Generated
- @Override
- public String getType() {
- return this.type;
- }
-
- /**
- * {@inheritDoc}
- */
- @Generated
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("type", this.type);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ChatCompletionsResponseFormatJson from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ChatCompletionsResponseFormatJson if the JsonReader was pointing to an instance of it, or
- * null if it was pointing to JSON null.
- * @throws IOException If an error occurs while reading the ChatCompletionsResponseFormatJson.
- */
- @Generated
- public static ChatCompletionsResponseFormatJson fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ChatCompletionsResponseFormatJson deserializedChatCompletionsResponseFormatJson
- = new ChatCompletionsResponseFormatJson();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
- if ("type".equals(fieldName)) {
- deserializedChatCompletionsResponseFormatJson.type = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
- return deserializedChatCompletionsResponseFormatJson;
- });
- }
-}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonObject.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonObject.java
new file mode 100644
index 000000000000..bbf7092bfd23
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonObject.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * A response format for Chat Completions that restricts responses to emitting valid JSON objects.
+ * Note that to enable JSON mode, some AI models may also require you to instruct the model to produce JSON
+ * via a system or user message.
+ */
+@Immutable
+public final class ChatCompletionsResponseFormatJsonObject extends ChatCompletionsResponseFormat {
+
+ /*
+ * The response format type to use for chat completions.
+ */
+ @Generated
+ private String type = "json_object";
+
+ /**
+ * Creates an instance of ChatCompletionsResponseFormatJsonObject class.
+ */
+ @Generated
+ public ChatCompletionsResponseFormatJsonObject() {
+ }
+
+ /**
+ * Get the type property: The response format type to use for chat completions.
+ *
+ * @return the type value.
+ */
+ @Generated
+ @Override
+ public String getType() {
+ return this.type;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Generated
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("type", this.type);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChatCompletionsResponseFormatJsonObject from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChatCompletionsResponseFormatJsonObject if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ChatCompletionsResponseFormatJsonObject.
+ */
+ @Generated
+ public static ChatCompletionsResponseFormatJsonObject fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChatCompletionsResponseFormatJsonObject deserializedChatCompletionsResponseFormatJsonObject
+ = new ChatCompletionsResponseFormatJsonObject();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+ if ("type".equals(fieldName)) {
+ deserializedChatCompletionsResponseFormatJsonObject.type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+ return deserializedChatCompletionsResponseFormatJsonObject;
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonSchema.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonSchema.java
new file mode 100644
index 000000000000..607d671b6439
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonSchema.java
@@ -0,0 +1,106 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * A response format for Chat Completions that restricts responses to emitting valid JSON objects, with a
+ * JSON schema specified by the caller.
+ */
+@Immutable
+public final class ChatCompletionsResponseFormatJsonSchema extends ChatCompletionsResponseFormat {
+
+ /*
+ * The response format type to use for chat completions.
+ */
+ @Generated
+ private String type = "json_schema";
+
+ /*
+ * The definition of the required JSON schema in the response, and associated metadata.
+ */
+ @Generated
+ private final ChatCompletionsResponseFormatJsonSchemaDefinition jsonSchema;
+
+ /**
+ * Creates an instance of ChatCompletionsResponseFormatJsonSchema class.
+ *
+ * @param jsonSchema the jsonSchema value to set.
+ */
+ @Generated
+ public ChatCompletionsResponseFormatJsonSchema(ChatCompletionsResponseFormatJsonSchemaDefinition jsonSchema) {
+ this.jsonSchema = jsonSchema;
+ }
+
+ /**
+ * Get the type property: The response format type to use for chat completions.
+ *
+ * @return the type value.
+ */
+ @Generated
+ @Override
+ public String getType() {
+ return this.type;
+ }
+
+ /**
+ * Get the jsonSchema property: The definition of the required JSON schema in the response, and associated metadata.
+ *
+ * @return the jsonSchema value.
+ */
+ @Generated
+ public ChatCompletionsResponseFormatJsonSchemaDefinition getJsonSchema() {
+ return this.jsonSchema;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Generated
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("json_schema", this.jsonSchema);
+ jsonWriter.writeStringField("type", this.type);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChatCompletionsResponseFormatJsonSchema from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChatCompletionsResponseFormatJsonSchema if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ChatCompletionsResponseFormatJsonSchema.
+ */
+ @Generated
+ public static ChatCompletionsResponseFormatJsonSchema fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ChatCompletionsResponseFormatJsonSchemaDefinition jsonSchema = null;
+ String type = "json_schema";
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+ if ("json_schema".equals(fieldName)) {
+ jsonSchema = ChatCompletionsResponseFormatJsonSchemaDefinition.fromJson(reader);
+ } else if ("type".equals(fieldName)) {
+ type = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+ ChatCompletionsResponseFormatJsonSchema deserializedChatCompletionsResponseFormatJsonSchema
+ = new ChatCompletionsResponseFormatJsonSchema(jsonSchema);
+ deserializedChatCompletionsResponseFormatJsonSchema.type = type;
+ return deserializedChatCompletionsResponseFormatJsonSchema;
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonSchemaDefinition.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonSchemaDefinition.java
new file mode 100644
index 000000000000..a78011ea77be
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsResponseFormatJsonSchemaDefinition.java
@@ -0,0 +1,198 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Generated;
+import com.azure.core.util.BinaryData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Defines the response format for chat completions as JSON with a given schema. The AI model
+ * will need to adhere to this schema when generating completions.
+ */
+@Fluent
+public final class ChatCompletionsResponseFormatJsonSchemaDefinition
+ implements JsonSerializable {
+
+ /*
+ * A name that labels this JSON schema. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum
+ * length of 64.
+ */
+ @Generated
+ private final String name;
+
+ /*
+ * The definition of the JSON schema. See https://json-schema.org/overview/what-is-jsonschema.
+ * Note that AI models usually only support a subset of the keywords defined by JSON schema. Consult your AI model
+ * documentation
+ * to determine what is supported.
+ */
+ @Generated
+ private final Map schema;
+
+ /*
+ * A description of the response format, used by the AI model to determine how to generate responses in this format.
+ */
+ @Generated
+ private String description;
+
+ /*
+ * If set to true, the service will error out if the provided JSON schema contains keywords
+ * not supported by the AI model. An example of such keyword may be `maxLength` for JSON type `string`.
+ * If false, and the provided JSON schema contains keywords not supported
+ * by the AI model, the AI model will not error out. Instead it will ignore the unsupported keywords.
+ */
+ @Generated
+ private Boolean strict;
+
+ /**
+ * Creates an instance of ChatCompletionsResponseFormatJsonSchemaDefinition class.
+ *
+ * @param name the name value to set.
+ * @param schema the schema value to set.
+ */
+ @Generated
+ public ChatCompletionsResponseFormatJsonSchemaDefinition(String name, Map schema) {
+ this.name = name;
+ this.schema = schema;
+ }
+
+ /**
+ * Get the name property: A name that labels this JSON schema. Must be a-z, A-Z, 0-9, or contain underscores and
+ * dashes, with a maximum length of 64.
+ *
+ * @return the name value.
+ */
+ @Generated
+ public String getName() {
+ return this.name;
+ }
+
+ /**
+ * Get the schema property: The definition of the JSON schema. See
+ * https://json-schema.org/overview/what-is-jsonschema.
+ * Note that AI models usually only support a subset of the keywords defined by JSON schema. Consult your AI model
+ * documentation
+ * to determine what is supported.
+ *
+ * @return the schema value.
+ */
+ @Generated
+ public Map getSchema() {
+ return this.schema;
+ }
+
+ /**
+ * Get the description property: A description of the response format, used by the AI model to determine how to
+ * generate responses in this format.
+ *
+ * @return the description value.
+ */
+ @Generated
+ public String getDescription() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: A description of the response format, used by the AI model to determine how to
+ * generate responses in this format.
+ *
+ * @param description the description value to set.
+ * @return the ChatCompletionsResponseFormatJsonSchemaDefinition object itself.
+ */
+ @Generated
+ public ChatCompletionsResponseFormatJsonSchemaDefinition setDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the strict property: If set to true, the service will error out if the provided JSON schema contains keywords
+ * not supported by the AI model. An example of such keyword may be `maxLength` for JSON type `string`.
+ * If false, and the provided JSON schema contains keywords not supported
+ * by the AI model, the AI model will not error out. Instead it will ignore the unsupported keywords.
+ *
+ * @return the strict value.
+ */
+ @Generated
+ public Boolean isStrict() {
+ return this.strict;
+ }
+
+ /**
+ * Set the strict property: If set to true, the service will error out if the provided JSON schema contains keywords
+ * not supported by the AI model. An example of such keyword may be `maxLength` for JSON type `string`.
+ * If false, and the provided JSON schema contains keywords not supported
+ * by the AI model, the AI model will not error out. Instead it will ignore the unsupported keywords.
+ *
+ * @param strict the strict value to set.
+ * @return the ChatCompletionsResponseFormatJsonSchemaDefinition object itself.
+ */
+ @Generated
+ public ChatCompletionsResponseFormatJsonSchemaDefinition setStrict(Boolean strict) {
+ this.strict = strict;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Generated
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeMapField("schema", this.schema,
+ (writer, element) -> writer.writeUntyped(element == null ? null : element.toObject(Object.class)));
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeBooleanField("strict", this.strict);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChatCompletionsResponseFormatJsonSchemaDefinition from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChatCompletionsResponseFormatJsonSchemaDefinition if the JsonReader was pointing to an
+ * instance of it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ChatCompletionsResponseFormatJsonSchemaDefinition.
+ */
+ @Generated
+ public static ChatCompletionsResponseFormatJsonSchemaDefinition fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String name = null;
+ Map schema = null;
+ String description = null;
+ Boolean strict = null;
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+ if ("name".equals(fieldName)) {
+ name = reader.getString();
+ } else if ("schema".equals(fieldName)) {
+ schema = reader.readMap(reader1 -> reader1
+ .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())));
+ } else if ("description".equals(fieldName)) {
+ description = reader.getString();
+ } else if ("strict".equals(fieldName)) {
+ strict = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+ ChatCompletionsResponseFormatJsonSchemaDefinition deserializedChatCompletionsResponseFormatJsonSchemaDefinition
+ = new ChatCompletionsResponseFormatJsonSchemaDefinition(name, schema);
+ deserializedChatCompletionsResponseFormatJsonSchemaDefinition.description = description;
+ deserializedChatCompletionsResponseFormatJsonSchemaDefinition.strict = strict;
+ return deserializedChatCompletionsResponseFormatJsonSchemaDefinition;
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsToolChoicePreset.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsToolChoicePreset.java
new file mode 100644
index 000000000000..e21aa21ad081
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsToolChoicePreset.java
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Generated;
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Represents a generic policy for how a chat completions tool may be selected.
+ */
+public final class ChatCompletionsToolChoicePreset extends ExpandableStringEnum {
+
+ /**
+ * Specifies that the model may either use any of the tools provided in this chat completions request or
+ * instead return a standard chat completions response as if no tools were provided.
+ */
+ @Generated
+ public static final ChatCompletionsToolChoicePreset AUTO = fromString("auto");
+
+ /**
+ * Specifies that the model should not respond with a tool call and should instead provide a standard chat
+ * completions response. Response content may still be influenced by the provided tool definitions.
+ */
+ @Generated
+ public static final ChatCompletionsToolChoicePreset NONE = fromString("none");
+
+ /**
+ * Specifies that the model should respond with a call to one or more tools.
+ */
+ @Generated
+ public static final ChatCompletionsToolChoicePreset REQUIRED = fromString("required");
+
+ /**
+ * Creates a new instance of ChatCompletionsToolChoicePreset value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Generated
+ @Deprecated
+ public ChatCompletionsToolChoicePreset() {
+ }
+
+ /**
+ * Creates or finds a ChatCompletionsToolChoicePreset from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ChatCompletionsToolChoicePreset.
+ */
+ @Generated
+ public static ChatCompletionsToolChoicePreset fromString(String name) {
+ return fromString(name, ChatCompletionsToolChoicePreset.class);
+ }
+
+ /**
+ * Gets known ChatCompletionsToolChoicePreset values.
+ *
+ * @return known ChatCompletionsToolChoicePreset values.
+ */
+ @Generated
+ public static Collection values() {
+ return values(ChatCompletionsToolChoicePreset.class);
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsToolSelectionPreset.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsToolSelectionPreset.java
deleted file mode 100644
index c67d318b47e1..000000000000
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatCompletionsToolSelectionPreset.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-package com.azure.ai.inference.models;
-
-import com.azure.core.annotation.Generated;
-import com.azure.core.util.ExpandableStringEnum;
-import java.util.Collection;
-
-/**
- * Represents a generic policy for how a chat completions tool may be selected.
- */
-public final class ChatCompletionsToolSelectionPreset extends ExpandableStringEnum {
-
- /**
- * Specifies that the model may either use any of the tools provided in this chat completions request or
- * instead return a standard chat completions response as if no tools were provided.
- */
- @Generated
- public static final ChatCompletionsToolSelectionPreset AUTO = fromString("auto");
-
- /**
- * Specifies that the model should not respond with a tool call and should instead provide a standard chat
- * completions response. Response content may still be influenced by the provided tool definitions.
- */
- @Generated
- public static final ChatCompletionsToolSelectionPreset NONE = fromString("none");
-
- /**
- * Specifies that the model should respond with a call to one or more tools.
- */
- @Generated
- public static final ChatCompletionsToolSelectionPreset REQUIRED = fromString("required");
-
- /**
- * Creates a new instance of ChatCompletionsToolSelectionPreset value.
- *
- * @deprecated Use the {@link #fromString(String)} factory method.
- */
- @Generated
- @Deprecated
- public ChatCompletionsToolSelectionPreset() {
- }
-
- /**
- * Creates or finds a ChatCompletionsToolSelectionPreset from its string representation.
- *
- * @param name a name to look for.
- * @return the corresponding ChatCompletionsToolSelectionPreset.
- */
- @Generated
- public static ChatCompletionsToolSelectionPreset fromString(String name) {
- return fromString(name, ChatCompletionsToolSelectionPreset.class);
- }
-
- /**
- * Gets known ChatCompletionsToolSelectionPreset values.
- *
- * @return known ChatCompletionsToolSelectionPreset values.
- */
- @Generated
- public static Collection values() {
- return values(ChatCompletionsToolSelectionPreset.class);
- }
-}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestDeveloperMessage.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestDeveloperMessage.java
new file mode 100644
index 000000000000..971003bcb062
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestDeveloperMessage.java
@@ -0,0 +1,107 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Generated;
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * A request chat message containing developer instructions that influence how the model will generate a chat
+ * completions
+ * response. Some AI models support a developer message instead of a system message.
+ */
+@Immutable
+public final class ChatRequestDeveloperMessage extends ChatRequestMessage {
+
+ /*
+ * The chat role associated with this message.
+ */
+ @Generated
+ private ChatRole role = ChatRole.DEVELOPER;
+
+ /*
+ * The contents of the developer message.
+ */
+ @Generated
+ private final String content;
+
+ /**
+ * Creates an instance of ChatRequestDeveloperMessage class.
+ *
+ * @param content the content value to set.
+ */
+ @Generated
+ public ChatRequestDeveloperMessage(String content) {
+ this.content = content;
+ }
+
+ /**
+ * Get the role property: The chat role associated with this message.
+ *
+ * @return the role value.
+ */
+ @Generated
+ @Override
+ public ChatRole getRole() {
+ return this.role;
+ }
+
+ /**
+ * Get the content property: The contents of the developer message.
+ *
+ * @return the content value.
+ */
+ @Generated
+ public String getContent() {
+ return this.content;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Generated
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("content", this.content);
+ jsonWriter.writeStringField("role", this.role == null ? null : this.role.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ChatRequestDeveloperMessage from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ChatRequestDeveloperMessage if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ChatRequestDeveloperMessage.
+ */
+ @Generated
+ public static ChatRequestDeveloperMessage fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String content = null;
+ ChatRole role = ChatRole.DEVELOPER;
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+ if ("content".equals(fieldName)) {
+ content = reader.getString();
+ } else if ("role".equals(fieldName)) {
+ role = ChatRole.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+ ChatRequestDeveloperMessage deserializedChatRequestDeveloperMessage
+ = new ChatRequestDeveloperMessage(content);
+ deserializedChatRequestDeveloperMessage.role = role;
+ return deserializedChatRequestDeveloperMessage;
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestMessage.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestMessage.java
index e6a9e1868b74..6c53e10404b5 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestMessage.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestMessage.java
@@ -79,6 +79,8 @@ public static ChatRequestMessage fromJson(JsonReader jsonReader) throws IOExcept
// Use the discriminator value to determine which subtype should be deserialized.
if ("system".equals(discriminatorValue)) {
return ChatRequestSystemMessage.fromJson(readerToUse.reset());
+ } else if ("developer".equals(discriminatorValue)) {
+ return ChatRequestDeveloperMessage.fromJson(readerToUse.reset());
} else if ("user".equals(discriminatorValue)) {
return ChatRequestUserMessage.fromJson(readerToUse.reset());
} else if ("assistant".equals(discriminatorValue)) {
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestToolMessage.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestToolMessage.java
index 16dca9ee729d..2f22977d8f1b 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestToolMessage.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRequestToolMessage.java
@@ -3,8 +3,8 @@
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.ai.inference.models;
+import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
-import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -13,7 +13,7 @@
/**
* A request chat message representing requested output from a configured tool.
*/
-@Immutable
+@Fluent
public final class ChatRequestToolMessage extends ChatRequestMessage {
/*
@@ -26,7 +26,7 @@ public final class ChatRequestToolMessage extends ChatRequestMessage {
* The content of the message.
*/
@Generated
- private final String content;
+ private String content;
/*
* The ID of the tool call resolved by the provided content.
@@ -34,18 +34,6 @@ public final class ChatRequestToolMessage extends ChatRequestMessage {
@Generated
private final String toolCallId;
- /**
- * Creates an instance of ChatRequestToolMessage class.
- *
- * @param content the content value to set.
- * @param toolCallId the toolCallId value to set.
- */
- @Generated
- public ChatRequestToolMessage(String content, String toolCallId) {
- this.content = content;
- this.toolCallId = toolCallId;
- }
-
/**
* Get the role property: The chat role associated with this message.
*
@@ -84,9 +72,9 @@ public String getToolCallId() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("content", this.content);
jsonWriter.writeStringField("tool_call_id", this.toolCallId);
jsonWriter.writeStringField("role", this.role == null ? null : this.role.toString());
+ jsonWriter.writeStringField("content", this.content);
return jsonWriter.writeEndObject();
}
@@ -99,28 +87,50 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the ChatRequestToolMessage.
*/
- @Generated
public static ChatRequestToolMessage fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- String content = null;
String toolCallId = null;
ChatRole role = ChatRole.TOOL;
+ String content = null;
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("content".equals(fieldName)) {
- content = reader.getString();
- } else if ("tool_call_id".equals(fieldName)) {
+ if ("tool_call_id".equals(fieldName)) {
toolCallId = reader.getString();
} else if ("role".equals(fieldName)) {
role = ChatRole.fromString(reader.getString());
+ } else if ("content".equals(fieldName)) {
+ content = reader.getString();
} else {
reader.skipChildren();
}
}
- ChatRequestToolMessage deserializedChatRequestToolMessage = new ChatRequestToolMessage(content, toolCallId);
+ ChatRequestToolMessage deserializedChatRequestToolMessage
+ = new ChatRequestToolMessage(toolCallId).setContent(content);
deserializedChatRequestToolMessage.role = role;
return deserializedChatRequestToolMessage;
});
}
+
+ /**
+ * Creates an instance of ChatRequestToolMessage class.
+ *
+ * @param toolCallId the toolCallId value to set.
+ */
+ @Generated
+ public ChatRequestToolMessage(String toolCallId) {
+ this.toolCallId = toolCallId;
+ }
+
+ /**
+ * Set the content property: The content of the message.
+ *
+ * @param content the content value to set.
+ * @return the ChatRequestToolMessage object itself.
+ */
+ @Generated
+ public ChatRequestToolMessage setContent(String content) {
+ this.content = content;
+ return this;
+ }
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRole.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRole.java
index 10faab5bd750..2e8a1f4373db 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRole.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ChatRole.java
@@ -66,4 +66,11 @@ public static ChatRole fromString(String name) {
public static Collection values() {
return values(ChatRole.class);
}
+
+ /**
+ * The role that instructs or sets the behavior of the assistant. Some AI models support this role instead of the
+ * 'system' role.
+ */
+ @Generated
+ public static final ChatRole DEVELOPER = fromString("developer");
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingInputType.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingInputType.java
index 2fbe119da216..c3c33976e136 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingInputType.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingInputType.java
@@ -13,19 +13,19 @@
public final class EmbeddingInputType extends ExpandableStringEnum {
/**
- * to do.
+ * Indicates the input is a general text input.
*/
@Generated
public static final EmbeddingInputType TEXT = fromString("text");
/**
- * to do.
+ * Indicates the input represents a search query to find the most relevant documents in your vector database.
*/
@Generated
public static final EmbeddingInputType QUERY = fromString("query");
/**
- * to do.
+ * Indicates the input represents a document that is stored in a vector database.
*/
@Generated
public static final EmbeddingInputType DOCUMENT = fromString("document");
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingsResult.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingsResult.java
index 486fb8b128ab..c35121aa75a9 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingsResult.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/EmbeddingsResult.java
@@ -38,20 +38,6 @@ public final class EmbeddingsResult implements JsonSerializable data, EmbeddingsUsage usage, String model) {
- this.data = data;
- this.usage = usage;
- this.model = model;
- }
-
/**
* Get the data property: Embedding values for the prompts submitted in the request.
*
@@ -89,6 +75,7 @@ public String getModel() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
jsonWriter.writeArrayField("data", this.data, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("usage", this.usage);
jsonWriter.writeStringField("model", this.model);
@@ -107,13 +94,16 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
@Generated
public static EmbeddingsResult fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
+ String id = null;
List data = null;
EmbeddingsUsage usage = null;
String model = null;
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("data".equals(fieldName)) {
+ if ("id".equals(fieldName)) {
+ id = reader.getString();
+ } else if ("data".equals(fieldName)) {
data = reader.readArray(reader1 -> EmbeddingItem.fromJson(reader1));
} else if ("usage".equals(fieldName)) {
usage = EmbeddingsUsage.fromJson(reader);
@@ -123,7 +113,39 @@ public static EmbeddingsResult fromJson(JsonReader jsonReader) throws IOExceptio
reader.skipChildren();
}
}
- return new EmbeddingsResult(data, usage, model);
+ return new EmbeddingsResult(id, data, usage, model);
});
}
+
+ /*
+ * Unique identifier for the embeddings result.
+ */
+ @Generated
+ private final String id;
+
+ /**
+ * Creates an instance of EmbeddingsResult class.
+ *
+ * @param id the id value to set.
+ * @param data the data value to set.
+ * @param usage the usage value to set.
+ * @param model the model value to set.
+ */
+ @Generated
+ private EmbeddingsResult(String id, List data, EmbeddingsUsage usage, String model) {
+ this.id = id;
+ this.data = data;
+ this.usage = usage;
+ this.model = model;
+ }
+
+ /**
+ * Get the id property: Unique identifier for the embeddings result.
+ *
+ * @return the id value.
+ */
+ @Generated
+ public String getId() {
+ return this.id;
+ }
}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ImageEmbeddingInput.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ImageEmbeddingInput.java
new file mode 100644
index 000000000000..269cce4595a2
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ImageEmbeddingInput.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+package com.azure.ai.inference.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Generated;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.util.Base64;
+
+/**
+ * Represents an image with optional text.
+ */
+@Fluent
+public final class ImageEmbeddingInput implements JsonSerializable {
+
+ /*
+ * The input image encoded in base64 string as a data URL. Example: `data:image/{format};base64,{data}`.
+ */
+ @Generated
+ private final String image;
+
+ /*
+ * Optional. The text input to feed into the model (like DINO, CLIP).
+ * Returns a 422 error if the model doesn't support the value or parameter.
+ */
+ @Generated
+ private String text;
+
+ /**
+ * Creates an instance of ImageEmbeddingInput class.
+ *
+ * @param filePath path to the imageFile.
+ * @param imageFormatType format of the image
+ * @throws RuntimeException If an error occurs while reading the file or file not found.
+ */
+ public ImageEmbeddingInput(Path filePath, String imageFormatType) {
+ try {
+ byte[] bytes = Files.readAllBytes(filePath);
+ String encodedFile = new String(Base64.getEncoder().encode(bytes), StandardCharsets.UTF_8);
+ String urlTemplate = "data:image/%s;base64,%s";
+ this.image = String.format(urlTemplate, imageFormatType, encodedFile);
+ } catch (FileNotFoundException e) {
+ throw new RuntimeException("Local file not found.", e);
+ } catch (IOException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ /**
+ * Creates an instance of ImageEmbeddingInput class.
+ *
+ * @param image the image value to set.
+ */
+ @Generated
+ public ImageEmbeddingInput(String image) {
+ this.image = image;
+ }
+
+ /**
+ * Get the image property: The input image encoded in base64 string as a data URL. Example:
+ * `data:image/{format};base64,{data}`.
+ *
+ * @return the image value.
+ */
+ @Generated
+ public String getImage() {
+ return this.image;
+ }
+
+ /**
+ * Get the text property: Optional. The text input to feed into the model (like DINO, CLIP).
+ * Returns a 422 error if the model doesn't support the value or parameter.
+ *
+ * @return the text value.
+ */
+ @Generated
+ public String getText() {
+ return this.text;
+ }
+
+ /**
+ * Set the text property: Optional. The text input to feed into the model (like DINO, CLIP).
+ * Returns a 422 error if the model doesn't support the value or parameter.
+ *
+ * @param text the text value to set.
+ * @return the ImageEmbeddingInput object itself.
+ */
+ @Generated
+ public ImageEmbeddingInput setText(String text) {
+ this.text = text;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Generated
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("image", this.image);
+ jsonWriter.writeStringField("text", this.text);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ImageEmbeddingInput from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ImageEmbeddingInput if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ImageEmbeddingInput.
+ */
+ @Generated
+ public static ImageEmbeddingInput fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ String image = null;
+ String text = null;
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+ if ("image".equals(fieldName)) {
+ image = reader.getString();
+ } else if ("text".equals(fieldName)) {
+ text = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+ ImageEmbeddingInput deserializedImageEmbeddingInput = new ImageEmbeddingInput(image);
+ deserializedImageEmbeddingInput.text = text;
+ return deserializedImageEmbeddingInput;
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ModelType.java b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ModelType.java
index be9e52d19d3a..21950a99b797 100644
--- a/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ModelType.java
+++ b/sdk/ai/azure-ai-inference/src/main/java/com/azure/ai/inference/models/ModelType.java
@@ -13,41 +13,35 @@
public final class ModelType extends ExpandableStringEnum {
/**
- * Embeddings.
+ * A model capable of generating embeddings from a text.
*/
@Generated
public static final ModelType EMBEDDINGS = fromString("embeddings");
/**
- * Image generation.
+ * A model capable of generating images from an image and text description.
*/
@Generated
public static final ModelType IMAGE_GENERATION = fromString("image_generation");
/**
- * Text generation.
+ * A text generation model.
*/
@Generated
public static final ModelType TEXT_GENERATION = fromString("text_generation");
/**
- * Image embeddings.
+ * A model capable of generating embeddings from an image.
*/
@Generated
public static final ModelType IMAGE_EMBEDDINGS = fromString("image_embeddings");
/**
- * Audio generation.
+ * A text-to-audio generative model.
*/
@Generated
public static final ModelType AUDIO_GENERATION = fromString("audio_generation");
- /**
- * Chat completions.
- */
- @Generated
- public static final ModelType CHAT = fromString("chat");
-
/**
* Creates a new instance of ModelType value.
*
@@ -78,4 +72,10 @@ public static ModelType fromString(String name) {
public static Collection values() {
return values(ModelType.class);
}
+
+ /**
+ * A model capable of taking chat-formatted messages and generate responses.
+ */
+ @Generated
+ public static final ModelType CHAT_COMPLETION = fromString("chat_completion");
}
diff --git a/sdk/ai/azure-ai-inference/src/main/resources/META-INF/azure-ai-inference_apiview_properties.json b/sdk/ai/azure-ai-inference/src/main/resources/META-INF/azure-ai-inference_apiview_properties.json
index 01ba4716738e..a471885c492c 100644
--- a/sdk/ai/azure-ai-inference/src/main/resources/META-INF/azure-ai-inference_apiview_properties.json
+++ b/sdk/ai/azure-ai-inference/src/main/resources/META-INF/azure-ai-inference_apiview_properties.json
@@ -34,26 +34,28 @@
"com.azure.ai.inference.ImageEmbeddingsClient.getModelInfo": "Customizations.Client3.getModelInfo",
"com.azure.ai.inference.ImageEmbeddingsClient.getModelInfoWithResponse": "Customizations.Client3.getModelInfo",
"com.azure.ai.inference.ImageEmbeddingsClientBuilder": "Customizations.Client3",
- "com.azure.ai.inference.implementation.models.CompleteOptions": "null",
- "com.azure.ai.inference.implementation.models.CompleteRequest": "Customizations.complete.Request.anonymous",
"com.azure.ai.inference.implementation.models.EmbedRequest": "Customizations.embed.Request.anonymous",
"com.azure.ai.inference.implementation.models.EmbedRequest1": "Customizations.embed.Request.anonymous",
"com.azure.ai.inference.models.ChatChoice": "AI.Model.ChatChoice",
"com.azure.ai.inference.models.ChatCompletions": "AI.Model.ChatCompletions",
- "com.azure.ai.inference.models.ChatCompletionsFunctionToolSelection": "AI.Model.ChatCompletionsFunctionToolSelection",
- "com.azure.ai.inference.models.ChatCompletionsNamedToolSelection": "AI.Model.ChatCompletionsNamedToolSelection",
+ "com.azure.ai.inference.models.ChatCompletionsNamedToolChoice": "AI.Model.ChatCompletionsNamedToolChoice",
+ "com.azure.ai.inference.models.ChatCompletionsNamedToolChoiceFunction": "AI.Model.ChatCompletionsNamedToolChoiceFunction",
+ "com.azure.ai.inference.models.ChatCompletionsOptions": "AI.Model.ChatCompletionsOptions",
"com.azure.ai.inference.models.ChatCompletionsResponseFormat": "AI.Model.ChatCompletionsResponseFormat",
- "com.azure.ai.inference.models.ChatCompletionsResponseFormatJson": "AI.Model.ChatCompletionsResponseFormatJSON",
+ "com.azure.ai.inference.models.ChatCompletionsResponseFormatJsonObject": "AI.Model.ChatCompletionsResponseFormatJsonObject",
+ "com.azure.ai.inference.models.ChatCompletionsResponseFormatJsonSchema": "AI.Model.ChatCompletionsResponseFormatJsonSchema",
+ "com.azure.ai.inference.models.ChatCompletionsResponseFormatJsonSchemaDefinition": "AI.Model.ChatCompletionsResponseFormatJsonSchemaDefinition",
"com.azure.ai.inference.models.ChatCompletionsResponseFormatText": "AI.Model.ChatCompletionsResponseFormatText",
"com.azure.ai.inference.models.ChatCompletionsToolCall": "AI.Model.ChatCompletionsToolCall",
+ "com.azure.ai.inference.models.ChatCompletionsToolChoicePreset": "AI.Model.ChatCompletionsToolChoicePreset",
"com.azure.ai.inference.models.ChatCompletionsToolDefinition": "AI.Model.ChatCompletionsToolDefinition",
- "com.azure.ai.inference.models.ChatCompletionsToolSelectionPreset": "AI.Model.ChatCompletionsToolSelectionPreset",
"com.azure.ai.inference.models.ChatMessageContentItem": "AI.Model.ChatMessageContentItem",
"com.azure.ai.inference.models.ChatMessageImageContentItem": "AI.Model.ChatMessageImageContentItem",
"com.azure.ai.inference.models.ChatMessageImageDetailLevel": "AI.Model.ChatMessageImageDetailLevel",
"com.azure.ai.inference.models.ChatMessageImageUrl": "AI.Model.ChatMessageImageUrl",
"com.azure.ai.inference.models.ChatMessageTextContentItem": "AI.Model.ChatMessageTextContentItem",
"com.azure.ai.inference.models.ChatRequestAssistantMessage": "AI.Model.ChatRequestAssistantMessage",
+ "com.azure.ai.inference.models.ChatRequestDeveloperMessage": "AI.Model.ChatRequestDeveloperMessage",
"com.azure.ai.inference.models.ChatRequestMessage": "AI.Model.ChatRequestMessage",
"com.azure.ai.inference.models.ChatRequestSystemMessage": "AI.Model.ChatRequestSystemMessage",
"com.azure.ai.inference.models.ChatRequestToolMessage": "AI.Model.ChatRequestToolMessage",
@@ -63,7 +65,6 @@
"com.azure.ai.inference.models.CompletionsFinishReason": "AI.Model.CompletionsFinishReason",
"com.azure.ai.inference.models.CompletionsUsage": "AI.Model.CompletionsUsage",
"com.azure.ai.inference.models.EmbeddingEncodingFormat": "AI.Model.EmbeddingEncodingFormat",
- "com.azure.ai.inference.models.EmbeddingInput": "AI.Model.EmbeddingInput",
"com.azure.ai.inference.models.EmbeddingInputType": "AI.Model.EmbeddingInputType",
"com.azure.ai.inference.models.EmbeddingItem": "AI.Model.EmbeddingItem",
"com.azure.ai.inference.models.EmbeddingsResult": "AI.Model.EmbeddingsResult",
@@ -71,11 +72,8 @@
"com.azure.ai.inference.models.ExtraParameters": "AI.Model.ExtraParameters",
"com.azure.ai.inference.models.FunctionCall": "AI.Model.FunctionCall",
"com.azure.ai.inference.models.FunctionDefinition": "AI.Model.FunctionDefinition",
+ "com.azure.ai.inference.models.ImageEmbeddingInput": "AI.Model.ImageEmbeddingInput",
"com.azure.ai.inference.models.ModelInfo": "AI.Model.ModelInfo",
- "com.azure.ai.inference.models.ModelType": "AI.Model.ModelType",
- "com.azure.ai.inference.models.StreamingChatChoiceUpdate": "AI.Model.StreamingChatChoiceUpdate",
- "com.azure.ai.inference.models.StreamingChatCompletionsUpdate": "AI.Model.StreamingChatCompletionsUpdate",
- "com.azure.ai.inference.models.StreamingChatResponseMessageUpdate": "AI.Model.StreamingChatResponseMessageUpdate",
- "com.azure.ai.inference.models.StreamingChatResponseToolCallUpdate": "AI.Model.StreamingChatResponseToolCallUpdate"
+ "com.azure.ai.inference.models.ModelType": "AI.Model.ModelType"
}
}
diff --git a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/ChatCompletionsToolCallSample.java b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/ChatCompletionsToolCallSample.java
index 90c9d515dbc0..982e980671b2 100644
--- a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/ChatCompletionsToolCallSample.java
+++ b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/ChatCompletionsToolCallSample.java
@@ -98,7 +98,7 @@ private static List handleFunctionCallResponse(List inputList = new ArrayList<>();
+ Path testFilePath = Paths.get(TEST_IMAGE_PATH);
+ inputList.add(new ImageEmbeddingInput(testFilePath, TEST_IMAGE_FORMAT));
+
+ client.embed(inputList).subscribe(
+ embeddings -> {
+ for (EmbeddingItem item : embeddings.getData()) {
+ System.out.printf("Index: %d.%n", item.getIndex());
+ System.out.println("Embedding as list of floats: ");
+ for (Float embedding : item.getEmbeddingList()) {
+ System.out.printf("%f;", embedding);
+ }
+ }
+ EmbeddingsUsage usage = embeddings.getUsage();
+ System.out.println("");
+ System.out.printf(
+ "Usage: number of prompt token is %d and number of total tokens in request and response is %d.%n",
+ usage.getPromptTokens(), usage.getTotalTokens());
+ },
+ error -> System.err.println("There was an error getting embeddings." + error),
+ () -> System.out.println("Completed called getEmbeddings."));
+
+ // The .subscribe() creation and assignment is not a blocking call. For the purpose of this example, we sleep
+ // the thread so the program does not end before the send operation is complete. Using .block() instead of
+ // .subscribe() will turn this into a synchronous call.
+ TimeUnit.SECONDS.sleep(10);
+
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/ImageEmbeddingsSample.java b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/ImageEmbeddingsSample.java
new file mode 100644
index 000000000000..06d6fe0fea6c
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/ImageEmbeddingsSample.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.ai.inference.usage;
+
+import com.azure.ai.inference.ImageEmbeddingsClient;
+import com.azure.ai.inference.ImageEmbeddingsClientBuilder;
+import com.azure.ai.inference.models.EmbeddingsResult;
+import com.azure.ai.inference.models.ImageEmbeddingInput;
+import com.azure.ai.inference.models.EmbeddingItem;
+import com.azure.core.credential.AzureKeyCredential;
+import com.azure.core.util.Configuration;
+
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.ArrayList;
+import java.util.List;
+
+public final class ImageEmbeddingsSample {
+ private static final String TEST_IMAGE_PATH = "./src/samples/resources/sample-images/sample.png";
+ private static final String TEST_IMAGE_FORMAT = "png";
+ /**
+ * @param args Unused. Arguments to the program.
+ */
+ public static void main(String[] args) {
+ String key = Configuration.getGlobalConfiguration().get("AZURE_IMAGE_EMBEDDINGS_KEY");
+ String endpoint = Configuration.getGlobalConfiguration().get("IMAGE_EMBEDDINGS_MODEL_ENDPOINT");
+ ImageEmbeddingsClient client = new ImageEmbeddingsClientBuilder()
+ .credential(new AzureKeyCredential(key))
+ .endpoint(endpoint)
+ .buildClient();
+
+ List inputList = new ArrayList<>();
+ Path testFilePath = Paths.get(TEST_IMAGE_PATH);
+ inputList.add(new ImageEmbeddingInput(testFilePath, TEST_IMAGE_FORMAT));
+
+ EmbeddingsResult embeddings = client.embed(inputList);
+
+ for (EmbeddingItem item : embeddings.getData()) {
+ System.out.printf("Index: %d.%n", item.getIndex());
+ for (Float embedding : item.getEmbeddingList()) {
+ System.out.printf("%f;", embedding);
+ }
+ }
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/StreamingToolCallSample.java b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/StreamingToolCallSample.java
index fe3384ee028a..a88280e8e82a 100644
--- a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/StreamingToolCallSample.java
+++ b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/StreamingToolCallSample.java
@@ -122,7 +122,7 @@ public static void main(String[] args) {
String functionCallResult = futureTemperature(parameters.locationName, parameters.date);
// This message contains the information that will allow the LLM to resume the text generation
- ChatRequestToolMessage toolRequestMessage = new ChatRequestToolMessage(functionCallResult, toolCallId);
+ ChatRequestToolMessage toolRequestMessage = new ChatRequestToolMessage(toolCallId).setContent(functionCallResult);
List followUpMessages = Arrays.asList(
// We add the original messages from the request
chatMessages.get(0),
diff --git a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/StructuredJsonChatSample.java b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/StructuredJsonChatSample.java
new file mode 100644
index 000000000000..df493f080fd0
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/StructuredJsonChatSample.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.ai.inference.usage;
+
+import com.azure.ai.inference.ChatCompletionsClient;
+import com.azure.ai.inference.ChatCompletionsClientBuilder;
+import com.azure.ai.inference.models.ChatCompletions;
+import com.azure.ai.inference.models.ChatCompletionsOptions;
+import com.azure.ai.inference.models.ChatRequestMessage;
+import com.azure.ai.inference.models.ChatRequestSystemMessage;
+import com.azure.ai.inference.models.ChatRequestUserMessage;
+import com.azure.core.credential.AzureKeyCredential;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Configuration;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.HashMap;
+
+public final class StructuredJsonChatSample {
+ /**
+ * @param args Unused. Arguments to the program.
+ */
+ public static void main(String[] args) {
+ String jsonSchema = "{ \"ingredients\": {"
+ + "\"type\": \"array\","
+ + "\"items\": { \"type\": \"string\" } },"
+ + "\"steps\": { \"type\": \"array\", \"items\": {"
+ + "\"type\": \"object\", \"properties\": {"
+ + "\"ingredients\": {"
+ + "\"type\": \"array\","
+ + "\"items\": {"
+ + "\"type\": \"string\""
+ + "}"
+ + "},"
+ + "\"directions\": {"
+ + "\"type\": \"string\""
+ + "}"
+ + "}"
+ + "}"
+ + "},"
+ + "\"prep_time\": {"
+ + "\"type\": \"string\""
+ + "},"
+ + "\"bake_time\": {"
+ + "\"type\": \"string\""
+ + "} }";
+
+ Map recipeSchema = new HashMap() {{
+ put("type", BinaryData.fromString("\"object\""));
+ put("properties", BinaryData.fromString(jsonSchema));
+ put("required", BinaryData.fromString("[\"ingredients\", \"steps\", \"bake_time\"]"));
+ put("additionalProperties", BinaryData.fromString("false"));
+ }};
+
+ String key = Configuration.getGlobalConfiguration().get("AZURE_API_KEY");
+ String endpoint = Configuration.getGlobalConfiguration().get("MODEL_ENDPOINT");
+
+ ChatCompletionsClient client = new ChatCompletionsClientBuilder()
+ .credential(new AzureKeyCredential(key))
+ .endpoint(endpoint)
+ .buildClient();
+
+ List chatMessages = new ArrayList<>();
+ chatMessages.add(new ChatRequestSystemMessage("You are a helpful assistant."));
+ chatMessages.add(new ChatRequestUserMessage("Please give me directions and ingredients to bake a chocolate cake."));
+
+ ChatCompletionsOptions chatCompletionsOptions = new ChatCompletionsOptions(chatMessages).setJsonFormat("cakeBakingDirections", recipeSchema);
+
+ ChatCompletions completions = client.complete(chatCompletionsOptions);
+
+ System.out.printf("%s.%n", completions.getChoice().getMessage().getContent());
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceChatCompletionsToolCallSample.java b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceChatCompletionsToolCallSample.java
index cace3c7c8a72..d4dd98ec5767 100644
--- a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceChatCompletionsToolCallSample.java
+++ b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceChatCompletionsToolCallSample.java
@@ -191,7 +191,7 @@ private Optional tryInvoke(ChatCompletionsToolCall toolC
} else {
functionResponse = "Unavailable";
}
- return Optional.of(new ChatRequestToolMessage(functionResponse, toolCall.getId()));
+ return Optional.of(new ChatRequestToolMessage(toolCall.getId()).setContent(functionResponse));
}
return Optional.empty();
}
@@ -248,7 +248,7 @@ private Optional tryInvoke(ChatCompletionsToolCall toolC
} else {
functionResponse = "Unavailable";
}
- return Optional.of(new ChatRequestToolMessage(functionResponse, toolCall.getId()));
+ return Optional.of(new ChatRequestToolMessage(toolCall.getId()).setContent(functionResponse));
}
return Optional.empty();
}
diff --git a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceStreamingChatCompletionsToolCallSample.java b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceStreamingChatCompletionsToolCallSample.java
index 367e696a463e..ac5df2320668 100644
--- a/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceStreamingChatCompletionsToolCallSample.java
+++ b/sdk/ai/azure-ai-inference/src/samples/java/com/azure/ai/inference/usage/TraceStreamingChatCompletionsToolCallSample.java
@@ -226,7 +226,7 @@ private Optional tryInvoke(ChatCompletionsToolCall toolC
} else {
functionResponse = "{\"error\": \"No flights found between the cities\"}";
}
- return Optional.of(new ChatRequestToolMessage(functionResponse, toolCallId));
+ return Optional.of(new ChatRequestToolMessage(toolCallId).setContent(functionResponse));
}
return Optional.empty();
}
diff --git a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ChatCompletionsSyncClientTest.java b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ChatCompletionsSyncClientTest.java
index 3ce620fbe67d..9a3ed10dd9cd 100644
--- a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ChatCompletionsSyncClientTest.java
+++ b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ChatCompletionsSyncClientTest.java
@@ -32,10 +32,7 @@
import com.azure.core.util.ConfigurationBuilder;
import com.azure.core.util.IterableStream;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
+import com.azure.json.*;
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.context.Context;
import io.opentelemetry.sdk.OpenTelemetrySdk;
@@ -51,7 +48,9 @@
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
import java.util.concurrent.ConcurrentLinkedDeque;
import java.util.stream.Collectors;
@@ -61,6 +60,8 @@
import static com.azure.ai.inference.ChatCompletionClientTracerTest.assertNoChatEventsCaptured;
import static com.azure.ai.inference.ChatCompletionClientTracerTest.getChatSpan;
import static com.azure.ai.inference.TestUtils.DISPLAY_NAME_WITH_ARGUMENTS;
+import static com.azure.ai.inference.TestUtils.TEST_IMAGE_PATH;
+import static com.azure.ai.inference.TestUtils.TEST_IMAGE_FORMAT;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertSame;
@@ -72,8 +73,6 @@ public class ChatCompletionsSyncClientTest extends ChatCompletionsClientTestBase
private static final String FUNCTION_RETURN = "-7";
private static final String TEST_URL
= "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg";
- private static final String TEST_IMAGE_PATH = "./src/samples/resources/sample-images/sample.png";
- private static final String TEST_IMAGE_FORMAT = "png";
private ChatCompletionsClientBuilder getBuilder(HttpClient httpClient) {
return getChatCompletionsClientBuilder(
@@ -210,6 +209,38 @@ public void testGetCompletionsWithImageUrl(HttpClient httpClient) {
assertCompletions(1, completions);
}
+ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS)
+ @MethodSource("com.azure.ai.inference.TestUtils#getTestParameters")
+ public void testGetCompletionsWithStructuredJSON(HttpClient httpClient) {
+ String jsonSchema = "{ \"ingredients\": {" + "\"type\": \"array\"," + "\"items\": { \"type\": \"string\" } },"
+ + "\"steps\": { \"type\": \"array\", \"items\": {" + "\"type\": \"object\", \"properties\": {"
+ + "\"ingredients\": {" + "\"type\": \"array\"," + "\"items\": {" + "\"type\": \"string\"" + "}" + "},"
+ + "\"directions\": {" + "\"type\": \"string\"" + "}" + "}" + "}" + "}," + "\"prep_time\": {"
+ + "\"type\": \"string\"" + "}," + "\"bake_time\": {" + "\"type\": \"string\"" + "} }";
+
+ Map recipeSchema = new HashMap() {
+ {
+ put("type", BinaryData.fromString("\"object\""));
+ put("properties", BinaryData.fromString(jsonSchema));
+ put("required", BinaryData.fromString("[\"ingredients\", \"steps\", \"bake_time\"]"));
+ put("additionalProperties", BinaryData.fromString("false"));
+ }
+ };
+ client = getChatCompletionsClient(httpClient);
+
+ List chatMessages = new ArrayList<>();
+ chatMessages.add(new ChatRequestSystemMessage("You are a helpful assistant."));
+ chatMessages
+ .add(new ChatRequestUserMessage("Please give me directions and ingredients to bake a chocolate cake."));
+
+ ChatCompletionsOptions chatCompletionsOptions
+ = new ChatCompletionsOptions(chatMessages).setJsonFormat("cakeBakingDirections", recipeSchema);
+
+ ChatCompletions completions = client.complete(chatCompletionsOptions);
+
+ assertCompletions(1, completions);
+ }
+
@ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS)
@MethodSource("com.azure.ai.inference.TestUtils#getTestParameters")
public void testGetCompletionsStreamWithFunctionCalls(HttpClient httpClient) {
@@ -288,7 +319,8 @@ public void testGetCompletionsStreamWithFunctionCalls(HttpClient httpClient) {
String functionCallResult = futureTemperature(parameters.locationName, parameters.date);
// This message contains the information that will allow the LLM to resume the text generation
- ChatRequestToolMessage toolRequestMessage = new ChatRequestToolMessage(functionCallResult, toolCallId);
+ ChatRequestToolMessage toolRequestMessage
+ = new ChatRequestToolMessage(toolCallId).setContent(functionCallResult);
List followUpMessages = Arrays.asList(
// We add the original messages from the request
chatMessages.get(0), chatMessages.get(1), assistantRequestMessage, toolRequestMessage);
diff --git a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/EmbeddingsClientTestBase.java b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/EmbeddingsClientTestBase.java
index 702812ef536a..ee95be2c662a 100644
--- a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/EmbeddingsClientTestBase.java
+++ b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/EmbeddingsClientTestBase.java
@@ -19,14 +19,19 @@
import com.azure.core.util.Configuration;
import org.junit.jupiter.api.Test;
+import java.nio.file.Path;
+import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
-import static com.azure.ai.inference.TestUtils.FAKE_API_KEY;
+import static com.azure.ai.inference.TestUtils.*;
import static org.junit.jupiter.api.Assertions.*;
+import static com.azure.ai.inference.TestUtils.TEST_IMAGE_PATH;
+import static com.azure.ai.inference.TestUtils.TEST_IMAGE_FORMAT;
+
public abstract class EmbeddingsClientTestBase extends TestProxyTestBase {
protected EmbeddingsClient embeddingsClient;
protected ImageEmbeddingsClient imageEmbeddingsClient;
@@ -75,11 +80,13 @@ ImageEmbeddingsClientBuilder getImageEmbeddingsClientBuilder(HttpClient httpClie
builder.endpoint("https://localhost:8080").credential(new AzureKeyCredential(FAKE_API_KEY));
} else if (testMode == TestMode.RECORD) {
builder.addPolicy(interceptorManager.getRecordPolicy())
- .endpoint(Configuration.getGlobalConfiguration().get("EMBEDDINGS_MODEL_ENDPOINT"))
- .credential(new AzureKeyCredential(Configuration.getGlobalConfiguration().get("AZURE_EMBEDDINGS_KEY")));
+ .endpoint(Configuration.getGlobalConfiguration().get("IMAGE_EMBEDDINGS_MODEL_ENDPOINT"))
+ .credential(
+ new AzureKeyCredential(Configuration.getGlobalConfiguration().get("AZURE_IMAGE_EMBEDDINGS_KEY")));
} else {
- builder.endpoint(Configuration.getGlobalConfiguration().get("EMBEDDINGS_MODEL_ENDPOINT"))
- .credential(new AzureKeyCredential(Configuration.getGlobalConfiguration().get("AZURE_EMBEDDINGS_KEY")));
+ builder.endpoint(Configuration.getGlobalConfiguration().get("IMAGE_EMBEDDINGS_MODEL_ENDPOINT"))
+ .credential(
+ new AzureKeyCredential(Configuration.getGlobalConfiguration().get("AZURE_IMAGE_EMBEDDINGS_KEY")));
}
return builder;
}
@@ -106,6 +113,10 @@ void getEmbeddingsRunner(Consumer> testRunner) {
testRunner.accept(getPrompts());
}
+ void getImageEmbeddingsRunner(Consumer> testRunner) {
+ testRunner.accept(getInputs());
+ }
+
static void assertEmbeddings(EmbeddingsResult actual) {
List data = actual.getData();
assertNotNull(data);
@@ -125,4 +136,11 @@ private List getPrompts() {
prompts.add("What's the best way to train a parrot?");
return prompts;
}
+
+ private List getInputs() {
+ Path testFilePath = Paths.get(TEST_IMAGE_PATH);
+ List inputList = new ArrayList<>();
+ inputList.add(new ImageEmbeddingInput(testFilePath, TEST_IMAGE_FORMAT));
+ return inputList;
+ }
}
diff --git a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ImageEmbeddingsAsyncClientTest.java b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ImageEmbeddingsAsyncClientTest.java
new file mode 100644
index 000000000000..6f8766dfd92a
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ImageEmbeddingsAsyncClientTest.java
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+package com.azure.ai.inference;
+
+import com.azure.core.http.HttpClient;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+import reactor.test.StepVerifier;
+
+import static com.azure.ai.inference.TestUtils.DISPLAY_NAME_WITH_ARGUMENTS;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+public class ImageEmbeddingsAsyncClientTest extends EmbeddingsClientTestBase {
+ private ImageEmbeddingsAsyncClient client;
+
+ private ImageEmbeddingsAsyncClient getImageEmbeddingsAsyncClient(HttpClient httpClient) {
+ return getImageEmbeddingsClientBuilder(
+ interceptorManager.isPlaybackMode() ? interceptorManager.getPlaybackClient() : httpClient)
+ .buildAsyncClient();
+ }
+
+ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS)
+ @MethodSource("com.azure.ai.inference.TestUtils#getTestParameters")
+ public void testGetEmbeddings(HttpClient httpClient) {
+ client = getImageEmbeddingsAsyncClient(httpClient);
+ getImageEmbeddingsRunner((inputList) -> {
+ StepVerifier.create(client.embed(inputList)).assertNext(result -> {
+ assertNotNull(result.getUsage());
+ assertEmbeddings(result);
+ }).verifyComplete();
+ });
+ }
+}
diff --git a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ImageEmbeddingsSyncClientTest.java b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ImageEmbeddingsSyncClientTest.java
new file mode 100644
index 000000000000..dac6b35157f8
--- /dev/null
+++ b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/ImageEmbeddingsSyncClientTest.java
@@ -0,0 +1,30 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+package com.azure.ai.inference;
+
+import com.azure.ai.inference.models.*;
+import com.azure.core.http.HttpClient;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.MethodSource;
+
+import static com.azure.ai.inference.TestUtils.DISPLAY_NAME_WITH_ARGUMENTS;
+
+public class ImageEmbeddingsSyncClientTest extends EmbeddingsClientTestBase {
+ private ImageEmbeddingsClient client;
+
+ private ImageEmbeddingsClient getImageEmbeddingsClient(HttpClient httpClient) {
+ return getImageEmbeddingsClientBuilder(
+ interceptorManager.isPlaybackMode() ? interceptorManager.getPlaybackClient() : httpClient).buildClient();
+ }
+
+ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS)
+ @MethodSource("com.azure.ai.inference.TestUtils#getTestParameters")
+ public void testGetEmbeddings(HttpClient httpClient) {
+ client = getImageEmbeddingsClient(httpClient);
+ getImageEmbeddingsRunner((inputList) -> {
+ EmbeddingsResult result = client.embed(inputList);
+ assertEmbeddings(result);
+ });
+ }
+
+}
diff --git a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/TestUtils.java b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/TestUtils.java
index ac5ced527df7..1ea00580fe05 100644
--- a/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/TestUtils.java
+++ b/sdk/ai/azure-ai-inference/src/test/java/com/azure/ai/inference/TestUtils.java
@@ -15,6 +15,8 @@
public class TestUtils {
static final String DISPLAY_NAME_WITH_ARGUMENTS = "{displayName} with [{arguments}]";
static final String FAKE_API_KEY = "fakeKeyPlaceholder";
+ static final String TEST_IMAGE_PATH = "./src/samples/resources/sample-images/sample.png";
+ static final String TEST_IMAGE_FORMAT = "png";
/**
* Returns a stream of arguments that includes all combinations of eligible {@link HttpClient HttpClients}
diff --git a/sdk/ai/azure-ai-inference/tsp-location.yaml b/sdk/ai/azure-ai-inference/tsp-location.yaml
index b4f13dd78be3..87e875fdb0ff 100644
--- a/sdk/ai/azure-ai-inference/tsp-location.yaml
+++ b/sdk/ai/azure-ai-inference/tsp-location.yaml
@@ -1,4 +1,4 @@
-commit: 016b80ae90f5fabc1e572efabd3ecb1030d444c0
+commit: 8f5ad43ec297181e26d5c10f2ebbdc9ce636fd0c
additionalDirectories: []
repo: Azure/azure-rest-api-specs
directory: specification/ai/ModelClient
diff --git a/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/README.md b/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/README.md
index b17182628b61..728c55108e15 100644
--- a/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/README.md
+++ b/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/README.md
@@ -101,4 +101,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
+
diff --git a/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/pom.xml b/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/pom.xml
index 1220eb3d9b36..8c2c1b617918 100644
--- a/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/pom.xml
+++ b/sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/pom.xml
@@ -51,23 +51,23 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-management
- 1.15.6
+ 1.16.2
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
diff --git a/sdk/anomalydetector/azure-ai-anomalydetector/README.md b/sdk/anomalydetector/azure-ai-anomalydetector/README.md
index 188fff4a8e07..c5180bbaf383 100644
--- a/sdk/anomalydetector/azure-ai-anomalydetector/README.md
+++ b/sdk/anomalydetector/azure-ai-anomalydetector/README.md
@@ -199,7 +199,7 @@ These code samples show common scenario operations with the Azure Anomaly Detect
under the [samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/anomalydetector/azure-ai-anomalydetector/src/samples/java/com/azure/ai/anomalydetector) directory.
For more extensive documentation on Azure Anomaly Detector, see the [Anomaly Detector documentation](https://learn.microsoft.com/azure/cognitive-services/anomaly-detector/overview) on
-docs.microsoft.com.
+learn.microsoft.com.
## Contributing
@@ -224,21 +224,21 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con
[samples_code]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/anomalydetector/azure-ai-anomalydetector/src/samples/
[azure_subscription]: https://azure.microsoft.com/free/
[api_reference_doc]: https://azure.github.io/azure-sdk-for-java/
-[product_documentation]: https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/
-[cognitive_resource_cli]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli
+[product_documentation]: https://learn.microsoft.com/azure/cognitive-services/anomaly-detector/
+[cognitive_resource_cli]: https://learn.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli
[multivariate_client_class]: https://github.com/Azure/azure-sdk-for-java/blob/8b2622353dd8c4a03a87c7e04a6f82bf0712bab5/sdk/anomalydetector/azure-ai-anomalydetector/src/main/java/com/azure/ai/anomalydetector/MultivariateClient.java
[multivariate_async_client_class]: https://github.com/Azure/azure-sdk-for-java/blob/8b2622353dd8c4a03a87c7e04a6f82bf0712bab5/sdk/anomalydetector/azure-ai-anomalydetector/src/main/java/com/azure/ai/anomalydetector/MultivariateAsyncClient.java
[univariate_client_class]: https://github.com/Azure/azure-sdk-for-java/blob/8b2622353dd8c4a03a87c7e04a6f82bf0712bab5/sdk/anomalydetector/azure-ai-anomalydetector/src/main/java/com/azure/ai/anomalydetector/UnivariateClient.java
[univariate_async_client_class]: https://github.com/Azure/azure-sdk-for-java/blob/8b2622353dd8c4a03a87c7e04a6f82bf0712bab5/sdk/anomalydetector/azure-ai-anomalydetector/src/main/java/com/azure/ai/anomalydetector/UnivariateAsyncClient.java
-[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity
[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity/README.md#defaultazurecredential
-[custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain
-[register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal
-[aad_grant_access]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal
-[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
+[custom_subdomain]: https://learn.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain
+[register_aad_app]: https://learn.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal
+[aad_grant_access]: https://learn.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal
+[jdk_link]: https://learn.microsoft.com/java/azure/jdk/?view=azure-java-stable
[package]: https://central.sonatype.com/artifact/com.azure/azure-ai-anomalydetector
[samples_readme]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/anomalydetector/azure-ai-anomalydetector/src/samples/README.md
[logging]: https://github.com/Azure/azure-sdk-for-java/wiki/Logging-in-Azure-SDK
-
+
diff --git a/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml b/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml
index 96c84a317f44..8e790cdde11e 100644
--- a/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml
+++ b/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml
@@ -49,25 +49,25 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-http-netty
- 1.15.7
+ 1.15.10
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
diff --git a/sdk/aot/azure-aot-graalvm-perf/CHANGELOG.md b/sdk/aot/azure-aot-graalvm-perf/CHANGELOG.md
deleted file mode 100644
index 92fbcde772d1..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Release History
-
-## 1.0.0-beta.1 (Unreleased)
-Version 1.0.0-beta.1 is an early preview release of our performance testing framework related to our efforts in supporting GraalVM in the Azure SDK for Java.
-
-## Features Added
-- Initial release. Please see the README and wiki for information on using the new library.
diff --git a/sdk/aot/azure-aot-graalvm-perf/README.md b/sdk/aot/azure-aot-graalvm-perf/README.md
deleted file mode 100644
index 5391b6cd7b1c..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# Azure GraalVM performance testing configuration client library for Java
-
-## Getting started
-
-### Prerequisites
-- A [Java Development Kit (JDK)][jdk_link], version 8 or later.
-- [Azure Subscription][azure_subscription]
-- [GraalVM][graalvm]
-
-### Include the package
-
-[//]: # ({x-version-update-start;com.azure:azure-aot-graalvm-perf;current})
-```xml
-
- com.azure
- azure-aot-graalvm-perf
- 1.0.0-beta.1
-
-```
-[//]: # ({x-version-update-end})
-
-## Key concepts
-
-## Examples
-
-## Troubleshooting
-
-## Next steps
-
-## Contributing
-
-This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License
-Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.
-For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
-
-When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the
-PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this
-once across all repos using our CLA.
-
-This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
-For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact
-[opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
-
-
-[cla]: https://cla.microsoft.com
-[coc]: https://opensource.microsoft.com/codeofconduct/
-[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-[coc_contact]: mailto:opencode@microsoft.com
-[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
-[azure_subscription]: https://azure.microsoft.com/free
-[graalvm]: https://www.graalvm.org/downloads/
-
-
diff --git a/sdk/aot/azure-aot-graalvm-perf/pom.xml b/sdk/aot/azure-aot-graalvm-perf/pom.xml
deleted file mode 100644
index de61eb787592..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/pom.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
- 4.0.0
-
- com.azure
- azure-aot-graalvm-perf
- 1.0.0-beta.1
-
- jar
- Microsoft Azure SDK for Java GraalVM performance testing framework
- This package contains GraalVM configuration for running Azure SDK for Java performance tests.
-
- com.azure
- azure-perf-test-parent
- 1.0.0-beta.1
- ../../parents/azure-perf-test-parent
-
- https://github.com/Azure/azure-sdk-for-java
-
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
-
-
-
- azure-java-build-docs
- ${site.url}/site/${project.artifactId}
-
-
-
-
- scm:git:https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- UTF-8
-
-
-
-
-
- microsoft
- Microsoft
-
-
-
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-ai-formrecognizer/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-ai-formrecognizer/reflect-config.json
deleted file mode 100644
index 47b9d8e765dd..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-ai-formrecognizer/reflect-config.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[
- {
- "name": "com.azure.ai.formrecognizer.perf.DocumentModelAnalysisTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-ai-textanalytics/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-ai-textanalytics/reflect-config.json
deleted file mode 100644
index 3c70a10fce74..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-ai-textanalytics/reflect-config.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[
- {
- "name": "com.azure.ai.textanalytics.perf.DetectLanguageTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-core/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-core/reflect-config.json
deleted file mode 100644
index 0c22bd11bf41..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-core/reflect-config.json
+++ /dev/null
@@ -1,128 +0,0 @@
-[
- {
- "name": "com.azure.perf.test.core.PerfStressOptions",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.MockEventProcessorTest$MockEventProcessorPerfOptions",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.MockBatchReceiverTest$MockReceiverOptions",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.HttpPipelineOptions",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.ExceptionTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.MockBatchReceiverTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.MockEventProcessorTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.NoOpTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.SleepTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.perf.test.core.HttpPipelineTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.beust.jcommander.validators.NoValueValidator",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.beust.jcommander.validators.NoValidator",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.BooleanConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.IntegerConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.StringConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.EnumConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.DoubleConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.FloatConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.LongConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.URIConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name":"com.beust.jcommander.converters.URLConverter",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/reflect-config.json
deleted file mode 100644
index 66e222bb78f3..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/reflect-config.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[
- {
- "name": "com.azure.data.appconfiguration.perf.ListConfigurationSettingsTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-data-tables/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-data-tables/reflect-config.json
deleted file mode 100644
index 545ea73709c4..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-data-tables/reflect-config.json
+++ /dev/null
@@ -1,38 +0,0 @@
-[
- {
- "name": "com.azure.data.tables.perf.CreateEntityWithAllTypes",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.tables.perf.CreateEntityWithAllTypesUsingTransaction",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.tables.perf.CreateEntityWithStringsOnly",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.tables.perf.CreateEntityWithStringsOnlyUsingTransaction",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.tables.perf.ListEntitiesWithStringsOnlyTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.tables.perf.ListEntitiesWithAllTypesTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-monitor-query/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-monitor-query/reflect-config.json
deleted file mode 100644
index a5ea62bf281c..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-monitor-query/reflect-config.json
+++ /dev/null
@@ -1,20 +0,0 @@
-[
- {
- "name": "com.azure.monitor.query.perf.LogsBatchQueryTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.monitor.query.perf.LogsQueryAsModelTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.monitor.query.perf.MetricsQueryTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-search-documents/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-search-documents/reflect-config.json
deleted file mode 100644
index 71aa3861dc57..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-search-documents/reflect-config.json
+++ /dev/null
@@ -1,26 +0,0 @@
-[
- {
- "name": "com.azure.search.perf.AutocompleteTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.search.perf.IndexDocumentsTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.search.perf.SearchDocumentsTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.search.perf.SuggestTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault/reflect-config.json
deleted file mode 100644
index 6c0fd2311815..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault/reflect-config.json
+++ /dev/null
@@ -1,44 +0,0 @@
-[
- {
- "name": "com.azure.security.keyvault.certificates.perf.GetCertificateTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.security.keyvault.keys.perf.DecryptTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.security.keyvault.keys.perf.GetKeyTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.security.keyvault.keys.perf.SignTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.security.keyvault.keys.perf.UnwrapTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.security.keyvault.secrets.perf.GetSecretTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.security.keyvault.secrets.perf.ListSecretsTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-storage-blob/reflect-config.json b/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-storage-blob/reflect-config.json
deleted file mode 100644
index 1608799d429a..000000000000
--- a/sdk/aot/azure-aot-graalvm-perf/src/main/resources/META-INF/native-image/com.azure/azure-storage-blob/reflect-config.json
+++ /dev/null
@@ -1,116 +0,0 @@
-[
- {
- "name": "com.azure.storage.blob.perf.DownloadBlobTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.ListBlobsTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.UploadBlobNoLengthTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.UploadBlobTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.UploadBlockBlobTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.UploadFromFileTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.UploadOutputStreamTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.StoragePerfStressOptions",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.share.perf.DownloadFileShareTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.share.perf.DownloadToFileShareTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.share.perf.UploadFileShareTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.share.perf.UploadFromFileShareTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.datalake.perf.AppendFileDatalakeTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.datalake.perf.ReadFileDatalakeTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.datalake.perf.UploadFileDatalakeTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.datalake.perf.UploadFromFileDatalakeTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.file.datalake.perf.UploadFromFileDatalakeTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.DownloadBlobToFileTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.storage.blob.perf.DownloadBlobNonSharedClientTest",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-samples/CHANGELOG.md b/sdk/aot/azure-aot-graalvm-samples/CHANGELOG.md
deleted file mode 100644
index 8f79f2cc9448..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Release History
-
-## 1.0.0-beta.1 (Unreleased)
-Version 1.0.0-beta.1 is a first preview release of sample code that demonstrates many common scenarios, and their ability to be executed as native images using GraalVM native image compilation.
-
-## Features Added
-- Initial release. Please see the README and wiki for information on using the new library.
diff --git a/sdk/aot/azure-aot-graalvm-samples/README.md b/sdk/aot/azure-aot-graalvm-samples/README.md
deleted file mode 100644
index 104814a9b515..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Azure GraalVM samples client library for Java
-
-## Getting started
-
-### Prerequisites
-- A [Java Development Kit (JDK)][jdk_link], version 8 or later.
-- [Azure Subscription][azure_subscription]
-- [GraalVM][graalvm]
-### Include the package
-
-[//]: # ({x-version-update-start;com.azure:azure-aot-graalvm-samples;current})
-```xml
-
- com.azure
- azure-aot-graalvm-samples
- 1.0.0-beta.1
-
-```
-[//]: # ({x-version-update-end})
-
-## Key concepts
-
-## Examples
-
-## Troubleshooting
-
-## Next steps
-
-## Contributing
-
-This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License
-Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.
-For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
-
-When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the
-PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this
-once across all repos using our CLA.
-
-This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
-For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact
-[opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
-
-
-[cla]: https://cla.microsoft.com
-[coc]: https://opensource.microsoft.com/codeofconduct/
-[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-[coc_contact]: mailto:opencode@microsoft.com
-[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
-[azure_subscription]: https://azure.microsoft.com/free
-[graalvm]: https://www.graalvm.org/downloads/
-
-
diff --git a/sdk/aot/azure-aot-graalvm-samples/pom.xml b/sdk/aot/azure-aot-graalvm-samples/pom.xml
deleted file mode 100644
index 5e095976c8b6..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/pom.xml
+++ /dev/null
@@ -1,215 +0,0 @@
-
-
-
- 4.0.0
-
- com.azure
- azure-aot-graalvm-samples
- 1.0.0-beta.1
-
- jar
- Microsoft Azure SDK for Java GraalVM samples
- This package contains samples for using Azure SDK for Java with GraalVM.
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
- https://github.com/Azure/azure-sdk-for-java
-
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
-
-
-
- azure-java-build-docs
- ${site.url}/site/${project.artifactId}
-
-
-
-
- scm:git:https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- UTF-8
-
- true
-
-
-
-
-
- microsoft
- Microsoft
-
-
-
-
-
-
- com.azure
- azure-data-appconfiguration
- 1.7.3
-
-
- com.azure
- azure-identity
- 1.15.0
-
-
- com.azure
- azure-security-keyvault-keys
- 4.9.1
-
-
- com.azure
- azure-storage-blob
- 12.29.0
-
-
-
- com.azure
- azure-security-keyvault-secrets
- 4.9.1
-
-
- com.azure
- azure-security-keyvault-certificates
- 4.7.1
-
-
-
- com.azure
- azure-messaging-eventhubs
- 5.19.2
-
-
- com.azure
- azure-cosmos
- 4.65.0
-
-
- com.azure
- azure-ai-formrecognizer
- 4.1.12
-
-
- com.azure
- azure-ai-textanalytics
- 5.5.4
-
-
-
-
-
- org.junit.jupiter
- junit-jupiter-api
- 5.11.2
- test
-
-
- org.junit.jupiter
- junit-jupiter-engine
- 5.11.2
- test
-
-
- org.junit.jupiter
- junit-jupiter-params
- 5.11.2
- test
-
-
- org.graalvm.buildtools
- junit-platform-native
- 0.9.19
- test
-
-
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 3.4.1
-
-
-
- java
-
-
-
-
- com.azure.aot.graalvm.samples.AzureGraalVmSamples
-
-
-
-
- org.apache.maven.plugins
- maven-assembly-plugin
- 3.7.1
-
-
- jar-with-dependencies
-
-
-
- com.azure.aot.graalvm.samples.AzureGraalVmSamples
-
-
- false
-
-
-
- make-assembly
- package
-
- single
-
-
-
-
-
-
-
-
-
- native
-
-
-
- org.graalvm.buildtools
- native-maven-plugin
- 0.9.19
-
- com.azure.aot.graalvm.samples.AzureGraalVmSamples
- azure-aot-graalvm-sample
-
-
-
- build-native
-
- build
-
- package
-
-
-
-
-
-
-
-
-
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/AzureGraalVmSamples.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/AzureGraalVmSamples.java
deleted file mode 100644
index f636da8e5472..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/AzureGraalVmSamples.java
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples;
-
-import com.azure.aot.graalvm.samples.appconfiguration.AppConfigurationSample;
-import com.azure.aot.graalvm.samples.eventhubs.EventHubsSample;
-import com.azure.aot.graalvm.samples.formrecognizer.FormRecognizerSample;
-import com.azure.aot.graalvm.samples.keyvault.certificates.KeyVaultCertificatesSample;
-import com.azure.aot.graalvm.samples.keyvault.keys.KeyVaultKeysSample;
-import com.azure.aot.graalvm.samples.keyvault.secrets.KeyVaultSecretsSample;
-import com.azure.aot.graalvm.samples.storage.blob.StorageBlobSample;
-import com.azure.aot.graalvm.samples.textanalytics.TextAnalyticsSample;
-import java.io.IOException;
-
-/**
- * Main class to run Azure client samples using GraalVM.
- */
-public final class AzureGraalVmSamples {
- /**
- * Main method to run the samples.
- * @param args args to samples.
- */
- public static void main(String[] args) throws IOException {
- AppConfigurationSample.runSample();
- EventHubsSample.runSample();
- FormRecognizerSample.runSample();
- KeyVaultCertificatesSample.runSample();
- KeyVaultKeysSample.runSample();
- KeyVaultSecretsSample.runSample();
- StorageBlobSample.runSample();
- TextAnalyticsSample.runSample();
-
- // GraalVM does not support AfterBurner and Cosmos explicitly adds AfterBurner
- // CosmosSample runs successfully if afterburner registration is removed in Cosmos
- // https://github.com/micronaut-projects/micronaut-core/issues/2575
- // https://github.com/awslabs/aws-serverless-java-container/issues/428
- // CosmosSample.runSample();
- }
-
- private AzureGraalVmSamples() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/appconfiguration/AppConfigurationSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/appconfiguration/AppConfigurationSample.java
deleted file mode 100644
index dde0d0fdb71a..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/appconfiguration/AppConfigurationSample.java
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.appconfiguration;
-
-import com.azure.data.appconfiguration.ConfigurationClient;
-import com.azure.data.appconfiguration.ConfigurationClientBuilder;
-import com.azure.data.appconfiguration.models.ConfigurationSetting;
-import com.azure.identity.DefaultAzureCredentialBuilder;
-
-/**
- * A sample to demonstrate setting and getting a config from Azure Application Configuration operations using GraalVM.
- */
-public final class AppConfigurationSample {
- private static final String AZURE_APP_CONFIGURATION_CONNECTION_STRING
- = System.getenv("AZURE_APP_CONFIGURATION_CONNECTION_STRING");
-
- /**
- * The method to run the app configuration sample.
- */
- public static void runSample() {
- System.out.println("\n================================================================");
- System.out.println(" Starting App Configuration Sample");
- System.out.println("================================================================");
-
- final ConfigurationClientBuilder configurationClientBuilder = new ConfigurationClientBuilder();
-
- if (AZURE_APP_CONFIGURATION_CONNECTION_STRING != null && !AZURE_APP_CONFIGURATION_CONNECTION_STRING.isEmpty()) {
- configurationClientBuilder.connectionString(AZURE_APP_CONFIGURATION_CONNECTION_STRING);
- } else {
- configurationClientBuilder.credential(new DefaultAzureCredentialBuilder().build());
- }
-
- final ConfigurationClient configurationClient = configurationClientBuilder.buildClient();
-
- System.out.println("Setting configuration");
- ConfigurationSetting setting = configurationClient.setConfigurationSetting("key", "label", "value");
- System.out.println("Done: " + setting.getLastModified());
-
- setting = configurationClient.getConfigurationSetting("key", "label");
- System.out.println("Retrieved setting again, value is " + setting.getValue());
-
- System.out.println("\n================================================================");
- System.out.println(" App Configuration Sample Complete");
- System.out.println("================================================================");
- }
-
- private AppConfigurationSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Address.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Address.java
deleted file mode 100644
index 1ea5b1940a03..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Address.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.cosmos;
-
-/**
- * The address model.
- */
-public class Address {
- private String state = "";
- private String county = "";
- private String city = "";
-
- /**
- * Creates a new instance of {@link Address}.
- */
- public Address() {
- }
-
- /**
- * Returns the state.
- * @return the state.
- */
- public String getState() {
- return state;
- }
-
- /**
- * Sets the state.
- * @param state the state.
- */
- public void setState(String state) {
- this.state = state;
- }
-
- /**
- * Returns the county.
- * @return the county.
- */
- public String getCounty() {
- return county;
- }
-
- /**
- * Sets the county.
- * @param county the county.
- */
- public void setCounty(String county) {
- this.county = county;
- }
-
- /**
- * Returns the city.
- * @return the city.
- */
- public String getCity() {
- return city;
- }
-
- /**
- * Sets the city.
- * @param city the city.
- */
- public void setCity(String city) {
- this.city = city;
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Child.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Child.java
deleted file mode 100644
index 884da1813e3c..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Child.java
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.cosmos;
-
-import java.util.Arrays;
-
-/**
- * The child model.
- */
-public class Child {
- private String familyName;
- private String firstName;
- private String gender;
- private int grade;
- private Pet[] pets = { };
-
- /**
- * Creates a new instance of {@link Child}.
- */
- public Child() {
- }
-
- /**
- * Returns the family name.
- * @return the family name.
- */
- public String getFamilyName() {
- return familyName;
- }
-
- /**
- * Sets the family name.
- * @param familyName the family name.
- */
- public void setFamilyName(String familyName) {
- this.familyName = familyName;
- }
-
- /**
- * Returns the first name.
- * @return the first name.
- */
- public String getFirstName() {
- return firstName;
- }
-
- /**
- * Sets the first name.
- * @param firstName the first name.
- */
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-
- /**
- * Returns the gender.
- * @return the gender.
- */
- public String getGender() {
- return gender;
- }
-
- /**
- * Sets the gender.
- * @param gender the gender.
- */
- public void setGender(String gender) {
- this.gender = gender;
- }
-
- /**
- * Returns the grade.
- * @return the grade.
- */
- public int getGrade() {
- return grade;
- }
-
- /**
- * Sets the grade.
- * @param grade the grade.
- */
- public void setGrade(int grade) {
- this.grade = grade;
- }
-
- /**
- * Returns the pets array.
- * @return the pets array.
- */
- public Pet[] getPets() {
- return Arrays.copyOf(pets, pets.length);
- }
-
- /**
- * Sets the pets array.
- * @param pets the pets array.
- */
- public void setPets(Pet[] pets) {
- this.pets = Arrays.copyOf(pets, pets.length);
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/CosmosSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/CosmosSample.java
deleted file mode 100644
index 11853383c7cb..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/CosmosSample.java
+++ /dev/null
@@ -1,279 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.cosmos;
-
-import com.azure.cosmos.ConsistencyLevel;
-import com.azure.cosmos.CosmosClient;
-import com.azure.cosmos.CosmosClientBuilder;
-import com.azure.cosmos.CosmosContainer;
-import com.azure.cosmos.CosmosDatabase;
-import com.azure.cosmos.CosmosException;
-import com.azure.cosmos.models.CosmosContainerProperties;
-import com.azure.cosmos.models.CosmosContainerResponse;
-import com.azure.cosmos.models.CosmosDatabaseResponse;
-import com.azure.cosmos.models.CosmosItemRequestOptions;
-import com.azure.cosmos.models.CosmosItemResponse;
-import com.azure.cosmos.models.CosmosQueryRequestOptions;
-import com.azure.cosmos.models.PartitionKey;
-import com.azure.cosmos.models.ThroughputProperties;
-import com.azure.cosmos.util.CosmosPagedIterable;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.time.Duration;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.stream.Collectors;
-
-/**
- * A sample to demonstrate creating containers, databases and items in Cosmos DB using GraalVM.
- */
-public final class CosmosSample {
- private static final String AZURE_COSMOS_ENDPOINT = System.getenv("AZURE_COSMOS_ENDPOINT");
- private static final String AZURE_COSMOS_KEY = System.getenv("AZURE_COSMOS_KEY");
-
- private CosmosClient client;
-
- private final String databaseName = "AzureSampleFamilyDB";
- private final String containerName = "FamilyContainer";
-
- private CosmosDatabase database;
- private CosmosContainer container;
-
- private static final Logger LOGGER = LoggerFactory.getLogger(CosmosSample.class);
-
- /**
- * The method to run the cosmos sample.
- */
- public static void runSample() {
- System.out.println("\n================================================================");
- System.out.println(" Starting Cosmos Sample");
- System.out.println("================================================================");
-
- if (AZURE_COSMOS_ENDPOINT == null || AZURE_COSMOS_ENDPOINT.isEmpty()) {
- System.err.println("azure_cosmos_endpoint environment variable is not set - exiting");
- return;
- }
-
- if (AZURE_COSMOS_KEY == null || AZURE_COSMOS_KEY.isEmpty()) {
- System.err.println("azure_cosmos_key environment variable is not set - exiting");
- return;
- }
-
- CosmosSample sample = new CosmosSample();
-
- try {
- sample.startSample();
- System.out.println("Demo complete, please hold while resources are released");
- } catch (Exception e) {
- System.out.println("Error running Cosmos sample " + e.getMessage());
- e.printStackTrace();
- } finally {
- System.out.println("Closing the client");
- sample.shutdown();
- }
-
- System.out.println("\n================================================================");
- System.out.println(" Cosmos Sample Complete");
- System.out.println("================================================================");
- }
-
- private void startSample() throws Exception {
- // Create sync client
- client = new CosmosClientBuilder().endpoint(AZURE_COSMOS_ENDPOINT)
- .key(AZURE_COSMOS_KEY)
- .preferredRegions(Arrays.asList("West US"))
- .consistencyLevel(ConsistencyLevel.EVENTUAL)
- .contentResponseOnWriteEnabled(true)
- .buildClient();
-
- createDatabaseIfNotExists();
- System.out.println("Creating container");
- createContainerIfNotExists();
-
- // Setup family items to create
- List familiesToCreate = new ArrayList<>();
- familiesToCreate.add(Families.getAndersenFamilyItem());
- familiesToCreate.add(Families.getWakefieldFamilyItem());
- familiesToCreate.add(Families.getJohnsonFamilyItem());
- familiesToCreate.add(Families.getSmithFamilyItem());
-
- // Creates several items in the container
- // Also applies an upsert operation to one of the items (create if not present, otherwise replace)
- createFamilies(familiesToCreate);
-
- System.out.println("Reading items.");
- readItems(familiesToCreate);
-
- System.out.println("Replacing items.");
- replaceItems(familiesToCreate);
-
- System.out.println("Querying items.");
- queryItems();
-
- System.out.println("Delete an item.");
- deleteItem(familiesToCreate.get(0));
- }
-
- private void createDatabaseIfNotExists() throws Exception {
- System.out.println("Create database " + databaseName + " if not exists.");
-
- // Create database if not exists
- //
- CosmosDatabaseResponse databaseResponse = client.createDatabaseIfNotExists(databaseName);
- database = client.getDatabase(databaseResponse.getProperties().getId());
-
- //
-
- System.out.println("Checking database " + database.getId() + " completed!\n");
- }
-
- private void createContainerIfNotExists() throws Exception {
- System.out.println("Create container " + containerName + " if not exists.");
-
- // Create container if not exists
- //
- CosmosContainerProperties containerProperties = new CosmosContainerProperties(containerName, "/lastName");
-
- // Create container with 400 RU/s
- ThroughputProperties throughputProperties = ThroughputProperties.createManualThroughput(400);
- CosmosContainerResponse containerResponse
- = database.createContainerIfNotExists(containerProperties, throughputProperties);
- container = database.getContainer(containerResponse.getProperties().getId());
- //
-
- System.out.println("Checking container " + container.getId() + " completed!\n");
- }
-
- private void createFamilies(List families) throws Exception {
- double totalRequestCharge = 0;
- for (Family family : families) {
-
- //
- // Create item using container that we created using sync client
-
- // Use lastName as partitionKey for cosmos item
- // Using appropriate partition key improves the performance of database operations
- CosmosItemRequestOptions cosmosItemRequestOptions = new CosmosItemRequestOptions();
- CosmosItemResponse item
- = container.createItem(family, new PartitionKey(family.getLastName()), cosmosItemRequestOptions);
- //
-
- // Get request charge and other properties like latency, and diagnostics strings, etc.
- System.out.println(String.format("Created item with request charge of %.2f within duration %s",
- item.getRequestCharge(), item.getDuration()));
-
- totalRequestCharge += item.getRequestCharge();
- }
- System.out.println(
- String.format("Created %d items with total request charge of %.2f", families.size(), totalRequestCharge));
-
- Family familyToUpsert = families.get(0);
- System.out.println(String.format("Upserting the item with id %s after modifying the isRegistered field...",
- familyToUpsert.getId()));
- familyToUpsert.setRegistered(!familyToUpsert.isRegistered());
-
- CosmosItemResponse item = container.upsertItem(familyToUpsert);
-
- // Get upsert request charge and other properties like latency, and diagnostics strings, etc.
- System.out.println(String.format("Upserted item with request charge of %.2f within duration %s",
- item.getRequestCharge(), item.getDuration()));
- }
-
- private void readItems(List familiesToCreate) {
- // Using partition key for point read scenarios.
- // This will help fast look up of items because of partition key
- familiesToCreate.forEach(family -> {
- //
- try {
- CosmosItemResponse item
- = container.readItem(family.getId(), new PartitionKey(family.getLastName()), Family.class);
- double requestCharge = item.getRequestCharge();
- Duration requestLatency = item.getDuration();
- System.out.println(
- String.format("Item successfully read with id %s with a charge of %.2f and within duration %s",
- item.getItem().getId(), requestCharge, requestLatency));
- } catch (CosmosException e) {
- e.printStackTrace();
- System.out.println(String.format("Read Item failed with %s", e));
- }
- //
- });
- }
-
- private void replaceItems(List familiesToCreate) {
- familiesToCreate.forEach(family -> {
- //
- try {
- String district = family.getDistrict();
- family.setDistrict(district + "_newDistrict");
- CosmosItemResponse item = container.replaceItem(family, family.getId(),
- new PartitionKey(family.getLastName()), new CosmosItemRequestOptions());
- double requestCharge = item.getRequestCharge();
- Duration requestLatency = item.getDuration();
- System.out.printf("Item successfully replaced with id: %s, district: %s, charge: %s, duration: %s",
- item.getItem().getId(), item.getItem().getDistrict(), requestCharge, requestLatency);
- } catch (CosmosException e) {
- LOGGER.error(String.format("Replace Item failed with %s", e));
- }
- //
- });
- }
-
- private void queryItems() {
- //
-
- // Set some common query options
- int preferredPageSize = 10;
- CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();
- //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4
- // Set populate query metrics to get metrics around query executions
- queryOptions.setQueryMetricsEnabled(true);
-
- CosmosPagedIterable familiesPagedIterable
- = container.queryItems("SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')",
- queryOptions, Family.class);
-
- familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {
- System.out.println("Got a page of query result with " + cosmosItemPropertiesFeedResponse.getResults().size()
- + " items(s)" + " and request charge of " + cosmosItemPropertiesFeedResponse.getRequestCharge());
-
- System.out.println("Item Ids " + cosmosItemPropertiesFeedResponse.getResults()
- .stream()
- .map(Family::getId)
- .collect(Collectors.toList()));
- });
- //
- }
-
- private void deleteItem(Family item) {
- container.deleteItem(item.getId(), new PartitionKey(item.getLastName()), new CosmosItemRequestOptions());
- }
-
- private void shutdown() {
- try {
- //Clean shutdown
- System.out.println("Deleting Cosmos DB resources");
- System.out.println("-Deleting container...");
- if (container != null) {
- container.delete();
- }
- System.out.println("-Deleting database...");
- if (database != null) {
- database.delete();
- }
- System.out.println("-Closing the client...");
- } catch (Exception err) {
- LOGGER.error(
- "Deleting Cosmos DB resources failed, will still attempt to close the client. See stack trace below.");
- err.printStackTrace();
- }
- client.close();
- System.out.println("Done.");
- }
-
- private CosmosSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Families.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Families.java
deleted file mode 100644
index 23fc5bf23178..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Families.java
+++ /dev/null
@@ -1,144 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.cosmos;
-
-/**
- * Helper class to get family details.
- */
-public final class Families {
-
- /**
- * Returns the family details of Andersen family.
- * @return the family details of Andersen family.
- */
- public static Family getAndersenFamilyItem() {
- Family andersenFamily = new Family();
- andersenFamily.setId("Andersen-" + System.currentTimeMillis());
- andersenFamily.setLastName("Andersen");
-
- Parent parent1 = new Parent();
- parent1.setFirstName("Thomas");
-
- Parent parent2 = new Parent();
- parent2.setFirstName("Mary Kay");
-
- andersenFamily.setParents(new Parent[] { parent1, parent2 });
-
- Child child1 = new Child();
- child1.setFirstName("Henriette Thaulow");
- child1.setGender("female");
- child1.setGrade(5);
-
- Pet pet1 = new Pet();
- pet1.setGivenName("Fluffy");
-
- child1.setPets(new Pet[] { pet1 });
-
- andersenFamily.setDistrict("WA5");
- Address address = new Address();
- address.setCity("Seattle");
- address.setCounty("King");
- address.setState("WA");
-
- andersenFamily.setAddress(address);
- andersenFamily.setRegistered(true);
- andersenFamily.setChildren(new Child[] { child1 });
-
- return andersenFamily;
- }
-
- /**
- * Returns the family details of Wakefield family.
- * @return the family details of Wakefield family.
- */
- public static Family getWakefieldFamilyItem() {
- Family wakefieldFamily = new Family();
- wakefieldFamily.setId("Wakefield-" + System.currentTimeMillis());
- wakefieldFamily.setLastName("Wakefield");
-
- Parent parent1 = new Parent();
- parent1.setFamilyName("Wakefield");
- parent1.setFirstName("Robin");
-
- Parent parent2 = new Parent();
- parent2.setFamilyName("Miller");
- parent2.setFirstName("Ben");
-
- wakefieldFamily.setParents(new Parent[] { parent1, parent2 });
-
- Child child1 = new Child();
- child1.setFirstName("Jesse");
- child1.setFamilyName("Merriam");
- child1.setGrade(8);
-
- Pet pet1 = new Pet();
- pet1.setGivenName("Goofy");
-
- Pet pet2 = new Pet();
- pet2.setGivenName("Shadow");
-
- child1.setPets(new Pet[] { pet1, pet2 });
-
- Child child2 = new Child();
- child2.setFirstName("Lisa");
- child2.setFamilyName("Miller");
- child2.setGrade(1);
- child2.setGender("female");
-
- wakefieldFamily.setChildren(new Child[] { child1, child2 });
-
- Address address = new Address();
- address.setCity("NY");
- address.setCounty("Manhattan");
- address.setState("NY");
-
- wakefieldFamily.setAddress(address);
- wakefieldFamily.setDistrict("NY23");
- wakefieldFamily.setRegistered(true);
- wakefieldFamily.setChildren(new Child[] { child1, child2 });
- return wakefieldFamily;
- }
-
- /**
- * Returns the family details of Johnson family.
- * @return the family details of Johnson family.
- */
- public static Family getJohnsonFamilyItem() {
- Family johnsonFamily = new Family();
- johnsonFamily.setId("Johnson-" + System.currentTimeMillis());
- johnsonFamily.setLastName("Johnson");
-
- Parent parent1 = new Parent();
- parent1.setFirstName("John");
-
- Parent parent2 = new Parent();
- parent2.setFirstName("Lili");
-
- johnsonFamily.setParents(new Parent[] { parent1, parent2 });
-
- return johnsonFamily;
- }
-
- /**
- * Returns the family details of Smith family.
- * @return the family details of Smith family.
- */
- public static Family getSmithFamilyItem() {
- Family smithFamily = new Family();
- smithFamily.setId("Smith-" + System.currentTimeMillis());
- smithFamily.setLastName("Smith");
-
- Parent parent1 = new Parent();
- parent1.setFirstName("John");
-
- Parent parent2 = new Parent();
- parent2.setFirstName("Cynthia");
- smithFamily.setParents(new Parent[] { parent1, parent2 });
-
- return smithFamily;
- }
-
- private Families() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Family.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Family.java
deleted file mode 100644
index f7e9f4f2137d..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Family.java
+++ /dev/null
@@ -1,137 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.cosmos;
-
-import java.util.Arrays;
-
-/**
- * The family model.
- */
-public class Family {
- private String id = "";
- private String lastName = "";
- private String district = "";
- private Parent[] parents = { };
- private Child[] children = { };
- private Address address = new Address();
- private boolean isRegistered = false;
-
- /**
- * Creates a new instance of {@link Family}.
- */
- public Family() {
- }
-
- /**
- * Returns the family id.
- * @return the family id.
- */
- public String getId() {
- return id;
- }
-
- /**
- * Sets the family id.
- * @param id the family id.
- */
- public void setId(String id) {
- this.id = id;
- }
-
- /**
- * Returns the family last name.
- * @return the family last name.
- */
- public String getLastName() {
- return lastName;
- }
-
- /**
- * Sets the family last name.
- * @param lastName the family last name.
- */
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
-
- /**
- * Returns the district.
- * @return the district.
- */
- public String getDistrict() {
- return district;
- }
-
- /**
- * Sets the district.
- * @param district the district.
- */
- public void setDistrict(String district) {
- this.district = district;
- }
-
- /**
- * Returns the parents array.
- * @return the parents array.
- */
- public Parent[] getParents() {
- return Arrays.copyOf(parents, parents.length);
- }
-
- /**
- * Sets the parents array.
- * @param parents the parents array.
- */
- public void setParents(Parent[] parents) {
- this.parents = Arrays.copyOf(parents, parents.length);
- }
-
- /**
- * Returns the children array.
- * @return the children array.
- */
- public Child[] getChildren() {
- return Arrays.copyOf(children, children.length);
- }
-
- /**
- * Sets the children array.
- * @param children the children array.
- */
- public void setChildren(Child[] children) {
- this.children = Arrays.copyOf(children, children.length);
- }
-
- /**
- * Returns the address.
- * @return the address.
- */
- public Address getAddress() {
- return address;
- }
-
- /**
- * Sets the address.
- * @param address the address.
- */
- public void setAddress(Address address) {
- this.address = address;
- }
-
- /**
- * Returns true if the family is registered.
- * @return true if the family is registered.
- */
- public boolean isRegistered() {
- return isRegistered;
- }
-
- /**
- * Sets the registration state of the family.
- * @param isRegistered the registration state of the family
- */
- public void setRegistered(boolean isRegistered) {
- this.isRegistered = isRegistered;
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Parent.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Parent.java
deleted file mode 100644
index 1b6a205f9f9a..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Parent.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.cosmos;
-
-/**
- * The parent model.
- */
-public class Parent {
- private String familyName;
- private String firstName;
-
- /**
- * The empty constructor to create a parent instance.
- */
- public Parent() {
- }
-
- /**
- * The constructor to create a parent instance with a first name.
- * @param firstName the first name of the parent.
- */
- public Parent(String firstName) {
- this.firstName = firstName;
- }
-
- /**
- * Returns the family name.
- * @return the family name.
- */
- public String getFamilyName() {
- return familyName;
- }
-
- /**
- * Sets the family name.
- * @param familyName the family name.
- */
- public void setFamilyName(String familyName) {
- this.familyName = familyName;
- }
-
- /**
- * Returns the first name.
- * @return the first name.
- */
- public String getFirstName() {
- return firstName;
- }
-
- /**
- * Sets the first name.
- * @param firstName the first name.
- */
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Pet.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Pet.java
deleted file mode 100644
index 274b576f5345..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/cosmos/Pet.java
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.cosmos;
-
-/**
- * The pet model.
- */
-public class Pet {
- private String givenName;
-
- /**
- * Creates a new instance of {@link Pet}.
- */
- public Pet() {
- }
-
- /**
- * Returns the name of the pet.
- * @return the name of the pet.
- */
- public String getGivenName() {
- return givenName;
- }
-
- /**
- * Sets the name of the pet.
- * @param givenName the name of the pet.
- */
- public void setGivenName(String givenName) {
- this.givenName = givenName;
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/eventhubs/EventHubsSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/eventhubs/EventHubsSample.java
deleted file mode 100644
index a894cb12b0e4..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/eventhubs/EventHubsSample.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.eventhubs;
-
-import com.azure.core.util.Configuration;
-import com.azure.identity.DefaultAzureCredentialBuilder;
-import com.azure.messaging.eventhubs.EventData;
-import com.azure.messaging.eventhubs.EventHubClientBuilder;
-import com.azure.messaging.eventhubs.EventHubProducerClient;
-
-import java.util.Arrays;
-
-/**
- * An Event Hubs sample to demonstrate sending events to Event Hubs using GraalVM.
- */
-public final class EventHubsSample {
- private static final String AZURE_EVENT_HUBS_CONNECTION_STRING
- = Configuration.getGlobalConfiguration().get("AZURE_EVENT_HUBS_CONNECTION_STRING", "");
- private static final String AZURE_EVENT_HUBS_NAMESPACE
- = Configuration.getGlobalConfiguration().get("AZURE_EVENT_HUBS_NAMESPACE", "");
- private static final String AZURE_EVENT_HUBS_NAME
- = Configuration.getGlobalConfiguration().get("AZURE_EVENT_HUBS_NAME", "");
-
- /**
- * The method to run Event Hubs sample.
- */
- public static void runSample() {
- System.out.println("\n================================================================");
- System.out.println(" Starting Event Hubs Sender Sample");
- System.out.println("================================================================");
-
- if (AZURE_EVENT_HUBS_CONNECTION_STRING.isEmpty()
- || (AZURE_EVENT_HUBS_NAMESPACE.isEmpty() && AZURE_EVENT_HUBS_NAME.isEmpty())) {
- System.err.println("AZURE_EVENT_HUBS_CONNECTION_STRING environment variable should be set or "
- + "AZURE_EVENT_HUBS_NAMESPACE and AZURE_EVENT_HUBS_NAME environment variables should be set to "
- + "run this sample.");
- return;
-
- }
- EventHubClientBuilder eventHubClientBuilder = new EventHubClientBuilder();
-
- if (AZURE_EVENT_HUBS_CONNECTION_STRING.isEmpty()) {
- eventHubClientBuilder.credential(AZURE_EVENT_HUBS_NAMESPACE, AZURE_EVENT_HUBS_NAME,
- new DefaultAzureCredentialBuilder().build());
- } else {
- eventHubClientBuilder.connectionString(AZURE_EVENT_HUBS_CONNECTION_STRING);
- }
-
- final EventHubProducerClient eventHubProducerClient = eventHubClientBuilder.buildProducerClient();
-
- System.out.println("Event Hub producer client created");
- eventHubProducerClient.send(Arrays.asList(new EventData("Test event - graalvm")));
- System.out.println("Sent message to Event Hub");
-
- eventHubProducerClient.close();
-
- System.out.println("\n================================================================");
- System.out.println(" Event Hubs Sender Sample Complete");
- System.out.println("================================================================");
- }
-
- private EventHubsSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/formrecognizer/FormRecognizerSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/formrecognizer/FormRecognizerSample.java
deleted file mode 100644
index d9cef62410d0..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/formrecognizer/FormRecognizerSample.java
+++ /dev/null
@@ -1,143 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.formrecognizer;
-
-import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClient;
-import com.azure.ai.formrecognizer.documentanalysis.DocumentAnalysisClientBuilder;
-import com.azure.ai.formrecognizer.documentanalysis.models.AnalyzeResult;
-import com.azure.ai.formrecognizer.documentanalysis.models.AnalyzedDocument;
-import com.azure.ai.formrecognizer.documentanalysis.models.DocumentField;
-import com.azure.ai.formrecognizer.documentanalysis.models.DocumentFieldType;
-import com.azure.ai.formrecognizer.documentanalysis.models.OperationResult;
-import com.azure.core.credential.AzureKeyCredential;
-import com.azure.core.util.BinaryData;
-import com.azure.core.util.polling.SyncPoller;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.time.LocalDate;
-import java.util.List;
-import java.util.Map;
-
-/**
- * A sample to demonstrate Form Recognizer's functionality to recognize receipts using GraalVM.
- */
-public final class FormRecognizerSample {
- private static final String AZURE_FORM_RECOGNIZER_ENDPOINT = System.getenv("AZURE_FORM_RECOGNIZER_ENDPOINT");
- private static final String AZURE_FORM_RECOGNIZER_KEY = System.getenv("AZURE_FORM_RECOGNIZER_KEY");
-
- /**
- * The method to run the formrecognizer sample.
- * @throws IOException if the input image cannot be read.
- */
- public static void runSample() throws IOException {
- System.out.println("\n================================================================");
- System.out.println(" Starting Form Recognizer Sample");
- System.out.println("================================================================");
-
- // Instantiate a client that will be used to call the service.
- DocumentAnalysisClient client
- = new DocumentAnalysisClientBuilder().credential(new AzureKeyCredential(AZURE_FORM_RECOGNIZER_KEY))
- .endpoint(AZURE_FORM_RECOGNIZER_ENDPOINT)
- .buildClient();
-
- String fileName = "contoso-allinone.jpg";
- InputStream resourceAsStream = FormRecognizerSample.class.getClassLoader().getResourceAsStream(fileName);
- BinaryData imageData = BinaryData.fromStream(resourceAsStream);
- byte[] bytes = imageData.toBytes();
- BinaryData requestContent = BinaryData.fromBytes(bytes);
- SyncPoller analyzeReceiptPoller
- = client.beginAnalyzeDocument("prebuilt-receipt", requestContent);
-
- AnalyzeResult receiptResults = analyzeReceiptPoller.getFinalResult();
-
- for (int i = 0; i < receiptResults.getDocuments().size(); i++) {
- AnalyzedDocument analyzedReceipt = receiptResults.getDocuments().get(i);
- Map receiptFields = analyzedReceipt.getFields();
- System.out.printf("----------- Analyzing receipt info %d -----------%n", i);
- DocumentField merchantNameField = receiptFields.get("MerchantName");
- if (merchantNameField != null) {
- if (DocumentFieldType.STRING == merchantNameField.getType()) {
- String merchantName = merchantNameField.getValueAsString();
- System.out.printf("Merchant Name: %s, confidence: %.2f%n", merchantName,
- merchantNameField.getConfidence());
- }
- }
-
- DocumentField merchantPhoneNumberField = receiptFields.get("MerchantPhoneNumber");
- if (merchantPhoneNumberField != null) {
- if (DocumentFieldType.PHONE_NUMBER == merchantPhoneNumberField.getType()) {
- String merchantAddress = merchantPhoneNumberField.getValueAsPhoneNumber();
- System.out.printf("Merchant Phone number: %s, confidence: %.2f%n", merchantAddress,
- merchantPhoneNumberField.getConfidence());
- }
- }
-
- DocumentField merchantAddressField = receiptFields.get("MerchantAddress");
- if (merchantAddressField != null) {
- if (DocumentFieldType.STRING == merchantAddressField.getType()) {
- String merchantAddress = merchantAddressField.getValueAsString();
- System.out.printf("Merchant Address: %s, confidence: %.2f%n", merchantAddress,
- merchantAddressField.getConfidence());
- }
- }
-
- DocumentField transactionDateField = receiptFields.get("TransactionDate");
- if (transactionDateField != null) {
- if (DocumentFieldType.DATE == transactionDateField.getType()) {
- LocalDate transactionDate = transactionDateField.getValueAsDate();
- System.out.printf("Transaction Date: %s, confidence: %.2f%n", transactionDate,
- transactionDateField.getConfidence());
- }
- }
-
- DocumentField receiptItemsField = receiptFields.get("Items");
- if (receiptItemsField != null) {
- System.out.printf("Receipt Items: %n");
- if (DocumentFieldType.LIST == receiptItemsField.getType()) {
- List receiptItems = receiptItemsField.getValueAsList();
- receiptItems.stream()
- .filter(receiptItem -> DocumentFieldType.MAP == receiptItem.getType())
- .map(formField -> formField.getValueAsMap())
- .forEach(formFieldMap -> formFieldMap.forEach((key, formField) -> {
- if ("Name".equals(key)) {
- if (DocumentFieldType.STRING == formField.getType()) {
- String name = formField.getValueAsString();
- System.out.printf("Name: %s, confidence: %.2fs%n", name, formField.getConfidence());
- }
- }
- if ("Quantity".equals(key)) {
- if (DocumentFieldType.DOUBLE == formField.getType()) {
- Double quantity = formField.getValueAsDouble();
- System.out.printf("Quantity: %f, confidence: %.2f%n", quantity,
- formField.getConfidence());
- }
- }
- if ("Price".equals(key)) {
- if (DocumentFieldType.DOUBLE == formField.getType()) {
- Double price = formField.getValueAsDouble();
- System.out.printf("Price: %f, confidence: %.2f%n", price,
- formField.getConfidence());
- }
- }
- if ("TotalPrice".equals(key)) {
- if (DocumentFieldType.DOUBLE == formField.getType()) {
- Double totalPrice = formField.getValueAsDouble();
- System.out.printf("Total Price: %f, confidence: %.2f%n", totalPrice,
- formField.getConfidence());
- }
- }
- }));
- }
- }
- }
-
- System.out.println("\n================================================================");
- System.out.println(" Form Recognizer Sample Complete");
- System.out.println("================================================================");
- }
-
- private FormRecognizerSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/certificates/KeyVaultCertificatesSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/certificates/KeyVaultCertificatesSample.java
deleted file mode 100644
index 180d48edd990..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/certificates/KeyVaultCertificatesSample.java
+++ /dev/null
@@ -1,138 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.keyvault.certificates;
-
-import com.azure.core.util.polling.LongRunningOperationStatus;
-import com.azure.core.util.polling.PollResponse;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.identity.DefaultAzureCredentialBuilder;
-import com.azure.security.keyvault.certificates.CertificateClient;
-import com.azure.security.keyvault.certificates.CertificateClientBuilder;
-import com.azure.security.keyvault.certificates.models.CertificateIssuer;
-import com.azure.security.keyvault.certificates.models.CertificateKeyCurveName;
-import com.azure.security.keyvault.certificates.models.CertificateKeyType;
-import com.azure.security.keyvault.certificates.models.CertificateOperation;
-import com.azure.security.keyvault.certificates.models.CertificatePolicy;
-import com.azure.security.keyvault.certificates.models.DeletedCertificate;
-import com.azure.security.keyvault.certificates.models.KeyVaultCertificate;
-import com.azure.security.keyvault.certificates.models.KeyVaultCertificateWithPolicy;
-import com.azure.security.keyvault.certificates.models.SubjectAlternativeNames;
-
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.UUID;
-
-/**
- * A Key Vault Certificate sample to demonstrate CRUD operations using GraalVM.
- */
-public final class KeyVaultCertificatesSample {
- private static final String AZURE_KEY_VAULT_URL = System.getenv("AZURE_KEY_VAULT_URL");
-
- /**
- * The method to run Key Vault certificates sample.
- */
- public static void runSample() {
- System.out.println("================================================================");
- System.out.println(" Starting Key Vault Certificates Sample");
- System.out.println("================================================================");
-
- if (AZURE_KEY_VAULT_URL == null || AZURE_KEY_VAULT_URL.isEmpty()) {
- System.err.println("azure_key_vault_url environment variable is not set - exiting");
- return;
- }
-
- // Instantiate a certificate client that will be used to call the service. Notice that the client is using default Azure
- // credentials. To make default credentials work, ensure that environment variables 'AZURE_CLIENT_ID',
- // 'AZURE_CLIENT_KEY' and 'AZURE_TENANT_ID' are set with the service principal credentials.
- CertificateClient certificateClient = new CertificateClientBuilder().vaultUrl(AZURE_KEY_VAULT_URL)
- .credential(new DefaultAzureCredentialBuilder().build())
- .buildClient();
- System.out.println("Created Certificate client");
-
- // Let's create a self signed certificate valid for 1 year. if the certificate
- // already exists in the key vault, then a new version of the certificate is created.
- CertificatePolicy policy = new CertificatePolicy("Self", "CN=SelfSignedJavaPkcs12")
- .setSubjectAlternativeNames(new SubjectAlternativeNames().setEmails(Arrays.asList("wow@gmail.com")))
- .setKeyReusable(true)
- .setKeyType(CertificateKeyType.EC)
- .setKeyCurveName(CertificateKeyCurveName.P_256)
- .setValidityInMonths(12);
- Map tags = new HashMap<>();
- tags.put("foo", "bar");
-
- System.out.println("Creating new certificate");
- String certificateName1 = "certificateName2" + UUID.randomUUID();
- SyncPoller certificatePoller
- = certificateClient.beginCreateCertificate(certificateName1, policy, true, tags);
- certificatePoller.waitUntil(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED);
-
- // Let's Get the latest version of the certificate from the key vault.
- System.out.println("Retrieving the new certificate from the key vault");
- KeyVaultCertificate certificate = certificateClient.getCertificate(certificateName1);
- System.out.printf("Certificate is returned with name %s and secret id %s %n",
- certificate.getProperties().getName(), certificate.getSecretId());
-
- // After some time, we need to disable the certificate temporarily, so we update the enabled status of the certificate.
- // The update method can be used to update the enabled status of the certificate.
- certificate.getProperties().setEnabled(false);
- KeyVaultCertificate updatedCertificate
- = certificateClient.updateCertificateProperties(certificate.getProperties());
- System.out.printf("Certificate's updated enabled status is %s %n",
- updatedCertificate.getProperties().isEnabled());
-
- //Let's create a certificate issuer.
- CertificateIssuer issuer = new CertificateIssuer("myIssuer", "Test");
- CertificateIssuer myIssuer = certificateClient.createIssuer(issuer);
- System.out.printf("Issuer created with name %s and provider %s", myIssuer.getName(), myIssuer.getProvider());
-
- // Let's fetch the issuer we just created from the key vault.
- myIssuer = certificateClient.getIssuer("myIssuer");
- System.out.printf("Issuer retrieved with name %s and provider %s", myIssuer.getName(), myIssuer.getProvider());
-
- //Let's create a certificate signed by our issuer.
- String certificateName2 = "myCertificate" + UUID.randomUUID();
- certificateClient
- .beginCreateCertificate(certificateName2, new CertificatePolicy("myIssuer", "CN=SelfSignedJavaPkcs12"),
- true, tags)
- .waitUntil(LongRunningOperationStatus.SUCCESSFULLY_COMPLETED);
-
- // Let's Get the latest version of our certificate from the key vault.
- KeyVaultCertificate myCert = certificateClient.getCertificate(certificateName2);
- System.out.printf("Certificate is returned with name %s and secret id %s %n", myCert.getProperties().getName(),
- myCert.getSecretId());
-
- // The certificates and issuers are no longer needed, need to delete it from the key vault.
- SyncPoller deletedCertificatePoller
- = certificateClient.beginDeleteCertificate(certificateName1);
- // Deleted Certificate is accessible as soon as polling beings.
- PollResponse pollResponse = deletedCertificatePoller.poll();
- System.out.printf("Deleted certificate with name %s and recovery id %s", pollResponse.getValue().getName(),
- pollResponse.getValue().getRecoveryId());
- deletedCertificatePoller.waitForCompletion();
-
- SyncPoller deletedCertPoller
- = certificateClient.beginDeleteCertificate(certificateName2);
- // Deleted Certificate is accessible as soon as polling beings.
- PollResponse deletePollResponse = deletedCertPoller.poll();
- System.out.printf("Deleted certificate with name %s and recovery id %s",
- deletePollResponse.getValue().getName(), deletePollResponse.getValue().getRecoveryId());
- deletedCertPoller.waitForCompletion();
-
- CertificateIssuer deleteCertificateIssuer = certificateClient.deleteIssuer("myIssuer");
- System.out.printf("Certificate issuer is permanently deleted with name %s and provider is %s %n",
- deleteCertificateIssuer.getName(), deleteCertificateIssuer.getProvider());
-
- // If the keyvault is soft-delete enabled, then for permanent deletion deleted certificates need to be purged.
- certificateClient.purgeDeletedCertificate(certificateName1);
- certificateClient.purgeDeletedCertificate(certificateName2);
-
- System.out.println("\n================================================================");
- System.out.println(" Key Vault Keys Certificates Complete");
- System.out.println("================================================================");
- }
-
- private KeyVaultCertificatesSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/keys/KeyVaultKeysSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/keys/KeyVaultKeysSample.java
deleted file mode 100644
index 7d5a8024ef81..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/keys/KeyVaultKeysSample.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.keyvault.keys;
-
-import com.azure.identity.DefaultAzureCredentialBuilder;
-import com.azure.security.keyvault.keys.KeyClient;
-import com.azure.security.keyvault.keys.KeyClientBuilder;
-import com.azure.security.keyvault.keys.models.KeyVaultKey;
-
-/**
- * A sample to demonstrate getting a key from Azure Key Vault using GraalVM.
- */
-public final class KeyVaultKeysSample {
-
- private static final String AZURE_KEY_VAULT_URL = System.getenv("AZURE_KEY_VAULT_URL");
-
- /**
- * The method to run the Key Vault Keys sample.
- */
- public static void runSample() {
- System.out.println("\n================================================================");
- System.out.println(" Starting Key Vault Keys Sample");
- System.out.println("================================================================");
-
- if (AZURE_KEY_VAULT_URL == null || AZURE_KEY_VAULT_URL.isEmpty()) {
- System.err.println("AZURE_KEY_VAULT_URL environment variable is not set - exiting");
- }
-
- KeyClient keyClient = new KeyClientBuilder().vaultUrl(AZURE_KEY_VAULT_URL)
- .credential(new DefaultAzureCredentialBuilder().build())
- .buildClient();
-
- System.out.println("Getting key from Key Vault");
- KeyVaultKey key = keyClient.getKey("testkey");
- System.out.println(key.getName() + " " + key.getId());
-
- System.out.println("\n================================================================");
- System.out.println(" Key Vault Keys Sample Complete");
- System.out.println("================================================================");
- }
-
- private KeyVaultKeysSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/secrets/KeyVaultSecretsSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/secrets/KeyVaultSecretsSample.java
deleted file mode 100644
index 28b59a9bdb74..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/secrets/KeyVaultSecretsSample.java
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.keyvault.secrets;
-
-import com.azure.core.util.polling.PollResponse;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.identity.DefaultAzureCredentialBuilder;
-import com.azure.security.keyvault.secrets.SecretClient;
-import com.azure.security.keyvault.secrets.SecretClientBuilder;
-import com.azure.security.keyvault.secrets.models.DeletedSecret;
-import com.azure.security.keyvault.secrets.models.KeyVaultSecret;
-import com.azure.security.keyvault.secrets.models.SecretProperties;
-
-import java.time.OffsetDateTime;
-
-/**
- * A sample to demonstrate CRUD operations for Azure Key Vault secrets using GraalVM.
- */
-public final class KeyVaultSecretsSample {
- private static final String AZURE_KEY_VAULT_URL = System.getenv("AZURE_KEY_VAULT_URL");
-
- /**
- * The method to run the Key Vault secrets sample.
- */
- public static void runSample() {
- System.out.println("\n================================================================");
- System.out.println(" Starting Key Vault Secrets Sample");
- System.out.println("================================================================");
-
- if (AZURE_KEY_VAULT_URL == null || AZURE_KEY_VAULT_URL.isEmpty()) {
- System.err.println("azure_key_vault_url environment variable is not set - exiting");
- return;
- }
-
- // Instantiate a secret client that will be used to call the service. Notice that the client is using default Azure
- // credentials. To make default credentials work, ensure that environment variables 'AZURE_CLIENT_ID',
- // 'AZURE_CLIENT_KEY' and 'AZURE_TENANT_ID' are set with the service principal credentials.
- SecretClient secretClient = new SecretClientBuilder().vaultUrl(AZURE_KEY_VAULT_URL)
- .credential(new DefaultAzureCredentialBuilder().build())
- .buildClient();
-
- // Let's create a secret holding bank account credentials valid for 1 year. if the secret
- // already exists in the key vault, then a new version of the secret is created.
- secretClient.setSecret(new KeyVaultSecret("BankAccountPassword", "f4G34fMh8v")
- .setProperties(new SecretProperties().setExpiresOn(OffsetDateTime.now().plusYears(1))));
-
- // Let's Get the bank secret from the key vault.
- KeyVaultSecret bankSecret = secretClient.getSecret("BankAccountPassword");
- System.out.printf("Secret is returned with name %s and value %s %n", bankSecret.getName(),
- bankSecret.getValue());
-
- // After one year, the bank account is still active, we need to update the expiry time of the secret.
- // The update method can be used to update the expiry attribute of the secret. It cannot be used to update
- // the value of the secret.
- bankSecret.getProperties().setExpiresOn(OffsetDateTime.now().plusYears(1));
- SecretProperties updatedSecret = secretClient.updateSecretProperties(bankSecret.getProperties());
- System.out.printf("Secret's updated expiry time %s %n", updatedSecret.getExpiresOn());
-
- // Bank forced a password update for security purposes. Let's change the value of the secret in the key vault.
- // To achieve this, we need to create a new version of the secret in the key vault. The update operation cannot
- // change the value of the secret.
- secretClient.setSecret(new KeyVaultSecret("BankAccountPassword", "bhjd4DDgsa")
- .setProperties(new SecretProperties().setExpiresOn(OffsetDateTime.now().plusYears(1))));
-
- // The bank account was closed, need to delete its credentials from the key vault.
- SyncPoller deletedBankSecretPoller = secretClient.beginDeleteSecret("BankAccountPassword");
-
- PollResponse deletedBankSecretPollResponse = deletedBankSecretPoller.poll();
-
- System.out.println("Deleted Date %s" + deletedBankSecretPollResponse.getValue().getDeletedOn().toString());
- System.out.printf("Deleted Secret's Recovery Id %s", deletedBankSecretPollResponse.getValue().getRecoveryId());
-
- // Key is being deleted on server.
- deletedBankSecretPoller.waitForCompletion();
-
- // If the key vault is soft-delete enabled, then for permanent deletion deleted secrets need to be purged.
- secretClient.purgeDeletedSecret("BankAccountPassword");
-
- System.out.println("\n================================================================");
- System.out.println(" Key Vault Keys Secrets Complete");
- System.out.println("================================================================");
- }
-
- private KeyVaultSecretsSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/storage/blob/StorageBlobSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/storage/blob/StorageBlobSample.java
deleted file mode 100644
index 970ff794bfee..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/storage/blob/StorageBlobSample.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.storage.blob;
-
-import com.azure.core.util.BinaryData;
-import com.azure.identity.DefaultAzureCredentialBuilder;
-import com.azure.storage.blob.BlobClient;
-import com.azure.storage.blob.BlobContainerClient;
-import com.azure.storage.blob.BlobServiceClient;
-import com.azure.storage.blob.BlobServiceClientBuilder;
-
-import java.util.Random;
-
-/**
- * A sample to demonstrate uploading a blob to Azure Blob Storage using GraalVM.
- */
-public final class StorageBlobSample {
- private static final String AZURE_STORAGE_CONNECTION_STRING = System.getenv("AZURE_STORAGE_CONNECTION_STRING");
- private static final Random RANDOM = new Random();
-
- /**
- * The method to run the storage blob sample.
- */
- public static void runSample() {
-
- System.out.println("\n================================================================");
- System.out.println(" Starting Blob Storage Sample");
- System.out.println("================================================================");
-
- final BlobServiceClientBuilder blobServiceClientBuilder = new BlobServiceClientBuilder();
- if (AZURE_STORAGE_CONNECTION_STRING != null && !AZURE_STORAGE_CONNECTION_STRING.isEmpty()) {
- blobServiceClientBuilder.connectionString(AZURE_STORAGE_CONNECTION_STRING);
- } else {
- blobServiceClientBuilder.credential(new DefaultAzureCredentialBuilder().build());
- }
-
- final BlobServiceClient blobServiceClient = blobServiceClientBuilder.buildClient();
-
- final String containerName = "graal-uploads-" + RANDOM.nextInt(100);
- BlobContainerClient blobContainerClient = blobServiceClient.getBlobContainerClient(containerName);
- if (!blobContainerClient.exists()) {
- blobContainerClient = blobServiceClient.createBlobContainer(containerName);
- }
-
- System.out.println("Beginning upload");
- final BlobClient blobClient = blobContainerClient.getBlobClient("graalvm-test.bin");
-
- byte[] bytes = new byte[1024 * 1024];
- RANDOM.nextBytes(bytes);
- blobClient.upload(BinaryData.fromBytes(bytes));
-
- System.out.println("Upload complete");
-
- blobContainerClient.delete();
-
- System.out.println("\n================================================================");
- System.out.println(" Blob Storage Sample Complete");
- System.out.println("================================================================");
- }
-
- private StorageBlobSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/textanalytics/TextAnalyticsSample.java b/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/textanalytics/TextAnalyticsSample.java
deleted file mode 100644
index 3d0a95016d2b..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/textanalytics/TextAnalyticsSample.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.samples.textanalytics;
-
-import com.azure.ai.textanalytics.TextAnalyticsClient;
-import com.azure.ai.textanalytics.TextAnalyticsClientBuilder;
-import com.azure.ai.textanalytics.models.DocumentSentiment;
-import com.azure.ai.textanalytics.models.SentimentConfidenceScores;
-import com.azure.core.credential.AzureKeyCredential;
-
-/**
- * A GraalVM sample to demonstrate analyzing sentiment of a sentence using Azure Text Analytics.
- */
-public final class TextAnalyticsSample {
- private static final String AZURE_TEXT_ANALYTICS_KEY = System.getenv("AZURE_TEXT_ANALYTICS_KEY");
- private static final String AZURE_TEXT_ANALYTICS_ENDPOINT = System.getenv("AZURE_TEXT_ANALYTICS_ENDPOINT");
-
- /**
- * The method to run the text analytics sample.
- */
- public static void runSample() {
- System.out.println("\n================================================================");
- System.out.println(" Starting Text Analytics Sample");
- System.out.println("================================================================");
-
- // Instantiate a client that will be used to call the service.
- TextAnalyticsClient client
- = new TextAnalyticsClientBuilder().credential(new AzureKeyCredential(AZURE_TEXT_ANALYTICS_KEY))
- .endpoint(AZURE_TEXT_ANALYTICS_ENDPOINT)
- .buildClient();
-
- // The text that needs be analyzed.
- String document = "The hotel was dark and unclean. I like Microsoft.";
-
- final DocumentSentiment documentSentiment = client.analyzeSentiment(document);
- SentimentConfidenceScores scores = documentSentiment.getConfidenceScores();
- System.out.printf(
- "Recognized document sentiment: %s, positive score: %f, neutral score: %f, negative score: %f.%n",
- documentSentiment.getSentiment(), scores.getPositive(), scores.getNeutral(), scores.getNegative());
-
- documentSentiment.getSentences().forEach(sentenceSentiment -> {
- SentimentConfidenceScores sentenceScores = sentenceSentiment.getConfidenceScores();
- System.out.printf(
- "Recognized sentence sentiment: %s, positive score: %f, neutral score: %f, negative score: %f.%n",
- sentenceSentiment.getSentiment(), sentenceScores.getPositive(), sentenceScores.getNeutral(),
- sentenceScores.getNegative());
- });
-
- System.out.println("\n================================================================");
- System.out.println(" Text Analytics Sample Complete");
- System.out.println("================================================================");
- }
-
- private TextAnalyticsSample() {
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/resources/META-INF/native-image/com.azure/azure-aot-graalvm-samples/reflect-config.json b/sdk/aot/azure-aot-graalvm-samples/src/main/resources/META-INF/native-image/com.azure/azure-aot-graalvm-samples/reflect-config.json
deleted file mode 100644
index 9a0ab2bb25aa..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/resources/META-INF/native-image/com.azure/azure-aot-graalvm-samples/reflect-config.json
+++ /dev/null
@@ -1,38 +0,0 @@
-[
- {
- "name": "com.azure.aot.graalvm.samples.cosmos.Family",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.aot.graalvm.samples.cosmos.Address",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.aot.graalvm.samples.cosmos.Child",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.aot.graalvm.samples.cosmos.Parent",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.aot.graalvm.samples.cosmos.Pet",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.aot.graalvm.samples.cosmos.Families",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/resources/META-INF/native-image/com.azure/azure-aot-graalvm-samples/resource-config.json b/sdk/aot/azure-aot-graalvm-samples/src/main/resources/META-INF/native-image/com.azure/azure-aot-graalvm-samples/resource-config.json
deleted file mode 100644
index 5a7d962862f6..000000000000
--- a/sdk/aot/azure-aot-graalvm-samples/src/main/resources/META-INF/native-image/com.azure/azure-aot-graalvm-samples/resource-config.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "contoso-allinone.jpg"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-samples/src/main/resources/contoso-allinone.jpg b/sdk/aot/azure-aot-graalvm-samples/src/main/resources/contoso-allinone.jpg
deleted file mode 100644
index 1aaad34387ec..000000000000
Binary files a/sdk/aot/azure-aot-graalvm-samples/src/main/resources/contoso-allinone.jpg and /dev/null differ
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/CHANGELOG.md b/sdk/aot/azure-aot-graalvm-support-netty/CHANGELOG.md
deleted file mode 100644
index 5c86ecb5c891..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/CHANGELOG.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# Release History
-
-## 1.0.0-beta.4 (Unreleased)
-
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
-
-## 1.0.0-beta.3 (2023-04-04)
-
-### Other Changes
-- Marked this library as deprecated. Please refer to the [blog post](https://devblogs.microsoft.com/azure-sdk/announcing-graalvm-support-in-azure-sdk-for-java-and-spring-cloud-azure-libraries/) for more details on GraalVM support in Azure SDK for Java.
-
-#### Dependency Updates
-- Updated `azure-aot-graalvm-support` version to 1.0.0-beta.3
-
-## 1.0.0-beta.2 (2022-04-25)
-
-### Other Changes
-
-#### Dependency Updates
-- Updated `azure-aot-graalvm-support` version to 1.0.0-beta.2
-
-## 1.0.0-beta.1 (2022-04-08)
-
-Version 1.0.0-beta.1 is a preview of our efforts in creating a client library for Azure GraalVM Netty Support that is
-developer-friendly, idiomatic to the Java ecosystem, and as consistent across different languages and platforms as
-possible. The principles that guide our efforts can be found in the
-[Azure SDK Design Guidelines for Java](https://azure.github.io/azure-sdk/java_introduction.html).
-
-## Features Added
-- Initial release. Please see the README and wiki for information on using the new library.
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/README.md b/sdk/aot/azure-aot-graalvm-support-netty/README.md
deleted file mode 100644
index 6732fe2d8bd6..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/README.md
+++ /dev/null
@@ -1,90 +0,0 @@
-# Azure GraalVM Netty Support client library for Java
-
-> **IMPORTANT** Please note that this package is deprecated and will no longer be updated. The necessary configuration files to support
-> native image compilation using GraalVM is now directly available on respective client libraries. It is no longer required
-> to add this package as a dependency to build native images with Azure SDK for Java. - Marked this library as deprecated.
-> Please refer to the [blog post](https://devblogs.microsoft.com/azure-sdk/announcing-graalvm-support-in-azure-sdk-for-java-and-spring-cloud-azure-libraries/) for more details on GraalVM support in Azure SDK for Java.
-
-The Azure GraalVM Netty Support client library provides support for applications using
-[Azure client libraries](https://azure.github.io/azure-sdk/releases/latest/java.html) that take a dependency on
-[azure-core-http-netty](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/core/azure-core-http-netty) to be
-built as [GraalVM native images](https://www.graalvm.org/22.0/reference-manual/native-image/). The library contains all the necessary
-[configuration files](https://www.graalvm.org/22.0/reference-manual/native-image/BuildConfiguration/) and [GraalVM
-features](https://www.graalvm.org/sdk/javadoc/index.html?org/graalvm/nativeimage/hosted/Feature.html) required to build
-a native image of an application that uses Azure client libraries.
-
-**NOTE:**: This library is a preview and is intended to enable applications using Azure client libraries to quickly
-build and validate native images. However, this is not a stable, GA version and is not officially supported to use in production
-environments.
-
-## Getting started
-
-### Prerequisites
-- A [Java Development Kit (JDK)][jdk_link], version 8 or later.
-- [Azure Subscription][azure_subscription]
-- [GraalVM](https://www.graalvm.org/downloads/) version 22 or later.
-- [GraalVM Native Image](https://www.graalvm.org/22.0/reference-manual/native-image/)
-
-### Include the package
-
-Include both the packages below:
-
-[//]: # ({x-version-update-start;com.azure:azure-aot-graalvm-support;current})
-```xml
-
- com.azure
- azure-aot-graalvm-support
- 1.0.0-beta.3
-
-```
-[//]: # ({x-version-update-end})
-
-[//]: # ({x-version-update-start;com.azure:azure-aot-graalvm-support-netty;current})
-```xml
-
- com.azure
- azure-aot-graalvm-support-netty
- 1.0.0-beta.3
-
-```
-[//]: # ({x-version-update-end})
-## Key concepts
-
-Please refer to the [Key Concepts](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/aot/azure-aot-graalvm-support#key-concepts) section of the azure-aot-graalvm-support library.
-
-## Examples
-
-Please refer to the [Examples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/aot/azure-aot-graalvm-support#examples) section of the
-`azure-aot-graalvm-support` library.
-
-## Troubleshooting
-Please refer to the [Troubleshooting](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/aot/azure-aot-graalvm-support#troubleshooting) section of the
-`azure-aot-graalvm-support` library.
-
-## Next steps
-Please refer to the [Next Steps](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/aot/azure-aot-graalvm-support#next-steps) section of the
-`azure-aot-graalvm-support` library.
-
-## Contributing
-
-This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License
-Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.
-For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
-
-When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the
-PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this
-once across all repos using our CLA.
-
-This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
-For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact
-[opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
-
-
-[cla]: https://cla.microsoft.com
-[coc]: https://opensource.microsoft.com/codeofconduct/
-[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-[coc_contact]: mailto:opencode@microsoft.com
-[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
-[azure_subscription]: https://azure.microsoft.com/free
-
-
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/pom.xml b/sdk/aot/azure-aot-graalvm-support-netty/pom.xml
deleted file mode 100644
index dda38a3c7ac3..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/pom.xml
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
- 4.0.0
-
- com.azure
- azure-aot-graalvm-support-netty
- 1.0.0-beta.4
-
- jar
- Microsoft Azure SDK for GraalVM Netty support
-
- This package is deprecated will have no further updates. Dependency on this library is no longer required to build native images with Azure SDK for Java.
- For more details, please refer to https://devblogs.microsoft.com/azure-sdk/announcing-graalvm-support-in-azure-sdk-for-java-and-spring-cloud-azure-libraries
-
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
- https://github.com/Azure/azure-sdk-for-java
-
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
-
-
-
- azure-java-build-docs
- ${site.url}/site/${project.artifactId}
-
-
-
-
- scm:git:https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- UTF-8
-
-
-
-
-
- microsoft
- Microsoft
-
-
-
-
-
- com.azure
- azure-aot-graalvm-support
- 1.0.0-beta.4
-
-
- io.netty
- netty-handler
- 4.1.115.Final
-
-
- io.netty
- netty-handler-proxy
- 4.1.115.Final
-
-
- io.netty
- netty-buffer
- 4.1.115.Final
-
-
- io.netty
- netty-codec-http
- 4.1.115.Final
-
-
-
- io.netty
- netty-codec-http2
- 4.1.115.Final
-
-
- io.netty
- netty-transport-native-unix-common
- 4.1.115.Final
-
-
- io.netty
- netty-transport-native-epoll
- 4.1.115.Final
- linux-x86_64
-
-
- io.netty
- netty-transport-native-kqueue
- 4.1.115.Final
- osx-x86_64
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.5.0
-
-
-
-
- io.netty:netty-buffer:[4.1.115.Final]
- io.netty:netty-codec-http:[4.1.115.Final]
- io.netty:netty-codec-http2:[4.1.115.Final]
- io.netty:netty-handler:[4.1.115.Final]
- io.netty:netty-handler-proxy:[4.1.115.Final]
- io.netty:netty-transport-native-unix-common:[4.1.115.Final]
- io.netty:netty-transport-native-epoll:[4.1.115.Final]
- io.netty:netty-transport-native-kqueue:[4.1.115.Final]
-
-
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 3.10.1
-
-
- attach-javadocs
-
- jar
-
-
- true
-
-
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 3.4.2
-
-
- empty-javadoc-jar-with-readme
- package
-
- jar
-
-
- javadoc
- ${project.basedir}/javadocTemp
-
-
-
-
-
- org.apache.maven.plugins
- maven-antrun-plugin
- 3.1.0
-
-
- copy-readme-to-javadocTemp
- prepare-package
-
-
- Deleting existing ${project.basedir}/javadocTemp
-
-
-
- Copying ${project.basedir}/README.md to
- ${project.basedir}/javadocTemp/README.md
-
-
-
-
-
- run
-
-
-
-
-
-
-
-
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/com/azure/aot/graalvm/support/netty/implementation/features/NettySubstitutions.java b/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/com/azure/aot/graalvm/support/netty/implementation/features/NettySubstitutions.java
deleted file mode 100644
index e7f7555cdaa7..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/com/azure/aot/graalvm/support/netty/implementation/features/NettySubstitutions.java
+++ /dev/null
@@ -1,478 +0,0 @@
-/*
- * Copyright (C) 2018 The Quarkus Authors
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- */
-
-/*
- * Portions Copyright (c) Microsoft Corporation
- */
-package com.azure.aot.graalvm.support.netty.implementation.features;
-
-import com.oracle.svm.core.annotate.Alias;
-import com.oracle.svm.core.annotate.RecomputeFieldValue;
-import com.oracle.svm.core.annotate.RecomputeFieldValue.Kind;
-import com.oracle.svm.core.annotate.Substitute;
-import com.oracle.svm.core.annotate.TargetClass;
-import com.oracle.svm.core.jdk.JDK11OrLater;
-import com.oracle.svm.core.jdk.JDK8OrEarlier;
-import io.netty.buffer.ByteBufAllocator;
-import io.netty.channel.ChannelHandlerContext;
-import io.netty.channel.embedded.EmbeddedChannel;
-import io.netty.handler.codec.compression.ZlibCodecFactory;
-import io.netty.handler.codec.compression.ZlibWrapper;
-import io.netty.handler.ssl.ApplicationProtocolConfig;
-import io.netty.handler.ssl.ApplicationProtocolConfig.SelectorFailureBehavior;
-import io.netty.handler.ssl.CipherSuiteFilter;
-import io.netty.handler.ssl.ClientAuth;
-import io.netty.handler.ssl.SslContext;
-import io.netty.handler.ssl.SslContextOption;
-import io.netty.handler.ssl.SslProvider;
-
-import javax.net.ssl.KeyManagerFactory;
-import javax.net.ssl.SSLEngine;
-import javax.net.ssl.SSLException;
-import javax.net.ssl.TrustManagerFactory;
-import java.security.PrivateKey;
-import java.security.Provider;
-import java.security.cert.X509Certificate;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.BooleanSupplier;
-
-import static io.netty.handler.codec.http.HttpHeaderValues.DEFLATE;
-import static io.netty.handler.codec.http.HttpHeaderValues.GZIP;
-import static io.netty.handler.codec.http.HttpHeaderValues.X_DEFLATE;
-import static io.netty.handler.codec.http.HttpHeaderValues.X_GZIP;
-
-@TargetClass(
- className = "io.netty.util.internal.logging.InternalLoggerFactory",
- onlyWith = TargetIoNettyUtilInternalLoggingInternalLoggerFactory.OnlyIfInClassPath.class)
-final class TargetIoNettyUtilInternalLoggingInternalLoggerFactory {
-
- static class OnlyIfInClassPath implements BooleanSupplier {
- @Override
- public boolean getAsBoolean() {
- try {
- Class.forName("io.netty.util.internal.logging.InternalLoggerFactory", false,
- Thread.currentThread().getContextClassLoader());
- return true;
- } catch (ClassNotFoundException e) {
- return false;
- }
- }
- }
-}
-
-//*********************************************************
-// Taken from
-// https://github.com/quarkusio/quarkus/blob/main/extensions/netty/runtime/src/main/java/io/quarkus/netty/runtime/graal/NettySubstitutions.java
-//*********************************************************
-
-// SSL
-// This whole section is mostly about removing static analysis references to openssl/tcnative
-
-@TargetClass(className = "io.netty.handler.ssl.SslProvider")
-final class TargetIoNettyHandlerSslSslProvider {
- @Substitute
- public static boolean isAlpnSupported(final SslProvider provider) {
- switch (provider) {
- case JDK:
- return TargetIoNettyHandlerSslJdkAlpnApplicationProtocolNegotiator.isAlpnSupported();
-
- case OPENSSL:
- case OPENSSL_REFCNT:
- return false;
-
- default:
- throw new RuntimeException("SslProvider unsupported " + provider);
- }
- }
-}
-
-@TargetClass(
- className = "io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator",
- onlyWith = TargetIoNettyHandlerSslJdkAlpnApplicationProtocolNegotiator.OnlyIfInClassPath.class)
-final class TargetIoNettyHandlerSslJdkAlpnApplicationProtocolNegotiator {
- @Alias
- static boolean isAlpnSupported() {
- return true;
- }
-
- static class OnlyIfInClassPath implements BooleanSupplier {
- @Override
- public boolean getAsBoolean() {
- try {
- Class.forName("io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator", false,
- Thread.currentThread().getContextClassLoader());
- return true;
- } catch (ClassNotFoundException e) {
- return false;
- }
- }
- }
-}
-
-/**
- * Hardcode io.netty.handler.ssl.OpenSsl as non-available
- */
-@TargetClass(className = "io.netty.handler.ssl.OpenSsl")
-final class TargetIoNettyHandlerSslOpenSsl {
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- private static Throwable UNAVAILABILITY_CAUSE = new RuntimeException("OpenSsl unsupported");
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- static List DEFAULT_CIPHERS = Collections.emptyList();
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- static Set AVAILABLE_CIPHER_SUITES = Collections.emptySet();
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- private static Set AVAILABLE_OPENSSL_CIPHER_SUITES = Collections.emptySet();
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- private static Set AVAILABLE_JAVA_CIPHER_SUITES = Collections.emptySet();
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- private static boolean SUPPORTS_KEYMANAGER_FACTORY = false;
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- private static boolean SUPPORTS_OCSP = false;
-
- @Alias
- @RecomputeFieldValue(kind = Kind.FromAlias)
- static Set SUPPORTED_PROTOCOLS_SET = Collections.emptySet();
-
- @Substitute
- public static boolean isAvailable() {
- return false;
- }
-
- @Substitute
- public static int version() {
- return -1;
- }
-
- @Substitute
- public static String versionString() {
- return null;
- }
-
- @Substitute
- public static boolean isCipherSuiteAvailable(String cipherSuite) {
- return false;
- }
-}
-
-@TargetClass(className = "io.netty.handler.ssl.JdkSslServerContext")
-final class TargetIoNettyHandlerSslJdkSslServerContext {
-
- @Alias
- TargetIoNettyHandlerSslJdkSslServerContext(Provider provider, X509Certificate[] trustCertCollection,
- TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword,
- KeyManagerFactory keyManagerFactory, Iterable ciphers, CipherSuiteFilter cipherFilter,
- ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout, ClientAuth clientAuth,
- String[] protocols, boolean startTls, String keyStore) throws SSLException {
- }
-}
-
-@TargetClass(className = "io.netty.handler.ssl.JdkSslClientContext")
-final class TargetIoNettyHandlerSslJdkSslClientContext {
-
- @Alias
- TargetIoNettyHandlerSslJdkSslClientContext(Provider sslContextProvider, X509Certificate[] trustCertCollection,
- TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain, PrivateKey key, String keyPassword,
- KeyManagerFactory keyManagerFactory, Iterable ciphers, CipherSuiteFilter cipherFilter,
- ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize, long sessionTimeout,
- String keyStoreType) throws SSLException {
- }
-}
-
-@TargetClass(className = "io.netty.handler.ssl.SslHandler$SslEngineType")
-final class TargetIoNettyHandlerSslSslHandler$SslEngineType {
-
- @Alias
- public static TargetIoNettyHandlerSslSslHandler$SslEngineType JDK;
-
- @Substitute
- static TargetIoNettyHandlerSslSslHandler$SslEngineType forEngine(SSLEngine engine) {
- return JDK;
- }
-}
-
-@TargetClass(
- className = "io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator$AlpnWrapper",
- onlyWith = JDK11OrLater.class)
-@SuppressWarnings("deprecation")
-final class TargetIoNettyHandlerSslJdkAlpnApplicationProtocolNegotiatorAlpnWrapper {
- @Substitute
- public SSLEngine wrapSslEngine(SSLEngine engine, ByteBufAllocator alloc,
- io.netty.handler.ssl.JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) {
- return (SSLEngine) (Object) new TargetIoNettyHandlerSslJdkAlpnSslEngine(engine, applicationNegotiator,
- isServer);
- }
-
-}
-
-@TargetClass(
- className = "io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator$AlpnWrapper",
- onlyWith = JDK8OrEarlier.class)
-@SuppressWarnings("deprecation")
-final class TargetIoNettyHandlerSslJdkAlpnApplicationProtocolNegotiatorAlpnWrapperJava8 {
- @Substitute
- public SSLEngine wrapSslEngine(SSLEngine engine, ByteBufAllocator alloc,
- io.netty.handler.ssl.JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) {
- if (TargetIoNettyHandlerSslJettyAlpnSslEngine.isAvailable()) {
- return isServer
- ? (SSLEngine) (Object) TargetIoNettyHandlerSslJettyAlpnSslEngine.newServerEngine(engine,
- applicationNegotiator)
- : (SSLEngine) (Object) TargetIoNettyHandlerSslJettyAlpnSslEngine.newClientEngine(engine,
- applicationNegotiator);
- }
- throw new RuntimeException("Unable to wrap SSLEngine of type " + engine.getClass().getName());
- }
-
-}
-
-@TargetClass(className = "io.netty.handler.ssl.JettyAlpnSslEngine", onlyWith = JDK8OrEarlier.class)
-@SuppressWarnings("deprecation")
-final class TargetIoNettyHandlerSslJettyAlpnSslEngine {
- @Substitute
- static boolean isAvailable() {
- return false;
- }
-
- @Substitute
- static TargetIoNettyHandlerSslJettyAlpnSslEngine newClientEngine(SSLEngine engine,
- io.netty.handler.ssl.JdkApplicationProtocolNegotiator applicationNegotiator) {
- return null;
- }
-
- @Substitute
- static TargetIoNettyHandlerSslJettyAlpnSslEngine newServerEngine(SSLEngine engine,
- io.netty.handler.ssl.JdkApplicationProtocolNegotiator applicationNegotiator) {
- return null;
- }
-}
-
-@TargetClass(className = "io.netty.handler.ssl.JdkAlpnSslEngine", onlyWith = JDK11OrLater.class)
-@SuppressWarnings("deprecation")
-final class TargetIoNettyHandlerSslJdkAlpnSslEngine {
- @Alias
- TargetIoNettyHandlerSslJdkAlpnSslEngine(final SSLEngine engine,
- final io.netty.handler.ssl.JdkApplicationProtocolNegotiator applicationNegotiator, final boolean isServer) {
-
- }
-}
-
-@TargetClass(className = "io.netty.handler.ssl.SslContext")
-final class TargetIoNettyHandlerSslSslContext {
-
- @Substitute
- @SafeVarargs
- @SuppressWarnings("varargs")
- static SslContext newServerContextInternal(SslProvider provider, Provider sslContextProvider,
- X509Certificate[] trustCertCollection, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain,
- PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable ciphers,
- CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, long sessionCacheSize, long sessionTimeout,
- ClientAuth clientAuth, String[] protocols, boolean startTls, boolean enableOcsp, String keyStoreType,
- Map.Entry, Object>... ctxOptions) throws SSLException {
- if (enableOcsp) {
- throw new IllegalArgumentException("OCSP is not supported with this SslProvider: " + provider);
- }
- return (SslContext) (Object) new TargetIoNettyHandlerSslJdkSslServerContext(sslContextProvider,
- trustCertCollection, trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory, ciphers,
- cipherFilter, apn, sessionCacheSize, sessionTimeout, clientAuth, protocols, startTls, keyStoreType);
- }
-
- @Substitute
- @SafeVarargs
- @SuppressWarnings("varargs")
- static SslContext newClientContextInternal(SslProvider provider, Provider sslContextProvider,
- X509Certificate[] trustCert, TrustManagerFactory trustManagerFactory, X509Certificate[] keyCertChain,
- PrivateKey key, String keyPassword, KeyManagerFactory keyManagerFactory, Iterable ciphers,
- CipherSuiteFilter cipherFilter, ApplicationProtocolConfig apn, String[] protocols, long sessionCacheSize,
- long sessionTimeout, boolean enableOcsp, String keyStoreType, Map.Entry, Object>... options)
- throws SSLException {
- if (enableOcsp) {
- throw new IllegalArgumentException("OCSP is not supported with this SslProvider: " + provider);
- }
- return (SslContext) (Object) new TargetIoNettyHandlerSslJdkSslClientContext(sslContextProvider, trustCert,
- trustManagerFactory, keyCertChain, key, keyPassword, keyManagerFactory, ciphers, cipherFilter, apn,
- protocols, sessionCacheSize, sessionTimeout, keyStoreType);
- }
-
-}
-
-@TargetClass(className = "io.netty.handler.ssl.JdkDefaultApplicationProtocolNegotiator")
-final class TargetIoNettyHandlerSslJdkDefaultApplicationProtocolNegotiator {
-
- @Alias
- public static TargetIoNettyHandlerSslJdkDefaultApplicationProtocolNegotiator INSTANCE;
-}
-
-@TargetClass(className = "io.netty.handler.ssl.JdkSslContext")
-@SuppressWarnings("deprecation")
-final class TargetIoNettyHandlerSslJdkSslContext {
-
- @Substitute
- static io.netty.handler.ssl.JdkApplicationProtocolNegotiator toNegotiator(ApplicationProtocolConfig config,
- boolean isServer) {
- if (config == null) {
- return (io.netty.handler.ssl.JdkApplicationProtocolNegotiator) (Object) TargetIoNettyHandlerSslJdkDefaultApplicationProtocolNegotiator.INSTANCE;
- }
-
- switch (config.protocol()) {
- case NONE:
- return (io.netty.handler.ssl.JdkApplicationProtocolNegotiator) (Object) TargetIoNettyHandlerSslJdkDefaultApplicationProtocolNegotiator.INSTANCE;
-
- case ALPN:
- if (isServer) {
- SelectorFailureBehavior behavior = config.selectorFailureBehavior();
- if (behavior == SelectorFailureBehavior.FATAL_ALERT) {
- return new io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator(true,
- config.supportedProtocols());
- } else if (behavior == SelectorFailureBehavior.NO_ADVERTISE) {
- return new io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator(false,
- config.supportedProtocols());
- } else {
- throw new UnsupportedOperationException(
- new StringBuilder("JDK provider does not support ").append(config.selectorFailureBehavior())
- .append(" failure behavior")
- .toString());
- }
- } else {
- switch (config.selectedListenerFailureBehavior()) {
- case ACCEPT:
- return new io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator(false,
- config.supportedProtocols());
-
- case FATAL_ALERT:
- return new io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator(true,
- config.supportedProtocols());
-
- default:
- throw new UnsupportedOperationException(new StringBuilder("JDK provider does not support ")
- .append(config.selectedListenerFailureBehavior())
- .append(" failure behavior")
- .toString());
- }
- }
- default:
- throw new UnsupportedOperationException(
- new StringBuilder("JDK provider does not support ").append(config.protocol())
- .append(" protocol")
- .toString());
- }
- }
-
-}
-
-@TargetClass(className = "io.netty.buffer.AbstractReferenceCountedByteBuf")
-final class TargetIoNettyBufferAbstractReferenceCountedByteBuf {
-
- @Alias
- @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.FieldOffset, name = "refCnt")
- private static long REFCNT_FIELD_OFFSET;
-}
-
-@TargetClass(className = "io.netty.util.AbstractReferenceCounted")
-final class TargetIoNettyUtilAbstractReferenceCounted {
-
- @Alias
- @RecomputeFieldValue(kind = RecomputeFieldValue.Kind.FieldOffset, name = "refCnt")
- private static long REFCNT_FIELD_OFFSET;
-}
-
-// This class is runtime-initialized by NettyProcessor
-final class HolderIoNettyUtilConcurrentScheduledFutureTask {
- static long START_TIME = System.nanoTime();
-}
-
-@TargetClass(className = "io.netty.util.concurrent.ScheduledFutureTask")
-final class TargetIoNettyUtilConcurrentScheduledFutureTask {
-
- // The START_TIME field is kept but not used.
- // All the accesses to it have been replaced with Holder_io_netty_util_concurrent_ScheduledFutureTask
-
- @Substitute
- static long initialNanoTime() {
- return HolderIoNettyUtilConcurrentScheduledFutureTask.START_TIME;
- }
-
- @Substitute
- static long nanoTime() {
- return System.nanoTime() - HolderIoNettyUtilConcurrentScheduledFutureTask.START_TIME;
- }
-
- @Alias
- public long deadlineNanos() {
- return 0;
- }
-
- @Substitute
- public long delayNanos(long currentTimeNanos) {
- return Math.max(0,
- deadlineNanos() - (currentTimeNanos - HolderIoNettyUtilConcurrentScheduledFutureTask.START_TIME));
- }
-}
-
-@TargetClass(className = "io.netty.util.internal.NativeLibraryLoader")
-final class TargetIoNettyUtilInternalNativeLibraryLoader {
-
- // This method can trick GraalVM into thinking that Classloader#defineClass is getting called
- @Substitute
- static Class> tryToLoadClass(final ClassLoader loader, final Class> helper) throws ClassNotFoundException {
- return Class.forName(helper.getName(), false, loader);
- }
-
-}
-
-@TargetClass(className = "io.netty.handler.codec.http.HttpContentDecompressor")
-final class TargetIoNettyHandlerCodecHttpHttpContentDecompressor {
-
- @Alias
- private boolean strict;
-
- @Alias
- protected ChannelHandlerContext ctx;
-
- @Substitute
- protected EmbeddedChannel newContentDecoder(String contentEncoding) throws Exception {
- if (GZIP.contentEqualsIgnoreCase(contentEncoding) || X_GZIP.contentEqualsIgnoreCase(contentEncoding)) {
- return new EmbeddedChannel(ctx.channel().id(), ctx.channel().metadata().hasDisconnect(),
- ctx.channel().config(), ZlibCodecFactory.newZlibDecoder(ZlibWrapper.GZIP));
- }
-
- if (DEFLATE.contentEqualsIgnoreCase(contentEncoding) || X_DEFLATE.contentEqualsIgnoreCase(contentEncoding)) {
- final ZlibWrapper wrapper = strict ? ZlibWrapper.ZLIB : ZlibWrapper.ZLIB_OR_NONE;
- // To be strict, 'deflate' means ZLIB, but some servers were not implemented correctly.
- return new EmbeddedChannel(ctx.channel().id(), ctx.channel().metadata().hasDisconnect(),
- ctx.channel().config(), ZlibCodecFactory.newZlibDecoder(wrapper));
- }
-
- // 'identity' or unsupported
- return null;
- }
-}
-
-public class NettySubstitutions {
-}
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/com/azure/aot/graalvm/support/netty/implementation/features/package-info.java b/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/com/azure/aot/graalvm/support/netty/implementation/features/package-info.java
deleted file mode 100644
index f2ce12d8dcb8..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/com/azure/aot/graalvm/support/netty/implementation/features/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-/**
- * GraalVM Netty-specific configuration.
- */
-package com.azure.aot.graalvm.support.netty.implementation.features;
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/module-info.java b/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/module-info.java
deleted file mode 100644
index fafb28f904c9..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/src/main/java/module-info.java
+++ /dev/null
@@ -1,12 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-module com.azure.aot.graalvm.support.netty {
- requires com.azure.aot.graalvm.support;
- requires io.netty.buffer;
- requires io.netty.codec;
- requires io.netty.codec.http;
- requires io.netty.common;
- requires io.netty.handler;
- requires io.netty.transport;
-}
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/jni-config.json b/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/jni-config.json
deleted file mode 100644
index 115aedaa6ef7..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/jni-config.json
+++ /dev/null
@@ -1,968 +0,0 @@
-[
- {
- "name": "io.netty.channel.ChannelException"
- },
- {
- "name": "io.netty.channel.unix.Buffer"
- },
- {
- "name": "io.netty.channel.unix.DatagramSocketAddress",
- "methods": [
- {
- "name": "",
- "parameterTypes": [
- "byte[]",
- "int",
- "int",
- "int",
- "io.netty.channel.unix.DatagramSocketAddress"
- ]
- }
- ]
- },
- {
- "name": "io.netty.channel.unix.ErrorsStaticallyReferencedJniMethods"
- },
- {
- "name": "io.netty.channel.unix.FileDescriptor"
- },
- {
- "name": "io.netty.channel.unix.LimitsStaticallyReferencedJniMethods"
- },
- {
- "name": "io.netty.channel.unix.Socket"
- },
- {
- "name": "io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback"
- },
- {
- "name": "io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertificateVerifier",
- "methods": [
- {
- "name": "verify",
- "parameterTypes": [
- "long",
- "byte[][]",
- "java.lang.String"
- ]
- }
- ]
- },
- {
- "name": "io.netty.resolver.dns.macos.DnsResolver[]"
- },
- {
- "name": "io.netty.internal.tcnative.Library"
- },
- {
- "name": "io.netty.internal.tcnative.Buffer",
- "methods": [
- {
- "name": "size",
- "parameterTypes": [
- "java.nio.ByteBuffer"
- ]
- }
- ]
- },
- {
- "name": "io.netty.internal.tcnative.NativeStaticallyReferencedJniMethods"
- },
- {
- "name": "io.netty.internal.tcnative.SSL",
- "methods": [
- {
- "name": "version",
- "parameterTypes": []
- },
- {
- "name": "versionString",
- "parameterTypes": []
- },
- {
- "name": "initialize",
- "parameterTypes": [
- "java.lang.String"
- ]
- },
- {
- "name": "getLastError",
- "parameterTypes": []
- },
- {
- "name": "newSSL",
- "parameterTypes": [
- "long",
- "boolean"
- ]
- },
- {
- "name": "getError",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "bioSetByteBuffer",
- "parameterTypes": [
- "long",
- "long",
- "int",
- "boolean"
- ]
- },
- {
- "name": "bioClearByteBuffer",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "bioFlushByteBuffer",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "bioLengthByteBuffer",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "bioLengthNonApplication",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sslPending",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "writeToSSL",
- "parameterTypes": [
- "long",
- "long",
- "int"
- ]
- },
- {
- "name": "readFromSSL",
- "parameterTypes": [
- "long",
- "long",
- "int"
- ]
- },
- {
- "name": "getShutdown",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setShutdown",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "freeSSL",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "freeBIO",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "shutdownSSL",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getLastErrorNumber",
- "parameterTypes": []
- },
- {
- "name": "getCipherForSSL",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getVersion",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "doHandshake",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "isInInit",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getNextProtoNegotiated",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getAlpnSelected",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getPeerCertChain",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getPeerCertificate",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getErrorString",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getTime",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getTimeout",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setTimeout",
- "parameterTypes": [
- "long",
- "long"
- ]
- },
- {
- "name": "setVerify",
- "parameterTypes": [
- "long",
- "int",
- "int"
- ]
- },
- {
- "name": "setOptions",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "clearOptions",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "getOptions",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setMode",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "getMode",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getMaxWrapOverhead",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getCiphers",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setCipherSuites",
- "parameterTypes": [
- "long",
- "java.lang.String"
- ]
- },
- {
- "name": "setCipherSuites",
- "parameterTypes": [
- "long",
- "java.lang.String",
- "boolean"
- ]
- },
- {
- "name": "getSessionId",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getHandshakeCount",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "clearError",
- "parameterTypes": []
- },
- {
- "name": "setTlsExtHostName",
- "parameterTypes": [
- "long",
- "java.lang.String"
- ]
- },
- {
- "name": "setHostNameValidation",
- "parameterTypes": [
- "long",
- "int",
- "java.lang.String"
- ]
- },
- {
- "name": "authenticationMethods",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setCertificateChainBio",
- "parameterTypes": [
- "long",
- "long",
- "boolean"
- ]
- },
- {
- "name": "setCertificateBio",
- "parameterTypes": [
- "long",
- "long",
- "long",
- "java.lang.String"
- ]
- },
- {
- "name": "loadPrivateKeyFromEngine",
- "parameterTypes": [
- "java.lang.String",
- "java.lang.String"
- ]
- },
- {
- "name": "parsePrivateKey",
- "parameterTypes": [
- "long",
- "java.lang.String"
- ]
- },
- {
- "name": "freePrivateKey",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "parseX509Chain",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "freeX509Chain",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setKeyMaterialServerSide",
- "parameterTypes": [
- "long",
- "long",
- "long"
- ]
- },
- {
- "name": "setKeyMaterial",
- "parameterTypes": [
- "long",
- "long",
- "long"
- ]
- },
- {
- "name": "setKeyMaterialClientSide",
- "parameterTypes": [
- "long",
- "long",
- "long",
- "long",
- "long"
- ]
- },
- {
- "name": "setSession",
- "parameterTypes": [
- "long",
- "long"
- ]
- },
- {
- "name": "setOcspResponse",
- "parameterTypes": [
- "long",
- "byte[]"
- ]
- },
- {
- "name": "getOcspResponse",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "fipsModeSet",
- "parameterTypes": [
- "int"
- ]
- },
- {
- "name": "getSniHostname",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getSigAlgs",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getMasterKey",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getServerRandom",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getClientRandom",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getTask",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "isSessionReused",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setSession",
- "parameterTypes": [
- "long",
- "long"
- ]
- },
- {
- "name": "getSession",
- "parameterTypes": [
- "long"
- ]
- }
- ]
- },
- {
- "name": "io.netty.internal.tcnative.SSLContext",
- "methods": [
- {
- "name": "make",
- "parameterTypes": [
- "int",
- "int"
- ]
- },
- {
- "name": "free",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setContextId",
- "parameterTypes": [
- "long",
- "java.lang.String"
- ]
- },
- {
- "name": "setOptions",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "getOptions",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "clearOptions",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "setCipherSuite",
- "parameterTypes": [
- "long",
- "java.lang.String"
- ]
- },
- {
- "name": "setCipherSuite",
- "parameterTypes": [
- "long",
- "java.lang.String",
- "boolean"
- ]
- },
- {
- "name": "setCertificateChainFile",
- "parameterTypes": [
- "long",
- "java.lang.String",
- "boolean"
- ]
- },
- {
- "name": "setCertificateChainBio",
- "parameterTypes": [
- "long",
- "long",
- "boolean"
- ]
- },
- {
- "name": "setCertificate",
- "parameterTypes": [
- "long",
- "java.lang.String",
- "java.lang.String",
- "java.lang.String"
- ]
- },
- {
- "name": "setCertificateBio",
- "parameterTypes": [
- "long",
- "long",
- "long",
- "java.lang.String"
- ]
- },
- {
- "name": "setSessionCacheSize",
- "parameterTypes": [
- "long",
- "long"
- ]
- },
- {
- "name": "getSessionCacheSize",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setSessionCacheTimeout",
- "parameterTypes": [
- "long",
- "long"
- ]
- },
- {
- "name": "getSessionCacheTimeout",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setSessionCacheMode",
- "parameterTypes": [
- "long",
- "long"
- ]
- },
- {
- "name": "getSessionCacheMode",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionAccept",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionAcceptGood",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionAcceptRenegotiate",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionCacheFull",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionCbHits",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionConnect",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionConnectGood",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionConnectRenegotiate",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionHits",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionMisses",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionNumber",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionTimeouts",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionTicketKeyNew",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionTicketKeyResume",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionTicketKeyRenew",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "sessionTicketKeyFail",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setCACertificateBio",
- "parameterTypes": [
- "long",
- "long"
- ]
- },
- {
- "name": "setVerify",
- "parameterTypes": [
- "long",
- "int",
- "int"
- ]
- },
- {
- "name": "setCertVerifyCallback",
- "parameterTypes": [
- "long",
- "io.netty.internal.tcnative.CertificateVerifier"
- ]
- },
- {
- "name": "setCertRequestedCallback",
- "parameterTypes": [
- "long",
- "io.netty.internal.tcnative.CertificateRequestedCallback"
- ]
- },
- {
- "name": "setCertificateCallback",
- "parameterTypes": [
- "long",
- "io.netty.internal.tcnative.CertificateCallback"
- ]
- },
- {
- "name": "setSniHostnameMatcher",
- "parameterTypes": [
- "long",
- "io.netty.internal.tcnative.SniHostNameMatcher"
- ]
- },
- {
- "name": "setNpnProtos",
- "parameterTypes": [
- "long",
- "java.lang.String[]",
- "int"
- ]
- },
- {
- "name": "setAlpnProtos",
- "parameterTypes": [
- "long",
- "java.lang.String[]",
- "int"
- ]
- },
- {
- "name": "setTmpDHLength",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "setSessionIdContext",
- "parameterTypes": [
- "long",
- "byte[]"
- ]
- },
- {
- "name": "setMode",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "getMode",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "enableOcsp",
- "parameterTypes": [
- "long",
- "boolean"
- ]
- },
- {
- "name": "disableOcsp",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "getSslCtx",
- "parameterTypes": [
- "long"
- ]
- },
- {
- "name": "setUseTasks",
- "parameterTypes": [
- "long",
- "boolean"
- ]
- },
- {
- "name": "setPrivateKeyMethod",
- "parameterTypes": [
- "long",
- "io.netty.internal.tcnative.SSLPrivateKeyMethod"
- ]
- },
- {
- "name": "setSSLSessionCache",
- "parameterTypes": [
- "long",
- "io.netty.internal.tcnative.SSLSessionCache"
- ]
- },
- {
- "name": "setNumTickets",
- "parameterTypes": [
- "long",
- "int"
- ]
- },
- {
- "name": "setSessionTicketKeys0",
- "parameterTypes": [
- "long",
- "byte[]"
- ]
- }
- ]
- },
- {
- "name": "io.netty.channel.kqueue.KQueueStaticallyReferencedJniMethods"
- },
- {
- "name": "io.netty.channel.kqueue.Native"
- },
- {
- "name": "io.netty.channel.kqueue.BsdSocket",
- "methods": [
- {
- "name": "sendFile",
- "parameterTypes": [
- "int",
- "io.netty.channel.DefaultFileRegion",
- "long",
- "long",
- "long"
- ]
- },
- {
- "name": "getAcceptFilter",
- "parameterTypes": [
- "int"
- ]
- },
- {
- "name": "getTcpNoPush",
- "parameterTypes": [
- "int"
- ]
- },
- {
- "name": "getSndLowAt",
- "parameterTypes": [
- "int"
- ]
- },
- {
- "name": "getPeerCredentials",
- "parameterTypes": [
- "int"
- ]
- },
- {
- "name": "setAcceptFilter",
- "parameterTypes": [
- "int",
- "java.lang.String",
- "java.lang.String"
- ]
- },
- {
- "name": "setTcpNoPush",
- "parameterTypes": [
- "int",
- "int"
- ]
- },
- {
- "name": "setSndLowAt",
- "parameterTypes": [
- "int",
- "int"
- ]
- }
- ]
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/native-image.properties b/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/native-image.properties
deleted file mode 100644
index a45294b369f3..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/native-image.properties
+++ /dev/null
@@ -1,45 +0,0 @@
-Args=\
- --enable-url-protocols=http,https \
- --initialize-at-run-time=io.netty.buffer.AbstractReferenceCountedByteBuf,\
- io.netty.buffer.PooledByteBufAllocator,\
- io.netty.buffer.UnpooledDirectByteBuf,\
- io.netty.buffer.UnpooledHeapByteBuf,\
- io.netty.buffer.UnpooledUnsafeDirectByteBuf,\
- io.netty.channel.epoll.Epoll,\
- io.netty.channel.epoll.EpollEventArray,\
- io.netty.channel.epoll.EpollEventLoop,\
- io.netty.channel.epoll.LinuxSocket,\
- io.netty.channel.epoll.Native,\
- io.netty.channel.kqueue.KQueue,\
- io.netty.channel.kqueue.KQueueEventArray,\
- io.netty.channel.kqueue.KQueueEventLoop,\
- io.netty.channel.kqueue.Native,\
- io.netty.channel.unix.Errors,\
- io.netty.channel.unix.IovArray,\
- io.netty.channel.unix.Limits,\
- io.netty.channel.unix.Socket,\
- io.netty.handler.codec.compression.BrotliDecoder,\
- io.netty.handler.codec.compression.BrotliDecoder$1,\
- io.netty.handler.codec.http.HttpObjectEncoder,\
- io.netty.handler.codec.http.websocketx.WebSocket00FrameEncoder,\
- io.netty.handler.ssl.BouncyCastleAlpnSslUtils,\
- io.netty.handler.ssl.ConscryptAlpnSslEngine,\
- io.netty.handler.ssl.JdkNpnApplicationProtocolNegotiator,\
- io.netty.handler.ssl.JettyAlpnSslEngine$ClientEngine,\
- io.netty.handler.ssl.JettyAlpnSslEngine$ServerEngine,\
- io.netty.handler.ssl.JettyNpnSslEngine,\
- io.netty.handler.ssl.OpenSsl,\
- io.netty.handler.ssl.OpenSslPrivateKeyMethod,\
- io.netty.handler.ssl.ReferenceCountedOpenSslEngine,\
- io.netty.handler.ssl.ReferenceCountedOpenSslServerContext,\
- io.netty.handler.ssl.ReferenceCountedOpenSslClientContext,\
- io.netty.handler.ssl.util.BouncyCastleSelfSignedCertGenerator,\
- io.netty.handler.ssl.util.BouncyCastleSelfSignedCertGenerator,\
- io.netty.handler.ssl.util.ThreadLocalInsecureRandom,\
- io.netty.internal.tcnative.AsyncSSLPrivateKeyMethod,\
- io.netty.internal.tcnative.CertificateVerifier,\
- io.netty.internal.tcnative.SSL,\
- io.netty.internal.tcnative.SSLPrivateKeyMethod,\
- io.netty.util.AbstractReferenceCounted,\
- io.netty.util.internal.logging.Log4JLogger
-
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/reflect-config.json b/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/reflect-config.json
deleted file mode 100644
index 9cfd276e55ce..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/src/main/resources/META-INF/native-image/com.azure/azure-core-http-netty/reflect-config.json
+++ /dev/null
@@ -1,10 +0,0 @@
-[
- {
- "name": "io.netty.channel.socket.nio.NioSocketChannel",
- "methods": [
- {
- "name": ""
- }
- ]
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support-netty/src/samples/README.md b/sdk/aot/azure-aot-graalvm-support-netty/src/samples/README.md
deleted file mode 100644
index 898a7879184b..000000000000
--- a/sdk/aot/azure-aot-graalvm-support-netty/src/samples/README.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Azure GraalVM Netty Support client library for Java
-
-## Getting started
-Getting started explained in detail [here][SDK_README_GETTING_STARTED].
-
-## Key concepts
-Key concepts are explained in detail [here][SDK_README_KEY_CONCEPTS].
-
-## Examples
-The following sections provide several code snippets covering some of the most common scenarios, including:
-
-## Troubleshooting
-Troubleshooting steps can be found [here][SDK_README_TROUBLESHOOTING].
-
-## Next steps
-See [Next steps][SDK_README_NEXT_STEPS].
-
-## Contributing
-This project welcomes contributions and suggestions. Find [more contributing][SDK_README_CONTRIBUTING] details here.
-
-
-[SDK_README_CONTRIBUTING]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support-netty/README.md#contributing
-[SDK_README_GETTING_STARTED]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support-netty/README.md#getting-started
-[SDK_README_TROUBLESHOOTING]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support-netty/README.md#troubleshooting
-[SDK_README_KEY_CONCEPTS]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support-netty/README.md#key-concepts
-[SDK_README_NEXT_STEPS]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support-netty/README.md#next-steps
-
-
diff --git a/sdk/aot/azure-aot-graalvm-support/CHANGELOG.md b/sdk/aot/azure-aot-graalvm-support/CHANGELOG.md
deleted file mode 100644
index 5fbcba058d86..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/CHANGELOG.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Release History
-
-## 1.0.0-beta.4 (Unreleased)
-
-### Features Added
-
-### Breaking Changes
-
-### Bugs Fixed
-
-### Other Changes
-
-## 1.0.0-beta.3 (2023-04-04)
-
-### Other Changes
-- Marked this library as deprecated. Please refer to the [blog post](https://devblogs.microsoft.com/azure-sdk/announcing-graalvm-support-in-azure-sdk-for-java-and-spring-cloud-azure-libraries/) for more details on GraalVM support in Azure SDK for Java.
-- Changed the proxy interface package names to match the 1.28.0 version of `azure-core`
-
-## 1.0.0-beta.2 (2022-04-25)
-
-### Features Added
-- Added support for Storage File Share and Storage Queues
-
-## 1.0.0-beta.1 (2022-04-08)
-Version 1.0.0-beta.1 is a preview of our efforts in creating a client library for Azure GraalVM Support that is
-developer-friendly, idiomatic to the Java ecosystem, and as consistent across different languages and platforms as
-possible. The principles that guide our efforts can be found in the
-[Azure SDK Design Guidelines for Java](https://azure.github.io/azure-sdk/java_introduction.html).
-
-## Features Added
-- Initial release. Please see the README and wiki for information on using the new library.
diff --git a/sdk/aot/azure-aot-graalvm-support/README.md b/sdk/aot/azure-aot-graalvm-support/README.md
deleted file mode 100644
index 4cd043707656..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/README.md
+++ /dev/null
@@ -1,139 +0,0 @@
-# Azure GraalVM Support client library for Java
-
-> **IMPORTANT** Please note that this package is deprecated and will no longer be updated. The necessary configuration files to support
-> native image compilation using GraalVM is now directly available on respective client libraries. It is no longer required
-> to add this package as a dependency to build native images with Azure SDK for Java.
-> Please refer to the [blog post](https://devblogs.microsoft.com/azure-sdk/announcing-graalvm-support-in-azure-sdk-for-java-and-spring-cloud-azure-libraries/) for more details on GraalVM support in Azure SDK for Java.
-
-The Azure GraalVM Support client library provides support for applications using [Azure client libraries](https://azure.github.io/azure-sdk/releases/latest/java.html) to be built as [GraalVM native
-images](https://www.graalvm.org/22.0/reference-manual/native-image/). The library contains all the necessary
-[configuration files](https://www.graalvm.org/22.0/reference-manual/native-image/BuildConfiguration/) and [GraalVM
-features](https://www.graalvm.org/sdk/javadoc/index.html?org/graalvm/nativeimage/hosted/Feature.html) required to build
-a native image of an application that uses Azure client libraries.
-
-**NOTE:**: This library is a preview and is intended to enable applications using Azure client libraries to quickly
-build and validate native images. However, this is not a stable, GA version and is not officially supported to use in production
-environments.
-
-## Getting started
-
-### Prerequisites
-- A [Java Development Kit (JDK)][jdk_link], version 8 or later.
-- [Azure Subscription][azure_subscription]
-- [GraalVM](https://www.graalvm.org/downloads/) version 22 or later.
-- [GraalVM Native Image](https://www.graalvm.org/22.0/reference-manual/native-image/)
-
-For more details, please refer to [Getting started with GraalVM](https://www.graalvm.org/22.0/docs/getting-started/)
-documentation.
-
-### Include the package
-
-[//]: # ({x-version-update-start;com.azure:azure-aot-graalvm-support;current})
-```xml
-
- com.azure
- azure-aot-graalvm-support
- 1.0.0-beta.3
-
-```
-[//]: # ({x-version-update-end})
-
-Also, include the `azure-aot-graalvm-support-netty` package to bring in the configuration files required for Netty HTTP
-client. For more details on this library, please refer to [this README](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support-netty/README.md).
-
-[//]: # ({x-version-update-start;com.azure:azure-aot-graalvm-support-netty;current})
-```xml
-
- com.azure
- azure-aot-graalvm-support-netty
- 1.0.0-beta.3
-
-```
-[//]: # ({x-version-update-end})
-
-## Key concepts
-
-### Native Image creation
-
-Native Image is a technology to compile your Java application ahead of time into a native image which can run as a
-standalone application. The native image created through this ahead-of-time compilation will include all the
-necessary classes from the application, it's dependencies and any other natively linked JDK code. For more details
-on creating the native image please refer to [building a native image](https://www.graalvm.org/22.0/reference-manual/native-image/#build-a-native-image) documentation.
-
-### GraalVM configuration files
-
-GraalVM is a high-performance runtime that creates native images by compiling the Java code ahead of time. Due to
-this ahead-of-time compilation into a native image, the native image creation requires statically analyzing all
-classes of the application and their dependencies to determine which classes and methods are reachable during the
-application execution. However, there are scenarios where Java allows looking up classes, methods and fields at
-runtime through reflection. While GraalVM does a best-effort discovery of all classes ahead of time, it will not be
-able to detect all classes that are reflectively accessed. So, developers can provide configuration files that
-contain details of all necessary classes that are reflectively accessed. This supplementary information is then used
-to create the native image and make these classes available at runtime.
-
-This library provides all the necessary configuration files for using Azure client libraries.
-
-## Examples
-
-#### App Configuration
-- [Sample demonstrating the creation and use of App Configuration client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/appconfiguration/AppConfigurationSample.java)
-
-Please refer to [Application Configuration](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/appconfiguration/azure-data-appconfiguration) client library documentation for more details.
-
-#### Key Vault
-- [Sample demonstrating the creation and use of Key Vault Certificates client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/certificates/KeyVaultCertificatesSample.java)
-- [Sample demonstrating the creation and use of Key Vault Keys client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/keys/KeyVaultKeysSample.java)
-- [Sample demonstrating the creation and use of Key Vault Secrets client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/keyvault/secrets/KeyVaultSecretsSample.java)
-
-Please refer to [Key Vault](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/keyvault) client library documentation for more details.
-
-#### Storage Blob
-- [Sample demonstrating the creation and use of Storage Blob client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/storage/blob/StorageBlobSample.java)
-
-Please refer to [Storage Blob](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/storage/azure-storage-blob) client library documentation for more details.
-
-#### Event Hubs
-- [Sample demonstrating the creation and use of Event Hubs producer client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/eventhubs/EventHubsSample.java)
-
-Please refer to [Event Hubs](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/eventhubs/azure-messaging-eventhubs) client library documentation for more details.
-
-#### Form Recognizer
-- [Sample demonstrating the creation and use of Form Recognizer client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/formrecognizer/FormRecognizerSample.java)
-
-Please refer to [Form Recognizer](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/formrecognizer/azure-ai-formrecognizer) client library documentation for more details.
-
-#### Text Analytics
-- [Sample demonstrating the creation and use of Text Analytics client](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-samples/src/main/java/com/azure/aot/graalvm/samples/textanalytics/TextAnalyticsSample.java)
-
-Please refer to [Text Analytics](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/textanalytics/azure-ai-textanalytics) client library documentation for more details.
-
-## Troubleshooting
-
-## Next steps
-The [azure-aot-graalvm-samples](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/aot/azure-aot-graalvm-samples)
-library consists of all above samples bundled into a single Maven project that can be compiled with `mvn clean
-install -Pnative` to build the native image and execute all the samples.
-
-## Contributing
-
-This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License
-Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.
-For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
-
-When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the
-PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this
-once across all repos using our CLA.
-
-This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
-For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact
-[opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
-
-
-[cla]: https://cla.microsoft.com
-[coc]: https://opensource.microsoft.com/codeofconduct/
-[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-[coc_contact]: mailto:opencode@microsoft.com
-[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
-[azure_subscription]: https://azure.microsoft.com/free
-
-
diff --git a/sdk/aot/azure-aot-graalvm-support/pom.xml b/sdk/aot/azure-aot-graalvm-support/pom.xml
deleted file mode 100644
index 84a238bb8030..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/pom.xml
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
- 4.0.0
-
- com.azure
- azure-aot-graalvm-support
- 1.0.0-beta.4
-
- jar
- Microsoft Azure GraalVM support
-
- This package is deprecated will have no further updates. Dependency on this library is no longer required to build native images with Azure SDK for Java.
- For more details, please refer to https://devblogs.microsoft.com/azure-sdk/announcing-graalvm-support-in-azure-sdk-for-java-and-spring-cloud-azure-libraries
-
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
- https://github.com/Azure/azure-sdk-for-java
-
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
-
-
-
- azure-java-build-docs
- ${site.url}/site/${project.artifactId}
-
-
-
-
- scm:git:https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- UTF-8
-
-
-
-
-
- microsoft
- Microsoft
-
-
-
-
-
- org.graalvm.sdk
- graal-sdk
- 22.0.0.2
-
-
- org.graalvm.nativeimage
- svm
- 22.0.0.2
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
- 3.5.0
-
-
-
-
- org.graalvm.sdk:graal-sdk:[22.0.0.2]
- org.graalvm.nativeimage:svm:[22.0.0.2]
-
-
-
-
-
-
-
-
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 3.10.1
-
-
- attach-javadocs
-
- jar
-
-
- true
-
-
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
- 3.4.2
-
-
- empty-javadoc-jar-with-readme
- package
-
- jar
-
-
- javadoc
- ${project.basedir}/javadocTemp
-
-
-
-
-
- org.apache.maven.plugins
- maven-antrun-plugin
- 3.1.0
-
-
- copy-readme-to-javadocTemp
- prepare-package
-
-
- Deleting existing ${project.basedir}/javadocTemp
-
-
-
- Copying ${project.basedir}/README.md to
- ${project.basedir}/javadocTemp/README.md
-
-
-
-
-
- run
-
-
-
-
-
-
-
-
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/ClassReflectionAttributes.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/ClassReflectionAttributes.java
deleted file mode 100644
index 0d65eaf0581e..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/ClassReflectionAttributes.java
+++ /dev/null
@@ -1,105 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.support.implementation;
-
-import java.util.EnumSet;
-import java.util.Objects;
-
-/**
- * Represents the attributes of a given class that should be made available reflectively as part of a GraalVM native
- * image compilation.
- */
-public final class ClassReflectionAttributes {
- private final String name;
- private final EnumSet set;
-
- public enum ReflectionAttributes {
- DECLARED_FIELDS,
- PUBLIC_FIELDS,
- DECLARED_CONSTRUCTORS,
- PUBLIC_CONSTRUCTORS,
- DECLARED_METHODS,
- PUBLIC_METHODS,
- DECLARED_CLASSES,
- PUBLIC_CLASSES
- }
-
- private ClassReflectionAttributes(String name, EnumSet set) {
- this.name = Objects.requireNonNull(name);
- this.set = set;
- }
-
- public static ClassReflectionAttributes createWithAll(String name) {
- return create(name, EnumSet.allOf(ReflectionAttributes.class));
- }
-
- public static ClassReflectionAttributes create(String name, EnumSet attributes) {
- return new ClassReflectionAttributes(name, attributes);
- }
-
- public static ClassReflectionAttributes createWithAllDeclared(String name) {
- return new ClassReflectionAttributes(name,
- EnumSet.of(ReflectionAttributes.DECLARED_CLASSES, ReflectionAttributes.DECLARED_FIELDS,
- ReflectionAttributes.DECLARED_CONSTRUCTORS, ReflectionAttributes.DECLARED_METHODS));
- }
-
- public static ClassReflectionAttributes createWithAllPublic(String name) {
- return new ClassReflectionAttributes(name,
- EnumSet.of(ReflectionAttributes.PUBLIC_CLASSES, ReflectionAttributes.PUBLIC_FIELDS,
- ReflectionAttributes.PUBLIC_CONSTRUCTORS, ReflectionAttributes.PUBLIC_METHODS));
- }
-
- public String getName() {
- return name;
- }
-
- public boolean includeDeclaredFields() {
- return set.contains(ReflectionAttributes.DECLARED_FIELDS);
- }
-
- public boolean includePublicFields() {
- return set.contains(ReflectionAttributes.PUBLIC_FIELDS);
- }
-
- public boolean includeDeclaredConstructors() {
- return set.contains(ReflectionAttributes.DECLARED_CONSTRUCTORS);
- }
-
- public boolean includePublicConstructors() {
- return set.contains(ReflectionAttributes.PUBLIC_CONSTRUCTORS);
- }
-
- public boolean includeDeclaredMethods() {
- return set.contains(ReflectionAttributes.DECLARED_METHODS);
- }
-
- public boolean includePublicMethods() {
- return set.contains(ReflectionAttributes.PUBLIC_METHODS);
- }
-
- public boolean includeDeclaredClasses() {
- return set.contains(ReflectionAttributes.DECLARED_CLASSES);
- }
-
- public boolean includePublicClasses() {
- return set.contains(ReflectionAttributes.PUBLIC_CLASSES);
- }
-
- @Override
- public boolean equals(final Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- final ClassReflectionAttributes that = (ClassReflectionAttributes) o;
- return name.equals(that.name);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name);
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/GraalVMFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/GraalVMFeature.java
deleted file mode 100644
index 5829a660af5f..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/GraalVMFeature.java
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.support.implementation;
-
-import org.graalvm.nativeimage.hosted.Feature;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Set;
-import java.util.TreeSet;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.findClass;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.getClassesForPackage;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.registerClass;
-
-/**
- * Implementations of this interface should configure the features specific to the Azure SDK client libraries.
- */
-public interface GraalVMFeature extends Feature {
-
- default Set getDynamicProxies() {
- return Collections.emptySet();
- }
-
- default Set getReflectionClasses() {
- return Collections.emptySet();
- }
-
- /**
- * This should the root package of the library - all classes within that package (and all sub-packages, including
- * implementation classes) will be made available for reflection.
- */
- String getRootPackage();
-
- @Override
- default void beforeAnalysis(final BeforeAnalysisAccess access) {
- Feature.super.beforeAnalysis(access);
-
- // register the reflection classes and dynamic proxies
- final Set reflectionClasses = getReflectionClasses();
- final Set dynamicProxies = getDynamicProxies();
-
- // Before we do that, we validate each of the classes specified can be found on the classpath.
- // If we can't find **all** of them, we don't proceed and we log an error to the console.
- final Set missingClasses = new TreeSet<>(String::compareTo);
- reflectionClasses.forEach(cls -> {
- if (!findClass(access, cls.getName()).isPresent()) {
- missingClasses.add(cls.getName());
- }
- });
-
- dynamicProxies.forEach(interfaces -> {
- Arrays.stream(interfaces).forEach(cls -> {
- if (!findClass(access, cls).isPresent()) {
- missingClasses.add(cls);
- }
- });
- });
-
- if (!missingClasses.isEmpty()) {
- System.out.println("AZURE SDK: Not registering Azure GraalVM support for " + getClass()
- + " as not all specified classes were found on classpath. Missing classes are:");
- missingClasses.forEach(cls -> System.out.println(" - " + cls));
- } else {
- System.out.println("AZURE SDK: Registering Azure GraalVM support for " + getClass());
- reflectionClasses.forEach(reflectiveClass -> registerClass(access, reflectiveClass));
- dynamicProxies.forEach(interfaces -> GraalVMFeatureUtils.addProxyClass(access, interfaces));
-
- // we also register all other classes as discovered in the exported packages set
- getClassesForPackage(access, getRootPackage(), true).sorted()
- .map(ClassReflectionAttributes::createWithAllDeclared) // create ReflectiveClass instances for all, with full API access enabled
- .filter(reflectiveClass -> !reflectionClasses.contains(reflectiveClass)) // don't overwrite custom rules
- .forEach(reflectiveClass -> registerClass(access, reflectiveClass));
- }
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/GraalVMFeatureUtils.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/GraalVMFeatureUtils.java
deleted file mode 100644
index 86cb88686f2c..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/GraalVMFeatureUtils.java
+++ /dev/null
@@ -1,181 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.support.implementation;
-
-import com.oracle.svm.core.jdk.proxy.DynamicProxyRegistry;
-import org.graalvm.nativeimage.ImageSingletons;
-import org.graalvm.nativeimage.hosted.Feature;
-import org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess;
-import org.graalvm.nativeimage.hosted.RuntimeReflection;
-
-import java.io.IOException;
-import java.net.JarURLConnection;
-import java.net.URL;
-import java.net.URLConnection;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Enumeration;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Optional;
-import java.util.Set;
-import java.util.jar.JarEntry;
-import java.util.jar.JarFile;
-import java.util.stream.Stream;
-
-/**
- * Utility class to configure GraalVM features.
- */
-public final class GraalVMFeatureUtils {
-
- /**
- * Registers the given interfaces for dynamic proxy generation.
- *
- * @param access The {@link BeforeAnalysisAccess} instance
- * @param interfaces the list of interfaces that the generated proxy can implement
- */
- public static void addProxyClass(final Feature.FeatureAccess access, final String... interfaces) {
- final List> classList = new ArrayList<>();
- for (final String anInterface : interfaces) {
- final Class> clazz = access.findClassByName(anInterface);
- if (clazz != null) {
- classList.add(clazz);
- }
- }
- if (classList.size() == interfaces.length) {
- ImageSingletons.lookup(DynamicProxyRegistry.class)
- .addProxyClass(classList.toArray(new Class>[interfaces.length]));
- }
- }
-
- @SafeVarargs
- @SuppressWarnings("varargs")
- public static Set setOf(final T... s) {
- final Set set = new LinkedHashSet<>(s.length);
- set.addAll(Arrays.asList(s));
- return set;
- }
-
- @SafeVarargs
- @SuppressWarnings("varargs")
- public static Set setsOf(final T[]... s) {
- final Set set = new LinkedHashSet<>(s.length);
- Collections.addAll(set, s);
- return set;
- }
-
- public static Optional> findClass(final Feature.FeatureAccess access, final String className) {
- return Optional.ofNullable(access.findClassByName(className));
- }
-
- public static String[] interfaces(String... strings) {
- return strings;
- }
-
- public static void registerClass(final Feature.FeatureAccess access,
- final ClassReflectionAttributes reflectiveClass) {
- GraalVMFeatureUtils.findClass(access, reflectiveClass.getName()).ifPresent(cls -> {
- RuntimeReflection.register(cls);
-
- // fields
- if (reflectiveClass.includeDeclaredFields()) {
- RuntimeReflection.register(cls.getDeclaredFields());
- }
- if (reflectiveClass.includePublicFields()) {
- RuntimeReflection.register(cls.getFields());
- }
-
- // constructors
- if (reflectiveClass.includeDeclaredConstructors()) {
- RuntimeReflection.register(cls.getDeclaredConstructors());
- }
- if (reflectiveClass.includePublicConstructors()) {
- RuntimeReflection.register(cls.getConstructors());
- }
-
- // methods
- if (reflectiveClass.includeDeclaredMethods()) {
- RuntimeReflection.register(cls.getDeclaredMethods());
- }
- if (reflectiveClass.includePublicMethods()) {
- RuntimeReflection.register(cls.getMethods());
- }
-
- // classes
- if (reflectiveClass.includeDeclaredClasses()) {
- RuntimeReflection.register(cls.getDeclaredClasses());
- }
- if (reflectiveClass.includePublicClasses()) {
- RuntimeReflection.register(cls.getClasses());
- }
- });
- }
-
- public static Stream getClassesForPackage(final Feature.FeatureAccess access, final String packageName,
- final boolean recursive) {
- final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
- final String packagePath = packageName.replace('.', '/');
-
- try {
- final Enumeration resources = classLoader.getResources(packagePath);
- while (resources.hasMoreElements()) {
- final URL url = resources.nextElement();
- final URLConnection connection = url.openConnection();
- if (connection instanceof JarURLConnection) {
- return findClassesInJar(access, ((JarURLConnection) connection).getJarFile(), packageName,
- recursive);
- }
- }
- } catch (IOException e) {
- throw new RuntimeException("Could not enable reflective access to classes from package " + packageName, e);
- }
-
- return Stream.empty();
- }
-
- private static Stream findClassesInJar(final Feature.FeatureAccess access, final JarFile jarFile,
- final String packageName, final boolean recursive) {
- final List classNames = new ArrayList<>();
- final Enumeration entries = jarFile.entries();
-
- // This enumerates all files in a single jar, so we need to be sure the entry is specifically in the
- // specified package, and not a sub-package
- final int packageDepth = countInString(packageName, '.');
- while (entries.hasMoreElements()) {
- final String entryName = entries.nextElement().getName();
-
- // we compare the package depth of the given entry with the package depth of the package we are looking for.
- // At this point the entry is using forward slashes for packages, so we adjust accordingly here, and we
- // subtract one to account for the slash before the class name
- if (!recursive && countInString(entryName, '/') - 1 != packageDepth) {
- continue;
- }
-
- if (entryName.endsWith(".class")) {
- String fqcn = entryName.replace('/', '.').replace(".class", "");
-
- if (fqcn.startsWith(packageName)) {
- classNames.add(fqcn);
- }
- }
- }
-
- return classNames.stream();
- }
-
- private static int countInString(String haystack, char needle) {
- int count = 0;
- for (int i = 0; i < haystack.length(); i++) {
- if (haystack.charAt(i) == needle) {
- count++;
- }
- }
- return count;
- }
-
- private GraalVMFeatureUtils() {
- // private ctor
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/AppConfigFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/AppConfigFeature.java
deleted file mode 100644
index 5bd9c3efe909..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/AppConfigFeature.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class AppConfigFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.data.appconfiguration";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces("com.azure.data.appconfiguration.implementation.ConfigurationService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/AzureCoreFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/AzureCoreFeature.java
deleted file mode 100644
index 3deebdc1ab64..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/AzureCoreFeature.java
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.ClassReflectionAttributes;
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.ClassReflectionAttributes.createWithAllDeclared;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setOf;
-
-@AutomaticFeature
-public class AzureCoreFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.core";
- }
-
- @Override
- public Set getReflectionClasses() {
- return setOf(createWithAllDeclared("com.azure.core.util.DateTimeRfc1123"),
- createWithAllDeclared("com.azure.core.http.rest.StreamResponse"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/CosmosFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/CosmosFeature.java
deleted file mode 100644
index ac5b97406954..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/CosmosFeature.java
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-@AutomaticFeature
-public class CosmosFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.cosmos";
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/EventHubsFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/EventHubsFeature.java
deleted file mode 100644
index 9fc0038a3e45..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/EventHubsFeature.java
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-@AutomaticFeature
-public class EventHubsFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.messaging.eventhubs";
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/FormRecognizerFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/FormRecognizerFeature.java
deleted file mode 100644
index 0641d6efb579..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/FormRecognizerFeature.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class FormRecognizerFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.ai.formrecognizer";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces(
- "com.azure.ai.formrecognizer.documentanalysis.implementation.FormRecognizerClientImpl$FormRecognizerClientService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/IdentityFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/IdentityFeature.java
deleted file mode 100644
index d37af4f8d2cf..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/IdentityFeature.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.ClassReflectionAttributes;
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.ClassReflectionAttributes.createWithAllDeclared;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setOf;
-
-@AutomaticFeature
-public class IdentityFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.identity";
- }
-
- @Override
- public Set getReflectionClasses() {
- return setOf(createWithAllDeclared("com.microsoft.aad.msal4j.AadInstanceDiscoveryResponse"),
- createWithAllDeclared("com.microsoft.aad.msal4j.InstanceDiscoveryMetadataEntry"),
-
- // this is due to Msal4j library dependency
- createWithAllDeclared("java.util.HashSet"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultCertificatesFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultCertificatesFeature.java
deleted file mode 100644
index 3031994f2294..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultCertificatesFeature.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class KeyvaultCertificatesFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.security.keyvault.certificates";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces("com.azure.security.keyvault.certificates.implementation.CertificateService"),
- interfaces("com.microsoft.aad.msal4jextensions.persistence.mac.ISecurityLibrary"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultKeysFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultKeysFeature.java
deleted file mode 100644
index 2310a6c0b99d..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultKeysFeature.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class KeyvaultKeysFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.security.keyvault.keys";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces("com.azure.security.keyvault.keys.implementation.KeyService"),
- interfaces("com.azure.security.keyvault.keys.cryptography.implementation.CryptographyService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultSecretsFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultSecretsFeature.java
deleted file mode 100644
index 7f5494a3dc66..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/KeyvaultSecretsFeature.java
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class KeyvaultSecretsFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.security.keyvault.secrets";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces("com.azure.security.keyvault.secrets.implementation.SecretService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageBlobFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageBlobFeature.java
deleted file mode 100644
index 6923923c1e73..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageBlobFeature.java
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class StorageBlobFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.storage.blob";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces("com.azure.storage.blob.implementation.AppendBlobsImpl$AppendBlobsService"),
- interfaces("com.azure.storage.blob.implementation.BlobsImpl$BlobsService"),
- interfaces("com.azure.storage.blob.implementation.BlockBlobsImpl$BlockBlobsService"),
- interfaces("com.azure.storage.blob.implementation.ContainersImpl$ContainersService"),
- interfaces("com.azure.storage.blob.implementation.PageBlobsImpl$PageBlobsService"),
- interfaces("com.azure.storage.blob.implementation.ServicesImpl$ServicesService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageFileShareFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageFileShareFeature.java
deleted file mode 100644
index 6468ce213c7e..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageFileShareFeature.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class StorageFileShareFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.storage.file.share";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces("com.azure.storage.file.share.implementation.DirectoriesImpl$DirectoriesService"),
- interfaces("com.azure.storage.file.share.implementation.FilesImpl$FilesService"),
- interfaces("com.azure.storage.file.share.implementation.ServicesImpl$ServicesService"),
- interfaces("com.azure.storage.file.share.implementation.SharesImpl$SharesService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageQueueFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageQueueFeature.java
deleted file mode 100644
index b048934b4e47..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/StorageQueueFeature.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class StorageQueueFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.storage.queue";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(interfaces("com.azure.storage.queue.implementation.MessageIdsImpl$MessageIdsService"),
- interfaces("com.azure.storage.queue.implementation.MessagesImpl$MessagesService"),
- interfaces("com.azure.storage.queue.implementation.QueuesImpl$QueuesService"),
- interfaces("com.azure.storage.queue.implementation.ServicesImpl$ServicesService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/TextAnalyticsFeature.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/TextAnalyticsFeature.java
deleted file mode 100644
index f15d95f296dd..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/TextAnalyticsFeature.java
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-package com.azure.aot.graalvm.support.implementation.features;
-
-import com.azure.aot.graalvm.support.implementation.GraalVMFeature;
-import com.oracle.svm.core.annotate.AutomaticFeature;
-
-import java.util.Set;
-
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.interfaces;
-import static com.azure.aot.graalvm.support.implementation.GraalVMFeatureUtils.setsOf;
-
-@AutomaticFeature
-public class TextAnalyticsFeature implements GraalVMFeature {
-
- @Override
- public String getRootPackage() {
- return "com.azure.ai.textanalytics";
- }
-
- @Override
- public Set getDynamicProxies() {
- return setsOf(
- interfaces("com.azure.ai.textanalytics.implementation.TextAnalyticsClientImpl$TextAnalyticsClientService"));
- }
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/package-info.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/package-info.java
deleted file mode 100644
index f60df0af0a64..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/features/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-/**
- * GraalVM features for client libraries.
- */
-package com.azure.aot.graalvm.support.implementation.features;
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/package-info.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/package-info.java
deleted file mode 100644
index dcae84695e86..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/com/azure/aot/graalvm/support/implementation/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-/**
- * GraalVM configuration classes.
- */
-package com.azure.aot.graalvm.support.implementation;
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/java/module-info.java b/sdk/aot/azure-aot-graalvm-support/src/main/java/module-info.java
deleted file mode 100644
index dcbb865e5eb3..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/java/module-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-module com.azure.aot.graalvm.support {
- requires transitive org.graalvm.sdk;
- requires transitive svm;
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core-amqp/reflect-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core-amqp/reflect-config.json
deleted file mode 100644
index ac7e4afa14f7..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core-amqp/reflect-config.json
+++ /dev/null
@@ -1,6 +0,0 @@
-[
- {
- "name":"com.azure.core.amqp.models.CbsAuthorizationType",
- "methods":[{"name":"","parameterTypes":[] }]
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties
deleted file mode 100644
index db4ec164a145..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-Args=\
- --initialize-at-build-time=org.apache.log4j.Logger,\
- org.slf4j.LoggerFactory,\
- org.slf4j.impl.StaticLoggerBinder,\
- com.azure.core.implementation.logging.DefaultLogger,\
- com.azure.core.test.TestBase,\
- com.azure.core.util.Configuration,\
- com.azure.core.implementation.util.EnvironmentConfiguration,\
- com.azure.core.implementation.util.EnvironmentConfiguration$EnvironmentVariablesConfigurationSource,\
- com.azure.core.util.CoreUtils,\
- com.azure.core.util.NoopConfiguration,\
- com.azure.core.util.logging.LoggingEventBuilder,\
- com.fasterxml.jackson.core.io.JsonStringEncoder,\
- com.fasterxml.jackson.core.io.CharTypes
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/reflect-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/reflect-config.json
deleted file mode 100644
index ee26e4e8541b..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/reflect-config.json
+++ /dev/null
@@ -1,11 +0,0 @@
-[
- {
- "name":"com.azure.core.util.logging.ClientLogger",
- "allDeclaredFields":true,
- "queryAllDeclaredMethods":true,
- "queryAllDeclaredConstructors":true
- },
- {
- "name":"com.azure.core.util.CoreUtils"
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/resource-config.json
deleted file mode 100644
index a131ef569512..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-core/resource-config.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "META-INF/services/com.azure.core.http.HttpClientProvider"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-cosmos/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-cosmos/resource-config.json
deleted file mode 100644
index 6011c1d557ff..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-cosmos/resource-config.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "\\Qazure-cosmos.properties\\E"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/reflect-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/reflect-config.json
deleted file mode 100644
index eaa0f86d3bd3..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/reflect-config.json
+++ /dev/null
@@ -1,70 +0,0 @@
-[
- {
- "name": "com.azure.data.appconfiguration.models.SettingFields",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.models.ConfigurationSetting",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.implementation.ConfigurationSettingPage",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.models.FeatureFlagConfigurationSetting",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.models.SecretReferenceConfigurationSetting",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.models.SettingFields",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.azure.data.appconfiguration.ConfigurationClientBuilderTest",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.azure.data.appconfiguration.models.ConfigurationSetting",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.implementation.ConfigurationSettingPage",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.models.FeatureFlagConfigurationSetting",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.azure.data.appconfiguration.models.SecretReferenceConfigurationSetting",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/resource-config.json
deleted file mode 100644
index 991a61e73688..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-data-appconfiguration/resource-config.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "azure-data-appconfiguration.properties"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-messaging-eventhubs/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-messaging-eventhubs/resource-config.json
deleted file mode 100644
index cf430e9e8f89..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-messaging-eventhubs/resource-config.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "\\Qazure-messaging-eventhubs.properties\\E"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault-certificates/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault-certificates/resource-config.json
deleted file mode 100644
index 007b03e7bfc5..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault-certificates/resource-config.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "\\Qazure-key-vault-certificates.properties\\E"
- },
- {
- "pattern": "\\Qcom/sun/jna/darwin/libjnidispatch.jnilib\\E"
- },
- {
- "pattern": "\\QkvErrorStrings.properties\\E"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault-keys/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault-keys/resource-config.json
deleted file mode 100644
index 0e369c703295..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-security-keyvault-keys/resource-config.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "azure-key-vault-keys.properties"
- },
- {
- "pattern": "kvErrorStrings.properties"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-storage-blob/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-storage-blob/resource-config.json
deleted file mode 100644
index 8a791a164f4a..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/azure-storage-blob/resource-config.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "resources": {
- "includes": [
- {
- "pattern": "\\Qazure-storage-blob.properties\\E"
- }
- ]
- },
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/native-image.properties b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/native-image.properties
deleted file mode 100644
index a86e89f33752..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.azure/native-image.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-Args=\
- --allow-incomplete-classpath \
- --report-unsupported-elements-at-runtime \
- -H:+AddAllCharsets
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.microsoft.azure/msal4j-persistence-extension/reflect-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.microsoft.azure/msal4j-persistence-extension/reflect-config.json
deleted file mode 100644
index 8641f3429e05..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/com.microsoft.azure/msal4j-persistence-extension/reflect-config.json
+++ /dev/null
@@ -1,26 +0,0 @@
-[
- {
- "name": "com.microsoft.aad.msal4j.IdToken",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.microsoft.aad.msal4j.ClientInfo",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.microsoft.aad.msal4j.DeviceCode",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- },
- {
- "name": "com.microsoft.aad.msal4j.ErrorResponse",
- "allDeclaredConstructors": true,
- "allDeclaredMethods": true,
- "allDeclaredFields": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/jni-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/jni-config.json
deleted file mode 100644
index a1dc6d086740..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/jni-config.json
+++ /dev/null
@@ -1,955 +0,0 @@
-[
- {
- "name": "com.sun.jna.Callback"
- },
- {
- "name": "com.sun.jna.CallbackReference",
- "methods": [
- {
- "name": "getCallback",
- "parameterTypes": [
- "java.lang.Class",
- "com.sun.jna.Pointer",
- "boolean"
- ]
- },
- {
- "name": "getFunctionPointer",
- "parameterTypes": [
- "com.sun.jna.Callback",
- "boolean"
- ]
- },
- {
- "name": "getNativeString",
- "parameterTypes": [
- "java.lang.Object",
- "boolean"
- ]
- },
- {
- "name": "initializeThread",
- "parameterTypes": [
- "com.sun.jna.Callback",
- "com.sun.jna.CallbackReference$AttachOptions"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.CallbackReference$AttachOptions"
- },
- {
- "name": "com.sun.jna.FromNativeConverter",
- "methods": [
- {
- "name": "nativeType",
- "parameterTypes": []
- }
- ]
- },
- {
- "name": "com.sun.jna.IntegerType",
- "fields": [
- {
- "name": "value"
- }
- ]
- },
- {
- "name": "com.sun.jna.JNIEnv"
- },
- {
- "name": "com.sun.jna.Library"
- },
- {
- "name": "com.sun.jna.Native",
- "methods": [
- {
- "name": "dispose",
- "parameterTypes": []
- },
- {
- "name": "fromNative",
- "parameterTypes": [
- "com.sun.jna.FromNativeConverter",
- "java.lang.Object",
- "java.lang.reflect.Method"
- ]
- },
- {
- "name": "fromNative",
- "parameterTypes": [
- "java.lang.Class",
- "java.lang.Object"
- ]
- },
- {
- "name": "fromNative",
- "parameterTypes": [
- "java.lang.reflect.Method",
- "java.lang.Object"
- ]
- },
- {
- "name": "nativeType",
- "parameterTypes": [
- "java.lang.Class"
- ]
- },
- {
- "name": "toNative",
- "parameterTypes": [
- "com.sun.jna.ToNativeConverter",
- "java.lang.Object"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.Native$ffi_callback",
- "methods": [
- {
- "name": "invoke",
- "parameterTypes": [
- "long",
- "long",
- "long"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.NativeMapped",
- "methods": [
- {
- "name": "toNative",
- "parameterTypes": []
- }
- ]
- },
- {
- "name": "com.sun.jna.Pointer",
- "fields": [
- {
- "name": "peer"
- }
- ],
- "methods": [
- {
- "name": "",
- "parameterTypes": [
- "long"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.PointerType",
- "fields": [
- {
- "name": "pointer"
- }
- ]
- },
- {
- "name": "com.sun.jna.Structure",
- "fields": [
- {
- "name": "memory"
- },
- {
- "name": "typeInfo"
- }
- ],
- "methods": [
- {
- "name": "autoRead",
- "parameterTypes": []
- },
- {
- "name": "autoWrite",
- "parameterTypes": []
- },
- {
- "name": "getTypeInfo",
- "parameterTypes": []
- },
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class",
- "long"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.Structure$ByValue"
- },
- {
- "name": "com.sun.jna.Structure$FFIType$FFITypes",
- "fields": [
- {
- "name": "ffi_type_double"
- },
- {
- "name": "ffi_type_float"
- },
- {
- "name": "ffi_type_longdouble"
- },
- {
- "name": "ffi_type_pointer"
- },
- {
- "name": "ffi_type_sint16"
- },
- {
- "name": "ffi_type_sint32"
- },
- {
- "name": "ffi_type_sint64"
- },
- {
- "name": "ffi_type_sint8"
- },
- {
- "name": "ffi_type_uint16"
- },
- {
- "name": "ffi_type_uint32"
- },
- {
- "name": "ffi_type_uint64"
- },
- {
- "name": "ffi_type_uint8"
- },
- {
- "name": "ffi_type_void"
- }
- ]
- },
- {
- "name": "com.sun.jna.WString",
- "methods": [
- {
- "name": "",
- "parameterTypes": [
- "java.lang.String"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.Native",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.lang.Class",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.lang.reflect.Method",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.lang.String",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.Buffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.ByteBuffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.CharBuffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.ShortBuffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.IntBuffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.LongBuffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.FloatBuffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.nio.DoubleBuffer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.lang.Void",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Boolean",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Byte",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Character",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Short",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Integer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Long",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Float",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "java.lang.Double",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- },
- {
- "name": "TYPE"
- }
- ]
- },
- {
- "name": "com.sun.jna.Pointer",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "peer",
- "allowWrite": true
- }
- ]
- },
- {
- "name": "com.sun.jna.Structure$ByValue",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.WString",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.NativeMapped",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.IntegerType",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.PointerType",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.JNIEnv",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.Native$ffi_callback",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.FromNativeConverter",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.Structure",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "memory",
- "allowWrite": true
- },
- {
- "name": "typeInfo",
- "allowWrite": true
- }
- ],
- "methods": [
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class",
- "com.sun.jna.Pointer"
- ]
- },
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class",
- "long"
- ]
- },
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class"
- ]
- },
- {
- "name": "getTypeInfo",
- "parameterTypes": [
- "java.lang.Object"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.Callback",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.CallbackReference$AttachOptions",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.CallbackReference",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.IntegerType",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "value",
- "allowWrite": true
- }
- ]
- },
- {
- "name": "com.sun.jna.PointerType",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "pointer",
- "allowWrite": true
- }
- ]
- },
- {
- "name": "com.sun.jna.Structure$FFIType",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.Structure$FFIType$FFITypes",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "ffi_type_void",
- "allowWrite": true
- },
- {
- "name": "ffi_type_float",
- "allowWrite": true
- },
- {
- "name": "ffi_type_double",
- "allowWrite": true
- },
- {
- "name": "ffi_type_longdouble",
- "allowWrite": true
- },
- {
- "name": "ffi_type_uint8",
- "allowWrite": true
- },
- {
- "name": "ffi_type_sint8",
- "allowWrite": true
- },
- {
- "name": "ffi_type_uint16",
- "allowWrite": true
- },
- {
- "name": "ffi_type_sint16",
- "allowWrite": true
- },
- {
- "name": "ffi_type_uint32",
- "allowWrite": true
- },
- {
- "name": "ffi_type_sint32",
- "allowWrite": true
- },
- {
- "name": "ffi_type_uint64",
- "allowWrite": true
- },
- {
- "name": "ffi_type_sint64",
- "allowWrite": true
- },
- {
- "name": "ffi_type_pointer",
- "allowWrite": true
- }
- ]
- },
- {
- "name": "com.sun.jna.NativeLong",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.ptr.PointerByReference",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "byte[][]"
- },
- {
- "name": "com.sun.jna.Callback"
- },
- {
- "name": "com.sun.jna.CallbackReference",
- "methods": [
- {
- "name": "getCallback",
- "parameterTypes": [
- "java.lang.Class",
- "com.sun.jna.Pointer",
- "boolean"
- ]
- },
- {
- "name": "getFunctionPointer",
- "parameterTypes": [
- "com.sun.jna.Callback",
- "boolean"
- ]
- },
- {
- "name": "getNativeString",
- "parameterTypes": [
- "java.lang.Object",
- "boolean"
- ]
- },
- {
- "name": "initializeThread",
- "parameterTypes": [
- "com.sun.jna.Callback",
- "com.sun.jna.CallbackReference$AttachOptions"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.CallbackReference$AttachOptions"
- },
- {
- "name": "com.sun.jna.FromNativeConverter",
- "methods": [
- {
- "name": "nativeType",
- "parameterTypes": []
- }
- ]
- },
- {
- "name": "com.sun.jna.IntegerType",
- "fields": [
- {
- "name": "value"
- }
- ]
- },
- {
- "name": "com.sun.jna.JNIEnv"
- },
- {
- "name": "com.sun.jna.Native",
- "methods": [
- {
- "name": "dispose",
- "parameterTypes": []
- },
- {
- "name": "fromNative",
- "parameterTypes": [
- "com.sun.jna.FromNativeConverter",
- "java.lang.Object",
- "java.lang.reflect.Method"
- ]
- },
- {
- "name": "fromNative",
- "parameterTypes": [
- "java.lang.Class",
- "java.lang.Object"
- ]
- },
- {
- "name": "fromNative",
- "parameterTypes": [
- "java.lang.reflect.Method",
- "java.lang.Object"
- ]
- },
- {
- "name": "nativeType",
- "parameterTypes": [
- "java.lang.Class"
- ]
- },
- {
- "name": "toNative",
- "parameterTypes": [
- "com.sun.jna.ToNativeConverter",
- "java.lang.Object"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.Native$ffi_callback",
- "methods": [
- {
- "name": "invoke",
- "parameterTypes": [
- "long",
- "long",
- "long"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.NativeMapped",
- "methods": [
- {
- "name": "toNative",
- "parameterTypes": []
- }
- ]
- },
- {
- "name": "com.sun.jna.Pointer",
- "fields": [
- {
- "name": "peer"
- }
- ],
- "methods": [
- {
- "name": "",
- "parameterTypes": [
- "long"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.PointerType",
- "fields": [
- {
- "name": "pointer"
- }
- ]
- },
- {
- "name": "com.sun.jna.Structure",
- "fields": [
- {
- "name": "memory"
- },
- {
- "name": "typeInfo"
- }
- ],
- "methods": [
- {
- "name": "autoRead",
- "parameterTypes": []
- },
- {
- "name": "autoWrite",
- "parameterTypes": []
- },
- {
- "name": "getTypeInfo",
- "parameterTypes": []
- },
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class",
- "long"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.Structure$ByValue"
- },
- {
- "name": "com.sun.jna.Structure$FFIType$FFITypes",
- "fields": [
- {
- "name": "ffi_type_double"
- },
- {
- "name": "ffi_type_float"
- },
- {
- "name": "ffi_type_longdouble"
- },
- {
- "name": "ffi_type_pointer"
- },
- {
- "name": "ffi_type_sint16"
- },
- {
- "name": "ffi_type_sint32"
- },
- {
- "name": "ffi_type_sint64"
- },
- {
- "name": "ffi_type_sint8"
- },
- {
- "name": "ffi_type_uint16"
- },
- {
- "name": "ffi_type_uint32"
- },
- {
- "name": "ffi_type_uint64"
- },
- {
- "name": "ffi_type_uint8"
- },
- {
- "name": "ffi_type_void"
- }
- ]
- },
- {
- "name": "com.sun.jna.WString",
- "methods": [
- {
- "name": "",
- "parameterTypes": [
- "java.lang.String"
- ]
- }
- ]
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/proxy-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/proxy-config.json
deleted file mode 100644
index 169c0d33834e..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/proxy-config.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[
- [
- "com.sun.jna.Library"
- ],
- [
- "com.sun.jna.Callback"
- ]
-]
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/reflect-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/reflect-config.json
deleted file mode 100644
index c5abef19aaa0..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/reflect-config.json
+++ /dev/null
@@ -1,89 +0,0 @@
-[
- {
- "name": "com.sun.jna.CallbackReference",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.Klass",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.Native",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.Structure",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true,
- "fields": [
- {
- "name": "memory",
- "allowWrite": true
- },
- {
- "name": "typeInfo"
- }
- ],
- "methods": [
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class",
- "com.sun.jna.Pointer"
- ]
- },
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class",
- "long"
- ]
- },
- {
- "name": "newInstance",
- "parameterTypes": [
- "java.lang.Class"
- ]
- }
- ]
- },
- {
- "name": "com.sun.jna.NativeLong",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.ptr.PointerByReference",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "com.sun.jna.ptr.IntByReference",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- },
- {
- "name": "java.util.Base64$Decoder",
- "allDeclaredConstructors": true,
- "allPublicConstructors": true,
- "allDeclaredMethods": true,
- "allPublicMethods": true
- }
-]
diff --git a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/resource-config.json b/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/resource-config.json
deleted file mode 100644
index 7b8f03c5fcff..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/main/resources/META-INF/native-image/net.java.dev.jna/jna/resource-config.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "resources": [
- {
- "pattern": "\\QMETA-INF/services/jdk.vm.ci.hotspot.HotSpotJVMCIBackendFactory\\E"
- },
- {
- "pattern": "\\QMETA-INF/services/jdk.vm.ci.services.JVMCIServiceLocator\\E"
- },
- {
- "pattern": "\\Qcom/sun/jna/linux-x86-64/libjnidispatch.so\\E"
- }
- ],
- "bundles": []
-}
diff --git a/sdk/aot/azure-aot-graalvm-support/src/samples/README.md b/sdk/aot/azure-aot-graalvm-support/src/samples/README.md
deleted file mode 100644
index e0351d2174c1..000000000000
--- a/sdk/aot/azure-aot-graalvm-support/src/samples/README.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Azure GraalVM Support client library for Java
-
-## Getting started
-Getting started explained in detail [here][SDK_README_GETTING_STARTED].
-
-## Key concepts
-Key concepts are explained in detail [here][SDK_README_KEY_CONCEPTS].
-
-## Examples
-The following sections provide several code snippets covering some of the most common scenarios, including:
-
-## Troubleshooting
-Troubleshooting steps can be found [here][SDK_README_TROUBLESHOOTING].
-
-## Next steps
-See [Next steps][SDK_README_NEXT_STEPS].
-
-## Contributing
-This project welcomes contributions and suggestions. Find [more contributing][SDK_README_CONTRIBUTING] details here.
-
-
-[SDK_README_CONTRIBUTING]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support/README.md#contributing
-[SDK_README_GETTING_STARTED]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support/README.md#getting-started
-[SDK_README_TROUBLESHOOTING]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support/README.md#troubleshooting
-[SDK_README_KEY_CONCEPTS]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support/README.md#key-concepts
-[SDK_README_NEXT_STEPS]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/aot/azure-aot-graalvm-support/README.md#next-steps
-
-
diff --git a/sdk/aot/ci.yml b/sdk/aot/ci.yml
deleted file mode 100644
index 727a0bbf5fec..000000000000
--- a/sdk/aot/ci.yml
+++ /dev/null
@@ -1,61 +0,0 @@
-# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
-
-trigger:
- branches:
- include:
- - main
- - hotfix/*
- - release/*
- paths:
- include:
- - sdk/aot/
- exclude:
- - sdk/aot/pom.xml
- - sdk/aot/azure-aot-graalvm-support/pom.xml
- - sdk/aot/azure-aot-graalvm-support-netty/pom.xml
-
-pr:
- branches:
- include:
- - main
- - feature/*
- - hotfix/*
- - release/*
- paths:
- include:
- - sdk/aot/
- exclude:
- - sdk/aot/pom.xml
- - sdk/aot/azure-aot-graalvm-support/pom.xml
- - sdk/aot/azure-aot-graalvm-support-netty/pom.xml
-
-parameters:
-- name: release_azureaotgraalvmsupport
- displayName: 'azure-aot-graalvm-support'
- type: boolean
- default: true
-- name: release_azureaotgraalvmsupportnetty
- displayName: 'azure-aot-graalvm-support-netty'
- type: boolean
- default: true
-
-extends:
- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
- parameters:
- ServiceDirectory: aot
- Artifacts:
- - name: azure-aot-graalvm-support
- groupId: com.azure
- safeName: azureaotgraalvmsupport
- releaseInBatch: ${{ parameters.release_azureaotgraalvmsupport }}
- skipPublishDocMs: true
- - name: azure-aot-graalvm-support-netty
- groupId: com.azure
- safeName: azureaotgraalvmsupportnetty
- releaseInBatch: ${{ parameters.release_azureaotgraalvmsupportnetty }}
- skipPublishDocMs: true
- AdditionalModules:
- - name: azure-aot-graalvm-perf
- groupId: com.azure
- - name: azure-aot-graalvm-samples
- groupId: com.azure
diff --git a/sdk/aot/pom.xml b/sdk/aot/pom.xml
deleted file mode 100644
index 0d7a4830691c..000000000000
--- a/sdk/aot/pom.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- 4.0.0
- com.azure
- azure-aot-service
- pom
- 1.0.0
-
- azure-aot-graalvm-support
- azure-aot-graalvm-support-netty
- azure-aot-graalvm-samples
- azure-aot-graalvm-perf
-
-
diff --git a/sdk/apicenter/azure-resourcemanager-apicenter/README.md b/sdk/apicenter/azure-resourcemanager-apicenter/README.md
index ef73f8838e72..82a9e68c8d35 100644
--- a/sdk/apicenter/azure-resourcemanager-apicenter/README.md
+++ b/sdk/apicenter/azure-resourcemanager-apicenter/README.md
@@ -108,4 +108,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
+
diff --git a/sdk/apicenter/azure-resourcemanager-apicenter/pom.xml b/sdk/apicenter/azure-resourcemanager-apicenter/pom.xml
index 11e7f33b98cd..d751801ec76a 100644
--- a/sdk/apicenter/azure-resourcemanager-apicenter/pom.xml
+++ b/sdk/apicenter/azure-resourcemanager-apicenter/pom.xml
@@ -51,29 +51,29 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-management
- 1.15.6
+ 1.16.2
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
com.azure.resourcemanager
azure-resourcemanager-resources
- 2.46.0
+ 2.47.0
test
diff --git a/sdk/apimanagement/azure-resourcemanager-apimanagement/README.md b/sdk/apimanagement/azure-resourcemanager-apimanagement/README.md
index 789cc12790d5..29cdd84f9b6b 100644
--- a/sdk/apimanagement/azure-resourcemanager-apimanagement/README.md
+++ b/sdk/apimanagement/azure-resourcemanager-apimanagement/README.md
@@ -112,4 +112,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
+
diff --git a/sdk/apimanagement/azure-resourcemanager-apimanagement/pom.xml b/sdk/apimanagement/azure-resourcemanager-apimanagement/pom.xml
index 00204b74c572..75c97363e0cf 100644
--- a/sdk/apimanagement/azure-resourcemanager-apimanagement/pom.xml
+++ b/sdk/apimanagement/azure-resourcemanager-apimanagement/pom.xml
@@ -51,23 +51,23 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-management
- 1.15.6
+ 1.16.2
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
@@ -91,7 +91,7 @@
com.azure.resourcemanager
azure-resourcemanager-resources
- 2.46.0
+ 2.47.0
test
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md
index 137018fb9503..62f8e371846e 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/README.md
@@ -101,4 +101,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
+
diff --git a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml
index 3ade13d01278..428ce2f43505 100644
--- a/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml
+++ b/sdk/appcomplianceautomation/azure-resourcemanager-appcomplianceautomation/pom.xml
@@ -50,28 +50,28 @@
com.azure
azure-json
- 1.3.0
+ 1.4.0
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-management
- 1.15.6
+ 1.16.2
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
diff --git a/sdk/appconfiguration/azure-data-appconfiguration-perf/README.md b/sdk/appconfiguration/azure-data-appconfiguration-perf/README.md
index 0c6e614941c2..b82fc5ed9ad6 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration-perf/README.md
+++ b/sdk/appconfiguration/azure-data-appconfiguration-perf/README.md
@@ -57,6 +57,6 @@ For details on contributing to this repository, see the [contributing guide](htt
1. Create new Pull Request
-[app_config_store]: https://docs.microsoft.com/azure/azure-app-configuration/quickstart-dotnet-core-app#create-an-app-configuration-store
+[app_config_store]: https://learn.microsoft.com/azure/azure-app-configuration/quickstart-dotnet-core-app#create-an-app-configuration-store
[azure_subscription]: https://azure.microsoft.com/free
-[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
+[jdk_link]: https://learn.microsoft.com/java/azure/jdk/?view=azure-java-stable
diff --git a/sdk/appconfiguration/azure-data-appconfiguration-perf/pom.xml b/sdk/appconfiguration/azure-data-appconfiguration-perf/pom.xml
index 8e077404ba96..bc1d4c091eaa 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration-perf/pom.xml
+++ b/sdk/appconfiguration/azure-data-appconfiguration-perf/pom.xml
@@ -38,68 +38,12 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-http-netty
- 1.15.7
+ 1.15.10
-
-
-
- native
-
-
-
- org.graalvm.buildtools
- native-maven-plugin
- 0.9.19
-
- ${perf.test.mainClass}
- ${perf.test.imageName}
-
-
-
- build-native
-
- build
-
- package
-
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 3.4.1
-
-
-
- java
-
-
-
-
- ${perf.test.mainClass}
-
-
-
-
-
-
- com.azure
- azure-aot-graalvm-perf
- 1.0.0-beta.1
-
-
- com.azure
- azure-identity
- 1.15.0
-
-
-
-
diff --git a/sdk/appconfiguration/azure-data-appconfiguration/README.md b/sdk/appconfiguration/azure-data-appconfiguration/README.md
index 7badcc80b46e..3ec4c1a44266 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration/README.md
+++ b/sdk/appconfiguration/azure-data-appconfiguration/README.md
@@ -598,18 +598,18 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[add_headers_from_context_policy]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core/src/main/java/com/azure/core/http/policy/AddHeadersFromContextPolicy.java
[api_documentation]: https://aka.ms/java-docs
-[app_config_store]: https://docs.microsoft.com/azure/azure-app-configuration/quickstart-dotnet-core-app#create-an-app-configuration-store
-[app_config_role]: https://docs.microsoft.com/azure/azure-app-configuration/rest-api-authorization-azure-ad#roles
-[app_config_docs]: https://docs.microsoft.com/azure/azure-app-configuration
-[azure_cli]: https://docs.microsoft.com/cli/azure
+[app_config_store]: https://learn.microsoft.com/azure/azure-app-configuration/quickstart-dotnet-core-app#create-an-app-configuration-store
+[app_config_role]: https://learn.microsoft.com/azure/azure-app-configuration/rest-api-authorization-azure-ad#roles
+[app_config_docs]: https://learn.microsoft.com/azure/azure-app-configuration
+[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity
[azure_subscription]: https://azure.microsoft.com/free
[cla]: https://cla.microsoft.com
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
[coc_contact]: mailto:opencode@microsoft.com
-[default_cred_ref]: https://azuresdkdocs.blob.core.windows.net/$web/java/azure-identity/1.0.1/com/azure/identity/DefaultAzureCredential.html
-[jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable
+[default_cred_ref]: https://azuresdkdocs.z19.web.core.windows.net/java/azure-identity/latest/com/azure/identity/DefaultAzureCredential.html
+[jdk_link]: https://learn.microsoft.com/java/azure/jdk/?view=azure-java-stable
[maven]: https://maven.apache.org/
[package]: https://central.sonatype.com/artifact/com.azure/azure-data-appconfiguration
[performance_tuning]: https://github.com/Azure/azure-sdk-for-java/wiki/Performance-Tuning
@@ -617,6 +617,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[samples]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/java/com/azure/data/appconfiguration
[samples_readme]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/README.md
[source_code]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src
-[spring_quickstart]: https://docs.microsoft.com/azure/azure-app-configuration/quickstart-java-spring-app
+[spring_quickstart]: https://learn.microsoft.com/azure/azure-app-configuration/quickstart-java-spring-app
[troubleshooting]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/TROUBLESHOOTING.md
-
+
+
diff --git a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml
index e0652ac7f3f7..69b8bbbddd13 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml
+++ b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml
@@ -43,7 +43,6 @@
--add-exports com.azure.core/com.azure.core.implementation.http=ALL-UNNAMED
--add-opens com.azure.data.appconfiguration/com.azure.data.appconfiguration=ALL-UNNAMED
- false
--initialize-at-build-time=com.azure.data.appconfiguration.TestHelper
checkstyle-suppressions.xml
@@ -55,29 +54,29 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-json
- 1.3.0
+ 1.4.0
com.azure
azure-core-http-netty
- 1.15.7
+ 1.15.10
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
diff --git a/sdk/appconfiguration/azure-data-appconfiguration/src/samples/README.md b/sdk/appconfiguration/azure-data-appconfiguration/src/samples/README.md
index 950e98c2407b..5f608e664e71 100644
--- a/sdk/appconfiguration/azure-data-appconfiguration/src/samples/README.md
+++ b/sdk/appconfiguration/azure-data-appconfiguration/src/samples/README.md
@@ -55,7 +55,7 @@ This project welcomes contributions and suggestions. Find [more contributing][SD
[SDK_README_GETTING_STARTED]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/README.md#getting-started
[SDK_README_TROUBLESHOOTING]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/README.md#troubleshooting
[SDK_README_KEY_CONCEPTS]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/README.md#key-concepts
-[app_config_docs]: https://docs.microsoft.com/azure/azure-app-configuration
+[app_config_docs]: https://learn.microsoft.com/azure/azure-app-configuration
[proxy_option]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/java/com/azure/data/appconfiguration/ProxyOptionsSample.java
[sample_hello_world]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/java/com/azure/data/appconfiguration/HelloWorld.java
[sample_list_labels]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/java/com/azure/data/appconfiguration/ListLabels.java
@@ -71,4 +71,4 @@ This project welcomes contributions and suggestions. Find [more contributing][SD
[sample_snapshot_CRU_usage]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/java/com/azure/data/appconfiguration/CreateSnapshot.java
[sample_snapshot_create_with_tags]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/java/com/azure/data/appconfiguration/CreateSnapshotWithTagsFilter.java
[sample_list_snapshots]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/appconfiguration/azure-data-appconfiguration/src/samples/java/com/azure/data/appconfiguration/ListSnapshots.java
-
+
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md
index 771ab49267b7..2c7094dfb0c3 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md
@@ -101,4 +101,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
+
diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml
index 88f61e69f5bf..60248016e950 100644
--- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml
+++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/pom.xml
@@ -51,23 +51,23 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-management
- 1.15.6
+ 1.16.2
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
diff --git a/sdk/appconfiguration/ci.yml b/sdk/appconfiguration/ci.yml
index 2c9ef2968060..2b21dac40103 100644
--- a/sdk/appconfiguration/ci.yml
+++ b/sdk/appconfiguration/ci.yml
@@ -63,5 +63,3 @@ extends:
AdditionalModules:
- name: perf-test-core
groupId: com.azure
- - name: azure-aot-graalvm-perf
- groupId: com.azure
diff --git a/sdk/appconfiguration/tests.yml b/sdk/appconfiguration/tests.yml
index 86f5ecd94fd5..17c68f58d315 100644
--- a/sdk/appconfiguration/tests.yml
+++ b/sdk/appconfiguration/tests.yml
@@ -9,4 +9,3 @@ extends:
groupId: com.azure
safeName: azuredataappconfiguration
TimeoutInMinutes: 90
- SupportedClouds: "Public,UsGov,China"
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
index 9d05f22b6128..4fc04e08c2f6 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/README.md
@@ -101,4 +101,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
+
diff --git a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
index 310677329381..504587ca7d51 100644
--- a/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
+++ b/sdk/appcontainers/azure-resourcemanager-appcontainers/pom.xml
@@ -51,29 +51,29 @@
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-management
- 1.15.6
+ 1.16.2
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
com.azure
azure-json
- 1.3.0
+ 1.4.0
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md
index 0e135f5473ab..d896746fb3e3 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md
@@ -1,6 +1,6 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.2.0-beta.2 (Unreleased)
### Features Added
@@ -10,6 +10,81 @@
### Other Changes
+## 1.2.0-beta.1 (2025-02-18)
+
+- Azure Resource Manager ApplicationInsights client library for Java. This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2024-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+### Breaking Changes
+
+#### `models.MyWorkbooksListResult` was removed
+
+#### `models.MyWorkbookManagedIdentityType` was removed
+
+#### `models.MyWorkbook` was removed
+
+#### `models.MyWorkbookUserAssignedIdentities` was removed
+
+#### `models.MyWorkbookResource` was removed
+
+#### `models.MyWorkbookManagedIdentity` was removed
+
+#### `models.MyWorkbooks` was removed
+
+#### `models.MyWorkbook$UpdateStages` was removed
+
+#### `models.MyWorkbook$DefinitionStages` was removed
+
+#### `models.Kind` was removed
+
+#### `models.MyWorkbook$Update` was removed
+
+#### `models.MyWorkbook$Definition` was removed
+
+#### `models.ErrorDefinitionException` was removed
+
+#### `models.ErrorDefinition` was removed
+
+#### `ApplicationInsightsManager` was modified
+
+* `myWorkbooks()` was removed
+
+### Features Added
+
+* `models.ComponentLinkedStorageAccounts` was added
+
+* `models.ComponentLinkedStorageAccounts$Update` was added
+
+* `models.ComponentLinkedStorageAccounts$DefinitionStages` was added
+
+* `models.DeletedWorkbookResource` was added
+
+* `models.DeletedWorkbooks` was added
+
+* `models.ComponentLinkedStorageAccountsOperations` was added
+
+* `models.DeletedWorkbooksListResult` was added
+
+* `models.DeletedWorkbookErrorDefinitionException` was added
+
+* `models.ComponentLinkedStorageAccountsPatch` was added
+
+* `models.DeletedWorkbookInnerErrorTrace` was added
+
+* `models.StorageType` was added
+
+* `models.DeletedWorkbookErrorDefinition` was added
+
+* `models.DeletedWorkbook` was added
+
+* `models.ComponentLinkedStorageAccounts$Definition` was added
+
+* `models.ComponentLinkedStorageAccounts$UpdateStages` was added
+
+#### `ApplicationInsightsManager` was modified
+
+* `deletedWorkbooks()` was added
+* `componentLinkedStorageAccountsOperations()` was added
+
## 1.1.0 (2024-12-13)
- Azure Resource Manager ApplicationInsights client library for Java. This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-06-15-java. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md
index 92aeefa55c61..c1d6b67c6f16 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ApplicationInsights client library for Java.
-This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-06-15-java. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2024-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-applicationinsights
- 1.1.0
+ 1.2.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
-AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
@@ -60,7 +60,7 @@ ApplicationInsightsManager manager = ApplicationInsightsManager
.authenticate(credential, profile);
```
-The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
See [Authentication][authenticate] for more options.
@@ -117,5 +117,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
-
-
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
index 5ffd6e0ca48f..1d02c647db82 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
@@ -35,6 +35,13 @@
- [Get](#componentfeaturecapabilities_get)
+## ComponentLinkedStorageAccountsOperation
+
+- [CreateAndUpdate](#componentlinkedstorageaccountsoperation_createandupdate)
+- [Delete](#componentlinkedstorageaccountsoperation_delete)
+- [Get](#componentlinkedstorageaccountsoperation_get)
+- [Update](#componentlinkedstorageaccountsoperation_update)
+
## ComponentQuotaStatus
- [Get](#componentquotastatus_get)
@@ -50,6 +57,10 @@
- [Purge](#components_purge)
- [UpdateTags](#components_updatetags)
+## DeletedWorkbooks
+
+- [List](#deletedworkbooks_list)
+
## ExportConfigurations
- [Create](#exportconfigurations_create)
@@ -70,15 +81,6 @@
- [Get](#livetoken_get)
-## MyWorkbooks
-
-- [CreateOrUpdate](#myworkbooks_createorupdate)
-- [Delete](#myworkbooks_delete)
-- [GetByResourceGroup](#myworkbooks_getbyresourcegroup)
-- [List](#myworkbooks_list)
-- [ListByResourceGroup](#myworkbooks_listbyresourcegroup)
-- [Update](#myworkbooks_update)
-
## ProactiveDetectionConfigurations
- [Get](#proactivedetectionconfigurations_get)
@@ -571,6 +573,127 @@ public final class ComponentFeatureCapabilitiesGetSamples {
}
```
+### ComponentLinkedStorageAccountsOperation_CreateAndUpdate
+
+```java
+import com.azure.resourcemanager.applicationinsights.models.StorageType;
+
+/**
+ * Samples for ComponentLinkedStorageAccountsOperation CreateAndUpdate.
+ */
+public final class ComponentLinkedStorageAccountsOperationCreateAndUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/examples/
+ * ComponentLinkedStorageAccountsCreateAndUpdate.json
+ */
+ /**
+ * Sample code: ComponentLinkedStorageAccountsCreateAndUpdate.
+ *
+ * @param manager Entry point to ApplicationInsightsManager.
+ */
+ public static void componentLinkedStorageAccountsCreateAndUpdate(
+ com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
+ manager.componentLinkedStorageAccountsOperations()
+ .define(StorageType.SERVICE_PROFILER)
+ .withExistingComponent("someResourceGroupName", "myComponent")
+ .withLinkedStorageAccount(
+ "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname")
+ .create();
+ }
+}
+```
+
+### ComponentLinkedStorageAccountsOperation_Delete
+
+```java
+import com.azure.resourcemanager.applicationinsights.models.StorageType;
+
+/**
+ * Samples for ComponentLinkedStorageAccountsOperation Delete.
+ */
+public final class ComponentLinkedStorageAccountsOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/examples/
+ * ComponentLinkedStorageAccountsDelete.json
+ */
+ /**
+ * Sample code: ComponentLinkedStorageAccountsDelete.
+ *
+ * @param manager Entry point to ApplicationInsightsManager.
+ */
+ public static void componentLinkedStorageAccountsDelete(
+ com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
+ manager.componentLinkedStorageAccountsOperations()
+ .deleteWithResponse("someResourceGroupName", "myComponent", StorageType.SERVICE_PROFILER,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ComponentLinkedStorageAccountsOperation_Get
+
+```java
+import com.azure.resourcemanager.applicationinsights.models.StorageType;
+
+/**
+ * Samples for ComponentLinkedStorageAccountsOperation Get.
+ */
+public final class ComponentLinkedStorageAccountsOperationGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/examples/
+ * ComponentLinkedStorageAccountsGet.json
+ */
+ /**
+ * Sample code: ComponentLinkedStorageAccountsGet.
+ *
+ * @param manager Entry point to ApplicationInsightsManager.
+ */
+ public static void componentLinkedStorageAccountsGet(
+ com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
+ manager.componentLinkedStorageAccountsOperations()
+ .getWithResponse("someResourceGroupName", "myComponent", StorageType.SERVICE_PROFILER,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ComponentLinkedStorageAccountsOperation_Update
+
+```java
+import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccounts;
+import com.azure.resourcemanager.applicationinsights.models.StorageType;
+
+/**
+ * Samples for ComponentLinkedStorageAccountsOperation Update.
+ */
+public final class ComponentLinkedStorageAccountsOperationUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2020-03-01-preview/examples/
+ * ComponentLinkedStorageAccountsUpdate.json
+ */
+ /**
+ * Sample code: ComponentLinkedStorageAccountsUpdate.
+ *
+ * @param manager Entry point to ApplicationInsightsManager.
+ */
+ public static void componentLinkedStorageAccountsUpdate(
+ com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
+ ComponentLinkedStorageAccounts resource = manager.componentLinkedStorageAccountsOperations()
+ .getWithResponse("someResourceGroupName", "myComponent", StorageType.SERVICE_PROFILER,
+ com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withLinkedStorageAccount(
+ "/subscriptions/86dc51d3-92ed-4d7e-947a-775ea79b4918/resourceGroups/someResourceGroupName/providers/Microsoft.Storage/storageAccounts/storageaccountname")
+ .apply();
+ }
+}
+```
+
### ComponentQuotaStatus_Get
```java
@@ -872,6 +995,31 @@ public final class ComponentsUpdateTagsSamples {
}
```
+### DeletedWorkbooks_List
+
+```java
+
+/**
+ * Samples for DeletedWorkbooks List.
+ */
+public final class DeletedWorkbooksListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/preview/2024-02-01-preview/examples/
+ * DeletedWorkbooksList.json
+ */
+ /**
+ * Sample code: WorkbooksListSub.
+ *
+ * @param manager Entry point to ApplicationInsightsManager.
+ */
+ public static void
+ workbooksListSub(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
+ manager.deletedWorkbooks().list(null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### ExportConfigurations_Create
```java
@@ -1202,218 +1350,6 @@ public final class LiveTokenGetSamples {
}
```
-### MyWorkbooks_CreateOrUpdate
-
-```java
-import com.azure.resourcemanager.applicationinsights.models.Kind;
-
-/**
- * Samples for MyWorkbooks CreateOrUpdate.
- */
-public final class MyWorkbooksCreateOrUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbookAdd.
- * json
- */
- /**
- * Sample code: WorkbookAdd.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void workbookAdd(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.myWorkbooks()
- .define("deadb33f-8bee-4d3b-a059-9be8dac93960")
- .withRegion("west us")
- .withExistingResourceGroup("my-resource-group")
- .withName("deadb33f-8bee-4d3b-a059-9be8dac93960")
- .withKind(Kind.USER)
- .withDisplayName("Blah Blah Blah")
- .withSerializedData(
- "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}")
- .withCategory("workbook")
- .withSourceId(
- "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens")
- .create();
- }
-}
-```
-
-### MyWorkbooks_Delete
-
-```java
-/**
- * Samples for MyWorkbooks Delete.
- */
-public final class MyWorkbooksDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbookDelete
- * .json
- */
- /**
- * Sample code: WorkbookDelete.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void
- workbookDelete(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.myWorkbooks()
- .deleteByResourceGroupWithResponse("my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### MyWorkbooks_GetByResourceGroup
-
-```java
-/**
- * Samples for MyWorkbooks GetByResourceGroup.
- */
-public final class MyWorkbooksGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbookGet.
- * json
- */
- /**
- * Sample code: WorkbookGet.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void workbookGet(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.myWorkbooks()
- .getByResourceGroupWithResponse("my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### MyWorkbooks_List
-
-```java
-import com.azure.resourcemanager.applicationinsights.models.CategoryType;
-
-/**
- * Samples for MyWorkbooks List.
- */
-public final class MyWorkbooksListSamples {
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbooksList.
- * json
- */
- /**
- * Sample code: WorkbooksList.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void workbooksList(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.myWorkbooks().list(CategoryType.WORKBOOK, null, null, com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbooksList2
- * .json
- */
- /**
- * Sample code: WorkbooksList2.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void
- workbooksList2(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.myWorkbooks().list(CategoryType.WORKBOOK, null, null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### MyWorkbooks_ListByResourceGroup
-
-```java
-import com.azure.resourcemanager.applicationinsights.models.CategoryType;
-
-/**
- * Samples for MyWorkbooks ListByResourceGroup.
- */
-public final class MyWorkbooksListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbooksList.
- * json
- */
- /**
- * Sample code: WorkbooksList.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void workbooksList(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.myWorkbooks()
- .listByResourceGroup("my-resource-group", CategoryType.WORKBOOK, null, null, null,
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbooksList2
- * .json
- */
- /**
- * Sample code: WorkbooksList2.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void
- workbooksList2(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.myWorkbooks()
- .listByResourceGroup("my-resource-group", CategoryType.WORKBOOK, null, null, null,
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### MyWorkbooks_Update
-
-```java
-import com.azure.resourcemanager.applicationinsights.models.Kind;
-import com.azure.resourcemanager.applicationinsights.models.MyWorkbook;
-
-/**
- * Samples for MyWorkbooks Update.
- */
-public final class MyWorkbooksUpdateSamples {
- /*
- * x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-03-08/examples/MyWorkbookUpdate
- * .json
- */
- /**
- * Sample code: WorkbookUpdate.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void
- workbookUpdate(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- MyWorkbook resource = manager.myWorkbooks()
- .getByResourceGroupWithResponse("my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withKind(Kind.USER)
- .withDisplayName("Blah Blah Blah")
- .withSerializedData(
- "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r\\n---\\r\\n\\r\\nWelcome to your new workbook. This area will display text formatted as markdown.\\r\\n\\r\\n\\r\\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections.\"}\",\"halfWidth\":null,\"conditionalVisibility\":null},{\"type\":3,\"content\":\"{\"version\":\"KqlItem/1.0\",\"query\":\"union withsource=TableName *\\n| summarize Count=count() by TableName\\n| render barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}")
- .withVersion("ME")
- .withCategory("workbook")
- .withSourceId(
- "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup/providers/Microsoft.Web/sites/MyTestApp-CodeLens")
- .apply();
- }
-}
-```
-
### ProactiveDetectionConfigurations_Get
```java
@@ -2171,7 +2107,7 @@ import java.util.Map;
public final class WorkbooksCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/
* WorkbookManagedAdd.json
*/
/**
@@ -2205,7 +2141,7 @@ public final class WorkbooksCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbookAdd.json
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbookAdd.json
*/
/**
* Sample code: WorkbookAdd.
@@ -2252,7 +2188,7 @@ public final class WorkbooksCreateOrUpdateSamples {
public final class WorkbooksDeleteSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbookDelete.
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbookDelete.
* json
*/
/**
@@ -2278,7 +2214,7 @@ public final class WorkbooksDeleteSamples {
public final class WorkbooksGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbookGet1.
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbookGet1.
* json
*/
/**
@@ -2294,7 +2230,7 @@ public final class WorkbooksGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/
* WorkbookManagedGet.json
*/
/**
@@ -2311,7 +2247,7 @@ public final class WorkbooksGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbookGet.json
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbookGet.json
*/
/**
* Sample code: WorkbookGet.
@@ -2337,7 +2273,7 @@ import com.azure.resourcemanager.applicationinsights.models.CategoryType;
public final class WorkbooksListSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbooksListSub
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbooksListSub
* .json
*/
/**
@@ -2352,7 +2288,7 @@ public final class WorkbooksListSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbooksList2.
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbooksList2.
* json
*/
/**
@@ -2378,7 +2314,7 @@ import com.azure.resourcemanager.applicationinsights.models.CategoryType;
public final class WorkbooksListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/
* WorkbooksManagedList.json
*/
/**
@@ -2396,7 +2332,7 @@ public final class WorkbooksListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbooksList.
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbooksList.
* json
*/
/**
@@ -2422,7 +2358,7 @@ public final class WorkbooksListByResourceGroupSamples {
public final class WorkbooksRevisionGetSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/
* WorkbookRevisionGet.json
*/
/**
@@ -2448,7 +2384,7 @@ public final class WorkbooksRevisionGetSamples {
public final class WorkbooksRevisionsListSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/
* WorkbookRevisionsList.json
*/
/**
@@ -2476,7 +2412,7 @@ import com.azure.resourcemanager.applicationinsights.models.Workbook;
public final class WorkbooksUpdateSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/WorkbookUpdate.
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/WorkbookUpdate.
* json
*/
/**
@@ -2498,7 +2434,7 @@ public final class WorkbooksUpdateSamples {
/*
* x-ms-original-file:
- * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-04-01/examples/
+ * specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2023-06-01/examples/
* WorkbookManagedUpdate.json
*/
/**
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
index 9f2ca2b107fc..3b4d8bddcb4d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanager
azure-resourcemanager-applicationinsights
- 1.2.0-beta.1
+ 1.2.0-beta.2
jar
Microsoft Azure SDK for ApplicationInsights Management
- This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-06-15-java.
+ This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2024-08-01.
https://github.com/Azure/azure-sdk-for-java
@@ -45,29 +45,30 @@
UTF-8
0
0
+ true
false
com.azure
azure-core
- 1.54.1
+ 1.55.2
com.azure
azure-core-management
- 1.15.6
+ 1.16.2
com.azure
azure-core-test
- 1.27.0-beta.4
+ 1.27.0-beta.7
test
com.azure
azure-identity
- 1.15.0
+ 1.15.3
test
@@ -91,7 +92,7 @@
com.azure.resourcemanager
azure-resourcemanager-resources
- 2.46.0
+ 2.47.0
test
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java
index 6fffe10b8c0a..ef037815398b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java
@@ -22,6 +22,7 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ApplicationInsightsManagementClient;
import com.azure.resourcemanager.applicationinsights.implementation.AnalyticsItemsImpl;
@@ -31,12 +32,13 @@
import com.azure.resourcemanager.applicationinsights.implementation.ComponentAvailableFeaturesImpl;
import com.azure.resourcemanager.applicationinsights.implementation.ComponentCurrentBillingFeaturesImpl;
import com.azure.resourcemanager.applicationinsights.implementation.ComponentFeatureCapabilitiesImpl;
+import com.azure.resourcemanager.applicationinsights.implementation.ComponentLinkedStorageAccountsOperationsImpl;
import com.azure.resourcemanager.applicationinsights.implementation.ComponentQuotaStatusImpl;
import com.azure.resourcemanager.applicationinsights.implementation.ComponentsImpl;
+import com.azure.resourcemanager.applicationinsights.implementation.DeletedWorkbooksImpl;
import com.azure.resourcemanager.applicationinsights.implementation.ExportConfigurationsImpl;
import com.azure.resourcemanager.applicationinsights.implementation.FavoritesImpl;
import com.azure.resourcemanager.applicationinsights.implementation.LiveTokensImpl;
-import com.azure.resourcemanager.applicationinsights.implementation.MyWorkbooksImpl;
import com.azure.resourcemanager.applicationinsights.implementation.OperationsImpl;
import com.azure.resourcemanager.applicationinsights.implementation.ProactiveDetectionConfigurationsImpl;
import com.azure.resourcemanager.applicationinsights.implementation.WebTestLocationsImpl;
@@ -50,12 +52,13 @@
import com.azure.resourcemanager.applicationinsights.models.ComponentAvailableFeatures;
import com.azure.resourcemanager.applicationinsights.models.ComponentCurrentBillingFeatures;
import com.azure.resourcemanager.applicationinsights.models.ComponentFeatureCapabilities;
+import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccountsOperations;
import com.azure.resourcemanager.applicationinsights.models.ComponentQuotaStatus;
import com.azure.resourcemanager.applicationinsights.models.Components;
+import com.azure.resourcemanager.applicationinsights.models.DeletedWorkbooks;
import com.azure.resourcemanager.applicationinsights.models.ExportConfigurations;
import com.azure.resourcemanager.applicationinsights.models.Favorites;
import com.azure.resourcemanager.applicationinsights.models.LiveTokens;
-import com.azure.resourcemanager.applicationinsights.models.MyWorkbooks;
import com.azure.resourcemanager.applicationinsights.models.Operations;
import com.azure.resourcemanager.applicationinsights.models.ProactiveDetectionConfigurations;
import com.azure.resourcemanager.applicationinsights.models.WebTestLocations;
@@ -67,6 +70,7 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;
@@ -107,12 +111,14 @@ public final class ApplicationInsightsManager {
private WorkbookTemplates workbookTemplates;
- private MyWorkbooks myWorkbooks;
-
private Workbooks workbooks;
private LiveTokens liveTokens;
+ private ComponentLinkedStorageAccountsOperations componentLinkedStorageAccountsOperations;
+
+ private DeletedWorkbooks deletedWorkbooks;
+
private final ApplicationInsightsManagementClient clientObject;
private ApplicationInsightsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -165,6 +171,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+ private static final String SDK_VERSION = "version";
+ private static final Map PROPERTIES
+ = CoreUtils.getProperties("azure-resourcemanager-applicationinsights.properties");
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -272,12 +281,14 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.applicationinsights")
.append("/")
- .append("1.1.0");
+ .append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -520,18 +531,6 @@ public WorkbookTemplates workbookTemplates() {
return workbookTemplates;
}
- /**
- * Gets the resource collection API of MyWorkbooks. It manages MyWorkbook.
- *
- * @return Resource collection API of MyWorkbooks.
- */
- public MyWorkbooks myWorkbooks() {
- if (this.myWorkbooks == null) {
- this.myWorkbooks = new MyWorkbooksImpl(clientObject.getMyWorkbooks(), this);
- }
- return myWorkbooks;
- }
-
/**
* Gets the resource collection API of Workbooks. It manages Workbook.
*
@@ -556,6 +555,32 @@ public LiveTokens liveTokens() {
return liveTokens;
}
+ /**
+ * Gets the resource collection API of ComponentLinkedStorageAccountsOperations. It manages
+ * ComponentLinkedStorageAccounts.
+ *
+ * @return Resource collection API of ComponentLinkedStorageAccountsOperations.
+ */
+ public ComponentLinkedStorageAccountsOperations componentLinkedStorageAccountsOperations() {
+ if (this.componentLinkedStorageAccountsOperations == null) {
+ this.componentLinkedStorageAccountsOperations = new ComponentLinkedStorageAccountsOperationsImpl(
+ clientObject.getComponentLinkedStorageAccountsOperations(), this);
+ }
+ return componentLinkedStorageAccountsOperations;
+ }
+
+ /**
+ * Gets the resource collection API of DeletedWorkbooks.
+ *
+ * @return Resource collection API of DeletedWorkbooks.
+ */
+ public DeletedWorkbooks deletedWorkbooks() {
+ if (this.deletedWorkbooks == null) {
+ this.deletedWorkbooks = new DeletedWorkbooksImpl(clientObject.getDeletedWorkbooks(), this);
+ }
+ return deletedWorkbooks;
+ }
+
/**
* Gets wrapped service client ApplicationInsightsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java
index 4ef1517c09ca..e97e7ecefe1a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java
@@ -151,13 +151,6 @@ public interface ApplicationInsightsManagementClient {
*/
WorkbookTemplatesClient getWorkbookTemplates();
- /**
- * Gets the MyWorkbooksClient object to access its operations.
- *
- * @return the MyWorkbooksClient object.
- */
- MyWorkbooksClient getMyWorkbooks();
-
/**
* Gets the WorkbooksClient object to access its operations.
*
@@ -171,4 +164,18 @@ public interface ApplicationInsightsManagementClient {
* @return the LiveTokensClient object.
*/
LiveTokensClient getLiveTokens();
+
+ /**
+ * Gets the ComponentLinkedStorageAccountsOperationsClient object to access its operations.
+ *
+ * @return the ComponentLinkedStorageAccountsOperationsClient object.
+ */
+ ComponentLinkedStorageAccountsOperationsClient getComponentLinkedStorageAccountsOperations();
+
+ /**
+ * Gets the DeletedWorkbooksClient object to access its operations.
+ *
+ * @return the DeletedWorkbooksClient object.
+ */
+ DeletedWorkbooksClient getDeletedWorkbooks();
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ComponentLinkedStorageAccountsOperationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ComponentLinkedStorageAccountsOperationsClient.java
new file mode 100644
index 000000000000..063a8694a6ff
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ComponentLinkedStorageAccountsOperationsClient.java
@@ -0,0 +1,149 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applicationinsights.fluent.models.ComponentLinkedStorageAccountsInner;
+import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccountsPatch;
+import com.azure.resourcemanager.applicationinsights.models.StorageType;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ComponentLinkedStorageAccountsOperationsClient.
+ */
+public interface ComponentLinkedStorageAccountsOperationsClient {
+ /**
+ * Returns the current linked storage settings for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights component linked storage accounts along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String resourceName,
+ StorageType storageType, Context context);
+
+ /**
+ * Returns the current linked storage settings for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights component linked storage accounts.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComponentLinkedStorageAccountsInner get(String resourceGroupName, String resourceName, StorageType storageType);
+
+ /**
+ * Replace current linked storage account for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @param linkedStorageAccountsProperties Properties that need to be specified to update linked storage accounts for
+ * an Application Insights component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights component linked storage accounts along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createAndUpdateWithResponse(String resourceGroupName,
+ String resourceName, StorageType storageType,
+ ComponentLinkedStorageAccountsInner linkedStorageAccountsProperties, Context context);
+
+ /**
+ * Replace current linked storage account for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @param linkedStorageAccountsProperties Properties that need to be specified to update linked storage accounts for
+ * an Application Insights component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights component linked storage accounts.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComponentLinkedStorageAccountsInner createAndUpdate(String resourceGroupName, String resourceName,
+ StorageType storageType, ComponentLinkedStorageAccountsInner linkedStorageAccountsProperties);
+
+ /**
+ * Update linked storage accounts for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked storage accounts
+ * for an Application Insights component.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights component linked storage accounts along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String resourceName,
+ StorageType storageType, ComponentLinkedStorageAccountsPatch linkedStorageAccountsProperties, Context context);
+
+ /**
+ * Update linked storage accounts for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked storage accounts
+ * for an Application Insights component.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights component linked storage accounts.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ComponentLinkedStorageAccountsInner update(String resourceGroupName, String resourceName, StorageType storageType,
+ ComponentLinkedStorageAccountsPatch linkedStorageAccountsProperties);
+
+ /**
+ * Delete linked storage accounts for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String resourceName, StorageType storageType,
+ Context context);
+
+ /**
+ * Delete linked storage accounts for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String resourceName, StorageType storageType);
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/DeletedWorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/DeletedWorkbooksClient.java
new file mode 100644
index 000000000000..c94029912c53
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/DeletedWorkbooksClient.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applicationinsights.fluent.models.DeletedWorkbookInner;
+import com.azure.resourcemanager.applicationinsights.models.CategoryType;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in DeletedWorkbooksClient.
+ */
+public interface DeletedWorkbooksClient {
+ /**
+ * Get all recently deleted Workbooks in a specified subscription.
+ *
+ * @throws com.azure.resourcemanager.applicationinsights.models.DeletedWorkbookErrorDefinitionException thrown if
+ * the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all recently deleted Workbooks in a specified subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Get all recently deleted Workbooks in a specified subscription.
+ *
+ * @param category Category of workbook to return.
+ * @param tags Tags presents on each workbook returned.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.applicationinsights.models.DeletedWorkbookErrorDefinitionException thrown if
+ * the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all recently deleted Workbooks in a specified subscription as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(CategoryType category, List tags, Context context);
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java
deleted file mode 100644
index b1e8e8684a2a..000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java
+++ /dev/null
@@ -1,212 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.MyWorkbookInner;
-import com.azure.resourcemanager.applicationinsights.models.CategoryType;
-import java.util.List;
-
-/**
- * An instance of this class provides access to all the operations defined in MyWorkbooksClient.
- */
-public interface MyWorkbooksClient {
- /**
- * Get all private workbooks defined within a specified resource group and category.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param category Category of workbook to return.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category);
-
- /**
- * Get all private workbooks defined within a specified resource group and category.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param category Category of workbook to return.
- * @param tags Tags presents on each workbook returned.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
- * false, only return summary content for workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category,
- List tags, String sourceId, Boolean canFetchContent, Context context);
-
- /**
- * Get all private workbooks defined within a specified subscription and category.
- *
- * @param category Category of workbook to return.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(CategoryType category);
-
- /**
- * Get all private workbooks defined within a specified subscription and category.
- *
- * @param category Category of workbook to return.
- * @param tags Tags presents on each workbook returned.
- * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
- * false, only return summary content for workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(CategoryType category, List tags, Boolean canFetchContent,
- Context context);
-
- /**
- * Get a single private workbook by its resourceName.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single private workbook by its resourceName along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName,
- Context context);
-
- /**
- * Get a single private workbook by its resourceName.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single private workbook by its resourceName.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MyWorkbookInner getByResourceGroup(String resourceGroupName, String resourceName);
-
- /**
- * Delete a private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String resourceName, Context context);
-
- /**
- * Delete a private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceName);
-
- /**
- * Create a new private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String resourceName,
- MyWorkbookInner workbookProperties, String sourceId, Context context);
-
- /**
- * Create a new private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MyWorkbookInner createOrUpdate(String resourceGroupName, String resourceName, MyWorkbookInner workbookProperties);
-
- /**
- * Updates a private workbook that has already been added.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String resourceName,
- MyWorkbookInner workbookProperties, String sourceId, Context context);
-
- /**
- * Updates a private workbook that has already been added.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MyWorkbookInner update(String resourceGroupName, String resourceName, MyWorkbookInner workbookProperties);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
index 8c0b98e303f1..e9c78c0be394 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
@@ -91,7 +91,7 @@ PagedIterable listByResourceGroup(String resourceGroupName, Categ
* Get a single workbook by its resourceName.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
* false, only return summary content for workbooks.
* @param context The context to associate with this operation.
@@ -109,7 +109,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName,
* Get a single workbook by its resourceName.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
@@ -123,7 +123,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName,
* Delete a workbook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
@@ -138,7 +138,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName,
* Delete a workbook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
@@ -151,7 +151,7 @@ Response getByResourceGroupWithResponse(String resourceGroupName,
* Create a new workbook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param workbookProperties Properties that need to be specified to create a new workbook.
* @param sourceId Azure Resource Id that will fetch all linked workbooks.
* @param context The context to associate with this operation.
@@ -169,7 +169,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
* Create a new workbook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param workbookProperties Properties that need to be specified to create a new workbook.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
@@ -184,7 +184,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, Str
* Updates a workbook that has already been added.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param sourceId Azure Resource Id that will fetch all linked workbooks.
* @param workbookUpdateParameters Properties that need to be specified to create a new workbook.
* @param context The context to associate with this operation.
@@ -202,7 +202,7 @@ Response updateWithResponse(String resourceGroupName, String reso
* Updates a workbook that has already been added.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
@@ -216,7 +216,7 @@ Response updateWithResponse(String resourceGroupName, String reso
* Get the revisions for the workbook defined by its resourceName.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
@@ -231,7 +231,7 @@ Response updateWithResponse(String resourceGroupName, String reso
* Get the revisions for the workbook defined by its resourceName.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
@@ -247,7 +247,7 @@ Response updateWithResponse(String resourceGroupName, String reso
* Get a single workbook revision defined by its revisionId.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param revisionId The id of the workbook's revision.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -264,7 +264,7 @@ Response revisionGetWithResponse(String resourceGroupName, String
* Get a single workbook revision defined by its revisionId.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the resource.
+ * @param resourceName The name of the workbook resource. The value must be an UUID.
* @param revisionId The id of the workbook's revision.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
index 56fde977cf2d..529c4eadb4ec 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
@@ -200,12 +200,12 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("Name", this.name);
- jsonWriter.writeBooleanField("Enabled", this.enabled);
- jsonWriter.writeBooleanField("SendEmailsToSubscriptionOwners", this.sendEmailsToSubscriptionOwners);
- jsonWriter.writeArrayField("CustomEmails", this.customEmails, (writer, element) -> writer.writeString(element));
- jsonWriter.writeStringField("LastUpdatedTime", this.lastUpdatedTime);
- jsonWriter.writeJsonField("RuleDefinitions", this.ruleDefinitions);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeBooleanField("enabled", this.enabled);
+ jsonWriter.writeBooleanField("sendEmailsToSubscriptionOwners", this.sendEmailsToSubscriptionOwners);
+ jsonWriter.writeArrayField("customEmails", this.customEmails, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("lastUpdatedTime", this.lastUpdatedTime);
+ jsonWriter.writeJsonField("ruleDefinitions", this.ruleDefinitions);
return jsonWriter.writeEndObject();
}
@@ -227,23 +227,23 @@ public static ApplicationInsightsComponentProactiveDetectionConfigurationInner f
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("Name".equals(fieldName)) {
+ if ("name".equals(fieldName)) {
deserializedApplicationInsightsComponentProactiveDetectionConfigurationInner.name
= reader.getString();
- } else if ("Enabled".equals(fieldName)) {
+ } else if ("enabled".equals(fieldName)) {
deserializedApplicationInsightsComponentProactiveDetectionConfigurationInner.enabled
= reader.getNullable(JsonReader::getBoolean);
- } else if ("SendEmailsToSubscriptionOwners".equals(fieldName)) {
+ } else if ("sendEmailsToSubscriptionOwners".equals(fieldName)) {
deserializedApplicationInsightsComponentProactiveDetectionConfigurationInner.sendEmailsToSubscriptionOwners
= reader.getNullable(JsonReader::getBoolean);
- } else if ("CustomEmails".equals(fieldName)) {
+ } else if ("customEmails".equals(fieldName)) {
List customEmails = reader.readArray(reader1 -> reader1.getString());
deserializedApplicationInsightsComponentProactiveDetectionConfigurationInner.customEmails
= customEmails;
- } else if ("LastUpdatedTime".equals(fieldName)) {
+ } else if ("lastUpdatedTime".equals(fieldName)) {
deserializedApplicationInsightsComponentProactiveDetectionConfigurationInner.lastUpdatedTime
= reader.getString();
- } else if ("RuleDefinitions".equals(fieldName)) {
+ } else if ("ruleDefinitions".equals(fieldName)) {
deserializedApplicationInsightsComponentProactiveDetectionConfigurationInner.ruleDefinitions
= ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions.fromJson(reader);
} else {
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
new file mode 100644
index 000000000000..21645a9765a6
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
@@ -0,0 +1,162 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * An Application Insights component linked storage accounts.
+ */
+@Fluent
+public final class ComponentLinkedStorageAccountsInner extends ProxyResource {
+ /*
+ * The properties of the linked storage accounts.
+ */
+ private LinkedStorageAccountsProperties innerProperties;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ComponentLinkedStorageAccountsInner class.
+ */
+ public ComponentLinkedStorageAccountsInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of the linked storage accounts.
+ *
+ * @return the innerProperties value.
+ */
+ private LinkedStorageAccountsProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the linkedStorageAccount property: Linked storage account resource ID.
+ *
+ * @return the linkedStorageAccount value.
+ */
+ public String linkedStorageAccount() {
+ return this.innerProperties() == null ? null : this.innerProperties().linkedStorageAccount();
+ }
+
+ /**
+ * Set the linkedStorageAccount property: Linked storage account resource ID.
+ *
+ * @param linkedStorageAccount the linkedStorageAccount value to set.
+ * @return the ComponentLinkedStorageAccountsInner object itself.
+ */
+ public ComponentLinkedStorageAccountsInner withLinkedStorageAccount(String linkedStorageAccount) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LinkedStorageAccountsProperties();
+ }
+ this.innerProperties().withLinkedStorageAccount(linkedStorageAccount);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ComponentLinkedStorageAccountsInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ComponentLinkedStorageAccountsInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ComponentLinkedStorageAccountsInner.
+ */
+ public static ComponentLinkedStorageAccountsInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ComponentLinkedStorageAccountsInner deserializedComponentLinkedStorageAccountsInner
+ = new ComponentLinkedStorageAccountsInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedComponentLinkedStorageAccountsInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedComponentLinkedStorageAccountsInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedComponentLinkedStorageAccountsInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedComponentLinkedStorageAccountsInner.innerProperties
+ = LinkedStorageAccountsProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedComponentLinkedStorageAccountsInner;
+ });
+ }
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/DeletedWorkbookInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/DeletedWorkbookInner.java
new file mode 100644
index 000000000000..09eb5417b8ba
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/DeletedWorkbookInner.java
@@ -0,0 +1,425 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.applicationinsights.models.DeletedWorkbookResource;
+import com.azure.resourcemanager.applicationinsights.models.WorkbookSharedTypeKind;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * A workbook definition.
+ */
+@Fluent
+public final class DeletedWorkbookInner extends DeletedWorkbookResource {
+ /*
+ * Metadata describing a workbook for an Azure resource.
+ */
+ private DeletedWorkbookProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of DeletedWorkbookInner class.
+ */
+ public DeletedWorkbookInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Metadata describing a workbook for an Azure resource.
+ *
+ * @return the innerProperties value.
+ */
+ private DeletedWorkbookProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ @Override
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DeletedWorkbookInner withKind(WorkbookSharedTypeKind kind) {
+ super.withKind(kind);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DeletedWorkbookInner withEtag(String etag) {
+ super.withEtag(etag);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DeletedWorkbookInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DeletedWorkbookInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the displayName property: The user-defined name (display name) of the workbook.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
+ }
+
+ /**
+ * Set the displayName property: The user-defined name (display name) of the workbook.
+ *
+ * @param displayName the displayName value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withDisplayName(String displayName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withDisplayName(displayName);
+ return this;
+ }
+
+ /**
+ * Get the serializedData property: Configuration of this particular workbook. Configuration data is a string
+ * containing valid JSON.
+ *
+ * @return the serializedData value.
+ */
+ public String serializedData() {
+ return this.innerProperties() == null ? null : this.innerProperties().serializedData();
+ }
+
+ /**
+ * Set the serializedData property: Configuration of this particular workbook. Configuration data is a string
+ * containing valid JSON.
+ *
+ * @param serializedData the serializedData value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withSerializedData(String serializedData) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withSerializedData(serializedData);
+ return this;
+ }
+
+ /**
+ * Get the version property: Workbook schema version format, like 'Notebook/1.0', which should match the workbook in
+ * serializedData.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Set the version property: Workbook schema version format, like 'Notebook/1.0', which should match the workbook in
+ * serializedData.
+ *
+ * @param version the version value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withVersion(String version) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withVersion(version);
+ return this;
+ }
+
+ /**
+ * Get the timeModified property: Date and time in UTC of the last modification that was made to this workbook
+ * definition.
+ *
+ * @return the timeModified value.
+ */
+ public OffsetDateTime timeModified() {
+ return this.innerProperties() == null ? null : this.innerProperties().timeModified();
+ }
+
+ /**
+ * Get the category property: Workbook category, as defined by the user at creation time.
+ *
+ * @return the category value.
+ */
+ public String category() {
+ return this.innerProperties() == null ? null : this.innerProperties().category();
+ }
+
+ /**
+ * Set the category property: Workbook category, as defined by the user at creation time.
+ *
+ * @param category the category value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withCategory(String category) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withCategory(category);
+ return this;
+ }
+
+ /**
+ * Get the tags property: Being deprecated, please use the other tags field.
+ *
+ * @return the tags value.
+ */
+ public List tagsPropertiesTags() {
+ return this.innerProperties() == null ? null : this.innerProperties().tags();
+ }
+
+ /**
+ * Set the tags property: Being deprecated, please use the other tags field.
+ *
+ * @param tags the tags value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withTagsPropertiesTags(List tags) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the userId property: Unique user id of the specific user that owns this workbook.
+ *
+ * @return the userId value.
+ */
+ public String userId() {
+ return this.innerProperties() == null ? null : this.innerProperties().userId();
+ }
+
+ /**
+ * Get the sourceId property: ResourceId for a source resource.
+ *
+ * @return the sourceId value.
+ */
+ public String sourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().sourceId();
+ }
+
+ /**
+ * Set the sourceId property: ResourceId for a source resource.
+ *
+ * @param sourceId the sourceId value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withSourceId(String sourceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withSourceId(sourceId);
+ return this;
+ }
+
+ /**
+ * Get the storageUri property: The resourceId to the storage account when bring your own storage is used.
+ *
+ * @return the storageUri value.
+ */
+ public String storageUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().storageUri();
+ }
+
+ /**
+ * Set the storageUri property: The resourceId to the storage account when bring your own storage is used.
+ *
+ * @param storageUri the storageUri value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withStorageUri(String storageUri) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withStorageUri(storageUri);
+ return this;
+ }
+
+ /**
+ * Get the description property: The description of the workbook.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Set the description property: The description of the workbook.
+ *
+ * @param description the description value to set.
+ * @return the DeletedWorkbookInner object itself.
+ */
+ public DeletedWorkbookInner withDescription(String description) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DeletedWorkbookProperties();
+ }
+ this.innerProperties().withDescription(description);
+ return this;
+ }
+
+ /**
+ * Get the revision property: The unique revision id for this workbook definition.
+ *
+ * @return the revision value.
+ */
+ public String revision() {
+ return this.innerProperties() == null ? null : this.innerProperties().revision();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("kind", kind() == null ? null : kind().toString());
+ jsonWriter.writeStringField("etag", etag());
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeletedWorkbookInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeletedWorkbookInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DeletedWorkbookInner.
+ */
+ public static DeletedWorkbookInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeletedWorkbookInner deserializedDeletedWorkbookInner = new DeletedWorkbookInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedDeletedWorkbookInner.withTags(tags);
+ } else if ("kind".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.withKind(WorkbookSharedTypeKind.fromString(reader.getString()));
+ } else if ("etag".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.withEtag(reader.getString());
+ } else if ("systemData".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.systemData = SystemData.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedDeletedWorkbookInner.innerProperties = DeletedWorkbookProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeletedWorkbookInner;
+ });
+ }
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/DeletedWorkbookProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/DeletedWorkbookProperties.java
new file mode 100644
index 000000000000..fa4f0aface5b
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/DeletedWorkbookProperties.java
@@ -0,0 +1,366 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/**
+ * Properties that contain a workbook.
+ */
+@Fluent
+public final class DeletedWorkbookProperties implements JsonSerializable {
+ /*
+ * The user-defined name (display name) of the workbook.
+ */
+ private String displayName;
+
+ /*
+ * Configuration of this particular workbook. Configuration data is a string containing valid JSON
+ */
+ private String serializedData;
+
+ /*
+ * Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData
+ */
+ private String version;
+
+ /*
+ * Date and time in UTC of the last modification that was made to this workbook definition.
+ */
+ private OffsetDateTime timeModified;
+
+ /*
+ * Workbook category, as defined by the user at creation time.
+ */
+ private String category;
+
+ /*
+ * Being deprecated, please use the other tags field
+ */
+ private List tags;
+
+ /*
+ * Unique user id of the specific user that owns this workbook.
+ */
+ private String userId;
+
+ /*
+ * ResourceId for a source resource.
+ */
+ private String sourceId;
+
+ /*
+ * The resourceId to the storage account when bring your own storage is used
+ */
+ private String storageUri;
+
+ /*
+ * The description of the workbook.
+ */
+ private String description;
+
+ /*
+ * The unique revision id for this workbook definition
+ */
+ private String revision;
+
+ /**
+ * Creates an instance of DeletedWorkbookProperties class.
+ */
+ public DeletedWorkbookProperties() {
+ }
+
+ /**
+ * Get the displayName property: The user-defined name (display name) of the workbook.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Set the displayName property: The user-defined name (display name) of the workbook.
+ *
+ * @param displayName the displayName value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withDisplayName(String displayName) {
+ this.displayName = displayName;
+ return this;
+ }
+
+ /**
+ * Get the serializedData property: Configuration of this particular workbook. Configuration data is a string
+ * containing valid JSON.
+ *
+ * @return the serializedData value.
+ */
+ public String serializedData() {
+ return this.serializedData;
+ }
+
+ /**
+ * Set the serializedData property: Configuration of this particular workbook. Configuration data is a string
+ * containing valid JSON.
+ *
+ * @param serializedData the serializedData value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withSerializedData(String serializedData) {
+ this.serializedData = serializedData;
+ return this;
+ }
+
+ /**
+ * Get the version property: Workbook schema version format, like 'Notebook/1.0', which should match the workbook in
+ * serializedData.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Workbook schema version format, like 'Notebook/1.0', which should match the workbook in
+ * serializedData.
+ *
+ * @param version the version value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Get the timeModified property: Date and time in UTC of the last modification that was made to this workbook
+ * definition.
+ *
+ * @return the timeModified value.
+ */
+ public OffsetDateTime timeModified() {
+ return this.timeModified;
+ }
+
+ /**
+ * Get the category property: Workbook category, as defined by the user at creation time.
+ *
+ * @return the category value.
+ */
+ public String category() {
+ return this.category;
+ }
+
+ /**
+ * Set the category property: Workbook category, as defined by the user at creation time.
+ *
+ * @param category the category value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withCategory(String category) {
+ this.category = category;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Being deprecated, please use the other tags field.
+ *
+ * @return the tags value.
+ */
+ public List tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Being deprecated, please use the other tags field.
+ *
+ * @param tags the tags value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withTags(List tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the userId property: Unique user id of the specific user that owns this workbook.
+ *
+ * @return the userId value.
+ */
+ public String userId() {
+ return this.userId;
+ }
+
+ /**
+ * Get the sourceId property: ResourceId for a source resource.
+ *
+ * @return the sourceId value.
+ */
+ public String sourceId() {
+ return this.sourceId;
+ }
+
+ /**
+ * Set the sourceId property: ResourceId for a source resource.
+ *
+ * @param sourceId the sourceId value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withSourceId(String sourceId) {
+ this.sourceId = sourceId;
+ return this;
+ }
+
+ /**
+ * Get the storageUri property: The resourceId to the storage account when bring your own storage is used.
+ *
+ * @return the storageUri value.
+ */
+ public String storageUri() {
+ return this.storageUri;
+ }
+
+ /**
+ * Set the storageUri property: The resourceId to the storage account when bring your own storage is used.
+ *
+ * @param storageUri the storageUri value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withStorageUri(String storageUri) {
+ this.storageUri = storageUri;
+ return this;
+ }
+
+ /**
+ * Get the description property: The description of the workbook.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The description of the workbook.
+ *
+ * @param description the description value to set.
+ * @return the DeletedWorkbookProperties object itself.
+ */
+ public DeletedWorkbookProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the revision property: The unique revision id for this workbook definition.
+ *
+ * @return the revision value.
+ */
+ public String revision() {
+ return this.revision;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (displayName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property displayName in model DeletedWorkbookProperties"));
+ }
+ if (serializedData() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property serializedData in model DeletedWorkbookProperties"));
+ }
+ if (category() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property category in model DeletedWorkbookProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DeletedWorkbookProperties.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("displayName", this.displayName);
+ jsonWriter.writeStringField("serializedData", this.serializedData);
+ jsonWriter.writeStringField("category", this.category);
+ jsonWriter.writeStringField("version", this.version);
+ jsonWriter.writeArrayField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("sourceId", this.sourceId);
+ jsonWriter.writeStringField("storageUri", this.storageUri);
+ jsonWriter.writeStringField("description", this.description);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeletedWorkbookProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeletedWorkbookProperties if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the DeletedWorkbookProperties.
+ */
+ public static DeletedWorkbookProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeletedWorkbookProperties deserializedDeletedWorkbookProperties = new DeletedWorkbookProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("displayName".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.displayName = reader.getString();
+ } else if ("serializedData".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.serializedData = reader.getString();
+ } else if ("category".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.category = reader.getString();
+ } else if ("version".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.version = reader.getString();
+ } else if ("timeModified".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.timeModified = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("tags".equals(fieldName)) {
+ List tags = reader.readArray(reader1 -> reader1.getString());
+ deserializedDeletedWorkbookProperties.tags = tags;
+ } else if ("userId".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.userId = reader.getString();
+ } else if ("sourceId".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.sourceId = reader.getString();
+ } else if ("storageUri".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.storageUri = reader.getString();
+ } else if ("description".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.description = reader.getString();
+ } else if ("revision".equals(fieldName)) {
+ deserializedDeletedWorkbookProperties.revision = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeletedWorkbookProperties;
+ });
+ }
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
new file mode 100644
index 000000000000..7bed63396e80
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
@@ -0,0 +1,94 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * An Application Insights component linked storage account.
+ */
+@Fluent
+public final class LinkedStorageAccountsProperties implements JsonSerializable {
+ /*
+ * Linked storage account resource ID
+ */
+ private String linkedStorageAccount;
+
+ /**
+ * Creates an instance of LinkedStorageAccountsProperties class.
+ */
+ public LinkedStorageAccountsProperties() {
+ }
+
+ /**
+ * Get the linkedStorageAccount property: Linked storage account resource ID.
+ *
+ * @return the linkedStorageAccount value.
+ */
+ public String linkedStorageAccount() {
+ return this.linkedStorageAccount;
+ }
+
+ /**
+ * Set the linkedStorageAccount property: Linked storage account resource ID.
+ *
+ * @param linkedStorageAccount the linkedStorageAccount value to set.
+ * @return the LinkedStorageAccountsProperties object itself.
+ */
+ public LinkedStorageAccountsProperties withLinkedStorageAccount(String linkedStorageAccount) {
+ this.linkedStorageAccount = linkedStorageAccount;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("linkedStorageAccount", this.linkedStorageAccount);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LinkedStorageAccountsProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LinkedStorageAccountsProperties if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the LinkedStorageAccountsProperties.
+ */
+ public static LinkedStorageAccountsProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LinkedStorageAccountsProperties deserializedLinkedStorageAccountsProperties
+ = new LinkedStorageAccountsProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("linkedStorageAccount".equals(fieldName)) {
+ deserializedLinkedStorageAccountsProperties.linkedStorageAccount = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLinkedStorageAccountsProperties;
+ });
+ }
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java
deleted file mode 100644
index f5a7c6494f27..000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java
+++ /dev/null
@@ -1,409 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.SystemData;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.applicationinsights.models.Kind;
-import com.azure.resourcemanager.applicationinsights.models.MyWorkbookManagedIdentity;
-import com.azure.resourcemanager.applicationinsights.models.MyWorkbookResource;
-import java.io.IOException;
-import java.util.List;
-import java.util.Map;
-
-/**
- * An Application Insights private workbook definition.
- */
-@Fluent
-public final class MyWorkbookInner extends MyWorkbookResource {
- /*
- * The kind of workbook. Choices are user and shared.
- */
- private Kind kind;
-
- /*
- * Metadata describing a workbook for an Azure resource.
- */
- private MyWorkbookProperties innerProperties;
-
- /*
- * Metadata pertaining to creation and last modification of the resource.
- */
- private SystemData systemData;
-
- /**
- * Creates an instance of MyWorkbookInner class.
- */
- public MyWorkbookInner() {
- }
-
- /**
- * Get the kind property: The kind of workbook. Choices are user and shared.
- *
- * @return the kind value.
- */
- public Kind kind() {
- return this.kind;
- }
-
- /**
- * Set the kind property: The kind of workbook. Choices are user and shared.
- *
- * @param kind the kind value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withKind(Kind kind) {
- this.kind = kind;
- return this;
- }
-
- /**
- * Get the innerProperties property: Metadata describing a workbook for an Azure resource.
- *
- * @return the innerProperties value.
- */
- private MyWorkbookProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public MyWorkbookInner withIdentity(MyWorkbookManagedIdentity identity) {
- super.withIdentity(identity);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public MyWorkbookInner withId(String id) {
- super.withId(id);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public MyWorkbookInner withName(String name) {
- super.withName(name);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public MyWorkbookInner withType(String type) {
- super.withType(type);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public MyWorkbookInner withEtag(Map etag) {
- super.withEtag(etag);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public MyWorkbookInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public MyWorkbookInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Get the displayName property: The user-defined name of the private workbook.
- *
- * @return the displayName value.
- */
- public String displayName() {
- return this.innerProperties() == null ? null : this.innerProperties().displayName();
- }
-
- /**
- * Set the displayName property: The user-defined name of the private workbook.
- *
- * @param displayName the displayName value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withDisplayName(String displayName) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MyWorkbookProperties();
- }
- this.innerProperties().withDisplayName(displayName);
- return this;
- }
-
- /**
- * Get the serializedData property: Configuration of this particular private workbook. Configuration data is a
- * string containing valid JSON.
- *
- * @return the serializedData value.
- */
- public String serializedData() {
- return this.innerProperties() == null ? null : this.innerProperties().serializedData();
- }
-
- /**
- * Set the serializedData property: Configuration of this particular private workbook. Configuration data is a
- * string containing valid JSON.
- *
- * @param serializedData the serializedData value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withSerializedData(String serializedData) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MyWorkbookProperties();
- }
- this.innerProperties().withSerializedData(serializedData);
- return this;
- }
-
- /**
- * Get the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked private workbook.
- *
- * @return the version value.
- */
- public String version() {
- return this.innerProperties() == null ? null : this.innerProperties().version();
- }
-
- /**
- * Set the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked private workbook.
- *
- * @param version the version value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withVersion(String version) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MyWorkbookProperties();
- }
- this.innerProperties().withVersion(version);
- return this;
- }
-
- /**
- * Get the timeModified property: Date and time in UTC of the last modification that was made to this private
- * workbook definition.
- *
- * @return the timeModified value.
- */
- public String timeModified() {
- return this.innerProperties() == null ? null : this.innerProperties().timeModified();
- }
-
- /**
- * Get the category property: Workbook category, as defined by the user at creation time.
- *
- * @return the category value.
- */
- public String category() {
- return this.innerProperties() == null ? null : this.innerProperties().category();
- }
-
- /**
- * Set the category property: Workbook category, as defined by the user at creation time.
- *
- * @param category the category value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withCategory(String category) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MyWorkbookProperties();
- }
- this.innerProperties().withCategory(category);
- return this;
- }
-
- /**
- * Get the tags property: A list of 0 or more tags that are associated with this private workbook definition.
- *
- * @return the tags value.
- */
- public List tagsPropertiesTags() {
- return this.innerProperties() == null ? null : this.innerProperties().tags();
- }
-
- /**
- * Set the tags property: A list of 0 or more tags that are associated with this private workbook definition.
- *
- * @param tags the tags value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withTagsPropertiesTags(List tags) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MyWorkbookProperties();
- }
- this.innerProperties().withTags(tags);
- return this;
- }
-
- /**
- * Get the userId property: Unique user id of the specific user that owns this private workbook.
- *
- * @return the userId value.
- */
- public String userId() {
- return this.innerProperties() == null ? null : this.innerProperties().userId();
- }
-
- /**
- * Get the sourceId property: Optional resourceId for a source resource.
- *
- * @return the sourceId value.
- */
- public String sourceId() {
- return this.innerProperties() == null ? null : this.innerProperties().sourceId();
- }
-
- /**
- * Set the sourceId property: Optional resourceId for a source resource.
- *
- * @param sourceId the sourceId value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withSourceId(String sourceId) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MyWorkbookProperties();
- }
- this.innerProperties().withSourceId(sourceId);
- return this;
- }
-
- /**
- * Get the storageUri property: BYOS Storage Account URI.
- *
- * @return the storageUri value.
- */
- public String storageUri() {
- return this.innerProperties() == null ? null : this.innerProperties().storageUri();
- }
-
- /**
- * Set the storageUri property: BYOS Storage Account URI.
- *
- * @param storageUri the storageUri value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withStorageUri(String storageUri) {
- if (this.innerProperties() == null) {
- this.innerProperties = new MyWorkbookProperties();
- }
- this.innerProperties().withStorageUri(storageUri);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- if (identity() != null) {
- identity().validate();
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("identity", identity());
- jsonWriter.writeStringField("id", id());
- jsonWriter.writeStringField("name", name());
- jsonWriter.writeStringField("type", type());
- jsonWriter.writeMapField("etag", etag(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString());
- jsonWriter.writeJsonField("properties", this.innerProperties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MyWorkbookInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MyWorkbookInner if the JsonReader was pointing to an instance of it, or null if it was
- * pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the MyWorkbookInner.
- */
- public static MyWorkbookInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MyWorkbookInner deserializedMyWorkbookInner = new MyWorkbookInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("location".equals(fieldName)) {
- deserializedMyWorkbookInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedMyWorkbookInner.withTags(tags);
- } else if ("identity".equals(fieldName)) {
- deserializedMyWorkbookInner.withIdentity(MyWorkbookManagedIdentity.fromJson(reader));
- } else if ("id".equals(fieldName)) {
- deserializedMyWorkbookInner.withId(reader.getString());
- } else if ("name".equals(fieldName)) {
- deserializedMyWorkbookInner.withName(reader.getString());
- } else if ("type".equals(fieldName)) {
- deserializedMyWorkbookInner.withType(reader.getString());
- } else if ("etag".equals(fieldName)) {
- Map etag = reader.readMap(reader1 -> reader1.getString());
- deserializedMyWorkbookInner.withEtag(etag);
- } else if ("kind".equals(fieldName)) {
- deserializedMyWorkbookInner.kind = Kind.fromString(reader.getString());
- } else if ("properties".equals(fieldName)) {
- deserializedMyWorkbookInner.innerProperties = MyWorkbookProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedMyWorkbookInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMyWorkbookInner;
- });
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
deleted file mode 100644
index 344c82805f14..000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
+++ /dev/null
@@ -1,319 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * Properties that contain a private workbook.
- */
-@Fluent
-public final class MyWorkbookProperties implements JsonSerializable {
- /*
- * The user-defined name of the private workbook.
- */
- private String displayName;
-
- /*
- * Configuration of this particular private workbook. Configuration data is a string containing valid JSON
- */
- private String serializedData;
-
- /*
- * This instance's version of the data model. This can change as new features are added that can be marked private
- * workbook.
- */
- private String version;
-
- /*
- * Date and time in UTC of the last modification that was made to this private workbook definition.
- */
- private String timeModified;
-
- /*
- * Workbook category, as defined by the user at creation time.
- */
- private String category;
-
- /*
- * A list of 0 or more tags that are associated with this private workbook definition
- */
- private List tags;
-
- /*
- * Unique user id of the specific user that owns this private workbook.
- */
- private String userId;
-
- /*
- * Optional resourceId for a source resource.
- */
- private String sourceId;
-
- /*
- * BYOS Storage Account URI
- */
- private String storageUri;
-
- /**
- * Creates an instance of MyWorkbookProperties class.
- */
- public MyWorkbookProperties() {
- }
-
- /**
- * Get the displayName property: The user-defined name of the private workbook.
- *
- * @return the displayName value.
- */
- public String displayName() {
- return this.displayName;
- }
-
- /**
- * Set the displayName property: The user-defined name of the private workbook.
- *
- * @param displayName the displayName value to set.
- * @return the MyWorkbookProperties object itself.
- */
- public MyWorkbookProperties withDisplayName(String displayName) {
- this.displayName = displayName;
- return this;
- }
-
- /**
- * Get the serializedData property: Configuration of this particular private workbook. Configuration data is a
- * string containing valid JSON.
- *
- * @return the serializedData value.
- */
- public String serializedData() {
- return this.serializedData;
- }
-
- /**
- * Set the serializedData property: Configuration of this particular private workbook. Configuration data is a
- * string containing valid JSON.
- *
- * @param serializedData the serializedData value to set.
- * @return the MyWorkbookProperties object itself.
- */
- public MyWorkbookProperties withSerializedData(String serializedData) {
- this.serializedData = serializedData;
- return this;
- }
-
- /**
- * Get the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked private workbook.
- *
- * @return the version value.
- */
- public String version() {
- return this.version;
- }
-
- /**
- * Set the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked private workbook.
- *
- * @param version the version value to set.
- * @return the MyWorkbookProperties object itself.
- */
- public MyWorkbookProperties withVersion(String version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the timeModified property: Date and time in UTC of the last modification that was made to this private
- * workbook definition.
- *
- * @return the timeModified value.
- */
- public String timeModified() {
- return this.timeModified;
- }
-
- /**
- * Get the category property: Workbook category, as defined by the user at creation time.
- *
- * @return the category value.
- */
- public String category() {
- return this.category;
- }
-
- /**
- * Set the category property: Workbook category, as defined by the user at creation time.
- *
- * @param category the category value to set.
- * @return the MyWorkbookProperties object itself.
- */
- public MyWorkbookProperties withCategory(String category) {
- this.category = category;
- return this;
- }
-
- /**
- * Get the tags property: A list of 0 or more tags that are associated with this private workbook definition.
- *
- * @return the tags value.
- */
- public List tags() {
- return this.tags;
- }
-
- /**
- * Set the tags property: A list of 0 or more tags that are associated with this private workbook definition.
- *
- * @param tags the tags value to set.
- * @return the MyWorkbookProperties object itself.
- */
- public MyWorkbookProperties withTags(List tags) {
- this.tags = tags;
- return this;
- }
-
- /**
- * Get the userId property: Unique user id of the specific user that owns this private workbook.
- *
- * @return the userId value.
- */
- public String userId() {
- return this.userId;
- }
-
- /**
- * Get the sourceId property: Optional resourceId for a source resource.
- *
- * @return the sourceId value.
- */
- public String sourceId() {
- return this.sourceId;
- }
-
- /**
- * Set the sourceId property: Optional resourceId for a source resource.
- *
- * @param sourceId the sourceId value to set.
- * @return the MyWorkbookProperties object itself.
- */
- public MyWorkbookProperties withSourceId(String sourceId) {
- this.sourceId = sourceId;
- return this;
- }
-
- /**
- * Get the storageUri property: BYOS Storage Account URI.
- *
- * @return the storageUri value.
- */
- public String storageUri() {
- return this.storageUri;
- }
-
- /**
- * Set the storageUri property: BYOS Storage Account URI.
- *
- * @param storageUri the storageUri value to set.
- * @return the MyWorkbookProperties object itself.
- */
- public MyWorkbookProperties withStorageUri(String storageUri) {
- this.storageUri = storageUri;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (displayName() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property displayName in model MyWorkbookProperties"));
- }
- if (serializedData() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property serializedData in model MyWorkbookProperties"));
- }
- if (category() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property category in model MyWorkbookProperties"));
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(MyWorkbookProperties.class);
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("displayName", this.displayName);
- jsonWriter.writeStringField("serializedData", this.serializedData);
- jsonWriter.writeStringField("category", this.category);
- jsonWriter.writeStringField("version", this.version);
- jsonWriter.writeArrayField("tags", this.tags, (writer, element) -> writer.writeString(element));
- jsonWriter.writeStringField("sourceId", this.sourceId);
- jsonWriter.writeStringField("storageUri", this.storageUri);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of MyWorkbookProperties from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of MyWorkbookProperties if the JsonReader was pointing to an instance of it, or null if it
- * was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
- * @throws IOException If an error occurs while reading the MyWorkbookProperties.
- */
- public static MyWorkbookProperties fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- MyWorkbookProperties deserializedMyWorkbookProperties = new MyWorkbookProperties();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("displayName".equals(fieldName)) {
- deserializedMyWorkbookProperties.displayName = reader.getString();
- } else if ("serializedData".equals(fieldName)) {
- deserializedMyWorkbookProperties.serializedData = reader.getString();
- } else if ("category".equals(fieldName)) {
- deserializedMyWorkbookProperties.category = reader.getString();
- } else if ("version".equals(fieldName)) {
- deserializedMyWorkbookProperties.version = reader.getString();
- } else if ("timeModified".equals(fieldName)) {
- deserializedMyWorkbookProperties.timeModified = reader.getString();
- } else if ("tags".equals(fieldName)) {
- List tags = reader.readArray(reader1 -> reader1.getString());
- deserializedMyWorkbookProperties.tags = tags;
- } else if ("userId".equals(fieldName)) {
- deserializedMyWorkbookProperties.userId = reader.getString();
- } else if ("sourceId".equals(fieldName)) {
- deserializedMyWorkbookProperties.sourceId = reader.getString();
- } else if ("storageUri".equals(fieldName)) {
- deserializedMyWorkbookProperties.storageUri = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedMyWorkbookProperties;
- });
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java
index e6a761bfc326..1dbd4e2df68e 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java
@@ -30,12 +30,13 @@
import com.azure.resourcemanager.applicationinsights.fluent.ComponentAvailableFeaturesClient;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentCurrentBillingFeaturesClient;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentFeatureCapabilitiesClient;
+import com.azure.resourcemanager.applicationinsights.fluent.ComponentLinkedStorageAccountsOperationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentQuotaStatusClient;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentsClient;
+import com.azure.resourcemanager.applicationinsights.fluent.DeletedWorkbooksClient;
import com.azure.resourcemanager.applicationinsights.fluent.ExportConfigurationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.FavoritesClient;
import com.azure.resourcemanager.applicationinsights.fluent.LiveTokensClient;
-import com.azure.resourcemanager.applicationinsights.fluent.MyWorkbooksClient;
import com.azure.resourcemanager.applicationinsights.fluent.OperationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.ProactiveDetectionConfigurationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.WebTestLocationsClient;
@@ -351,20 +352,6 @@ public WorkbookTemplatesClient getWorkbookTemplates() {
return this.workbookTemplates;
}
- /**
- * The MyWorkbooksClient object to access its operations.
- */
- private final MyWorkbooksClient myWorkbooks;
-
- /**
- * Gets the MyWorkbooksClient object to access its operations.
- *
- * @return the MyWorkbooksClient object.
- */
- public MyWorkbooksClient getMyWorkbooks() {
- return this.myWorkbooks;
- }
-
/**
* The WorkbooksClient object to access its operations.
*/
@@ -393,6 +380,34 @@ public LiveTokensClient getLiveTokens() {
return this.liveTokens;
}
+ /**
+ * The ComponentLinkedStorageAccountsOperationsClient object to access its operations.
+ */
+ private final ComponentLinkedStorageAccountsOperationsClient componentLinkedStorageAccountsOperations;
+
+ /**
+ * Gets the ComponentLinkedStorageAccountsOperationsClient object to access its operations.
+ *
+ * @return the ComponentLinkedStorageAccountsOperationsClient object.
+ */
+ public ComponentLinkedStorageAccountsOperationsClient getComponentLinkedStorageAccountsOperations() {
+ return this.componentLinkedStorageAccountsOperations;
+ }
+
+ /**
+ * The DeletedWorkbooksClient object to access its operations.
+ */
+ private final DeletedWorkbooksClient deletedWorkbooks;
+
+ /**
+ * Gets the DeletedWorkbooksClient object to access its operations.
+ *
+ * @return the DeletedWorkbooksClient object.
+ */
+ public DeletedWorkbooksClient getDeletedWorkbooks() {
+ return this.deletedWorkbooks;
+ }
+
/**
* Initializes an instance of ApplicationInsightsManagementClient client.
*
@@ -426,9 +441,10 @@ public LiveTokensClient getLiveTokens() {
this.analyticsItems = new AnalyticsItemsClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.workbookTemplates = new WorkbookTemplatesClientImpl(this);
- this.myWorkbooks = new MyWorkbooksClientImpl(this);
this.workbooks = new WorkbooksClientImpl(this);
this.liveTokens = new LiveTokensClientImpl(this);
+ this.componentLinkedStorageAccountsOperations = new ComponentLinkedStorageAccountsOperationsClientImpl(this);
+ this.deletedWorkbooks = new DeletedWorkbooksClientImpl(this);
}
/**
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsImpl.java
new file mode 100644
index 000000000000..0cc408da97b9
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsImpl.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.implementation;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.applicationinsights.fluent.models.ComponentLinkedStorageAccountsInner;
+import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccounts;
+import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccountsPatch;
+import com.azure.resourcemanager.applicationinsights.models.StorageType;
+
+public final class ComponentLinkedStorageAccountsImpl implements ComponentLinkedStorageAccounts,
+ ComponentLinkedStorageAccounts.Definition, ComponentLinkedStorageAccounts.Update {
+ private ComponentLinkedStorageAccountsInner innerObject;
+
+ private final com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String linkedStorageAccount() {
+ return this.innerModel().linkedStorageAccount();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ComponentLinkedStorageAccountsInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String resourceName;
+
+ private StorageType storageType;
+
+ private ComponentLinkedStorageAccountsPatch updateLinkedStorageAccountsProperties;
+
+ public ComponentLinkedStorageAccountsImpl withExistingComponent(String resourceGroupName, String resourceName) {
+ this.resourceGroupName = resourceGroupName;
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ public ComponentLinkedStorageAccounts create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getComponentLinkedStorageAccountsOperations()
+ .createAndUpdateWithResponse(resourceGroupName, resourceName, storageType, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ComponentLinkedStorageAccounts create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getComponentLinkedStorageAccountsOperations()
+ .createAndUpdateWithResponse(resourceGroupName, resourceName, storageType, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ ComponentLinkedStorageAccountsImpl(StorageType name,
+ com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager) {
+ this.innerObject = new ComponentLinkedStorageAccountsInner();
+ this.serviceManager = serviceManager;
+ this.storageType = name;
+ }
+
+ public ComponentLinkedStorageAccountsImpl update() {
+ this.updateLinkedStorageAccountsProperties = new ComponentLinkedStorageAccountsPatch();
+ return this;
+ }
+
+ public ComponentLinkedStorageAccounts apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getComponentLinkedStorageAccountsOperations()
+ .updateWithResponse(resourceGroupName, resourceName, storageType, updateLinkedStorageAccountsProperties,
+ Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ComponentLinkedStorageAccounts apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getComponentLinkedStorageAccountsOperations()
+ .updateWithResponse(resourceGroupName, resourceName, storageType, updateLinkedStorageAccountsProperties,
+ context)
+ .getValue();
+ return this;
+ }
+
+ ComponentLinkedStorageAccountsImpl(ComponentLinkedStorageAccountsInner innerObject,
+ com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.resourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "components");
+ this.storageType = StorageType
+ .fromString(ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "linkedStorageAccounts"));
+ }
+
+ public ComponentLinkedStorageAccounts refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getComponentLinkedStorageAccountsOperations()
+ .getWithResponse(resourceGroupName, resourceName, storageType, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ComponentLinkedStorageAccounts refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getComponentLinkedStorageAccountsOperations()
+ .getWithResponse(resourceGroupName, resourceName, storageType, context)
+ .getValue();
+ return this;
+ }
+
+ public ComponentLinkedStorageAccountsImpl withLinkedStorageAccount(String linkedStorageAccount) {
+ if (isInCreateMode()) {
+ this.innerModel().withLinkedStorageAccount(linkedStorageAccount);
+ return this;
+ } else {
+ this.updateLinkedStorageAccountsProperties.withLinkedStorageAccount(linkedStorageAccount);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsClientImpl.java
new file mode 100644
index 000000000000..9149b7318810
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsClientImpl.java
@@ -0,0 +1,701 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.applicationinsights.fluent.ComponentLinkedStorageAccountsOperationsClient;
+import com.azure.resourcemanager.applicationinsights.fluent.models.ComponentLinkedStorageAccountsInner;
+import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccountsPatch;
+import com.azure.resourcemanager.applicationinsights.models.StorageType;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ComponentLinkedStorageAccountsOperationsClient.
+ */
+public final class ComponentLinkedStorageAccountsOperationsClientImpl
+ implements ComponentLinkedStorageAccountsOperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ComponentLinkedStorageAccountsOperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ApplicationInsightsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ComponentLinkedStorageAccountsOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ComponentLinkedStorageAccountsOperationsClientImpl(ApplicationInsightsManagementClientImpl client) {
+ this.service = RestProxy.create(ComponentLinkedStorageAccountsOperationsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for
+ * ApplicationInsightsManagementClientComponentLinkedStorageAccountsOperations to be used by the proxy service to
+ * perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "ApplicationInsightsM")
+ public interface ComponentLinkedStorageAccountsOperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceName") String resourceName,
+ @PathParam("storageType") StorageType storageType, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> createAndUpdate(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceName") String resourceName,
+ @PathParam("storageType") StorageType storageType,
+ @BodyParam("application/json") ComponentLinkedStorageAccountsInner linkedStorageAccountsProperties,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceName") String resourceName,
+ @PathParam("storageType") StorageType storageType,
+ @BodyParam("application/json") ComponentLinkedStorageAccountsPatch linkedStorageAccountsProperties,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}")
+ @ExpectedResponses({ 200, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(@HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceName") String resourceName,
+ @PathParam("storageType") StorageType storageType, @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Returns the current linked storage settings for an Application Insights component.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param storageType The type of the Application Insights component data source for the linked storage account.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights component linked storage accounts along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono