scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Syntex service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Syntex service API instance.
+ */
+ public SyntexManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.syntex")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new SyntexManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of DocumentProcessors. It manages DocumentProcessorResource.
+ *
+ * @return Resource collection API of DocumentProcessors.
+ */
+ public DocumentProcessors documentProcessors() {
+ if (this.documentProcessors == null) {
+ this.documentProcessors = new DocumentProcessorsImpl(clientObject.getDocumentProcessors(), this);
+ }
+ return documentProcessors;
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * @return Wrapped service client Syntex providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ */
+ public Syntex serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/DocumentProcessorsClient.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/DocumentProcessorsClient.java
new file mode 100644
index 000000000000..78f557024c32
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/DocumentProcessorsClient.java
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorResourceInner;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorPatchableProperties;
+
+/** An instance of this class provides access to all the operations defined in DocumentProcessorsClient. */
+public interface DocumentProcessorsClient {
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String processorName, Context context);
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DocumentProcessorResourceInner getByResourceGroup(String resourceGroupName, String processorName);
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String processorName, Context context);
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String processorName);
+
+ /**
+ * Creates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(
+ String resourceGroupName, String processorName, DocumentProcessorResourceInner body, Context context);
+
+ /**
+ * Creates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DocumentProcessorResourceInner create(
+ String resourceGroupName, String processorName, DocumentProcessorResourceInner body);
+
+ /**
+ * Updates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String processorName, DocumentProcessorPatchableProperties body, Context context);
+
+ /**
+ * Updates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DocumentProcessorResourceInner update(
+ String resourceGroupName, String processorName, DocumentProcessorPatchableProperties body);
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/OperationsClient.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/OperationsClient.java
new file mode 100644
index 000000000000..fc2f6d0a129c
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/OperationsClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.syntex.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/Syntex.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/Syntex.java
new file mode 100644
index 000000000000..90a36279038d
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/Syntex.java
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for Syntex class. */
+public interface Syntex {
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the DocumentProcessorsClient object to access its operations.
+ *
+ * @return the DocumentProcessorsClient object.
+ */
+ DocumentProcessorsClient getDocumentProcessors();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/DocumentProcessorPatchablePropertiesProperties.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/DocumentProcessorPatchablePropertiesProperties.java
new file mode 100644
index 000000000000..615739a2be85
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/DocumentProcessorPatchablePropertiesProperties.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Syntex properties for PATCH. */
+@Fluent
+public final class DocumentProcessorPatchablePropertiesProperties {
+ /*
+ * The URL of an SharePoint Online (SPO) tenant associated with this document processor resource
+ */
+ @JsonProperty(value = "spoTenantUrl")
+ private String spoTenantUrl;
+
+ /*
+ * The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource
+ */
+ @JsonProperty(value = "spoTenantId")
+ private String spoTenantId;
+
+ /** Creates an instance of DocumentProcessorPatchablePropertiesProperties class. */
+ public DocumentProcessorPatchablePropertiesProperties() {
+ }
+
+ /**
+ * Get the spoTenantUrl property: The URL of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @return the spoTenantUrl value.
+ */
+ public String spoTenantUrl() {
+ return this.spoTenantUrl;
+ }
+
+ /**
+ * Set the spoTenantUrl property: The URL of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @param spoTenantUrl the spoTenantUrl value to set.
+ * @return the DocumentProcessorPatchablePropertiesProperties object itself.
+ */
+ public DocumentProcessorPatchablePropertiesProperties withSpoTenantUrl(String spoTenantUrl) {
+ this.spoTenantUrl = spoTenantUrl;
+ return this;
+ }
+
+ /**
+ * Get the spoTenantId property: The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @return the spoTenantId value.
+ */
+ public String spoTenantId() {
+ return this.spoTenantId;
+ }
+
+ /**
+ * Set the spoTenantId property: The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @param spoTenantId the spoTenantId value to set.
+ * @return the DocumentProcessorPatchablePropertiesProperties object itself.
+ */
+ public DocumentProcessorPatchablePropertiesProperties withSpoTenantId(String spoTenantId) {
+ this.spoTenantId = spoTenantId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/DocumentProcessorResourceInner.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/DocumentProcessorResourceInner.java
new file mode 100644
index 000000000000..d9cb851599e5
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/DocumentProcessorResourceInner.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Document processor details. */
+@Fluent
+public final class DocumentProcessorResourceInner extends Resource {
+ /*
+ * Document processor properties.
+ */
+ @JsonProperty(value = "properties")
+ private DocumentProcessorProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of DocumentProcessorResourceInner class. */
+ public DocumentProcessorResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Document processor properties.
+ *
+ * @return the properties value.
+ */
+ public DocumentProcessorProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Document processor properties.
+ *
+ * @param properties the properties value to set.
+ * @return the DocumentProcessorResourceInner object itself.
+ */
+ public DocumentProcessorResourceInner withProperties(DocumentProcessorProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DocumentProcessorResourceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public DocumentProcessorResourceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/OperationInner.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..6523505210db
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/OperationInner.java
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.syntex.models.ActionType;
+import com.azure.resourcemanager.syntex.models.OperationDisplay;
+import com.azure.resourcemanager.syntex.models.Origin;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Fluent
+public final class OperationInner {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
+ * ARM/control-plane operations.
+ */
+ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ @JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
+ private Origin origin;
+
+ /*
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ @JsonProperty(value = "actionType", access = JsonProperty.Access.WRITE_ONLY)
+ private ActionType actionType;
+
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for ARM/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Localized display information for this particular operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/package-info.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/package-info.java
new file mode 100644
index 000000000000..5e2d8b89fc67
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the inner data models for Syntex. Syntex provider. */
+package com.azure.resourcemanager.syntex.fluent.models;
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/package-info.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/package-info.java
new file mode 100644
index 000000000000..b313f4e3c765
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/fluent/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the service clients for Syntex. Syntex provider. */
+package com.azure.resourcemanager.syntex.fluent;
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorResourceImpl.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorResourceImpl.java
new file mode 100644
index 000000000000..499325103809
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorResourceImpl.java
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorResourceInner;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorPatchableProperties;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorProperties;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorResource;
+import java.util.Collections;
+import java.util.Map;
+
+public final class DocumentProcessorResourceImpl
+ implements DocumentProcessorResource, DocumentProcessorResource.Definition, DocumentProcessorResource.Update {
+ private DocumentProcessorResourceInner innerObject;
+
+ private final com.azure.resourcemanager.syntex.SyntexManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public DocumentProcessorProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public DocumentProcessorResourceInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.syntex.SyntexManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String processorName;
+
+ private DocumentProcessorPatchableProperties updateBody;
+
+ public DocumentProcessorResourceImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public DocumentProcessorResource create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDocumentProcessors()
+ .createWithResponse(resourceGroupName, processorName, this.innerModel(), Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DocumentProcessorResource create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDocumentProcessors()
+ .createWithResponse(resourceGroupName, processorName, this.innerModel(), context)
+ .getValue();
+ return this;
+ }
+
+ DocumentProcessorResourceImpl(String name, com.azure.resourcemanager.syntex.SyntexManager serviceManager) {
+ this.innerObject = new DocumentProcessorResourceInner();
+ this.serviceManager = serviceManager;
+ this.processorName = name;
+ }
+
+ public DocumentProcessorResourceImpl update() {
+ this.updateBody = new DocumentProcessorPatchableProperties();
+ return this;
+ }
+
+ public DocumentProcessorResource apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDocumentProcessors()
+ .updateWithResponse(resourceGroupName, processorName, updateBody, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DocumentProcessorResource apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDocumentProcessors()
+ .updateWithResponse(resourceGroupName, processorName, updateBody, context)
+ .getValue();
+ return this;
+ }
+
+ DocumentProcessorResourceImpl(
+ DocumentProcessorResourceInner innerObject, com.azure.resourcemanager.syntex.SyntexManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.processorName = Utils.getValueFromIdByName(innerObject.id(), "documentProcessors");
+ }
+
+ public DocumentProcessorResource refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDocumentProcessors()
+ .getByResourceGroupWithResponse(resourceGroupName, processorName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public DocumentProcessorResource refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getDocumentProcessors()
+ .getByResourceGroupWithResponse(resourceGroupName, processorName, context)
+ .getValue();
+ return this;
+ }
+
+ public DocumentProcessorResourceImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public DocumentProcessorResourceImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public DocumentProcessorResourceImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateBody.withTags(tags);
+ return this;
+ }
+ }
+
+ public DocumentProcessorResourceImpl withProperties(DocumentProcessorProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public DocumentProcessorResourceImpl withSpoTenantUrl(String spoTenantUrl) {
+ this.updateBody.withSpoTenantUrl(spoTenantUrl);
+ return this;
+ }
+
+ public DocumentProcessorResourceImpl withSpoTenantId(String spoTenantId) {
+ this.updateBody.withSpoTenantId(spoTenantId);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorsClientImpl.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorsClientImpl.java
new file mode 100644
index 000000000000..0b4219067de5
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorsClientImpl.java
@@ -0,0 +1,1230 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.syntex.fluent.DocumentProcessorsClient;
+import com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorResourceInner;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorList;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorPatchableProperties;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in DocumentProcessorsClient. */
+public final class DocumentProcessorsClientImpl implements DocumentProcessorsClient {
+ /** The proxy service used to perform REST calls. */
+ private final DocumentProcessorsService service;
+
+ /** The service client containing this operation class. */
+ private final SyntexImpl client;
+
+ /**
+ * Initializes an instance of DocumentProcessorsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ DocumentProcessorsClientImpl(SyntexImpl client) {
+ this.service =
+ RestProxy.create(DocumentProcessorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SyntexDocumentProcessors to be used by the proxy service to perform
+ * REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SyntexDocumentProces")
+ private interface DocumentProcessorsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Syntex/documentProcessors")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex"
+ + "/documentProcessors")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex"
+ + "/documentProcessors/{processorName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("processorName") String processorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex"
+ + "/documentProcessors/{processorName}")
+ @ExpectedResponses({200, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("processorName") String processorName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex"
+ + "/documentProcessors/{processorName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> create(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("processorName") String processorName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DocumentProcessorResourceInner body,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Syntex"
+ + "/documentProcessors/{processorName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("processorName") String processorName,
+ @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") DocumentProcessorPatchableProperties body,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(
+ String resourceGroupName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(
+ String resourceGroupName, Context context) {
+ return new PagedFlux<>(
+ () -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ }
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(
+ String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ }
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String processorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(
+ String resourceGroupName, String processorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .getByResourceGroup(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(
+ String resourceGroupName, String processorName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, processorName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String processorName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, processorName, context).block();
+ }
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DocumentProcessorResourceInner getByResourceGroup(String resourceGroupName, String processorName) {
+ return getByResourceGroupWithResponse(resourceGroupName, processorName, Context.NONE).getValue();
+ }
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(String resourceGroupName, String processorName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> deleteWithResponseAsync(
+ String resourceGroupName, String processorName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .delete(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String processorName) {
+ return deleteWithResponseAsync(resourceGroupName, processorName).flatMap(ignored -> Mono.empty());
+ }
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response deleteWithResponse(String resourceGroupName, String processorName, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, processorName, context).block();
+ }
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String processorName) {
+ deleteWithResponse(resourceGroupName, processorName, Context.NONE);
+ }
+
+ /**
+ * Creates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(
+ String resourceGroupName, String processorName, DocumentProcessorResourceInner body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> createWithResponseAsync(
+ String resourceGroupName, String processorName, DocumentProcessorResourceInner body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .create(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context);
+ }
+
+ /**
+ * Creates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(
+ String resourceGroupName, String processorName, DocumentProcessorResourceInner body) {
+ return createWithResponseAsync(resourceGroupName, processorName, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Creates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response createWithResponse(
+ String resourceGroupName, String processorName, DocumentProcessorResourceInner body, Context context) {
+ return createWithResponseAsync(resourceGroupName, processorName, body, context).block();
+ }
+
+ /**
+ * Creates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DocumentProcessorResourceInner create(
+ String resourceGroupName, String processorName, DocumentProcessorResourceInner body) {
+ return createWithResponse(resourceGroupName, processorName, body, Context.NONE).getValue();
+ }
+
+ /**
+ * Updates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String processorName, DocumentProcessorPatchableProperties body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String processorName, DocumentProcessorPatchableProperties body, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (processorName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter processorName is required and cannot be null."));
+ }
+ if (body == null) {
+ return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null."));
+ } else {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ processorName,
+ this.client.getApiVersion(),
+ body,
+ accept,
+ context);
+ }
+
+ /**
+ * Updates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName, String processorName, DocumentProcessorPatchableProperties body) {
+ return updateWithResponseAsync(resourceGroupName, processorName, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Updates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(
+ String resourceGroupName, String processorName, DocumentProcessorPatchableProperties body, Context context) {
+ return updateWithResponseAsync(resourceGroupName, processorName, body, context).block();
+ }
+
+ /**
+ * Updates a document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param body Document processor details.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public DocumentProcessorResourceInner update(
+ String resourceGroupName, String processorName, DocumentProcessorPatchableProperties body) {
+ return updateWithResponse(resourceGroupName, processorName, body, Context.NONE).getValue();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorsImpl.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorsImpl.java
new file mode 100644
index 000000000000..4492e48eb6d1
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/DocumentProcessorsImpl.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.syntex.fluent.DocumentProcessorsClient;
+import com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorResourceInner;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorResource;
+import com.azure.resourcemanager.syntex.models.DocumentProcessors;
+
+public final class DocumentProcessorsImpl implements DocumentProcessors {
+ private static final ClientLogger LOGGER = new ClientLogger(DocumentProcessorsImpl.class);
+
+ private final DocumentProcessorsClient innerClient;
+
+ private final com.azure.resourcemanager.syntex.SyntexManager serviceManager;
+
+ public DocumentProcessorsImpl(
+ DocumentProcessorsClient innerClient, com.azure.resourcemanager.syntex.SyntexManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new DocumentProcessorResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new DocumentProcessorResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner =
+ this.serviceClient().listByResourceGroup(resourceGroupName);
+ return Utils.mapPage(inner, inner1 -> new DocumentProcessorResourceImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return Utils.mapPage(inner, inner1 -> new DocumentProcessorResourceImpl(inner1, this.manager()));
+ }
+
+ public Response getByResourceGroupWithResponse(
+ String resourceGroupName, String processorName, Context context) {
+ Response inner =
+ this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, processorName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new DocumentProcessorResourceImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DocumentProcessorResource getByResourceGroup(String resourceGroupName, String processorName) {
+ DocumentProcessorResourceInner inner =
+ this.serviceClient().getByResourceGroup(resourceGroupName, processorName);
+ if (inner != null) {
+ return new DocumentProcessorResourceImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response deleteByResourceGroupWithResponse(
+ String resourceGroupName, String processorName, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, processorName, context);
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String processorName) {
+ this.serviceClient().delete(resourceGroupName, processorName);
+ }
+
+ public DocumentProcessorResource getById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String processorName = Utils.getValueFromIdByName(id, "documentProcessors");
+ if (processorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'documentProcessors'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, processorName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String processorName = Utils.getValueFromIdByName(id, "documentProcessors");
+ if (processorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'documentProcessors'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, processorName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String processorName = Utils.getValueFromIdByName(id, "documentProcessors");
+ if (processorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'documentProcessors'.", id)));
+ }
+ this.deleteByResourceGroupWithResponse(resourceGroupName, processorName, Context.NONE);
+ }
+
+ public Response deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String processorName = Utils.getValueFromIdByName(id, "documentProcessors");
+ if (processorName == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ String
+ .format(
+ "The resource ID '%s' is not valid. Missing path segment 'documentProcessors'.", id)));
+ }
+ return this.deleteByResourceGroupWithResponse(resourceGroupName, processorName, context);
+ }
+
+ private DocumentProcessorsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.syntex.SyntexManager manager() {
+ return this.serviceManager;
+ }
+
+ public DocumentProcessorResourceImpl define(String name) {
+ return new DocumentProcessorResourceImpl(name, this.manager());
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationImpl.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationImpl.java
new file mode 100644
index 000000000000..eee2250a66ad
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationImpl.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.resourcemanager.syntex.fluent.models.OperationInner;
+import com.azure.resourcemanager.syntex.models.ActionType;
+import com.azure.resourcemanager.syntex.models.Operation;
+import com.azure.resourcemanager.syntex.models.OperationDisplay;
+import com.azure.resourcemanager.syntex.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.syntex.SyntexManager serviceManager;
+
+ OperationImpl(OperationInner innerObject, com.azure.resourcemanager.syntex.SyntexManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public Boolean isDataAction() {
+ return this.innerModel().isDataAction();
+ }
+
+ public OperationDisplay display() {
+ return this.innerModel().display();
+ }
+
+ public Origin origin() {
+ return this.innerModel().origin();
+ }
+
+ public ActionType actionType() {
+ return this.innerModel().actionType();
+ }
+
+ public OperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.syntex.SyntexManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationsClientImpl.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..48502b5b320e
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationsClientImpl.java
@@ -0,0 +1,276 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.syntex.fluent.OperationsClient;
+import com.azure.resourcemanager.syntex.fluent.models.OperationInner;
+import com.azure.resourcemanager.syntex.models.OperationListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public final class OperationsClientImpl implements OperationsClient {
+ /** The proxy service used to perform REST calls. */
+ private final OperationsService service;
+
+ /** The service client containing this operation class. */
+ private final SyntexImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(SyntexImpl client) {
+ this.service =
+ RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for SyntexOperations to be used by the proxy service to perform REST
+ * calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "SyntexOperations")
+ private interface OperationsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.Syntex/operations")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
+ }
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationsImpl.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationsImpl.java
new file mode 100644
index 000000000000..8012d237bcf4
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/OperationsImpl.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.syntex.fluent.OperationsClient;
+import com.azure.resourcemanager.syntex.fluent.models.OperationInner;
+import com.azure.resourcemanager.syntex.models.Operation;
+import com.azure.resourcemanager.syntex.models.Operations;
+
+public final class OperationsImpl implements Operations {
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
+
+ private final OperationsClient innerClient;
+
+ private final com.azure.resourcemanager.syntex.SyntexManager serviceManager;
+
+ public OperationsImpl(OperationsClient innerClient, com.azure.resourcemanager.syntex.SyntexManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return Utils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ private OperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.syntex.SyntexManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/SyntexBuilder.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/SyntexBuilder.java
new file mode 100644
index 000000000000..dc94c05368ff
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/SyntexBuilder.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the SyntexImpl type. */
+@ServiceClientBuilder(serviceClients = {SyntexImpl.class})
+public final class SyntexBuilder {
+ /*
+ * The ID of the target subscription.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the SyntexBuilder.
+ */
+ public SyntexBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the SyntexBuilder.
+ */
+ public SyntexBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the SyntexBuilder.
+ */
+ public SyntexBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the SyntexBuilder.
+ */
+ public SyntexBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the SyntexBuilder.
+ */
+ public SyntexBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the SyntexBuilder.
+ */
+ public SyntexBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of SyntexImpl with the provided parameters.
+ *
+ * @return an instance of SyntexImpl.
+ */
+ public SyntexImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ SyntexImpl client =
+ new SyntexImpl(
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
+ return client;
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/SyntexImpl.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/SyntexImpl.java
new file mode 100644
index 000000000000..20683c933510
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/SyntexImpl.java
@@ -0,0 +1,304 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.syntex.fluent.DocumentProcessorsClient;
+import com.azure.resourcemanager.syntex.fluent.OperationsClient;
+import com.azure.resourcemanager.syntex.fluent.Syntex;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the SyntexImpl type. */
+@ServiceClient(builder = SyntexBuilder.class)
+public final class SyntexImpl implements Syntex {
+ /** The ID of the target subscription. */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The DocumentProcessorsClient object to access its operations. */
+ private final DocumentProcessorsClient documentProcessors;
+
+ /**
+ * Gets the DocumentProcessorsClient object to access its operations.
+ *
+ * @return the DocumentProcessorsClient object.
+ */
+ public DocumentProcessorsClient getDocumentProcessors() {
+ return this.documentProcessors;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /**
+ * Initializes an instance of Syntex client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId The ID of the target subscription.
+ * @param endpoint server parameter.
+ */
+ SyntexImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2022-09-15-preview";
+ this.documentProcessors = new DocumentProcessorsClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(
+ Mono>> activationResponse,
+ HttpPipeline httpPipeline,
+ Type pollResultType,
+ Type finalResultType,
+ Context context) {
+ return PollerFactory
+ .create(
+ serializerAdapter,
+ httpPipeline,
+ pollResultType,
+ finalResultType,
+ defaultPollInterval,
+ activationResponse,
+ context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse =
+ new HttpResponseImpl(
+ lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError =
+ this
+ .getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(s);
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SyntexImpl.class);
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/Utils.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/Utils.java
new file mode 100644
index 000000000000..3782dc90210e
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/Utils.java
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.implementation;
+
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.util.CoreUtils;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import reactor.core.publisher.Flux;
+
+final class Utils {
+ static String getValueFromIdByName(String id, String name) {
+ if (id == null) {
+ return null;
+ }
+ Iterator itr = Arrays.stream(id.split("/")).iterator();
+ while (itr.hasNext()) {
+ String part = itr.next();
+ if (part != null && !part.trim().isEmpty()) {
+ if (part.equalsIgnoreCase(name)) {
+ if (itr.hasNext()) {
+ return itr.next();
+ } else {
+ return null;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) {
+ if (id == null || pathTemplate == null) {
+ return null;
+ }
+ String parameterNameParentheses = "{" + parameterName + "}";
+ List idSegmentsReverted = Arrays.asList(id.split("/"));
+ List pathSegments = Arrays.asList(pathTemplate.split("/"));
+ Collections.reverse(idSegmentsReverted);
+ Iterator idItrReverted = idSegmentsReverted.iterator();
+ int pathIndex = pathSegments.size();
+ while (idItrReverted.hasNext() && pathIndex > 0) {
+ String idSegment = idItrReverted.next();
+ String pathSegment = pathSegments.get(--pathIndex);
+ if (!CoreUtils.isNullOrEmpty(idSegment) && !CoreUtils.isNullOrEmpty(pathSegment)) {
+ if (pathSegment.equalsIgnoreCase(parameterNameParentheses)) {
+ if (pathIndex == 0 || (pathIndex == 1 && pathSegments.get(0).isEmpty())) {
+ List segments = new ArrayList<>();
+ segments.add(idSegment);
+ idItrReverted.forEachRemaining(segments::add);
+ Collections.reverse(segments);
+ if (segments.size() > 0 && segments.get(0).isEmpty()) {
+ segments.remove(0);
+ }
+ return String.join("/", segments);
+ } else {
+ return idSegment;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
+ return new PagedIterableImpl(pageIterable, mapper);
+ }
+
+ private static final class PagedIterableImpl extends PagedIterable {
+
+ private final PagedIterable pagedIterable;
+ private final Function mapper;
+ private final Function, PagedResponse> pageMapper;
+
+ private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) {
+ super(
+ PagedFlux
+ .create(
+ () ->
+ (continuationToken, pageSize) ->
+ Flux.fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper)))));
+ this.pagedIterable = pagedIterable;
+ this.mapper = mapper;
+ this.pageMapper = getPageMapper(mapper);
+ }
+
+ private static Function, PagedResponse> getPageMapper(Function mapper) {
+ return page ->
+ new PagedResponseBase(
+ page.getRequest(),
+ page.getStatusCode(),
+ page.getHeaders(),
+ page.getElements().stream().map(mapper).collect(Collectors.toList()),
+ page.getContinuationToken(),
+ null);
+ }
+
+ @Override
+ public Stream stream() {
+ return pagedIterable.stream().map(mapper);
+ }
+
+ @Override
+ public Stream> streamByPage() {
+ return pagedIterable.streamByPage().map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken) {
+ return pagedIterable.streamByPage(continuationToken).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(int preferredPageSize) {
+ return pagedIterable.streamByPage(preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken, int preferredPageSize) {
+ return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl(pagedIterable.iterator(), mapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage() {
+ return new IterableImpl, PagedResponse>(pagedIterable.iterableByPage(), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken) {
+ return new IterableImpl, PagedResponse>(
+ pagedIterable.iterableByPage(continuationToken), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(int preferredPageSize) {
+ return new IterableImpl, PagedResponse>(
+ pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
+ return new IterableImpl, PagedResponse>(
+ pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ }
+ }
+
+ private static final class IteratorImpl implements Iterator {
+
+ private final Iterator iterator;
+ private final Function mapper;
+
+ private IteratorImpl(Iterator iterator, Function mapper) {
+ this.iterator = iterator;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public boolean hasNext() {
+ return iterator.hasNext();
+ }
+
+ @Override
+ public S next() {
+ return mapper.apply(iterator.next());
+ }
+
+ @Override
+ public void remove() {
+ iterator.remove();
+ }
+ }
+
+ private static final class IterableImpl implements Iterable {
+
+ private final Iterable iterable;
+ private final Function mapper;
+
+ private IterableImpl(Iterable iterable, Function mapper) {
+ this.iterable = iterable;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl(iterable.iterator(), mapper);
+ }
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/package-info.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/package-info.java
new file mode 100644
index 000000000000..5c07541c534a
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/implementation/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the implementations for Syntex. Syntex provider. */
+package com.azure.resourcemanager.syntex.implementation;
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/ActionType.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/ActionType.java
new file mode 100644
index 000000000000..afb1ebd9bdaa
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/ActionType.java
@@ -0,0 +1,35 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
+public final class ActionType extends ExpandableStringEnum {
+ /** Static value Internal for ActionType. */
+ public static final ActionType INTERNAL = fromString("Internal");
+
+ /**
+ * Creates or finds a ActionType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ActionType.
+ */
+ @JsonCreator
+ public static ActionType fromString(String name) {
+ return fromString(name, ActionType.class);
+ }
+
+ /**
+ * Gets known ActionType values.
+ *
+ * @return known ActionType values.
+ */
+ public static Collection values() {
+ return values(ActionType.class);
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorList.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorList.java
new file mode 100644
index 000000000000..dcbd8ff0bc5f
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorList.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorResourceInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Document processor list. */
+@Immutable
+public final class DocumentProcessorList {
+ /*
+ * Array of document processors.
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /*
+ * Link to retrieve next page of results.
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /** Creates an instance of DocumentProcessorList class. */
+ public DocumentProcessorList() {
+ }
+
+ /**
+ * Get the value property: Array of document processors.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: Link to retrieve next page of results.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorPatchableProperties.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorPatchableProperties.java
new file mode 100644
index 000000000000..f5e219e0e930
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorPatchableProperties.java
@@ -0,0 +1,122 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorPatchablePropertiesProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Document processor properties that can be updated. */
+@Fluent
+public final class DocumentProcessorPatchableProperties {
+ /*
+ * Resource tags.
+ */
+ @JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map tags;
+
+ /*
+ * Syntex properties for PATCH.
+ */
+ @JsonProperty(value = "properties")
+ private DocumentProcessorPatchablePropertiesProperties innerProperties;
+
+ /** Creates an instance of DocumentProcessorPatchableProperties class. */
+ public DocumentProcessorPatchableProperties() {
+ }
+
+ /**
+ * Get the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags.
+ *
+ * @param tags the tags value to set.
+ * @return the DocumentProcessorPatchableProperties object itself.
+ */
+ public DocumentProcessorPatchableProperties withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: Syntex properties for PATCH.
+ *
+ * @return the innerProperties value.
+ */
+ private DocumentProcessorPatchablePropertiesProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the spoTenantUrl property: The URL of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @return the spoTenantUrl value.
+ */
+ public String spoTenantUrl() {
+ return this.innerProperties() == null ? null : this.innerProperties().spoTenantUrl();
+ }
+
+ /**
+ * Set the spoTenantUrl property: The URL of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @param spoTenantUrl the spoTenantUrl value to set.
+ * @return the DocumentProcessorPatchableProperties object itself.
+ */
+ public DocumentProcessorPatchableProperties withSpoTenantUrl(String spoTenantUrl) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DocumentProcessorPatchablePropertiesProperties();
+ }
+ this.innerProperties().withSpoTenantUrl(spoTenantUrl);
+ return this;
+ }
+
+ /**
+ * Get the spoTenantId property: The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @return the spoTenantId value.
+ */
+ public String spoTenantId() {
+ return this.innerProperties() == null ? null : this.innerProperties().spoTenantId();
+ }
+
+ /**
+ * Set the spoTenantId property: The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @param spoTenantId the spoTenantId value to set.
+ * @return the DocumentProcessorPatchableProperties object itself.
+ */
+ public DocumentProcessorPatchableProperties withSpoTenantId(String spoTenantId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DocumentProcessorPatchablePropertiesProperties();
+ }
+ this.innerProperties().withSpoTenantId(spoTenantId);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorProperties.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorProperties.java
new file mode 100644
index 000000000000..5db6d53d86c8
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorProperties.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Document processor properties. */
+@Fluent
+public final class DocumentProcessorProperties {
+ /*
+ * The managed resource provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The URL of an SharePoint Online (SPO) tenant associated with this document processor resource
+ */
+ @JsonProperty(value = "spoTenantUrl", required = true)
+ private String spoTenantUrl;
+
+ /*
+ * The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document processor resource
+ */
+ @JsonProperty(value = "spoTenantId", required = true)
+ private String spoTenantId;
+
+ /** Creates an instance of DocumentProcessorProperties class. */
+ public DocumentProcessorProperties() {
+ }
+
+ /**
+ * Get the provisioningState property: The managed resource provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the spoTenantUrl property: The URL of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @return the spoTenantUrl value.
+ */
+ public String spoTenantUrl() {
+ return this.spoTenantUrl;
+ }
+
+ /**
+ * Set the spoTenantUrl property: The URL of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @param spoTenantUrl the spoTenantUrl value to set.
+ * @return the DocumentProcessorProperties object itself.
+ */
+ public DocumentProcessorProperties withSpoTenantUrl(String spoTenantUrl) {
+ this.spoTenantUrl = spoTenantUrl;
+ return this;
+ }
+
+ /**
+ * Get the spoTenantId property: The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @return the spoTenantId value.
+ */
+ public String spoTenantId() {
+ return this.spoTenantId;
+ }
+
+ /**
+ * Set the spoTenantId property: The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ *
+ * @param spoTenantId the spoTenantId value to set.
+ * @return the DocumentProcessorProperties object itself.
+ */
+ public DocumentProcessorProperties withSpoTenantId(String spoTenantId) {
+ this.spoTenantId = spoTenantId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (spoTenantUrl() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property spoTenantUrl in model DocumentProcessorProperties"));
+ }
+ if (spoTenantId() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property spoTenantId in model DocumentProcessorProperties"));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DocumentProcessorProperties.class);
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorResource.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorResource.java
new file mode 100644
index 000000000000..bc691d43417d
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessorResource.java
@@ -0,0 +1,248 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorResourceInner;
+import java.util.Map;
+
+/** An immutable client-side representation of DocumentProcessorResource. */
+public interface DocumentProcessorResource {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the location property: The geo-location where the resource lives.
+ *
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * Gets the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ Map tags();
+
+ /**
+ * Gets the properties property: Document processor properties.
+ *
+ * @return the properties value.
+ */
+ DocumentProcessorProperties properties();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the region of the resource.
+ *
+ * @return the region of the resource.
+ */
+ Region region();
+
+ /**
+ * Gets the name of the resource region.
+ *
+ * @return the name of the resource region.
+ */
+ String regionName();
+
+ /**
+ * Gets the name of the resource group.
+ *
+ * @return the name of the resource group.
+ */
+ String resourceGroupName();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.syntex.fluent.models.DocumentProcessorResourceInner object.
+ *
+ * @return the inner object.
+ */
+ DocumentProcessorResourceInner innerModel();
+
+ /** The entirety of the DocumentProcessorResource definition. */
+ interface Definition
+ extends DefinitionStages.Blank,
+ DefinitionStages.WithLocation,
+ DefinitionStages.WithResourceGroup,
+ DefinitionStages.WithCreate {
+ }
+ /** The DocumentProcessorResource definition stages. */
+ interface DefinitionStages {
+ /** The first stage of the DocumentProcessorResource definition. */
+ interface Blank extends WithLocation {
+ }
+ /** The stage of the DocumentProcessorResource definition allowing to specify location. */
+ interface WithLocation {
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(Region location);
+
+ /**
+ * Specifies the region for the resource.
+ *
+ * @param location The geo-location where the resource lives.
+ * @return the next definition stage.
+ */
+ WithResourceGroup withRegion(String location);
+ }
+ /** The stage of the DocumentProcessorResource definition allowing to specify parent resource. */
+ interface WithResourceGroup {
+ /**
+ * Specifies resourceGroupName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @return the next definition stage.
+ */
+ WithCreate withExistingResourceGroup(String resourceGroupName);
+ }
+ /**
+ * The stage of the DocumentProcessorResource definition which contains all the minimum required properties for
+ * the resource to be created, but also allows for any other optional properties to be specified.
+ */
+ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties {
+ /**
+ * Executes the create request.
+ *
+ * @return the created resource.
+ */
+ DocumentProcessorResource create();
+
+ /**
+ * Executes the create request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the created resource.
+ */
+ DocumentProcessorResource create(Context context);
+ }
+ /** The stage of the DocumentProcessorResource definition allowing to specify tags. */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ WithCreate withTags(Map tags);
+ }
+ /** The stage of the DocumentProcessorResource definition allowing to specify properties. */
+ interface WithProperties {
+ /**
+ * Specifies the properties property: Document processor properties..
+ *
+ * @param properties Document processor properties.
+ * @return the next definition stage.
+ */
+ WithCreate withProperties(DocumentProcessorProperties properties);
+ }
+ }
+ /**
+ * Begins update for the DocumentProcessorResource resource.
+ *
+ * @return the stage of resource update.
+ */
+ DocumentProcessorResource.Update update();
+
+ /** The template for DocumentProcessorResource update. */
+ interface Update extends UpdateStages.WithTags, UpdateStages.WithSpoTenantUrl, UpdateStages.WithSpoTenantId {
+ /**
+ * Executes the update request.
+ *
+ * @return the updated resource.
+ */
+ DocumentProcessorResource apply();
+
+ /**
+ * Executes the update request.
+ *
+ * @param context The context to associate with this operation.
+ * @return the updated resource.
+ */
+ DocumentProcessorResource apply(Context context);
+ }
+ /** The DocumentProcessorResource update stages. */
+ interface UpdateStages {
+ /** The stage of the DocumentProcessorResource update allowing to specify tags. */
+ interface WithTags {
+ /**
+ * Specifies the tags property: Resource tags..
+ *
+ * @param tags Resource tags.
+ * @return the next definition stage.
+ */
+ Update withTags(Map tags);
+ }
+ /** The stage of the DocumentProcessorResource update allowing to specify spoTenantUrl. */
+ interface WithSpoTenantUrl {
+ /**
+ * Specifies the spoTenantUrl property: The URL of an SharePoint Online (SPO) tenant associated with this
+ * document processor resource.
+ *
+ * @param spoTenantUrl The URL of an SharePoint Online (SPO) tenant associated with this document processor
+ * resource.
+ * @return the next definition stage.
+ */
+ Update withSpoTenantUrl(String spoTenantUrl);
+ }
+ /** The stage of the DocumentProcessorResource update allowing to specify spoTenantId. */
+ interface WithSpoTenantId {
+ /**
+ * Specifies the spoTenantId property: The ID (GUID) of an SharePoint Online (SPO) tenant associated with
+ * this document processor resource.
+ *
+ * @param spoTenantId The ID (GUID) of an SharePoint Online (SPO) tenant associated with this document
+ * processor resource.
+ * @return the next definition stage.
+ */
+ Update withSpoTenantId(String spoTenantId);
+ }
+ }
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @return the refreshed resource.
+ */
+ DocumentProcessorResource refresh();
+
+ /**
+ * Refreshes the resource to sync with Azure.
+ *
+ * @param context The context to associate with this operation.
+ * @return the refreshed resource.
+ */
+ DocumentProcessorResource refresh(Context context);
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessors.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessors.java
new file mode 100644
index 000000000000..c52cc2c7174f
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/DocumentProcessors.java
@@ -0,0 +1,158 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of DocumentProcessors. */
+public interface DocumentProcessors {
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list();
+
+ /**
+ * Returns document processors in the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable list(Context context);
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Returns document processors in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor list as paginated response with {@link PagedIterable}.
+ */
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String processorName, Context context);
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details.
+ */
+ DocumentProcessorResource getByResourceGroup(String resourceGroupName, String processorName);
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ Response deleteByResourceGroupWithResponse(String resourceGroupName, String processorName, Context context);
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param processorName The name of document processor resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteByResourceGroup(String resourceGroupName, String processorName);
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ DocumentProcessorResource getById(String id);
+
+ /**
+ * Returns a document processor for a given name.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return document processor details along with {@link Response}.
+ */
+ Response getByIdWithResponse(String id, Context context);
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param id the resource ID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ void deleteById(String id);
+
+ /**
+ * Deletes document processor resource for a given name.
+ *
+ * @param id the resource ID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ Response deleteByIdWithResponse(String id, Context context);
+
+ /**
+ * Begins definition for a new DocumentProcessorResource resource.
+ *
+ * @param name resource name.
+ * @return the first stage of the new DocumentProcessorResource definition.
+ */
+ DocumentProcessorResource.DefinitionStages.Blank define(String name);
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Operation.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Operation.java
new file mode 100644
index 000000000000..5288fbba1916
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Operation.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.resourcemanager.syntex.fluent.models.OperationInner;
+
+/** An immutable client-side representation of Operation. */
+public interface Operation {
+ /**
+ * Gets the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for ARM/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ Boolean isDataAction();
+
+ /**
+ * Gets the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ OperationDisplay display();
+
+ /**
+ * Gets the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ Origin origin();
+
+ /**
+ * Gets the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
+ * only APIs.
+ *
+ * @return the actionType value.
+ */
+ ActionType actionType();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.syntex.fluent.models.OperationInner object.
+ *
+ * @return the inner object.
+ */
+ OperationInner innerModel();
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/OperationDisplay.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/OperationDisplay.java
new file mode 100644
index 000000000000..0b3636678588
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/OperationDisplay.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Localized display information for this particular operation. */
+@Immutable
+public final class OperationDisplay {
+ /*
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft
+ * Compute".
+ */
+ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
+ private String provider;
+
+ /*
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job
+ * Schedule Collections".
+ */
+ @JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
+ private String resource;
+
+ /*
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual
+ * Machine", "Restart Virtual Machine".
+ */
+ @JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
+ private String operation;
+
+ /*
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /** Creates an instance of OperationDisplay class. */
+ public OperationDisplay() {
+ }
+
+ /**
+ * Get the provider property: The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring
+ * Insights" or "Microsoft Compute".
+ *
+ * @return the provider value.
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * Get the resource property: The localized friendly name of the resource type related to this operation. E.g.
+ * "Virtual Machines" or "Job Schedule Collections".
+ *
+ * @return the resource value.
+ */
+ public String resource() {
+ return this.resource;
+ }
+
+ /**
+ * Get the operation property: The concise, localized friendly name for the operation; suitable for dropdowns. E.g.
+ * "Create or Update Virtual Machine", "Restart Virtual Machine".
+ *
+ * @return the operation value.
+ */
+ public String operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get the description property: The short, localized friendly description of the operation; suitable for tool tips
+ * and detailed views.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/OperationListResult.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/OperationListResult.java
new file mode 100644
index 000000000000..cc0190d23402
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/OperationListResult.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.syntex.fluent.models.OperationInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of
+ * results.
+ */
+@Immutable
+public final class OperationListResult {
+ /*
+ * List of operations supported by the resource provider
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /*
+ * URL to get the next set of operation list results (if there are any).
+ */
+ @JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
+ private String nextLink;
+
+ /** Creates an instance of OperationListResult class. */
+ public OperationListResult() {
+ }
+
+ /**
+ * Get the value property: List of operations supported by the resource provider.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Get the nextLink property: URL to get the next set of operation list results (if there are any).
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Operations.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Operations.java
new file mode 100644
index 000000000000..e9d8a110ad7f
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Operations.java
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+
+/** Resource collection API of Operations. */
+public interface Operations {
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ PagedIterable list();
+
+ /**
+ * List of all REST operations supported by the Microsoft.Syntex provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
+ * PagedIterable}.
+ */
+ PagedIterable list(Context context);
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Origin.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Origin.java
new file mode 100644
index 000000000000..4b4802e6db28
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/Origin.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value
+ * is "user,system".
+ */
+public final class Origin extends ExpandableStringEnum {
+ /** Static value user for Origin. */
+ public static final Origin USER = fromString("user");
+
+ /** Static value system for Origin. */
+ public static final Origin SYSTEM = fromString("system");
+
+ /** Static value user,system for Origin. */
+ public static final Origin USER_SYSTEM = fromString("user,system");
+
+ /**
+ * Creates or finds a Origin from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding Origin.
+ */
+ @JsonCreator
+ public static Origin fromString(String name) {
+ return fromString(name, Origin.class);
+ }
+
+ /**
+ * Gets known Origin values.
+ *
+ * @return known Origin values.
+ */
+ public static Collection values() {
+ return values(Origin.class);
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/ProvisioningState.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/ProvisioningState.java
new file mode 100644
index 000000000000..7653883f5718
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/ProvisioningState.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Provisioning status of the managed resource. */
+public final class ProvisioningState extends ExpandableStringEnum {
+ /** Static value Succeeded for ProvisioningState. */
+ public static final ProvisioningState SUCCEEDED = fromString("Succeeded");
+
+ /** Static value Failed for ProvisioningState. */
+ public static final ProvisioningState FAILED = fromString("Failed");
+
+ /** Static value Canceled for ProvisioningState. */
+ public static final ProvisioningState CANCELED = fromString("Canceled");
+
+ /**
+ * Creates or finds a ProvisioningState from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding ProvisioningState.
+ */
+ @JsonCreator
+ public static ProvisioningState fromString(String name) {
+ return fromString(name, ProvisioningState.class);
+ }
+
+ /**
+ * Gets known ProvisioningState values.
+ *
+ * @return known ProvisioningState values.
+ */
+ public static Collection values() {
+ return values(ProvisioningState.class);
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/package-info.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/package-info.java
new file mode 100644
index 000000000000..72dea76f6cf9
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/models/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the data models for Syntex. Syntex provider. */
+package com.azure.resourcemanager.syntex.models;
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/package-info.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/package-info.java
new file mode 100644
index 000000000000..3b6a94495ffa
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/com/azure/resourcemanager/syntex/package-info.java
@@ -0,0 +1,6 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/** Package containing the classes for Syntex. Syntex provider. */
+package com.azure.resourcemanager.syntex;
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/main/java/module-info.java b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/module-info.java
new file mode 100644
index 000000000000..43568f5814af
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/main/java/module-info.java
@@ -0,0 +1,19 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+module com.azure.resourcemanager.syntex {
+ requires transitive com.azure.core.management;
+
+ exports com.azure.resourcemanager.syntex;
+ exports com.azure.resourcemanager.syntex.fluent;
+ exports com.azure.resourcemanager.syntex.fluent.models;
+ exports com.azure.resourcemanager.syntex.models;
+
+ opens com.azure.resourcemanager.syntex.fluent.models to
+ com.azure.core,
+ com.fasterxml.jackson.databind;
+ opens com.azure.resourcemanager.syntex.models to
+ com.azure.core,
+ com.fasterxml.jackson.databind;
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorCreateSamples.java b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorCreateSamples.java
new file mode 100644
index 000000000000..c71a318ed3b2
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorCreateSamples.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.generated;
+
+import com.azure.resourcemanager.syntex.models.DocumentProcessorProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for DocumentProcessor Create. */
+public final class DocumentProcessorCreateSamples {
+ /*
+ * x-ms-original-file: specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Create.json
+ */
+ /**
+ * Sample code: DocumentProcessor_Create.
+ *
+ * @param manager Entry point to SyntexManager.
+ */
+ public static void documentProcessorCreate(com.azure.resourcemanager.syntex.SyntexManager manager) {
+ manager
+ .documentProcessors()
+ .define("myprocessor")
+ .withRegion("westus")
+ .withExistingResourceGroup("mygroup")
+ .withTags(mapOf("additionalProp1", "string1", "additionalProp2", "string2", "additionalProp3", "string3"))
+ .withProperties(
+ new DocumentProcessorProperties()
+ .withSpoTenantUrl("https://test123.sharepoint.com")
+ .withSpoTenantId("e9bb744b-9558-4dc6-9e50-a3297e3332fa"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorDeleteSamples.java b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorDeleteSamples.java
new file mode 100644
index 000000000000..26d5d07a47fc
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorDeleteSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for DocumentProcessor Delete. */
+public final class DocumentProcessorDeleteSamples {
+ /*
+ * x-ms-original-file: specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Delete.json
+ */
+ /**
+ * Sample code: DocumentProcessor_Delete.
+ *
+ * @param manager Entry point to SyntexManager.
+ */
+ public static void documentProcessorDelete(com.azure.resourcemanager.syntex.SyntexManager manager) {
+ manager.documentProcessors().deleteByResourceGroupWithResponse("mygroup", "myprocessor", Context.NONE);
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorGetByResourceGroupSamples.java b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorGetByResourceGroupSamples.java
new file mode 100644
index 000000000000..b25a33168b64
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorGetByResourceGroupSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for DocumentProcessor GetByResourceGroup. */
+public final class DocumentProcessorGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Get.json
+ */
+ /**
+ * Sample code: DocumentProcessor_Get.
+ *
+ * @param manager Entry point to SyntexManager.
+ */
+ public static void documentProcessorGet(com.azure.resourcemanager.syntex.SyntexManager manager) {
+ manager.documentProcessors().getByResourceGroupWithResponse("mygroup", "myprocessor", Context.NONE);
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorListByResourceGroupSamples.java b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorListByResourceGroupSamples.java
new file mode 100644
index 000000000000..265cb7f995b3
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorListByResourceGroupSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for DocumentProcessor ListByResourceGroup. */
+public final class DocumentProcessorListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: DocumentProcessor_ListByResourceGroup.
+ *
+ * @param manager Entry point to SyntexManager.
+ */
+ public static void documentProcessorListByResourceGroup(com.azure.resourcemanager.syntex.SyntexManager manager) {
+ manager.documentProcessors().listByResourceGroup("mygroup", Context.NONE);
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorListSamples.java b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorListSamples.java
new file mode 100644
index 000000000000..94ded5e5077d
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorListSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for DocumentProcessor List. */
+public final class DocumentProcessorListSamples {
+ /*
+ * x-ms-original-file: specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_List.json
+ */
+ /**
+ * Sample code: DocumentProcessor_List.
+ *
+ * @param manager Entry point to SyntexManager.
+ */
+ public static void documentProcessorList(com.azure.resourcemanager.syntex.SyntexManager manager) {
+ manager.documentProcessors().list(Context.NONE);
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorUpdateSamples.java b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorUpdateSamples.java
new file mode 100644
index 000000000000..5ccec5c877c5
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/DocumentProcessorUpdateSamples.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.generated;
+
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.syntex.models.DocumentProcessorResource;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for DocumentProcessor Update. */
+public final class DocumentProcessorUpdateSamples {
+ /*
+ * x-ms-original-file: specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/DocumentProcessor_Update.json
+ */
+ /**
+ * Sample code: DocumentProcessor_Update.
+ *
+ * @param manager Entry point to SyntexManager.
+ */
+ public static void documentProcessorUpdate(com.azure.resourcemanager.syntex.SyntexManager manager) {
+ DocumentProcessorResource resource =
+ manager
+ .documentProcessors()
+ .getByResourceGroupWithResponse("mygroup", "myprocessor", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf("additionalProp1", "string4", "additionalProp2", "string5", "additionalProp3", "string6"))
+ .withSpoTenantUrl("https://test123.sharepoint.com")
+ .withSpoTenantId("e9bb744b-9558-4dc6-9e50-a3297e3332fa")
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
diff --git a/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/OperationsListSamples.java b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/OperationsListSamples.java
new file mode 100644
index 000000000000..bc8797d71f58
--- /dev/null
+++ b/sdk/syntex/azure-resourcemanager-syntex/src/samples/java/com/azure/resourcemanager/syntex/generated/OperationsListSamples.java
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.syntex.generated;
+
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/syntex/resource-manager/Microsoft.Syntex/preview/2022-09-15-preview/examples/Operations_List.json
+ */
+ /**
+ * Sample code: Operations_List.
+ *
+ * @param manager Entry point to SyntexManager.
+ */
+ public static void operationsList(com.azure.resourcemanager.syntex.SyntexManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
diff --git a/sdk/syntex/ci.yml b/sdk/syntex/ci.yml
new file mode 100644
index 000000000000..75ccc939d6a1
--- /dev/null
+++ b/sdk/syntex/ci.yml
@@ -0,0 +1,47 @@
+# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
+
+trigger:
+ branches:
+ include:
+ - main
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/syntex/ci.yml
+ - sdk/syntex/azure-resourcemanager-syntex/
+ exclude:
+ - sdk/syntex/pom.xml
+ - sdk/syntex/azure-resourcemanager-syntex/pom.xml
+
+pr:
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/syntex/ci.yml
+ - sdk/syntex/azure-resourcemanager-syntex/
+ exclude:
+ - sdk/syntex/pom.xml
+ - sdk/syntex/azure-resourcemanager-syntex/pom.xml
+
+parameters:
+ - name: release_azureresourcemanagersyntex
+ displayName: azure-resourcemanager-syntex
+ type: boolean
+ default: false
+
+extends:
+ template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: syntex
+ EnableBatchRelease: true
+ Artifacts:
+ - name: azure-resourcemanager-syntex
+ groupId: com.azure.resourcemanager
+ safeName: azureresourcemanagersyntex
+ releaseInBatch: ${{ parameters.release_azureresourcemanagersyntex }}
diff --git a/sdk/syntex/pom.xml b/sdk/syntex/pom.xml
new file mode 100644
index 000000000000..4e2604f137c4
--- /dev/null
+++ b/sdk/syntex/pom.xml
@@ -0,0 +1,15 @@
+
+
+ 4.0.0
+ com.azure
+ azure-syntex-service
+ pom
+ 1.0.0
+
+
+ azure-resourcemanager-syntex
+
+