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 EdgeActions service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the EdgeActions service API instance.
+ */
+ public EdgeActionsManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.edgeactions")
+ .append("/")
+ .append(clientVersion);
+ 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 BearerTokenAuthenticationPolicy(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 EdgeActionsManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of EdgeActions. It manages EdgeAction.
+ *
+ * @return Resource collection API of EdgeActions.
+ */
+ public EdgeActions edgeActions() {
+ if (this.edgeActions == null) {
+ this.edgeActions = new EdgeActionsImpl(clientObject.getEdgeActions(), this);
+ }
+ return edgeActions;
+ }
+
+ /**
+ * Gets the resource collection API of EdgeActionVersions. It manages EdgeActionVersion.
+ *
+ * @return Resource collection API of EdgeActionVersions.
+ */
+ public EdgeActionVersions edgeActionVersions() {
+ if (this.edgeActionVersions == null) {
+ this.edgeActionVersions = new EdgeActionVersionsImpl(clientObject.getEdgeActionVersions(), this);
+ }
+ return edgeActionVersions;
+ }
+
+ /**
+ * Gets the resource collection API of EdgeActionExecutionFilters. It manages EdgeActionExecutionFilter.
+ *
+ * @return Resource collection API of EdgeActionExecutionFilters.
+ */
+ public EdgeActionExecutionFilters edgeActionExecutionFilters() {
+ if (this.edgeActionExecutionFilters == null) {
+ this.edgeActionExecutionFilters
+ = new EdgeActionExecutionFiltersImpl(clientObject.getEdgeActionExecutionFilters(), this);
+ }
+ return edgeActionExecutionFilters;
+ }
+
+ /**
+ * Gets wrapped service client EdgeActionsManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client EdgeActionsManagementClient.
+ */
+ public EdgeActionsManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionExecutionFiltersClient.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionExecutionFiltersClient.java
new file mode 100644
index 000000000000..3865e9006b52
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionExecutionFiltersClient.java
@@ -0,0 +1,277 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionExecutionFilterInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeActionExecutionFiltersClient.
+ */
+public interface EdgeActionExecutionFiltersClient {
+ /**
+ * Get a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 EdgeActionExecutionFilter along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, Context context);
+
+ /**
+ * Get a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 EdgeActionExecutionFilter.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionExecutionFilterInner get(String resourceGroupName, String edgeActionName, String executionFilter);
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionExecutionFilterInner> beginCreate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner resource);
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionExecutionFilterInner> beginCreate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner resource, Context context);
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionExecutionFilterInner create(String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner resource);
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionExecutionFilterInner create(String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner resource, Context context);
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionExecutionFilterInner> beginUpdate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner properties);
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionExecutionFilterInner> beginUpdate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner properties, Context context);
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionExecutionFilterInner update(String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner properties);
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionExecutionFilterInner update(String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner properties, Context context);
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName,
+ String executionFilter);
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName,
+ String executionFilter, Context context);
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 edgeActionName, String executionFilter);
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String edgeActionName, String executionFilter, Context context);
+
+ /**
+ * List EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName);
+
+ /**
+ * List EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName,
+ Context context);
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionVersionsClient.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionVersionsClient.java
new file mode 100644
index 000000000000..9741462aab98
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionVersionsClient.java
@@ -0,0 +1,456 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionPropertiesInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.VersionCodeInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeActionVersionsClient.
+ */
+public interface EdgeActionVersionsClient {
+ /**
+ * Get a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 EdgeActionVersion along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String edgeActionName, String version,
+ Context context);
+
+ /**
+ * Get a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 EdgeActionVersion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionVersionInner get(String resourceGroupName, String edgeActionName, String version);
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionVersionInner> beginCreate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner resource);
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionVersionInner> beginCreate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner resource, Context context);
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionVersionInner create(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner resource);
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionVersionInner create(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner resource, Context context);
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionVersionInner> beginUpdate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner properties);
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionVersionInner> beginUpdate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner properties, Context context);
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionVersionInner update(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner properties);
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionVersionInner update(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner properties, Context context);
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName, String version);
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName, String version,
+ Context context);
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 edgeActionName, String version);
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String edgeActionName, String version, Context context);
+
+ /**
+ * List EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName);
+
+ /**
+ * List EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName,
+ Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionVersionPropertiesInner>
+ beginDeployVersionCode(String resourceGroupName, String edgeActionName, String version, VersionCodeInner body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionVersionPropertiesInner> beginDeployVersionCode(
+ String resourceGroupName, String edgeActionName, String version, VersionCodeInner body, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionVersionPropertiesInner deployVersionCode(String resourceGroupName, String edgeActionName, String version,
+ VersionCodeInner body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionVersionPropertiesInner deployVersionCode(String resourceGroupName, String edgeActionName, String version,
+ VersionCodeInner body, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VersionCodeInner> beginGetVersionCode(String resourceGroupName,
+ String edgeActionName, String version);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VersionCodeInner> beginGetVersionCode(String resourceGroupName,
+ String edgeActionName, String version, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VersionCodeInner getVersionCode(String resourceGroupName, String edgeActionName, String version);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VersionCodeInner getVersionCode(String resourceGroupName, String edgeActionName, String version, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSwapDefault(String resourceGroupName, String edgeActionName,
+ String version);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginSwapDefault(String resourceGroupName, String edgeActionName, String version,
+ Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 swapDefault(String resourceGroupName, String edgeActionName, String version);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void swapDefault(String resourceGroupName, String edgeActionName, String version, Context context);
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionsClient.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionsClient.java
new file mode 100644
index 000000000000..f638bf4192fb
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionsClient.java
@@ -0,0 +1,393 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionAttachmentResponseInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionAttachment;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeActionsClient.
+ */
+public interface EdgeActionsClient {
+ /**
+ * Get a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 EdgeAction along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String edgeActionName,
+ Context context);
+
+ /**
+ * Get a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 EdgeAction.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionInner getByResourceGroup(String resourceGroupName, String edgeActionName);
+
+ /**
+ * Create a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionInner> beginCreate(String resourceGroupName,
+ String edgeActionName, EdgeActionInner resource);
+
+ /**
+ * Create a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionInner> beginCreate(String resourceGroupName,
+ String edgeActionName, EdgeActionInner resource, Context context);
+
+ /**
+ * Create a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionInner create(String resourceGroupName, String edgeActionName, EdgeActionInner resource);
+
+ /**
+ * Create a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionInner create(String resourceGroupName, String edgeActionName, EdgeActionInner resource, Context context);
+
+ /**
+ * Update a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionInner> beginUpdate(String resourceGroupName,
+ String edgeActionName, EdgeActionInner properties);
+
+ /**
+ * Update a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionInner> beginUpdate(String resourceGroupName,
+ String edgeActionName, EdgeActionInner properties, Context context);
+
+ /**
+ * Update a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionInner update(String resourceGroupName, String edgeActionName, EdgeActionInner properties);
+
+ /**
+ * Update a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionInner update(String resourceGroupName, String edgeActionName, EdgeActionInner properties,
+ Context context);
+
+ /**
+ * Delete a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName);
+
+ /**
+ * Delete a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName, Context context);
+
+ /**
+ * Delete a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 edgeActionName);
+
+ /**
+ * Delete a EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String edgeActionName, Context context);
+
+ /**
+ * List EdgeAction resources by 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 the response of a EdgeAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List EdgeAction resources by 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 the response of a EdgeAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List EdgeAction resources by subscription ID.
+ *
+ * @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 response of a EdgeAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List EdgeAction resources by subscription 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 response of a EdgeAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionAttachmentResponseInner>
+ beginAddAttachment(String resourceGroupName, String edgeActionName, EdgeActionAttachment body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeActionAttachmentResponseInner>
+ beginAddAttachment(String resourceGroupName, String edgeActionName, EdgeActionAttachment body, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionAttachmentResponseInner addAttachment(String resourceGroupName, String edgeActionName,
+ EdgeActionAttachment body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeActionAttachmentResponseInner addAttachment(String resourceGroupName, String edgeActionName,
+ EdgeActionAttachment body, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAttachment(String resourceGroupName, String edgeActionName,
+ EdgeActionAttachment body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteAttachment(String resourceGroupName, String edgeActionName,
+ EdgeActionAttachment body, Context context);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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 deleteAttachment(String resourceGroupName, String edgeActionName, EdgeActionAttachment body);
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param body The content of the action request.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteAttachment(String resourceGroupName, String edgeActionName, EdgeActionAttachment body, Context context);
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionsManagementClient.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionsManagementClient.java
new file mode 100644
index 000000000000..bfc8afebdbdb
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/EdgeActionsManagementClient.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for EdgeActionsManagementClient class.
+ */
+public interface EdgeActionsManagementClient {
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * 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 EdgeActionsClient object to access its operations.
+ *
+ * @return the EdgeActionsClient object.
+ */
+ EdgeActionsClient getEdgeActions();
+
+ /**
+ * Gets the EdgeActionVersionsClient object to access its operations.
+ *
+ * @return the EdgeActionVersionsClient object.
+ */
+ EdgeActionVersionsClient getEdgeActionVersions();
+
+ /**
+ * Gets the EdgeActionExecutionFiltersClient object to access its operations.
+ *
+ * @return the EdgeActionExecutionFiltersClient object.
+ */
+ EdgeActionExecutionFiltersClient getEdgeActionExecutionFilters();
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionAttachmentResponseInner.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionAttachmentResponseInner.java
new file mode 100644
index 000000000000..8737fb59740e
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionAttachmentResponseInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Edge action attachment response.
+ */
+@Immutable
+public final class EdgeActionAttachmentResponseInner implements JsonSerializable {
+ /*
+ * Non changing guid to identity edge action
+ */
+ private String edgeActionId;
+
+ /**
+ * Creates an instance of EdgeActionAttachmentResponseInner class.
+ */
+ private EdgeActionAttachmentResponseInner() {
+ }
+
+ /**
+ * Get the edgeActionId property: Non changing guid to identity edge action.
+ *
+ * @return the edgeActionId value.
+ */
+ public String edgeActionId() {
+ return this.edgeActionId;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("edgeActionId", this.edgeActionId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EdgeActionAttachmentResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EdgeActionAttachmentResponseInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EdgeActionAttachmentResponseInner.
+ */
+ public static EdgeActionAttachmentResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EdgeActionAttachmentResponseInner deserializedEdgeActionAttachmentResponseInner
+ = new EdgeActionAttachmentResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("edgeActionId".equals(fieldName)) {
+ deserializedEdgeActionAttachmentResponseInner.edgeActionId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEdgeActionAttachmentResponseInner;
+ });
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionExecutionFilterInner.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionExecutionFilterInner.java
new file mode 100644
index 000000000000..d46ec54c3a72
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionExecutionFilterInner.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionExecutionFilterProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+@Fluent
+public final class EdgeActionExecutionFilterInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private EdgeActionExecutionFilterProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of EdgeActionExecutionFilterInner class.
+ */
+ public EdgeActionExecutionFilterInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public EdgeActionExecutionFilterProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the EdgeActionExecutionFilterInner object itself.
+ */
+ public EdgeActionExecutionFilterInner withProperties(EdgeActionExecutionFilterProperties 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;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeActionExecutionFilterInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeActionExecutionFilterInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EdgeActionExecutionFilterInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EdgeActionExecutionFilterInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EdgeActionExecutionFilterInner.
+ */
+ public static EdgeActionExecutionFilterInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EdgeActionExecutionFilterInner deserializedEdgeActionExecutionFilterInner
+ = new EdgeActionExecutionFilterInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEdgeActionExecutionFilterInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEdgeActionExecutionFilterInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEdgeActionExecutionFilterInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedEdgeActionExecutionFilterInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedEdgeActionExecutionFilterInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedEdgeActionExecutionFilterInner.properties
+ = EdgeActionExecutionFilterProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEdgeActionExecutionFilterInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEdgeActionExecutionFilterInner;
+ });
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionInner.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionInner.java
new file mode 100644
index 000000000000..6f7eec26c85c
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionInner.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionProperties;
+import com.azure.resourcemanager.edgeactions.models.SkuType;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+@Fluent
+public final class EdgeActionInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private EdgeActionProperties properties;
+
+ /*
+ * The sku type of the edge action
+ */
+ private SkuType sku;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of EdgeActionInner class.
+ */
+ public EdgeActionInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public EdgeActionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the EdgeActionInner object itself.
+ */
+ public EdgeActionInner withProperties(EdgeActionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The sku type of the edge action.
+ *
+ * @return the sku value.
+ */
+ public SkuType sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The sku type of the edge action.
+ *
+ * @param sku the sku value to set.
+ * @return the EdgeActionInner object itself.
+ */
+ public EdgeActionInner withSku(SkuType sku) {
+ this.sku = sku;
+ 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;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeActionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeActionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EdgeActionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EdgeActionInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EdgeActionInner.
+ */
+ public static EdgeActionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EdgeActionInner deserializedEdgeActionInner = new EdgeActionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEdgeActionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEdgeActionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEdgeActionInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedEdgeActionInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedEdgeActionInner.withTags(tags);
+ } else if ("sku".equals(fieldName)) {
+ deserializedEdgeActionInner.sku = SkuType.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedEdgeActionInner.properties = EdgeActionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEdgeActionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEdgeActionInner;
+ });
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionVersionInner.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionVersionInner.java
new file mode 100644
index 000000000000..94fe825e2057
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionVersionInner.java
@@ -0,0 +1,180 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+@Fluent
+public final class EdgeActionVersionInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private EdgeActionVersionPropertiesInner properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of EdgeActionVersionInner class.
+ */
+ public EdgeActionVersionInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public EdgeActionVersionPropertiesInner properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the EdgeActionVersionInner object itself.
+ */
+ public EdgeActionVersionInner withProperties(EdgeActionVersionPropertiesInner 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;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeActionVersionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeActionVersionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EdgeActionVersionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EdgeActionVersionInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EdgeActionVersionInner.
+ */
+ public static EdgeActionVersionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EdgeActionVersionInner deserializedEdgeActionVersionInner = new EdgeActionVersionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEdgeActionVersionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEdgeActionVersionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEdgeActionVersionInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedEdgeActionVersionInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedEdgeActionVersionInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedEdgeActionVersionInner.properties = EdgeActionVersionPropertiesInner.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEdgeActionVersionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEdgeActionVersionInner;
+ });
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionVersionPropertiesInner.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionVersionPropertiesInner.java
new file mode 100644
index 000000000000..f896902e51ab
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/EdgeActionVersionPropertiesInner.java
@@ -0,0 +1,176 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionIsDefaultVersion;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersionDeploymentType;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersionValidationStatus;
+import com.azure.resourcemanager.edgeactions.models.ProvisioningState;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+
+/**
+ * Represents an edge action version.
+ */
+@Fluent
+public final class EdgeActionVersionPropertiesInner implements JsonSerializable {
+ /*
+ * The deployment type
+ */
+ private EdgeActionVersionDeploymentType deploymentType;
+
+ /*
+ * The validation status
+ */
+ private EdgeActionVersionValidationStatus validationStatus;
+
+ /*
+ * The provisioning state
+ */
+ private ProvisioningState provisioningState;
+
+ /*
+ * The active state
+ */
+ private EdgeActionIsDefaultVersion isDefaultVersion;
+
+ /*
+ * The last update time in UTC for package update
+ */
+ private OffsetDateTime lastPackageUpdateTime;
+
+ /**
+ * Creates an instance of EdgeActionVersionPropertiesInner class.
+ */
+ public EdgeActionVersionPropertiesInner() {
+ }
+
+ /**
+ * Get the deploymentType property: The deployment type.
+ *
+ * @return the deploymentType value.
+ */
+ public EdgeActionVersionDeploymentType deploymentType() {
+ return this.deploymentType;
+ }
+
+ /**
+ * Set the deploymentType property: The deployment type.
+ *
+ * @param deploymentType the deploymentType value to set.
+ * @return the EdgeActionVersionPropertiesInner object itself.
+ */
+ public EdgeActionVersionPropertiesInner withDeploymentType(EdgeActionVersionDeploymentType deploymentType) {
+ this.deploymentType = deploymentType;
+ return this;
+ }
+
+ /**
+ * Get the validationStatus property: The validation status.
+ *
+ * @return the validationStatus value.
+ */
+ public EdgeActionVersionValidationStatus validationStatus() {
+ return this.validationStatus;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the isDefaultVersion property: The active state.
+ *
+ * @return the isDefaultVersion value.
+ */
+ public EdgeActionIsDefaultVersion isDefaultVersion() {
+ return this.isDefaultVersion;
+ }
+
+ /**
+ * Set the isDefaultVersion property: The active state.
+ *
+ * @param isDefaultVersion the isDefaultVersion value to set.
+ * @return the EdgeActionVersionPropertiesInner object itself.
+ */
+ public EdgeActionVersionPropertiesInner withIsDefaultVersion(EdgeActionIsDefaultVersion isDefaultVersion) {
+ this.isDefaultVersion = isDefaultVersion;
+ return this;
+ }
+
+ /**
+ * Get the lastPackageUpdateTime property: The last update time in UTC for package update.
+ *
+ * @return the lastPackageUpdateTime value.
+ */
+ public OffsetDateTime lastPackageUpdateTime() {
+ return this.lastPackageUpdateTime;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("deploymentType",
+ this.deploymentType == null ? null : this.deploymentType.toString());
+ jsonWriter.writeStringField("isDefaultVersion",
+ this.isDefaultVersion == null ? null : this.isDefaultVersion.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EdgeActionVersionPropertiesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EdgeActionVersionPropertiesInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EdgeActionVersionPropertiesInner.
+ */
+ public static EdgeActionVersionPropertiesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EdgeActionVersionPropertiesInner deserializedEdgeActionVersionPropertiesInner
+ = new EdgeActionVersionPropertiesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("deploymentType".equals(fieldName)) {
+ deserializedEdgeActionVersionPropertiesInner.deploymentType
+ = EdgeActionVersionDeploymentType.fromString(reader.getString());
+ } else if ("validationStatus".equals(fieldName)) {
+ deserializedEdgeActionVersionPropertiesInner.validationStatus
+ = EdgeActionVersionValidationStatus.fromString(reader.getString());
+ } else if ("isDefaultVersion".equals(fieldName)) {
+ deserializedEdgeActionVersionPropertiesInner.isDefaultVersion
+ = EdgeActionIsDefaultVersion.fromString(reader.getString());
+ } else if ("lastPackageUpdateTime".equals(fieldName)) {
+ deserializedEdgeActionVersionPropertiesInner.lastPackageUpdateTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedEdgeActionVersionPropertiesInner.provisioningState
+ = ProvisioningState.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEdgeActionVersionPropertiesInner;
+ });
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/VersionCodeInner.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/VersionCodeInner.java
new file mode 100644
index 000000000000..a13bb0da9df2
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/VersionCodeInner.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Version code information for edge action.
+ */
+@Fluent
+public final class VersionCodeInner implements JsonSerializable {
+ /*
+ * The version code deployment content
+ */
+ private String content;
+
+ /*
+ * The version code name
+ */
+ private String name;
+
+ /**
+ * Creates an instance of VersionCodeInner class.
+ */
+ public VersionCodeInner() {
+ }
+
+ /**
+ * Get the content property: The version code deployment content.
+ *
+ * @return the content value.
+ */
+ public String content() {
+ return this.content;
+ }
+
+ /**
+ * Set the content property: The version code deployment content.
+ *
+ * @param content the content value to set.
+ * @return the VersionCodeInner object itself.
+ */
+ public VersionCodeInner withContent(String content) {
+ this.content = content;
+ return this;
+ }
+
+ /**
+ * Get the name property: The version code name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The version code name.
+ *
+ * @param name the name value to set.
+ * @return the VersionCodeInner object itself.
+ */
+ public VersionCodeInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("content", this.content);
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VersionCodeInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VersionCodeInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the VersionCodeInner.
+ */
+ public static VersionCodeInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VersionCodeInner deserializedVersionCodeInner = new VersionCodeInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("content".equals(fieldName)) {
+ deserializedVersionCodeInner.content = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedVersionCodeInner.name = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVersionCodeInner;
+ });
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/package-info.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/package-info.java
new file mode 100644
index 000000000000..f64e951de29f
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/models/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the inner data models for EdgeActionsManagementClient.
+ */
+package com.azure.resourcemanager.edgeactions.fluent.models;
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/package-info.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/package-info.java
new file mode 100644
index 000000000000..f2b3b7cd976a
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/fluent/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the service clients for EdgeActionsManagementClient.
+ */
+package com.azure.resourcemanager.edgeactions.fluent;
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionAttachmentResponseImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionAttachmentResponseImpl.java
new file mode 100644
index 000000000000..84cf6f5255de
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionAttachmentResponseImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.implementation;
+
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionAttachmentResponseInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionAttachmentResponse;
+
+public final class EdgeActionAttachmentResponseImpl implements EdgeActionAttachmentResponse {
+ private EdgeActionAttachmentResponseInner innerObject;
+
+ private final com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager;
+
+ EdgeActionAttachmentResponseImpl(EdgeActionAttachmentResponseInner innerObject,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String edgeActionId() {
+ return this.innerModel().edgeActionId();
+ }
+
+ public EdgeActionAttachmentResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.edgeactions.EdgeActionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFilterImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFilterImpl.java
new file mode 100644
index 000000000000..960d14d8526a
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFilterImpl.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionExecutionFilterInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionExecutionFilter;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionExecutionFilterProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class EdgeActionExecutionFilterImpl
+ implements EdgeActionExecutionFilter, EdgeActionExecutionFilter.Definition, EdgeActionExecutionFilter.Update {
+ private EdgeActionExecutionFilterInner innerObject;
+
+ private final com.azure.resourcemanager.edgeactions.EdgeActionsManager 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 EdgeActionExecutionFilterProperties 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 EdgeActionExecutionFilterInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.edgeactions.EdgeActionsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String edgeActionName;
+
+ private String executionFilter;
+
+ public EdgeActionExecutionFilterImpl withExistingEdgeAction(String resourceGroupName, String edgeActionName) {
+ this.resourceGroupName = resourceGroupName;
+ this.edgeActionName = edgeActionName;
+ return this;
+ }
+
+ public EdgeActionExecutionFilter create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionExecutionFilters()
+ .create(resourceGroupName, edgeActionName, executionFilter, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeActionExecutionFilter create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionExecutionFilters()
+ .create(resourceGroupName, edgeActionName, executionFilter, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeActionExecutionFilterImpl(String name,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = new EdgeActionExecutionFilterInner();
+ this.serviceManager = serviceManager;
+ this.executionFilter = name;
+ }
+
+ public EdgeActionExecutionFilterImpl update() {
+ return this;
+ }
+
+ public EdgeActionExecutionFilter apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionExecutionFilters()
+ .update(resourceGroupName, edgeActionName, executionFilter, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeActionExecutionFilter apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionExecutionFilters()
+ .update(resourceGroupName, edgeActionName, executionFilter, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeActionExecutionFilterImpl(EdgeActionExecutionFilterInner innerObject,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.edgeActionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "edgeActions");
+ this.executionFilter = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "executionFilters");
+ }
+
+ public EdgeActionExecutionFilter refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionExecutionFilters()
+ .getWithResponse(resourceGroupName, edgeActionName, executionFilter, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public EdgeActionExecutionFilter refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionExecutionFilters()
+ .getWithResponse(resourceGroupName, edgeActionName, executionFilter, context)
+ .getValue();
+ return this;
+ }
+
+ public EdgeActionExecutionFilterImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public EdgeActionExecutionFilterImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public EdgeActionExecutionFilterImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public EdgeActionExecutionFilterImpl withProperties(EdgeActionExecutionFilterProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFiltersClientImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFiltersClientImpl.java
new file mode 100644
index 000000000000..631ad56f7a03
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFiltersClientImpl.java
@@ -0,0 +1,1004 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.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.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.edgeactions.fluent.EdgeActionExecutionFiltersClient;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionExecutionFilterInner;
+import com.azure.resourcemanager.edgeactions.implementation.models.EdgeActionExecutionFilterListResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeActionExecutionFiltersClient.
+ */
+public final class EdgeActionExecutionFiltersClientImpl implements EdgeActionExecutionFiltersClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final EdgeActionExecutionFiltersService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final EdgeActionsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of EdgeActionExecutionFiltersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ EdgeActionExecutionFiltersClientImpl(EdgeActionsManagementClientImpl client) {
+ this.service = RestProxy.create(EdgeActionExecutionFiltersService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for EdgeActionsManagementClientEdgeActionExecutionFilters to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "EdgeActionsManagementClientEdgeActionExecutionFilters")
+ public interface EdgeActionExecutionFiltersService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionExecutionFilterInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionExecutionFilterInner resource, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionExecutionFilterInner properties, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionExecutionFilterInner properties, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters/{executionFilter}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("executionFilter") String executionFilter,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByEdgeAction(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/executionFilters")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByEdgeActionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByEdgeActionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByEdgeActionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 EdgeActionExecutionFilter along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String edgeActionName, String executionFilter) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 EdgeActionExecutionFilter on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String edgeActionName,
+ String executionFilter) {
+ return getWithResponseAsync(resourceGroupName, edgeActionName, executionFilter)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 EdgeActionExecutionFilter along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, edgeActionName, executionFilter, accept, context);
+ }
+
+ /**
+ * Get a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 EdgeActionExecutionFilter.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionExecutionFilterInner get(String resourceGroupName, String edgeActionName, String executionFilter) {
+ return getWithResponse(resourceGroupName, edgeActionName, executionFilter, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, contentType,
+ accept, resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, contentType, accept,
+ resource, Context.NONE);
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, contentType, accept,
+ resource, context);
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, EdgeActionExecutionFilterInner> beginCreateAsync(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner resource) {
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, edgeActionName, executionFilter, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), EdgeActionExecutionFilterInner.class, EdgeActionExecutionFilterInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionExecutionFilterInner> beginCreate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner resource) {
+ Response response
+ = createWithResponse(resourceGroupName, edgeActionName, executionFilter, resource);
+ return this.client.getLroResult(response,
+ EdgeActionExecutionFilterInner.class, EdgeActionExecutionFilterInner.class, Context.NONE);
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionExecutionFilterInner> beginCreate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner resource, Context context) {
+ Response response
+ = createWithResponse(resourceGroupName, edgeActionName, executionFilter, resource, context);
+ return this.client.getLroResult(response,
+ EdgeActionExecutionFilterInner.class, EdgeActionExecutionFilterInner.class, context);
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner resource) {
+ return beginCreateAsync(resourceGroupName, edgeActionName, executionFilter, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionExecutionFilterInner create(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner resource) {
+ return beginCreate(resourceGroupName, edgeActionName, executionFilter, resource).getFinalResult();
+ }
+
+ /**
+ * Create a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionExecutionFilterInner create(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner resource, Context context) {
+ return beginCreate(resourceGroupName, edgeActionName, executionFilter, resource, context).getFinalResult();
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, contentType,
+ accept, properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, contentType, accept,
+ properties, Context.NONE);
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, contentType, accept,
+ properties, context);
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, EdgeActionExecutionFilterInner> beginUpdateAsync(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, edgeActionName, executionFilter, properties);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), EdgeActionExecutionFilterInner.class, EdgeActionExecutionFilterInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionExecutionFilterInner> beginUpdate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner properties) {
+ Response response
+ = updateWithResponse(resourceGroupName, edgeActionName, executionFilter, properties);
+ return this.client.getLroResult(response,
+ EdgeActionExecutionFilterInner.class, EdgeActionExecutionFilterInner.class, Context.NONE);
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionExecutionFilterInner> beginUpdate(
+ String resourceGroupName, String edgeActionName, String executionFilter,
+ EdgeActionExecutionFilterInner properties, Context context) {
+ Response response
+ = updateWithResponse(resourceGroupName, edgeActionName, executionFilter, properties, context);
+ return this.client.getLroResult(response,
+ EdgeActionExecutionFilterInner.class, EdgeActionExecutionFilterInner.class, context);
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner properties) {
+ return beginUpdateAsync(resourceGroupName, edgeActionName, executionFilter, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionExecutionFilterInner update(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner properties) {
+ return beginUpdate(resourceGroupName, edgeActionName, executionFilter, properties).getFinalResult();
+ }
+
+ /**
+ * Update a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionExecutionFilterInner update(String resourceGroupName, String edgeActionName,
+ String executionFilter, EdgeActionExecutionFilterInner properties, Context context) {
+ return beginUpdate(resourceGroupName, edgeActionName, executionFilter, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 edgeActionName,
+ String executionFilter) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, Context.NONE);
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, executionFilter, context);
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String edgeActionName,
+ String executionFilter) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, edgeActionName, executionFilter);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName,
+ String executionFilter) {
+ Response response = deleteWithResponse(resourceGroupName, edgeActionName, executionFilter);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName,
+ String executionFilter, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, edgeActionName, executionFilter, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 edgeActionName, String executionFilter) {
+ return beginDeleteAsync(resourceGroupName, edgeActionName, executionFilter).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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 edgeActionName, String executionFilter) {
+ beginDelete(resourceGroupName, edgeActionName, executionFilter).getFinalResult();
+ }
+
+ /**
+ * Delete a EdgeActionExecutionFilter.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param executionFilter The name of the execution filter.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String edgeActionName, String executionFilter, Context context) {
+ beginDelete(resourceGroupName, edgeActionName, executionFilter, context).getFinalResult();
+ }
+
+ /**
+ * List EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByEdgeActionSinglePageAsync(String resourceGroupName, String edgeActionName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByEdgeAction(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, 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 EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByEdgeActionAsync(String resourceGroupName,
+ String edgeActionName) {
+ return new PagedFlux<>(() -> listByEdgeActionSinglePageAsync(resourceGroupName, edgeActionName),
+ nextLink -> listByEdgeActionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionSinglePage(String resourceGroupName,
+ String edgeActionName) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionSinglePage(String resourceGroupName,
+ String edgeActionName, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByEdgeAction(String resourceGroupName,
+ String edgeActionName) {
+ return new PagedIterable<>(() -> listByEdgeActionSinglePage(resourceGroupName, edgeActionName),
+ nextLink -> listByEdgeActionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List EdgeActionExecutionFilter resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionExecutionFilter list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByEdgeAction(String resourceGroupName,
+ String edgeActionName, Context context) {
+ return new PagedIterable<>(() -> listByEdgeActionSinglePage(resourceGroupName, edgeActionName, context),
+ nextLink -> listByEdgeActionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a EdgeActionExecutionFilter list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByEdgeActionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByEdgeActionNext(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.
+ * @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 response of a EdgeActionExecutionFilter list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return 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.
+ * @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 response of a EdgeActionExecutionFilter list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionNextSinglePage(String nextLink,
+ Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFiltersImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFiltersImpl.java
new file mode 100644
index 000000000000..ecf63dc5594a
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionExecutionFiltersImpl.java
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.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.edgeactions.fluent.EdgeActionExecutionFiltersClient;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionExecutionFilterInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionExecutionFilter;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionExecutionFilters;
+
+public final class EdgeActionExecutionFiltersImpl implements EdgeActionExecutionFilters {
+ private static final ClientLogger LOGGER = new ClientLogger(EdgeActionExecutionFiltersImpl.class);
+
+ private final EdgeActionExecutionFiltersClient innerClient;
+
+ private final com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager;
+
+ public EdgeActionExecutionFiltersImpl(EdgeActionExecutionFiltersClient innerClient,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String edgeActionName,
+ String executionFilter, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, edgeActionName, executionFilter, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new EdgeActionExecutionFilterImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public EdgeActionExecutionFilter get(String resourceGroupName, String edgeActionName, String executionFilter) {
+ EdgeActionExecutionFilterInner inner
+ = this.serviceClient().get(resourceGroupName, edgeActionName, executionFilter);
+ if (inner != null) {
+ return new EdgeActionExecutionFilterImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String edgeActionName, String executionFilter) {
+ this.serviceClient().delete(resourceGroupName, edgeActionName, executionFilter);
+ }
+
+ public void delete(String resourceGroupName, String edgeActionName, String executionFilter, Context context) {
+ this.serviceClient().delete(resourceGroupName, edgeActionName, executionFilter, context);
+ }
+
+ public PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName) {
+ PagedIterable inner
+ = this.serviceClient().listByEdgeAction(resourceGroupName, edgeActionName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EdgeActionExecutionFilterImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByEdgeAction(resourceGroupName, edgeActionName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EdgeActionExecutionFilterImpl(inner1, this.manager()));
+ }
+
+ public EdgeActionExecutionFilter getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.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 edgeActionName = ResourceManagerUtils.getValueFromIdByName(id, "edgeActions");
+ if (edgeActionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeActions'.", id)));
+ }
+ String executionFilter = ResourceManagerUtils.getValueFromIdByName(id, "executionFilters");
+ if (executionFilter == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionFilters'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, edgeActionName, executionFilter, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.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 edgeActionName = ResourceManagerUtils.getValueFromIdByName(id, "edgeActions");
+ if (edgeActionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeActions'.", id)));
+ }
+ String executionFilter = ResourceManagerUtils.getValueFromIdByName(id, "executionFilters");
+ if (executionFilter == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionFilters'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, edgeActionName, executionFilter, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.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 edgeActionName = ResourceManagerUtils.getValueFromIdByName(id, "edgeActions");
+ if (edgeActionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeActions'.", id)));
+ }
+ String executionFilter = ResourceManagerUtils.getValueFromIdByName(id, "executionFilters");
+ if (executionFilter == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionFilters'.", id)));
+ }
+ this.delete(resourceGroupName, edgeActionName, executionFilter, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.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 edgeActionName = ResourceManagerUtils.getValueFromIdByName(id, "edgeActions");
+ if (edgeActionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeActions'.", id)));
+ }
+ String executionFilter = ResourceManagerUtils.getValueFromIdByName(id, "executionFilters");
+ if (executionFilter == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'executionFilters'.", id)));
+ }
+ this.delete(resourceGroupName, edgeActionName, executionFilter, context);
+ }
+
+ private EdgeActionExecutionFiltersClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.edgeactions.EdgeActionsManager manager() {
+ return this.serviceManager;
+ }
+
+ public EdgeActionExecutionFilterImpl define(String name) {
+ return new EdgeActionExecutionFilterImpl(name, this.manager());
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionImpl.java
new file mode 100644
index 000000000000..2aaa3fd3e325
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionImpl.java
@@ -0,0 +1,192 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeAction;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionAttachment;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionAttachmentResponse;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionProperties;
+import com.azure.resourcemanager.edgeactions.models.SkuType;
+import java.util.Collections;
+import java.util.Map;
+
+public final class EdgeActionImpl implements EdgeAction, EdgeAction.Definition, EdgeAction.Update {
+ private EdgeActionInner innerObject;
+
+ private final com.azure.resourcemanager.edgeactions.EdgeActionsManager 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 EdgeActionProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SkuType sku() {
+ return this.innerModel().sku();
+ }
+
+ 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 EdgeActionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.edgeactions.EdgeActionsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String edgeActionName;
+
+ public EdgeActionImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public EdgeAction create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActions()
+ .create(resourceGroupName, edgeActionName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeAction create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActions()
+ .create(resourceGroupName, edgeActionName, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeActionImpl(String name, com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = new EdgeActionInner();
+ this.serviceManager = serviceManager;
+ this.edgeActionName = name;
+ }
+
+ public EdgeActionImpl update() {
+ return this;
+ }
+
+ public EdgeAction apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActions()
+ .update(resourceGroupName, edgeActionName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeAction apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActions()
+ .update(resourceGroupName, edgeActionName, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeActionImpl(EdgeActionInner innerObject,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.edgeActionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "edgeActions");
+ }
+
+ public EdgeAction refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActions()
+ .getByResourceGroupWithResponse(resourceGroupName, edgeActionName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public EdgeAction refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActions()
+ .getByResourceGroupWithResponse(resourceGroupName, edgeActionName, context)
+ .getValue();
+ return this;
+ }
+
+ public EdgeActionAttachmentResponse addAttachment(EdgeActionAttachment body) {
+ return serviceManager.edgeActions().addAttachment(resourceGroupName, edgeActionName, body);
+ }
+
+ public EdgeActionAttachmentResponse addAttachment(EdgeActionAttachment body, Context context) {
+ return serviceManager.edgeActions().addAttachment(resourceGroupName, edgeActionName, body, context);
+ }
+
+ public void deleteAttachment(EdgeActionAttachment body) {
+ serviceManager.edgeActions().deleteAttachment(resourceGroupName, edgeActionName, body);
+ }
+
+ public void deleteAttachment(EdgeActionAttachment body, Context context) {
+ serviceManager.edgeActions().deleteAttachment(resourceGroupName, edgeActionName, body, context);
+ }
+
+ public EdgeActionImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public EdgeActionImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public EdgeActionImpl withSku(SkuType sku) {
+ this.innerModel().withSku(sku);
+ return this;
+ }
+
+ public EdgeActionImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public EdgeActionImpl withProperties(EdgeActionProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionImpl.java
new file mode 100644
index 000000000000..234ec88afd79
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionImpl.java
@@ -0,0 +1,202 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionPropertiesInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.VersionCodeInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersion;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersionProperties;
+import com.azure.resourcemanager.edgeactions.models.VersionCode;
+import java.util.Collections;
+import java.util.Map;
+
+public final class EdgeActionVersionImpl
+ implements EdgeActionVersion, EdgeActionVersion.Definition, EdgeActionVersion.Update {
+ private EdgeActionVersionInner innerObject;
+
+ private final com.azure.resourcemanager.edgeactions.EdgeActionsManager 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 EdgeActionVersionProperties properties() {
+ EdgeActionVersionPropertiesInner inner = this.innerModel().properties();
+ if (inner != null) {
+ return new EdgeActionVersionPropertiesImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ 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 EdgeActionVersionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.edgeactions.EdgeActionsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String edgeActionName;
+
+ private String version;
+
+ public EdgeActionVersionImpl withExistingEdgeAction(String resourceGroupName, String edgeActionName) {
+ this.resourceGroupName = resourceGroupName;
+ this.edgeActionName = edgeActionName;
+ return this;
+ }
+
+ public EdgeActionVersion create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionVersions()
+ .create(resourceGroupName, edgeActionName, version, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeActionVersion create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionVersions()
+ .create(resourceGroupName, edgeActionName, version, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeActionVersionImpl(String name, com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = new EdgeActionVersionInner();
+ this.serviceManager = serviceManager;
+ this.version = name;
+ }
+
+ public EdgeActionVersionImpl update() {
+ return this;
+ }
+
+ public EdgeActionVersion apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionVersions()
+ .update(resourceGroupName, edgeActionName, version, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeActionVersion apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionVersions()
+ .update(resourceGroupName, edgeActionName, version, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeActionVersionImpl(EdgeActionVersionInner innerObject,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.edgeActionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "edgeActions");
+ this.version = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions");
+ }
+
+ public EdgeActionVersion refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionVersions()
+ .getWithResponse(resourceGroupName, edgeActionName, version, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public EdgeActionVersion refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeActionVersions()
+ .getWithResponse(resourceGroupName, edgeActionName, version, context)
+ .getValue();
+ return this;
+ }
+
+ public EdgeActionVersionProperties deployVersionCode(VersionCodeInner body) {
+ return serviceManager.edgeActionVersions().deployVersionCode(resourceGroupName, edgeActionName, version, body);
+ }
+
+ public EdgeActionVersionProperties deployVersionCode(VersionCodeInner body, Context context) {
+ return serviceManager.edgeActionVersions()
+ .deployVersionCode(resourceGroupName, edgeActionName, version, body, context);
+ }
+
+ public VersionCode getVersionCode() {
+ return serviceManager.edgeActionVersions().getVersionCode(resourceGroupName, edgeActionName, version);
+ }
+
+ public VersionCode getVersionCode(Context context) {
+ return serviceManager.edgeActionVersions().getVersionCode(resourceGroupName, edgeActionName, version, context);
+ }
+
+ public void swapDefault() {
+ serviceManager.edgeActionVersions().swapDefault(resourceGroupName, edgeActionName, version);
+ }
+
+ public void swapDefault(Context context) {
+ serviceManager.edgeActionVersions().swapDefault(resourceGroupName, edgeActionName, version, context);
+ }
+
+ public EdgeActionVersionImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public EdgeActionVersionImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public EdgeActionVersionImpl withTags(Map tags) {
+ this.innerModel().withTags(tags);
+ return this;
+ }
+
+ public EdgeActionVersionImpl withProperties(EdgeActionVersionPropertiesInner properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionPropertiesImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionPropertiesImpl.java
new file mode 100644
index 000000000000..150eda2cd70c
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionPropertiesImpl.java
@@ -0,0 +1,53 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.implementation;
+
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionPropertiesInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionIsDefaultVersion;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersionDeploymentType;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersionProperties;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersionValidationStatus;
+import com.azure.resourcemanager.edgeactions.models.ProvisioningState;
+import java.time.OffsetDateTime;
+
+public final class EdgeActionVersionPropertiesImpl implements EdgeActionVersionProperties {
+ private EdgeActionVersionPropertiesInner innerObject;
+
+ private final com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager;
+
+ EdgeActionVersionPropertiesImpl(EdgeActionVersionPropertiesInner innerObject,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public EdgeActionVersionDeploymentType deploymentType() {
+ return this.innerModel().deploymentType();
+ }
+
+ public EdgeActionVersionValidationStatus validationStatus() {
+ return this.innerModel().validationStatus();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public EdgeActionIsDefaultVersion isDefaultVersion() {
+ return this.innerModel().isDefaultVersion();
+ }
+
+ public OffsetDateTime lastPackageUpdateTime() {
+ return this.innerModel().lastPackageUpdateTime();
+ }
+
+ public EdgeActionVersionPropertiesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.edgeactions.EdgeActionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionsClientImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionsClientImpl.java
new file mode 100644
index 000000000000..aec86c98e652
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionsClientImpl.java
@@ -0,0 +1,1571 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.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.Post;
+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.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.edgeactions.fluent.EdgeActionVersionsClient;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionPropertiesInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.VersionCodeInner;
+import com.azure.resourcemanager.edgeactions.implementation.models.EdgeActionVersionListResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeActionVersionsClient.
+ */
+public final class EdgeActionVersionsClientImpl implements EdgeActionVersionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final EdgeActionVersionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final EdgeActionsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of EdgeActionVersionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ EdgeActionVersionsClientImpl(EdgeActionsManagementClientImpl client) {
+ this.service = RestProxy.create(EdgeActionVersionsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for EdgeActionsManagementClientEdgeActionVersions to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "EdgeActionsManagementClientEdgeActionVersions")
+ public interface EdgeActionVersionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionVersionInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionVersionInner resource, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionVersionInner properties, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") EdgeActionVersionInner properties, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByEdgeAction(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByEdgeActionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @HeaderParam("Accept") String accept, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/deployVersionCode")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> deployVersionCode(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") VersionCodeInner body, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/deployVersionCode")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deployVersionCodeSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") VersionCodeInner body, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/getVersionCode")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> getVersionCode(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/getVersionCode")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getVersionCodeSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/swapDefault")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> swapDefault(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/edgeActions/{edgeActionName}/versions/{version}/swapDefault")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response swapDefaultSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeActionName") String edgeActionName, @PathParam("version") String version, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByEdgeActionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByEdgeActionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 EdgeActionVersion along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String edgeActionName,
+ String version) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 EdgeActionVersion on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String edgeActionName, String version) {
+ return getWithResponseAsync(resourceGroupName, edgeActionName, version)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 EdgeActionVersion along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String edgeActionName,
+ String version, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, edgeActionName, version, accept, context);
+ }
+
+ /**
+ * Get a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 EdgeActionVersion.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionVersionInner get(String resourceGroupName, String edgeActionName, String version) {
+ return getWithResponse(resourceGroupName, edgeActionName, version, Context.NONE).getValue();
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String edgeActionName,
+ String version, EdgeActionVersionInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept,
+ resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept, resource,
+ Context.NONE);
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept, resource,
+ context);
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, EdgeActionVersionInner> beginCreateAsync(
+ String resourceGroupName, String edgeActionName, String version, EdgeActionVersionInner resource) {
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, edgeActionName, version, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), EdgeActionVersionInner.class, EdgeActionVersionInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionVersionInner> beginCreate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner resource) {
+ Response response = createWithResponse(resourceGroupName, edgeActionName, version, resource);
+ return this.client.getLroResult(response,
+ EdgeActionVersionInner.class, EdgeActionVersionInner.class, Context.NONE);
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionVersionInner> beginCreate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner resource, Context context) {
+ Response response
+ = createWithResponse(resourceGroupName, edgeActionName, version, resource, context);
+ return this.client.getLroResult(response,
+ EdgeActionVersionInner.class, EdgeActionVersionInner.class, context);
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner resource) {
+ return beginCreateAsync(resourceGroupName, edgeActionName, version, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionVersionInner create(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner resource) {
+ return beginCreate(resourceGroupName, edgeActionName, version, resource).getFinalResult();
+ }
+
+ /**
+ * Create a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param resource Resource create parameters.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionVersionInner create(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner resource, Context context) {
+ return beginCreate(resourceGroupName, edgeActionName, version, resource, context).getFinalResult();
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String edgeActionName,
+ String version, EdgeActionVersionInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept,
+ properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept,
+ properties, Context.NONE);
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept,
+ properties, context);
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 PollerFlux} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, EdgeActionVersionInner> beginUpdateAsync(
+ String resourceGroupName, String edgeActionName, String version, EdgeActionVersionInner properties) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, edgeActionName, version, properties);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), EdgeActionVersionInner.class, EdgeActionVersionInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionVersionInner> beginUpdate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner properties) {
+ Response response = updateWithResponse(resourceGroupName, edgeActionName, version, properties);
+ return this.client.getLroResult(response,
+ EdgeActionVersionInner.class, EdgeActionVersionInner.class, Context.NONE);
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 SyncPoller} for polling of concrete tracked resource types can be created by aliasing this
+ * type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionVersionInner> beginUpdate(String resourceGroupName,
+ String edgeActionName, String version, EdgeActionVersionInner properties, Context context) {
+ Response response
+ = updateWithResponse(resourceGroupName, edgeActionName, version, properties, context);
+ return this.client.getLroResult(response,
+ EdgeActionVersionInner.class, EdgeActionVersionInner.class, context);
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner properties) {
+ return beginUpdateAsync(resourceGroupName, edgeActionName, version, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionVersionInner update(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner properties) {
+ return beginUpdate(resourceGroupName, edgeActionName, version, properties).getFinalResult();
+ }
+
+ /**
+ * Update a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param properties The resource properties to be updated.
+ * @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 concrete tracked resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionVersionInner update(String resourceGroupName, String edgeActionName, String version,
+ EdgeActionVersionInner properties, Context context) {
+ return beginUpdate(resourceGroupName, edgeActionName, version, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 edgeActionName,
+ String version) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String edgeActionName, String version) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, Context.NONE);
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String edgeActionName, String version,
+ Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, context);
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String edgeActionName,
+ String version) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, edgeActionName, version);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName,
+ String version) {
+ Response response = deleteWithResponse(resourceGroupName, edgeActionName, version);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String edgeActionName,
+ String version, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, edgeActionName, version, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 edgeActionName, String version) {
+ return beginDeleteAsync(resourceGroupName, edgeActionName, version).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 edgeActionName, String version) {
+ beginDelete(resourceGroupName, edgeActionName, version).getFinalResult();
+ }
+
+ /**
+ * Delete a EdgeActionVersion.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String edgeActionName, String version, Context context) {
+ beginDelete(resourceGroupName, edgeActionName, version, context).getFinalResult();
+ }
+
+ /**
+ * List EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByEdgeActionSinglePageAsync(String resourceGroupName,
+ String edgeActionName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByEdgeAction(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, 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 EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByEdgeActionAsync(String resourceGroupName, String edgeActionName) {
+ return new PagedFlux<>(() -> listByEdgeActionSinglePageAsync(resourceGroupName, edgeActionName),
+ nextLink -> listByEdgeActionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionSinglePage(String resourceGroupName,
+ String edgeActionName) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionSinglePage(String resourceGroupName,
+ String edgeActionName, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName) {
+ return new PagedIterable<>(() -> listByEdgeActionSinglePage(resourceGroupName, edgeActionName),
+ nextLink -> listByEdgeActionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List EdgeActionVersion resources by EdgeAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @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 response of a EdgeActionVersion list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByEdgeAction(String resourceGroupName, String edgeActionName,
+ Context context) {
+ return new PagedIterable<>(() -> listByEdgeActionSinglePage(resourceGroupName, edgeActionName, context),
+ nextLink -> listByEdgeActionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deployVersionCodeWithResponseAsync(String resourceGroupName,
+ String edgeActionName, String version, VersionCodeInner body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.deployVersionCode(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept, body,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deployVersionCodeWithResponse(String resourceGroupName, String edgeActionName,
+ String version, VersionCodeInner body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.deployVersionCodeSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept, body,
+ Context.NONE);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deployVersionCodeWithResponse(String resourceGroupName, String edgeActionName,
+ String version, VersionCodeInner body, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.deployVersionCodeSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, contentType, accept, body,
+ context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, EdgeActionVersionPropertiesInner>
+ beginDeployVersionCodeAsync(String resourceGroupName, String edgeActionName, String version,
+ VersionCodeInner body) {
+ Mono>> mono
+ = deployVersionCodeWithResponseAsync(resourceGroupName, edgeActionName, version, body);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), EdgeActionVersionPropertiesInner.class,
+ EdgeActionVersionPropertiesInner.class, this.client.getContext());
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionVersionPropertiesInner>
+ beginDeployVersionCode(String resourceGroupName, String edgeActionName, String version, VersionCodeInner body) {
+ Response response = deployVersionCodeWithResponse(resourceGroupName, edgeActionName, version, body);
+ return this.client.getLroResult(response,
+ EdgeActionVersionPropertiesInner.class, EdgeActionVersionPropertiesInner.class, Context.NONE);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeActionVersionPropertiesInner>
+ beginDeployVersionCode(String resourceGroupName, String edgeActionName, String version, VersionCodeInner body,
+ Context context) {
+ Response response
+ = deployVersionCodeWithResponse(resourceGroupName, edgeActionName, version, body, context);
+ return this.client.getLroResult(response,
+ EdgeActionVersionPropertiesInner.class, EdgeActionVersionPropertiesInner.class, context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deployVersionCodeAsync(String resourceGroupName,
+ String edgeActionName, String version, VersionCodeInner body) {
+ return beginDeployVersionCodeAsync(resourceGroupName, edgeActionName, version, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionVersionPropertiesInner deployVersionCode(String resourceGroupName, String edgeActionName,
+ String version, VersionCodeInner body) {
+ return beginDeployVersionCode(resourceGroupName, edgeActionName, version, body).getFinalResult();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @param body The content of the action request.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeActionVersionPropertiesInner deployVersionCode(String resourceGroupName, String edgeActionName,
+ String version, VersionCodeInner body, Context context) {
+ return beginDeployVersionCode(resourceGroupName, edgeActionName, version, body, context).getFinalResult();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> getVersionCodeWithResponseAsync(String resourceGroupName,
+ String edgeActionName, String version) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getVersionCode(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response getVersionCodeWithResponse(String resourceGroupName, String edgeActionName,
+ String version) {
+ final String accept = "application/json";
+ return service.getVersionCodeSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, accept, Context.NONE);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response getVersionCodeWithResponse(String resourceGroupName, String edgeActionName,
+ String version, Context context) {
+ final String accept = "application/json";
+ return service.getVersionCodeSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, accept, context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, VersionCodeInner>
+ beginGetVersionCodeAsync(String resourceGroupName, String edgeActionName, String version) {
+ Mono>> mono
+ = getVersionCodeWithResponseAsync(resourceGroupName, edgeActionName, version);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ VersionCodeInner.class, VersionCodeInner.class, this.client.getContext());
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, VersionCodeInner> beginGetVersionCode(String resourceGroupName,
+ String edgeActionName, String version) {
+ Response response = getVersionCodeWithResponse(resourceGroupName, edgeActionName, version);
+ return this.client.getLroResult(response, VersionCodeInner.class,
+ VersionCodeInner.class, Context.NONE);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, VersionCodeInner> beginGetVersionCode(String resourceGroupName,
+ String edgeActionName, String version, Context context) {
+ Response response = getVersionCodeWithResponse(resourceGroupName, edgeActionName, version, context);
+ return this.client.getLroResult(response, VersionCodeInner.class,
+ VersionCodeInner.class, context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getVersionCodeAsync(String resourceGroupName, String edgeActionName,
+ String version) {
+ return beginGetVersionCodeAsync(resourceGroupName, edgeActionName, version).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public VersionCodeInner getVersionCode(String resourceGroupName, String edgeActionName, String version) {
+ return beginGetVersionCode(resourceGroupName, edgeActionName, version).getFinalResult();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public VersionCodeInner getVersionCode(String resourceGroupName, String edgeActionName, String version,
+ Context context) {
+ return beginGetVersionCode(resourceGroupName, edgeActionName, version, context).getFinalResult();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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>> swapDefaultWithResponseAsync(String resourceGroupName,
+ String edgeActionName, String version) {
+ return FluxUtil
+ .withContext(context -> service.swapDefault(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response swapDefaultWithResponse(String resourceGroupName, String edgeActionName,
+ String version) {
+ return service.swapDefaultSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, Context.NONE);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response swapDefaultWithResponse(String resourceGroupName, String edgeActionName,
+ String version, Context context) {
+ return service.swapDefaultSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeActionName, version, context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginSwapDefaultAsync(String resourceGroupName, String edgeActionName,
+ String version) {
+ Mono>> mono
+ = swapDefaultWithResponseAsync(resourceGroupName, edgeActionName, version);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginSwapDefault(String resourceGroupName, String edgeActionName,
+ String version) {
+ Response response = swapDefaultWithResponse(resourceGroupName, edgeActionName, version);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginSwapDefault(String resourceGroupName, String edgeActionName,
+ String version, Context context) {
+ Response response = swapDefaultWithResponse(resourceGroupName, edgeActionName, version, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 swapDefaultAsync(String resourceGroupName, String edgeActionName, String version) {
+ return beginSwapDefaultAsync(resourceGroupName, edgeActionName, version).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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 swapDefault(String resourceGroupName, String edgeActionName, String version) {
+ beginSwapDefault(resourceGroupName, edgeActionName, version).getFinalResult();
+ }
+
+ /**
+ * A long-running resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeActionName The name of the Edge Action.
+ * @param version The name of the Edge Action version.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void swapDefault(String resourceGroupName, String edgeActionName, String version, Context context) {
+ beginSwapDefault(resourceGroupName, edgeActionName, version, context).getFinalResult();
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @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 response of a EdgeActionVersion list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByEdgeActionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByEdgeActionNext(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.
+ * @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 response of a EdgeActionVersion list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return 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.
+ * @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 response of a EdgeActionVersion list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByEdgeActionNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByEdgeActionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionsImpl.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionsImpl.java
new file mode 100644
index 000000000000..3dea0d52137f
--- /dev/null
+++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/implementation/EdgeActionVersionsImpl.java
@@ -0,0 +1,213 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.edgeactions.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.edgeactions.fluent.EdgeActionVersionsClient;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.EdgeActionVersionPropertiesInner;
+import com.azure.resourcemanager.edgeactions.fluent.models.VersionCodeInner;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersion;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersionProperties;
+import com.azure.resourcemanager.edgeactions.models.EdgeActionVersions;
+import com.azure.resourcemanager.edgeactions.models.VersionCode;
+
+public final class EdgeActionVersionsImpl implements EdgeActionVersions {
+ private static final ClientLogger LOGGER = new ClientLogger(EdgeActionVersionsImpl.class);
+
+ private final EdgeActionVersionsClient innerClient;
+
+ private final com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager;
+
+ public EdgeActionVersionsImpl(EdgeActionVersionsClient innerClient,
+ com.azure.resourcemanager.edgeactions.EdgeActionsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response