diff --git a/sdk/contentsafety/azure-ai-contentsafety/src/main/java/com/azure/ai/contentsafety/BlocklistAsyncClient.java b/sdk/contentsafety/azure-ai-contentsafety/src/main/java/com/azure/ai/contentsafety/BlocklistAsyncClient.java new file mode 100644 index 000000000000..0605c32ed4fe --- /dev/null +++ b/sdk/contentsafety/azure-ai-contentsafety/src/main/java/com/azure/ai/contentsafety/BlocklistAsyncClient.java @@ -0,0 +1,561 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.ai.contentsafety; + +import com.azure.ai.contentsafety.implementation.BlocklistClientImpl; +import com.azure.ai.contentsafety.models.AddOrUpdateTextBlocklistItemsOptions; +import com.azure.ai.contentsafety.models.AddOrUpdateTextBlocklistItemsResult; +import com.azure.ai.contentsafety.models.RemoveTextBlocklistItemsOptions; +import com.azure.ai.contentsafety.models.TextBlocklist; +import com.azure.ai.contentsafety.models.TextBlocklistItem; +import com.azure.core.annotation.Generated; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceClient; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.exception.ClientAuthenticationException; +import com.azure.core.exception.HttpResponseException; +import com.azure.core.exception.ResourceModifiedException; +import com.azure.core.exception.ResourceNotFoundException; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.RequestOptions; +import com.azure.core.http.rest.Response; +import com.azure.core.util.BinaryData; +import com.azure.core.util.FluxUtil; +import java.util.stream.Collectors; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * Initializes a new instance of the asynchronous BlocklistClient type. + */ +@ServiceClient(builder = BlocklistClientBuilder.class, isAsync = true) +public final class BlocklistAsyncClient { + @Generated + private final BlocklistClientImpl serviceClient; + + /** + * Initializes an instance of BlocklistAsyncClient class. + * + * @param serviceClient the service client implementation. + */ + @Generated + BlocklistAsyncClient(BlocklistClientImpl serviceClient) { + this.serviceClient = serviceClient; + } + + /** + * Add or update BlocklistItems To Text Blocklist + * + * Add or update blocklistItems to a text blocklist. You can add or update at most 100 blocklistItems in one + * request. + *
+ * Request Body Schema + *
+ *{@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ * + * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for adding or updating blocklist items.
+ * @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.
+ * @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.
+ * @return the response of adding blocklistItems to the text blocklist along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono+ * Request Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ * + * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options The resource instance.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param blocklistItemId The service will generate a BlocklistItemId, which will be a UUID.
+ * @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.
+ * @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.
+ * @return blocklistItem by blocklistName and blocklistItemId from a text blocklist along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono+ * Query Parameters + *
+ *| Name | + *Type | + *Required | + *Description | + *
|---|---|---|---|
| top | + *Integer | + *No | + *The number of result items to return. | + *
| skip | + *Integer | + *No | + *The number of result items to skip. | + *
| maxpagesize | + *Integer | + *No | + *The maximum number of result items per page. | + *
+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return all blocklistItems in a text blocklist as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @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.
+ * @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.
+ * @return all text blocklists details as paginated response with {@link PagedFlux}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux+ * Request Body Schema + *
+ *{@code
+ * {
+ * blocklistItemIds (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for removing blocklist items.
+ * @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.
+ * @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.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono+ * Request Body Schema + *
+ *{@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ * + * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for adding or updating blocklist items.
+ * @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.
+ * @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.
+ * @return the response of adding blocklistItems to the text blocklist along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response+ * Request Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ * + * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options The resource instance.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param blocklistItemId The service will generate a BlocklistItemId, which will be a UUID.
+ * @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.
+ * @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.
+ * @return blocklistItem by blocklistName and blocklistItemId from a text blocklist along with {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response+ * Query Parameters + *
+ *| Name | + *Type | + *Required | + *Description | + *
|---|---|---|---|
| top | + *Integer | + *No | + *The number of result items to return. | + *
| skip | + *Integer | + *No | + *The number of result items to skip. | + *
| maxpagesize | + *Integer | + *No | + *The maximum number of result items per page. | + *
+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return all blocklistItems in a text blocklist as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable+ * Response Body Schema + *
+ *{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @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.
+ * @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.
+ * @return all text blocklists details as paginated response with {@link PagedIterable}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable+ * Request Body Schema + *
+ *{@code
+ * {
+ * blocklistItemIds (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for removing blocklist items.
+ * @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.
+ * @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.
+ * @return the {@link Response}.
+ */
+ @Generated
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ResponseA sync API for harmful content analysis for text. Currently, we support four categories: Hate, SelfHarm, - * Sexual, Violence. - * - *
Request Body Schema - * + * + * A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories: + * Hate, SelfHarm, Sexual, and Violence. + *
+ * Request Body Schema + *
*{@code
* {
* text: String (Required)
@@ -65,55 +58,53 @@ public final class ContentSafetyAsyncClient {
* blocklistNames (Optional): [
* String (Optional)
* ]
- * breakByBlocklists: Boolean (Optional)
+ * haltOnBlocklistHit: Boolean (Optional)
+ * outputType: String(FourSeverityLevels/EightSeverityLevels) (Optional)
* }
* }
- *
- * Response Body Schema - * + *
+ * Response Body Schema + *
*{@code
* {
- * blocklistsMatchResults (Optional): [
+ * blocklistsMatch (Optional): [
* (Optional){
* blocklistName: String (Required)
- * blockItemId: String (Required)
- * blockItemText: String (Required)
- * offset: int (Required)
- * length: int (Required)
+ * blocklistItemId: String (Required)
+ * blocklistItemText: String (Required)
+ * }
+ * ]
+ * categoriesAnalysis (Required): [
+ * (Required){
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
* }
* ]
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
* }
* }
- *
- * @param body The request of text analysis.
+ *
+ * @param options The text analysis request.
* @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.
* @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.
- * @return the analysis response of the text along with {@link Response} on successful completion of {@link Mono}.
+ * @return the text analysis response along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public MonoA sync API for harmful content analysis for image. Currently, we support four categories: Hate, SelfHarm, - * Sexual, Violence. - * - *
Request Body Schema - * + * + * A synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories: + * Hate, SelfHarm, Sexual, and Violence. + *
+ * Request Body Schema + *
*{@code
* {
* image (Required): {
@@ -123,613 +114,82 @@ public Mono> analyzeTextWithResponse(BinaryData body, Reque
* categories (Optional): [
* String(Hate/SelfHarm/Sexual/Violence) (Optional)
* ]
+ * outputType: String(FourSeverityLevels) (Optional)
* }
* }
- *
- * Response Body Schema - * - *
{@code
- * {
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
- * }
- * }
- *
- * @param body The analysis request of the image.
- * @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.
- * @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.
- * @return the analysis response of the image along with {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public MonoReturns text blocklist details. - * - *
Response Body Schema - * + *
+ * Response Body Schema + *
*{@code
* {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public MonoUpdates a text blocklist, if blocklistName does not exist, create a new blocklist. - * - *
Request Body Schema - * - *
{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * Response Body Schema - * - *
{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param resource The resource instance.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public MonoDeletes a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Get all text blocklists details.
- *
- * Response Body Schema
- *
- * Add blockItems to a text blocklist. You can add at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Response Body Schema
- *
- * Remove blockItems from a text blocklist. You can remove at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Get blockItem By blockItemId from a text blocklist.
- *
- * Response Body Schema
- *
- * Get all blockItems in a text blocklist.
- *
- * Query Parameters
- *
- * Response Body Schema
- *
- * A sync API for harmful content analysis for text. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * @param body The request of text analysis.
+ *
+ * A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * @param options The text analysis request.
* @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 the analysis response of the text on successful completion of {@link Mono}.
+ * @return the text analysis response on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono A sync API for harmful content analysis for image. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * @param body The analysis request of the image.
+ *
+ * A synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * @param options The image analysis request.
* @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 the analysis response of the image on successful completion of {@link Mono}.
+ * @return the image analysis response on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Returns text blocklist details.
- *
- * @param blocklistName Text blocklist name.
- * @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 text Blocklist on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Deletes a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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 A {@link Mono} that completes when a successful response is received.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Get all text blocklists details.
- *
- * @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 all text blocklists details as paginated response with {@link PagedFlux}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux Add blockItems to a text blocklist. You can add at most 100 BlockItems in one request.
- *
- * @param blocklistName Text blocklist name.
- * @param addBlockItemsOptions The request of adding blockItems to text blocklist.
- * @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 the response of adding blockItems to text blocklist on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Remove blockItems from a text blocklist. You can remove at most 100 BlockItems in one request.
- *
- * @param blocklistName Text blocklist name.
- * @param removeBlockItemsOptions The request of removing blockItems from text blocklist.
- * @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 A {@link Mono} that completes when a successful response is received.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Get blockItem By blockItemId from a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @param blockItemId Block Item Id. It will be uuid.
- * @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 blockItem By blockItemId from a text blocklist on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Get all blockItems in a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @param top The number of result items to return.
- * @param skip The number of result items to skip.
- * @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 all blockItems in a text blocklist as paginated response with {@link PagedFlux}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux Get all blockItems in a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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 all blockItems in a text blocklist as paginated response with {@link PagedFlux}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux A sync API for harmful content analysis for text. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * Request Body Schema
- *
+ *
+ * A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * Request Body Schema
+ * Response Body Schema
- *
+ *
+ * Response Body Schema
+ * A sync API for harmful content analysis for image. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * Request Body Schema
- *
+ *
+ * A synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * Request Body Schema
+ * Response Body Schema
- *
- * Returns text blocklist details.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ * Updates a text blocklist, if blocklistName does not exist, create a new blocklist.
- *
- * Request Body Schema
- *
- * Response Body Schema
- *
- * Deletes a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return the {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response Get all text blocklists details.
- *
- * Response Body Schema
- *
- * Add blockItems to a text blocklist. You can add at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Response Body Schema
- *
- * Remove blockItems from a text blocklist. You can remove at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Get blockItem By blockItemId from a text blocklist.
- *
- * Response Body Schema
- *
- * Get all blockItems in a text blocklist.
- *
- * Query Parameters
- *
- * Response Body Schema
- *
- * A sync API for harmful content analysis for text. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * @param body The request of text analysis.
+ *
+ * A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * @param options The text analysis request.
* @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 the analysis response of the text.
+ * @return the text analysis response.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public AnalyzeTextResult analyzeText(AnalyzeTextOptions body) {
+ public AnalyzeTextResult analyzeText(AnalyzeTextOptions options) {
// Generated convenience method for analyzeTextWithResponse
RequestOptions requestOptions = new RequestOptions();
- return analyzeTextWithResponse(BinaryData.fromObject(body), requestOptions)
- .getValue()
- .toObject(AnalyzeTextResult.class);
+ return analyzeTextWithResponse(BinaryData.fromObject(options), requestOptions).getValue()
+ .toObject(AnalyzeTextResult.class);
}
/**
* Analyze Image
- *
- * A sync API for harmful content analysis for image. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * @param body The analysis request of the image.
+ *
+ * A synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * @param options The image analysis request.
* @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 the analysis response of the image.
+ * @return the image analysis response.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public AnalyzeImageResult analyzeImage(AnalyzeImageOptions body) {
+ public AnalyzeImageResult analyzeImage(AnalyzeImageOptions options) {
// Generated convenience method for analyzeImageWithResponse
RequestOptions requestOptions = new RequestOptions();
- return analyzeImageWithResponse(BinaryData.fromObject(body), requestOptions)
- .getValue()
- .toObject(AnalyzeImageResult.class);
- }
-
- /**
- * Get Text Blocklist By blocklistName
- *
- * Returns text blocklist details.
- *
- * @param blocklistName Text blocklist name.
- * @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 text Blocklist.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public TextBlocklist getTextBlocklist(String blocklistName) {
- // Generated convenience method for getTextBlocklistWithResponse
- RequestOptions requestOptions = new RequestOptions();
- return getTextBlocklistWithResponse(blocklistName, requestOptions).getValue().toObject(TextBlocklist.class);
- }
-
- /**
- * Delete Text Blocklist By blocklistName
- *
- * Deletes a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void deleteTextBlocklist(String blocklistName) {
- // Generated convenience method for deleteTextBlocklistWithResponse
- RequestOptions requestOptions = new RequestOptions();
- deleteTextBlocklistWithResponse(blocklistName, requestOptions).getValue();
- }
-
- /**
- * Get All Text Blocklists
- *
- * Get all text blocklists details.
- *
- * @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 all text blocklists details as paginated response with {@link PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable Add blockItems to a text blocklist. You can add at most 100 BlockItems in one request.
- *
- * @param blocklistName Text blocklist name.
- * @param addBlockItemsOptions The request of adding blockItems to text blocklist.
- * @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 the response of adding blockItems to text blocklist.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public AddBlockItemsResult addBlockItems(String blocklistName, AddBlockItemsOptions addBlockItemsOptions) {
- // Generated convenience method for addBlockItemsWithResponse
- RequestOptions requestOptions = new RequestOptions();
- return addBlockItemsWithResponse(blocklistName, BinaryData.fromObject(addBlockItemsOptions), requestOptions)
- .getValue()
- .toObject(AddBlockItemsResult.class);
- }
-
- /**
- * Remove BlockItems From Text Blocklist
- *
- * Remove blockItems from a text blocklist. You can remove at most 100 BlockItems in one request.
- *
- * @param blocklistName Text blocklist name.
- * @param removeBlockItemsOptions The request of removing blockItems from text blocklist.
- * @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.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void removeBlockItems(String blocklistName, RemoveBlockItemsOptions removeBlockItemsOptions) {
- // Generated convenience method for removeBlockItemsWithResponse
- RequestOptions requestOptions = new RequestOptions();
- removeBlockItemsWithResponse(blocklistName, BinaryData.fromObject(removeBlockItemsOptions), requestOptions)
- .getValue();
- }
-
- /**
- * Get BlockItem By blocklistName And blockItemId
- *
- * Get blockItem By blockItemId from a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @param blockItemId Block Item Id. It will be uuid.
- * @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 blockItem By blockItemId from a text blocklist.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public TextBlockItem getTextBlocklistItem(String blocklistName, String blockItemId) {
- // Generated convenience method for getTextBlocklistItemWithResponse
- RequestOptions requestOptions = new RequestOptions();
- return getTextBlocklistItemWithResponse(blocklistName, blockItemId, requestOptions)
- .getValue()
- .toObject(TextBlockItem.class);
- }
-
- /**
- * Get All BlockItems By blocklistName
- *
- * Get all blockItems in a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @param top The number of result items to return.
- * @param skip The number of result items to skip.
- * @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 all blockItems in a text blocklist as paginated response with {@link PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable Get all blockItems in a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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 all blockItems in a text blocklist as paginated response with {@link PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable
+ * Request Body Schema
+ *
+ * Response Body Schema
+ *
+ * Request Body Schema
+ *
+ * Response Body Schema
+ *
+ * Request Body Schema
+ *
+ * Response Body Schema
+ *
+ * Request Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Query Parameters
+ *
+ * Response Body Schema
+ *
+ * Query Parameters
+ *
+ * Response Body Schema
+ *
+ * Query Parameters
+ *
+ * Response Body Schema
+ *
+ * Query Parameters
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Request Body Schema
+ *
+ * Request Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ *
+ * Response Body Schema
+ * A sync API for harmful content analysis for text. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * Request Body Schema
- *
+ *
+ * A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * Request Body Schema
+ * Response Body Schema
- *
+ *
+ * Response Body Schema
+ * A sync API for harmful content analysis for text. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * Request Body Schema
- *
+ *
+ * A synchronous API for the analysis of potentially harmful text content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * Request Body Schema
+ * Response Body Schema
- *
+ *
+ * Response Body Schema
+ * A sync API for harmful content analysis for image. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * Request Body Schema
- *
+ *
+ * A synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * Request Body Schema
+ * Response Body Schema
- *
+ *
+ * Response Body Schema
+ * A sync API for harmful content analysis for image. Currently, we support four categories: Hate, SelfHarm,
- * Sexual, Violence.
- *
- * Request Body Schema
- *
+ *
+ * A synchronous API for the analysis of potentially harmful image content. Currently, it supports four categories:
+ * Hate, SelfHarm, Sexual, and Violence.
+ *
+ * Request Body Schema
+ * Response Body Schema
- *
- * Returns text blocklist details.
- *
- * Response Body Schema
- *
- * Returns text blocklist details.
- *
- * Response Body Schema
- *
- * Updates a text blocklist, if blocklistName does not exist, create a new blocklist.
- *
- * Request Body Schema
- *
- * Response Body Schema
- *
- * Updates a text blocklist, if blocklistName does not exist, create a new blocklist.
- *
- * Request Body Schema
- *
- * Response Body Schema
- *
- * Deletes a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono Deletes a text blocklist.
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response Get all text blocklists details.
- *
- * Response Body Schema
- *
- * Get all text blocklists details.
- *
- * Response Body Schema
- *
- * Get all text blocklists details.
- *
- * Response Body Schema
- *
- * Get all text blocklists details.
- *
- * Response Body Schema
- *
+ *
+ * Response Body Schema
+ * Add blockItems to a text blocklist. You can add at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Response Body Schema
- *
- * Add blockItems to a text blocklist. You can add at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Response Body Schema
- *
- * Remove blockItems from a text blocklist. You can remove at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Remove blockItems from a text blocklist. You can remove at most 100 BlockItems in one request.
- *
- * Request Body Schema
- *
- * Get blockItem By blockItemId from a text blocklist.
- *
- * Response Body Schema
- *
- * Get blockItem By blockItemId from a text blocklist.
- *
- * Response Body Schema
- *
- * Get all blockItems in a text blocklist.
- *
- * Query Parameters
- *
- * Response Body Schema
- *
- * Get all blockItems in a text blocklist.
- *
- * Query Parameters
- *
- * Response Body Schema
- *
- * Get all blockItems in a text blocklist.
- *
- * Query Parameters
- *
- * Response Body Schema
- *
- * Get all blockItems in a text blocklist.
- *
- * Query Parameters
- *
- * Response Body Schema
- *
- * Get the next page of items.
- *
- * Response Body Schema
- *
- * The nextLink parameter.
- * @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.
- * @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.
- * @return paged collection of TextBlocklist items along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono Get the next page of items.
- *
- * Response Body Schema
- *
- * The nextLink parameter.
- * @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.
- * @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.
- * @return paged collection of TextBlocklist items along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse Get the next page of items.
- *
- * Response Body Schema
- *
- * The nextLink parameter.
- * @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.
- * @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.
- * @return paged collection of TextBlockItem items along with {@link PagedResponse} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono Get the next page of items.
- *
- * Response Body Schema
- *
- * The nextLink parameter.
- * @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.
- * @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.
- * @return paged collection of TextBlockItem items along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @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.
- * @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.
- * @return all text blocklists details as paginated response with {@link PagedFlux}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux{@code
- * {
- * blockItems (Required): [
+ * categoriesAnalysis (Required): [
* (Required){
- * description: String (Optional)
- * text: String (Required)
- * }
- * ]
- * }
- * }
- *
- * {@code
- * {
- * value (Optional): [
- * (Optional){
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
* }
* ]
* }
* }
- *
- * @param blocklistName Text blocklist name.
- * @param addBlockItemsOptions The request of adding blockItems to text blocklist.
- * @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.
- * @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.
- * @return the response of adding blockItems to text blocklist along with {@link Response} on successful completion
- * of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
- * {
- * blockItemIds (Required): [
- * String (Required)
- * ]
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param removeBlockItemsOptions The request of removing blockItems from text blocklist.
- * @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.
- * @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.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param blockItemId Block Item Id. It will be uuid.
+ *
+ * @param options The image analysis request.
* @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.
* @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.
- * @return blockItem By blockItemId from a text blocklist along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the image analysis response along with {@link Response} on successful completion of {@link Mono}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Name Type Required Description
- * top Integer No The number of result items to return.
- * skip Integer No The number of result items to skip.
- * maxpagesize Integer No The maximum number of result items per page. {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return all blockItems in a text blocklist as paginated response with {@link PagedFlux}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux{@code
* {
* text: String (Required)
@@ -59,55 +56,53 @@ public final class ContentSafetyClient {
* blocklistNames (Optional): [
* String (Optional)
* ]
- * breakByBlocklists: Boolean (Optional)
+ * haltOnBlocklistHit: Boolean (Optional)
+ * outputType: String(FourSeverityLevels/EightSeverityLevels) (Optional)
* }
* }
- *
- * {@code
* {
- * blocklistsMatchResults (Optional): [
+ * blocklistsMatch (Optional): [
* (Optional){
* blocklistName: String (Required)
- * blockItemId: String (Required)
- * blockItemText: String (Required)
- * offset: int (Required)
- * length: int (Required)
+ * blocklistItemId: String (Required)
+ * blocklistItemText: String (Required)
+ * }
+ * ]
+ * categoriesAnalysis (Required): [
+ * (Required){
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
* }
* ]
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
* }
* }
- *
- * @param body The request of text analysis.
+ *
+ * @param options The text analysis request.
* @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.
* @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.
- * @return the analysis response of the text along with {@link Response}.
+ * @return the text analysis response along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
* {
* image (Required): {
@@ -117,544 +112,82 @@ public Response
- *
- * {@code
- * {
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
- * }
- * }
- *
- * @param body The analysis request of the image.
- * @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.
- * @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.
- * @return the analysis response of the image along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
* {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * {@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param resource The resource instance.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @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.
- * @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.
- * @return all text blocklists details as paginated response with {@link PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable{@code
- * {
- * blockItems (Required): [
+ * categoriesAnalysis (Required): [
* (Required){
- * description: String (Optional)
- * text: String (Required)
- * }
- * ]
- * }
- * }
- *
- * {@code
- * {
- * value (Optional): [
- * (Optional){
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
* }
* ]
* }
* }
- *
- * @param blocklistName Text blocklist name.
- * @param addBlockItemsOptions The request of adding blockItems to text blocklist.
- * @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.
- * @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.
- * @return the response of adding blockItems to text blocklist along with {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blockItemIds (Required): [
- * String (Required)
- * ]
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param removeBlockItemsOptions The request of removing blockItems from text blocklist.
- * @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.
- * @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.
- * @return the {@link Response}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param blockItemId Block Item Id. It will be uuid.
+ *
+ * @param options The image analysis request.
* @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.
* @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.
- * @return blockItem By blockItemId from a text blocklist along with {@link Response}.
+ * @return the image analysis response along with {@link Response}.
*/
@Generated
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Name Type Required Description
- * top Integer No The number of result items to return.
- * skip Integer No The number of result items to skip.
- * maxpagesize Integer No The maximum number of result items per page. {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return all blockItems in a text blocklist as paginated response with {@link PagedIterable}.
- */
- @Generated
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable{@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ * {@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for adding or updating blocklist items.
+ * @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.
+ * @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.
+ * @return the response of adding blocklistItems to the text blocklist along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono{@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ * {@code
+ * {
+ * blocklistItems (Required): [
+ * (Required){
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for adding or updating blocklist items.
+ * @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.
+ * @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.
+ * @return the response of adding blocklistItems to the text blocklist along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ * {@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options The resource instance.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ * {@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options The resource instance.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return text Blocklist along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param blocklistItemId The service will generate a BlocklistItemId, which will be a UUID.
+ * @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.
+ * @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.
+ * @return blocklistItem by blocklistName and blocklistItemId from a text blocklist along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param blocklistItemId The service will generate a BlocklistItemId, which will be a UUID.
+ * @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.
+ * @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.
+ * @return blocklistItem by blocklistName and blocklistItemId from a text blocklist along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ *
+ * Name
+ * Type
+ * Required
+ * Description
+ *
+ *
+ * top
+ * Integer
+ * No
+ * The number of result items to return.
+ *
+ *
+ * skip
+ * Integer
+ * No
+ * The number of result items to skip.
+ *
+ *
+ * maxpagesize
+ * Integer
+ * No
+ * The maximum number of result items per page.
+ * {@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return all blocklistItems in a text blocklist along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ *
+ * Name
+ * Type
+ * Required
+ * Description
+ *
+ *
+ * top
+ * Integer
+ * No
+ * The number of result items to return.
+ *
+ *
+ * skip
+ * Integer
+ * No
+ * The number of result items to skip.
+ *
+ *
+ * maxpagesize
+ * Integer
+ * No
+ * The maximum number of result items per page.
+ * {@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return all blocklistItems in a text blocklist as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ *
+ * Name
+ * Type
+ * Required
+ * Description
+ *
+ *
+ * top
+ * Integer
+ * No
+ * The number of result items to return.
+ *
+ *
+ * skip
+ * Integer
+ * No
+ * The number of result items to skip.
+ *
+ *
+ * maxpagesize
+ * Integer
+ * No
+ * The maximum number of result items per page.
+ * {@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return all blocklistItems in a text blocklist along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ *
+ * You can add these to a request with {@link RequestOptions#addQueryParam}
+ *
+ *
+ * Name
+ * Type
+ * Required
+ * Description
+ *
+ *
+ * top
+ * Integer
+ * No
+ * The number of result items to return.
+ *
+ *
+ * skip
+ * Integer
+ * No
+ * The number of result items to skip.
+ *
+ *
+ * maxpagesize
+ * Integer
+ * No
+ * The maximum number of result items per page.
+ * {@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @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.
+ * @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.
+ * @return all blocklistItems in a text blocklist as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @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.
+ * @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.
+ * @return all text blocklists details along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @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.
+ * @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.
+ * @return all text blocklists details as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedFlux{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @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.
+ * @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.
+ * @return all text blocklists details along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @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.
+ * @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.
+ * @return all text blocklists details as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable{@code
+ * {
+ * blocklistItemIds (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for removing blocklist items.
+ * @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.
+ * @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.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Mono{@code
+ * {
+ * blocklistItemIds (Required): [
+ * String (Required)
+ * ]
+ * }
+ * }
+ *
+ * @param name Text blocklist name.
+ * @param options Options for removing blocklist items.
+ * @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.
+ * @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.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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.
+ * @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.
+ * @return paged collection of TextBlocklistItem items along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono{@code
+ * {
+ * blocklistItemId: String (Required)
+ * description: String (Optional)
+ * text: String (Required)
+ * }
+ * }
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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.
+ * @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.
+ * @return paged collection of TextBlocklistItem items along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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.
+ * @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.
+ * @return paged collection of TextBlocklist items along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono{@code
+ * {
+ * blocklistName: String (Required)
+ * description: String (Optional)
+ * }
+ * }
+ *
+ * @param nextLink The URL to get the next list of items
+ *
+ * The nextLink parameter.
+ * @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.
+ * @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.
+ * @return paged collection of TextBlocklist items along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse{@code
* {
* text: String (Required)
@@ -662,63 +210,54 @@ Response
- *
- * {@code
* {
- * blocklistsMatchResults (Optional): [
+ * blocklistsMatch (Optional): [
* (Optional){
* blocklistName: String (Required)
- * blockItemId: String (Required)
- * blockItemText: String (Required)
- * offset: int (Required)
- * length: int (Required)
+ * blocklistItemId: String (Required)
+ * blocklistItemText: String (Required)
+ * }
+ * ]
+ * categoriesAnalysis (Required): [
+ * (Required){
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
* }
* ]
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
* }
* }
- *
- * @param body The request of text analysis.
+ *
+ * @param options The text analysis request.
* @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.
* @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.
- * @return the analysis response of the text along with {@link Response} on successful completion of {@link Mono}.
+ * @return the text analysis response along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
* {
* text: String (Required)
@@ -728,56 +267,54 @@ public Mono
- *
- * {@code
* {
- * blocklistsMatchResults (Optional): [
+ * blocklistsMatch (Optional): [
* (Optional){
* blocklistName: String (Required)
- * blockItemId: String (Required)
- * blockItemText: String (Required)
- * offset: int (Required)
- * length: int (Required)
+ * blocklistItemId: String (Required)
+ * blocklistItemText: String (Required)
+ * }
+ * ]
+ * categoriesAnalysis (Required): [
+ * (Required){
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
* }
* ]
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
* }
* }
- *
- * @param body The request of text analysis.
+ *
+ * @param options The text analysis request.
* @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.
* @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.
- * @return the analysis response of the text along with {@link Response}.
+ * @return the text analysis response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
* {
* image (Required): {
@@ -787,53 +324,46 @@ public Response
- *
- * {@code
* {
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
+ * categoriesAnalysis (Required): [
+ * (Required){
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
+ * }
+ * ]
* }
* }
- *
- * @param body The analysis request of the image.
+ *
+ * @param options The image analysis request.
* @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.
* @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.
- * @return the analysis response of the image along with {@link Response} on successful completion of {@link Mono}.
+ * @return the image analysis response along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
* {
* image (Required): {
@@ -843,1115 +373,35 @@ public Mono
- *
- * {@code
- * {
- * hateResult (Optional): {
- * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
- * severity: int (Required)
- * }
- * selfHarmResult (Optional): (recursive schema, see selfHarmResult above)
- * sexualResult (Optional): (recursive schema, see sexualResult above)
- * violenceResult (Optional): (recursive schema, see violenceResult above)
- * }
- * }
- *
- * @param body The analysis request of the image.
- * @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.
- * @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.
- * @return the analysis response of the image along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * {@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param resource The resource instance.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * {@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param resource The resource instance.
- * @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.
- * @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.
- * @return text Blocklist along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @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.
- * @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.
- * @return all text blocklists details along with {@link PagedResponse} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @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.
- * @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.
- * @return all text blocklists details as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @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.
- * @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.
- * @return all text blocklists details along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse{@code
* {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @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.
- * @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.
- * @return all text blocklists details as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable{@code
- * {
- * blockItems (Required): [
- * (Required){
- * description: String (Optional)
- * text: String (Required)
- * }
- * ]
- * }
- * }
- *
- * {@code
- * {
- * value (Optional): [
- * (Optional){
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * ]
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param addBlockItemsOptions The request of adding blockItems to text blocklist.
- * @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.
- * @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.
- * @return the response of adding blockItems to text blocklist along with {@link Response} on successful completion
- * of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
- * {
- * blockItems (Required): [
+ * categoriesAnalysis (Required): [
* (Required){
- * description: String (Optional)
- * text: String (Required)
- * }
- * ]
- * }
- * }
- *
- * {@code
- * {
- * value (Optional): [
- * (Optional){
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
+ * category: String(Hate/SelfHarm/Sexual/Violence) (Required)
+ * severity: Integer (Optional)
* }
* ]
* }
* }
- *
- * @param blocklistName Text blocklist name.
- * @param addBlockItemsOptions The request of adding blockItems to text blocklist.
- * @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.
- * @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.
- * @return the response of adding blockItems to text blocklist along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blockItemIds (Required): [
- * String (Required)
- * ]
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param removeBlockItemsOptions The request of removing blockItems from text blocklist.
- * @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.
- * @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.
- * @return the {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
- * {
- * blockItemIds (Required): [
- * String (Required)
- * ]
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param removeBlockItemsOptions The request of removing blockItems from text blocklist.
- * @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.
- * @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.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response{@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param blockItemId Block Item Id. It will be uuid.
- * @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.
- * @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.
- * @return blockItem By blockItemId from a text blocklist along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Mono{@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @param blockItemId Block Item Id. It will be uuid.
+ *
+ * @param options The image analysis request.
* @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.
* @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.
- * @return blockItem By blockItemId from a text blocklist along with {@link Response}.
+ * @return the image analysis response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Name Type Required Description
- * top Integer No The number of result items to return.
- * skip Integer No The number of result items to skip.
- * maxpagesize Integer No The maximum number of result items per page. {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return all blockItems in a text blocklist along with {@link PagedResponse} on successful completion of {@link
- * Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Name Type Required Description
- * top Integer No The number of result items to return.
- * skip Integer No The number of result items to skip.
- * maxpagesize Integer No The maximum number of result items per page. {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return all blockItems in a text blocklist as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedFlux
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Name Type Required Description
- * top Integer No The number of result items to return.
- * skip Integer No The number of result items to skip.
- * maxpagesize Integer No The maximum number of result items per page. {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return all blockItems in a text blocklist along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse
- *
- *
- * You can add these to a request with {@link RequestOptions#addQueryParam}
- *
- *
- * Name Type Required Description
- * top Integer No The number of result items to return.
- * skip Integer No The number of result items to skip.
- * maxpagesize Integer No The maximum number of result items per page. {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param blocklistName Text blocklist name.
- * @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.
- * @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.
- * @return all blockItems in a text blocklist as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable{@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param nextLink The URL to get the next list of items
- * {@code
- * {
- * blocklistName: String (Required)
- * description: String (Optional)
- * }
- * }
- *
- * @param nextLink The URL to get the next list of items
- * {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param nextLink The URL to get the next list of items
- * {@code
- * {
- * blockItemId: String (Required)
- * description: String (Optional)
- * text: String (Required)
- * }
- * }
- *
- * @param nextLink The URL to get the next list of items
- *