updateTagsWithResponse(
- String resourceGroupName, String resourceName, TagsResource componentTags, Context context);
-
- /**
- * Purges data in an Application Insights component by a set of user-defined filters.
- *
- * In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch
- * the execution of purge requests by sending a single command whose predicate includes all user identities that
- * require purging. Use the in operator to specify multiple identities. You should run the query prior to using for
- * a purge request to verify that the results are expected.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param body Describes the body of a request to purge data in a single table of an Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response containing operationId for a specific purge action.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ComponentPurgeResponseInner purge(String resourceGroupName, String resourceName, ComponentPurgeBody body);
-
- /**
- * Purges data in an Application Insights component by a set of user-defined filters.
- *
- *
In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch
- * the execution of purge requests by sending a single command whose predicate includes all user identities that
- * require purging. Use the in operator to specify multiple identities. You should run the query prior to using for
- * a purge request to verify that the results are expected.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param body Describes the body of a request to purge data in a single table of an Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return response containing operationId for a specific purge action.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response purgeWithResponse(
- String resourceGroupName, String resourceName, ComponentPurgeBody body, Context context);
-
- /**
- * Get status for an ongoing purge operation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param purgeId In a purge status request, this is the Id of the operation the status of which is returned.
- * @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 status for an ongoing purge operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ComponentPurgeStatusResponseInner getPurgeStatus(String resourceGroupName, String resourceName, String purgeId);
-
- /**
- * Get status for an ongoing purge operation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param purgeId In a purge status request, this is the Id of the operation the status of which is returned.
- * @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 status for an ongoing purge operation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getPurgeStatusWithResponse(
- String resourceGroupName, String resourceName, String purgeId, Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ExportConfigurationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ExportConfigurationsClient.java
deleted file mode 100644
index 47898ca481d12..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ExportConfigurationsClient.java
+++ /dev/null
@@ -1,182 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentExportConfigurationInner;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentExportRequest;
-import java.util.List;
-
-/** An instance of this class provides access to all the operations defined in ExportConfigurationsClient. */
-public interface ExportConfigurationsClient {
- /**
- * Gets a list of Continuous Export configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Continuous Export configuration of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- List list(String resourceGroupName, String resourceName);
-
- /**
- * Gets a list of Continuous Export configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Continuous Export configuration of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response> listWithResponse(
- String resourceGroupName, String resourceName, Context context);
-
- /**
- * Create a Continuous Export configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportProperties Properties that need to be specified to create a Continuous Export configuration of a
- * Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Continuous Export configurations.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- List create(
- String resourceGroupName, String resourceName, ApplicationInsightsComponentExportRequest exportProperties);
-
- /**
- * Create a Continuous Export configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportProperties Properties that need to be specified to create a Continuous Export configuration of a
- * Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Continuous Export configurations.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response> createWithResponse(
- String resourceGroupName,
- String resourceName,
- ApplicationInsightsComponentExportRequest exportProperties,
- Context context);
-
- /**
- * Delete a Continuous Export configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties that define a Continuous Export configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentExportConfigurationInner delete(
- String resourceGroupName, String resourceName, String exportId);
-
- /**
- * Delete a Continuous Export configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties that define a Continuous Export configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String resourceName, String exportId, Context context);
-
- /**
- * Get the Continuous Export configuration for this export id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Continuous Export configuration for this export id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentExportConfigurationInner get(
- String resourceGroupName, String resourceName, String exportId);
-
- /**
- * Get the Continuous Export configuration for this export id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Continuous Export configuration for this export id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String resourceName, String exportId, Context context);
-
- /**
- * Update the Continuous Export configuration for this export id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights component.
- * @param exportProperties Properties that need to be specified to update the Continuous Export configuration.
- * @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 properties that define a Continuous Export configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentExportConfigurationInner update(
- String resourceGroupName,
- String resourceName,
- String exportId,
- ApplicationInsightsComponentExportRequest exportProperties);
-
- /**
- * Update the Continuous Export configuration for this export id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights component.
- * @param exportProperties Properties that need to be specified to update the Continuous Export configuration.
- * @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 properties that define a Continuous Export configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String resourceName,
- String exportId,
- ApplicationInsightsComponentExportRequest exportProperties,
- Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/FavoritesClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/FavoritesClient.java
deleted file mode 100644
index 97b97695f1bd1..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/FavoritesClient.java
+++ /dev/null
@@ -1,198 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentFavoriteInner;
-import com.azure.resourcemanager.applicationinsights.models.FavoriteSourceType;
-import com.azure.resourcemanager.applicationinsights.models.FavoriteType;
-import java.util.List;
-
-/** An instance of this class provides access to all the operations defined in FavoritesClient. */
-public interface FavoritesClient {
- /**
- * Gets a list of favorites defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of favorites defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- List list(String resourceGroupName, String resourceName);
-
- /**
- * Gets a list of favorites defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteType The type of favorite. Value can be either shared or user.
- * @param sourceType Source type of favorite to return. When left out, the source type defaults to 'other' (not
- * present in this enum).
- * @param canFetchContent Flag indicating whether or not to return the full content for each applicable favorite. If
- * false, only return summary content for favorites.
- * @param tags Tags that must be present on each favorite returned.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of favorites defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response> listWithResponse(
- String resourceGroupName,
- String resourceName,
- FavoriteType favoriteType,
- FavoriteSourceType sourceType,
- Boolean canFetchContent,
- List tags,
- Context context);
-
- /**
- * Get a single favorite by its FavoriteId, defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single favorite by its FavoriteId, defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentFavoriteInner get(String resourceGroupName, String resourceName, String favoriteId);
-
- /**
- * Get a single favorite by its FavoriteId, defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single favorite by its FavoriteId, defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String resourceName, String favoriteId, Context context);
-
- /**
- * Adds a new favorites to an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @param favoriteProperties Properties that need to be specified to create a new favorite and add it to an
- * Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties that define a favorite that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentFavoriteInner add(
- String resourceGroupName,
- String resourceName,
- String favoriteId,
- ApplicationInsightsComponentFavoriteInner favoriteProperties);
-
- /**
- * Adds a new favorites to an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @param favoriteProperties Properties that need to be specified to create a new favorite and add it to an
- * Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties that define a favorite that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response addWithResponse(
- String resourceGroupName,
- String resourceName,
- String favoriteId,
- ApplicationInsightsComponentFavoriteInner favoriteProperties,
- Context context);
-
- /**
- * Updates a favorite that has already been added to an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @param favoriteProperties Properties that need to be specified to update the existing favorite.
- * @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 properties that define a favorite that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentFavoriteInner update(
- String resourceGroupName,
- String resourceName,
- String favoriteId,
- ApplicationInsightsComponentFavoriteInner favoriteProperties);
-
- /**
- * Updates a favorite that has already been added to an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @param favoriteProperties Properties that need to be specified to update the existing favorite.
- * @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 properties that define a favorite that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String resourceName,
- String favoriteId,
- ApplicationInsightsComponentFavoriteInner favoriteProperties,
- Context context);
-
- /**
- * Remove a favorite that is associated to an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceName, String favoriteId);
-
- /**
- * Remove a favorite that is associated to an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param favoriteId The Id of a specific favorite defined in the Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String resourceName, String favoriteId, Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java
deleted file mode 100644
index 46834ff927d30..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java
+++ /dev/null
@@ -1,219 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.MyWorkbookInner;
-import com.azure.resourcemanager.applicationinsights.models.CategoryType;
-import java.util.List;
-
-/** An instance of this class provides access to all the operations defined in MyWorkbooksClient. */
-public interface MyWorkbooksClient {
- /**
- * Get all private workbooks defined within a specified resource group and category.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param category Category of workbook to return.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category);
-
- /**
- * Get all private workbooks defined within a specified resource group and category.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param category Category of workbook to return.
- * @param tags Tags presents on each workbook returned.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
- * false, only return summary content for workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(
- String resourceGroupName,
- CategoryType category,
- List tags,
- String sourceId,
- Boolean canFetchContent,
- Context context);
-
- /**
- * Get all private workbooks defined within a specified subscription and category.
- *
- * @param category Category of workbook to return.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(CategoryType category);
-
- /**
- * Get all private workbooks defined within a specified subscription and category.
- *
- * @param category Category of workbook to return.
- * @param tags Tags presents on each workbook returned.
- * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
- * false, only return summary content for workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- CategoryType category, List tags, Boolean canFetchContent, Context context);
-
- /**
- * Get a single private workbook by its resourceName.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single private workbook by its resourceName.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MyWorkbookInner getByResourceGroup(String resourceGroupName, String resourceName);
-
- /**
- * Get a single private workbook by its resourceName.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single private workbook by its resourceName.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String resourceName, Context context);
-
- /**
- * Delete a private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceName);
-
- /**
- * Delete a private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String resourceName, Context context);
-
- /**
- * Create a new private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MyWorkbookInner createOrUpdate(String resourceGroupName, String resourceName, MyWorkbookInner workbookProperties);
-
- /**
- * Create a new private workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String resourceName,
- MyWorkbookInner workbookProperties,
- String sourceId,
- Context context);
-
- /**
- * Updates a private workbook that has already been added.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MyWorkbookInner update(String resourceGroupName, String resourceName, MyWorkbookInner workbookProperties);
-
- /**
- * Updates a private workbook that has already been added.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new private workbook.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights private workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String resourceName,
- MyWorkbookInner workbookProperties,
- String sourceId,
- Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/OperationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/OperationsClient.java
deleted file mode 100644
index cf11e5eb39881..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/OperationsClient.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.OperationInner;
-
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
-public interface OperationsClient {
- /**
- * Lists all of the available insights REST API operations.
- *
- * @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 result of the request to list Azure Workbooks operations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Lists all of the available insights REST API operations.
- *
- * @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 result of the request to list Azure Workbooks operations.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ProactiveDetectionConfigurationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ProactiveDetectionConfigurationsClient.java
deleted file mode 100644
index 389d5008928fa..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ProactiveDetectionConfigurationsClient.java
+++ /dev/null
@@ -1,123 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentProactiveDetectionConfigurationInner;
-import java.util.List;
-
-/**
- * An instance of this class provides access to all the operations defined in ProactiveDetectionConfigurationsClient.
- */
-public interface ProactiveDetectionConfigurationsClient {
- /**
- * Gets a list of ProactiveDetection configurations of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of ProactiveDetection configurations of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- List list(
- String resourceGroupName, String resourceName);
-
- /**
- * Gets a list of ProactiveDetection configurations of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of ProactiveDetection configurations of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response> listWithResponse(
- String resourceGroupName, String resourceName, Context context);
-
- /**
- * Get the ProactiveDetection configuration for this configuration id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application Insights
- * component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the ProactiveDetection configuration for this configuration id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentProactiveDetectionConfigurationInner get(
- String resourceGroupName, String resourceName, String configurationId);
-
- /**
- * Get the ProactiveDetection configuration for this configuration id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application Insights
- * component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the ProactiveDetection configuration for this configuration id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String resourceName, String configurationId, Context context);
-
- /**
- * Update the ProactiveDetection configuration for this configuration id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application Insights
- * component.
- * @param proactiveDetectionProperties Properties that need to be specified to update the ProactiveDetection
- * configuration.
- * @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 properties that define a ProactiveDetection configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentProactiveDetectionConfigurationInner update(
- String resourceGroupName,
- String resourceName,
- String configurationId,
- ApplicationInsightsComponentProactiveDetectionConfigurationInner proactiveDetectionProperties);
-
- /**
- * Update the ProactiveDetection configuration for this configuration id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application Insights
- * component.
- * @param proactiveDetectionProperties Properties that need to be specified to update the ProactiveDetection
- * configuration.
- * @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 properties that define a ProactiveDetection configuration.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String resourceName,
- String configurationId,
- ApplicationInsightsComponentProactiveDetectionConfigurationInner proactiveDetectionProperties,
- Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestLocationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestLocationsClient.java
deleted file mode 100644
index 1674989efa788..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestLocationsClient.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentWebTestLocationInner;
-
-/** An instance of this class provides access to all the operations defined in WebTestLocationsClient. */
-public interface WebTestLocationsClient {
- /**
- * Gets a list of web test locations available to this Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of web test locations available to this Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String resourceName);
-
- /**
- * Gets a list of web test locations available to this Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of web test locations available to this Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- String resourceGroupName, String resourceName, Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestsClient.java
deleted file mode 100644
index ee97775978a5c..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestsClient.java
+++ /dev/null
@@ -1,206 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.WebTestInner;
-import com.azure.resourcemanager.applicationinsights.models.TagsResource;
-
-/** An instance of this class provides access to all the operations defined in WebTestsClient. */
-public interface WebTestsClient {
- /**
- * Get all Application Insights web tests defined within a specified 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 all Application Insights web tests defined within a specified resource group.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Get all Application Insights web tests defined within a specified 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 all Application Insights web tests defined within a specified resource group.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * Get a specific Application Insights web test definition.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific Application Insights web test definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WebTestInner getByResourceGroup(String resourceGroupName, String webTestName);
-
- /**
- * Get a specific Application Insights web test definition.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific Application Insights web test definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String webTestName, Context context);
-
- /**
- * Creates or updates an Application Insights web test definition.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @param webTestDefinition Properties that need to be specified to create or update an Application Insights web
- * test definition.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights web test definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WebTestInner createOrUpdate(String resourceGroupName, String webTestName, WebTestInner webTestDefinition);
-
- /**
- * Creates or updates an Application Insights web test definition.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @param webTestDefinition Properties that need to be specified to create or update an Application Insights web
- * test definition.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights web test definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String webTestName, WebTestInner webTestDefinition, Context context);
-
- /**
- * Creates or updates an Application Insights web test definition.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @param webTestTags Updated tag information to set into the web test instance.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights web test definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WebTestInner updateTags(String resourceGroupName, String webTestName, TagsResource webTestTags);
-
- /**
- * Creates or updates an Application Insights web test definition.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @param webTestTags Updated tag information to set into the web test instance.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights web test definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateTagsWithResponse(
- String resourceGroupName, String webTestName, TagsResource webTestTags, Context context);
-
- /**
- * Deletes an Application Insights web test.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String webTestName);
-
- /**
- * Deletes an Application Insights web test.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param webTestName The name of the Application Insights webtest resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String webTestName, Context context);
-
- /**
- * Get all Application Insights web test alerts definitions within a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Application Insights web test alerts definitions within a subscription.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Get all Application Insights web test alerts definitions within a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Application Insights web test alerts definitions within a subscription.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Get all Application Insights web tests defined for the specified component.
- *
- * @param componentName The name of the Application Insights component resource.
- * @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 all Application Insights web tests defined for the specified component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByComponent(String componentName, String resourceGroupName);
-
- /**
- * Get all Application Insights web tests defined for the specified component.
- *
- * @param componentName The name of the Application Insights component resource.
- * @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 all Application Insights web tests defined for the specified component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByComponent(String componentName, String resourceGroupName, Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkItemConfigurationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkItemConfigurationsClient.java
deleted file mode 100644
index 18f5f19be498b..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkItemConfigurationsClient.java
+++ /dev/null
@@ -1,216 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.WorkItemConfigurationInner;
-import com.azure.resourcemanager.applicationinsights.models.WorkItemCreateConfiguration;
-
-/** An instance of this class provides access to all the operations defined in WorkItemConfigurationsClient. */
-public interface WorkItemConfigurationsClient {
- /**
- * Gets the list work item configurations that exist for the application.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkItemConfigurationErrorException thrown if the
- * request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String resourceName);
-
- /**
- * Gets the list work item configurations that exist for the application.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkItemConfigurationErrorException thrown if the
- * request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String resourceName, Context context);
-
- /**
- * Create a work item configuration for an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigurationProperties Properties that need to be specified to create a work item configuration
- * of a Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return work item configuration associated with an application insights resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkItemConfigurationInner create(
- String resourceGroupName, String resourceName, WorkItemCreateConfiguration workItemConfigurationProperties);
-
- /**
- * Create a work item configuration for an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigurationProperties Properties that need to be specified to create a work item configuration
- * of a Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return work item configuration associated with an application insights resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceGroupName,
- String resourceName,
- WorkItemCreateConfiguration workItemConfigurationProperties,
- Context context);
-
- /**
- * Gets default work item configurations that exist for the application.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.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 default work item configurations that exist for the application.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkItemConfigurationInner getDefault(String resourceGroupName, String resourceName);
-
- /**
- * Gets default work item configurations that exist for the application.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.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 default work item configurations that exist for the application.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getDefaultWithResponse(
- String resourceGroupName, String resourceName, Context context);
-
- /**
- * Delete a work item configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigId The unique work item configuration Id. This can be either friendly name of connector as
- * defined in connector configuration.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceName, String workItemConfigId);
-
- /**
- * Delete a work item configuration of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigId The unique work item configuration Id. This can be either friendly name of connector as
- * defined in connector configuration.
- * @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)
- Response deleteWithResponse(
- String resourceGroupName, String resourceName, String workItemConfigId, Context context);
-
- /**
- * Gets specified work item configuration for an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigId The unique work item configuration Id. This can be either friendly name of connector as
- * defined in connector configuration.
- * @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 specified work item configuration for an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkItemConfigurationInner getItem(String resourceGroupName, String resourceName, String workItemConfigId);
-
- /**
- * Gets specified work item configuration for an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigId The unique work item configuration Id. This can be either friendly name of connector as
- * defined in connector configuration.
- * @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 specified work item configuration for an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getItemWithResponse(
- String resourceGroupName, String resourceName, String workItemConfigId, Context context);
-
- /**
- * Update a work item configuration for an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigId The unique work item configuration Id. This can be either friendly name of connector as
- * defined in connector configuration.
- * @param workItemConfigurationProperties Properties that need to be specified to update a work item configuration
- * for this Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return work item configuration associated with an application insights resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkItemConfigurationInner updateItem(
- String resourceGroupName,
- String resourceName,
- String workItemConfigId,
- WorkItemCreateConfiguration workItemConfigurationProperties);
-
- /**
- * Update a work item configuration for an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workItemConfigId The unique work item configuration Id. This can be either friendly name of connector as
- * defined in connector configuration.
- * @param workItemConfigurationProperties Properties that need to be specified to update a work item configuration
- * for this Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return work item configuration associated with an application insights resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateItemWithResponse(
- String resourceGroupName,
- String resourceName,
- String workItemConfigId,
- WorkItemCreateConfiguration workItemConfigurationProperties,
- Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApiKeysClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
similarity index 58%
rename from sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApiKeysClient.java
rename to sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
index f4bc9adbec930..b78ea25bcae81 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApiKeysClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
@@ -9,129 +9,153 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentApiKeyInner;
-import com.azure.resourcemanager.applicationinsights.models.ApiKeyRequest;
+import com.azure.resourcemanager.applicationinsights.fluent.models.WorkbookTemplateInner;
+import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateUpdateParameters;
-/** An instance of this class provides access to all the operations defined in ApiKeysClient. */
-public interface ApiKeysClient {
+/** An instance of this class provides access to all the operations defined in WorkbookTemplatesClient. */
+public interface WorkbookTemplatesClient {
/**
- * Gets a list of API keys of an Application Insights component.
+ * Get all Workbook templates defined within a specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
+ * @return all Workbook templates defined within a specified resource group.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String resourceName);
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Gets a list of API keys of an Application Insights component.
+ * Get all Workbook templates defined within a specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
+ * @return all Workbook templates defined within a specified resource group.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Get a single workbook template by its resourceName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 single workbook template by its resourceName.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkbookTemplateInner getByResourceGroup(String resourceGroupName, String resourceName);
+
+ /**
+ * Get a single workbook template by its resourceName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.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 single workbook template by its resourceName.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
String resourceGroupName, String resourceName, Context context);
/**
- * Create an API Key of an Application Insights component.
+ * Delete a workbook template.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
- * @param apiKeyProperties Properties that need to be specified to create an API key of a Application Insights
- * component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties that define an API key of an Application Insights Component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentApiKeyInner create(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties);
+ void delete(String resourceGroupName, String resourceName);
/**
- * Create an API Key of an Application Insights component.
+ * Delete a workbook template.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
- * @param apiKeyProperties Properties that need to be specified to create an API key of a Application Insights
- * component.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return properties that define an API key of an Application Insights Component.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties, Context context);
+ Response deleteWithResponse(String resourceGroupName, String resourceName, Context context);
/**
- * Delete an API Key of an Application Insights component.
+ * Create a new workbook template.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
+ * @param workbookTemplateProperties Properties that need to be specified to create a new workbook.
* @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 properties that define an API key of an Application Insights Component.
+ * @return an Application Insights workbook template definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentApiKeyInner delete(String resourceGroupName, String resourceName, String keyId);
+ WorkbookTemplateInner createOrUpdate(
+ String resourceGroupName, String resourceName, WorkbookTemplateInner workbookTemplateProperties);
/**
- * Delete an API Key of an Application Insights component.
+ * Create a new workbook template.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
+ * @param workbookTemplateProperties Properties that need to be specified to create a new workbook.
* @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 properties that define an API key of an Application Insights Component.
+ * @return an Application Insights workbook template definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String resourceName, String keyId, Context context);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String resourceName,
+ WorkbookTemplateInner workbookTemplateProperties,
+ Context context);
/**
- * Get the API Key for this key id.
+ * Updates a workbook template that has already been added.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the API Key for this key id.
+ * @return an Application Insights workbook template definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentApiKeyInner get(String resourceGroupName, String resourceName, String keyId);
+ WorkbookTemplateInner update(String resourceGroupName, String resourceName);
/**
- * Get the API Key for this key id.
+ * Updates a workbook template that has already been added.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
+ * @param workbookTemplateUpdateParameters Properties that need to be specified to patch a workbook template.
* @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 API Key for this key id.
+ * @return an Application Insights workbook template definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String resourceName, String keyId, Context context);
+ Response updateWithResponse(
+ String resourceGroupName,
+ String resourceName,
+ WorkbookTemplateUpdateParameters workbookTemplateUpdateParameters,
+ Context context);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
deleted file mode 100644
index 0d76cb25e105d..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
+++ /dev/null
@@ -1,219 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.applicationinsights.fluent.models.WorkbookInner;
-import com.azure.resourcemanager.applicationinsights.models.CategoryType;
-import com.azure.resourcemanager.applicationinsights.models.WorkbookUpdateParameters;
-import java.util.List;
-
-/** An instance of this class provides access to all the operations defined in WorkbooksClient. */
-public interface WorkbooksClient {
- /**
- * Get all private workbooks defined within a specified subscription and category.
- *
- * @param category Category of workbook to return.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(CategoryType category);
-
- /**
- * Get all private workbooks defined within a specified subscription and category.
- *
- * @param category Category of workbook to return.
- * @param tags Tags presents on each workbook returned.
- * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
- * false, only return summary content for workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(
- CategoryType category, List tags, Boolean canFetchContent, Context context);
-
- /**
- * Get all Workbooks defined within a specified resource group and category.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param category Category of workbook to return.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category);
-
- /**
- * Get all Workbooks defined within a specified resource group and category.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param category Category of workbook to return.
- * @param tags Tags presents on each workbook returned.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
- * false, only return summary content for workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(
- String resourceGroupName,
- CategoryType category,
- List tags,
- String sourceId,
- Boolean canFetchContent,
- Context context);
-
- /**
- * Get a single workbook by its resourceName.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single workbook by its resourceName.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookInner getByResourceGroup(String resourceGroupName, String resourceName);
-
- /**
- * Get a single workbook by its resourceName.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single workbook by its resourceName.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String resourceName, Context context);
-
- /**
- * Delete a workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceName);
-
- /**
- * Delete a workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException 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)
- Response deleteWithResponse(String resourceGroupName, String resourceName, Context context);
-
- /**
- * Create a new workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new workbook.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookInner createOrUpdate(String resourceGroupName, String resourceName, WorkbookInner workbookProperties);
-
- /**
- * Create a new workbook.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param workbookProperties Properties that need to be specified to create a new workbook.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName,
- String resourceName,
- WorkbookInner workbookProperties,
- String sourceId,
- Context context);
-
- /**
- * Updates a workbook that has already been added.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookInner update(String resourceGroupName, String resourceName);
-
- /**
- * Updates a workbook that has already been added.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param sourceId Azure Resource Id that will fetch all linked workbooks.
- * @param workbookUpdateParameters Properties that need to be specified to create a new workbook.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorException thrown if the request is
- * rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Application Insights workbook definition.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String resourceName,
- String sourceId,
- WorkbookUpdateParameters workbookUpdateParameters,
- Context context);
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/AnnotationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/AnnotationInner.java
deleted file mode 100644
index 860531512953f..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/AnnotationInner.java
+++ /dev/null
@@ -1,181 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-
-/** Annotation associated with an application insights resource. */
-@Fluent
-public final class AnnotationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AnnotationInner.class);
-
- /*
- * Name of annotation
- */
- @JsonProperty(value = "AnnotationName")
- private String annotationName;
-
- /*
- * Category of annotation, free form
- */
- @JsonProperty(value = "Category")
- private String category;
-
- /*
- * Time when event occurred
- */
- @JsonProperty(value = "EventTime")
- private OffsetDateTime eventTime;
-
- /*
- * Unique Id for annotation
- */
- @JsonProperty(value = "Id")
- private String id;
-
- /*
- * Serialized JSON object for detailed properties
- */
- @JsonProperty(value = "Properties")
- private String properties;
-
- /*
- * Related parent annotation if any
- */
- @JsonProperty(value = "RelatedAnnotation")
- private String relatedAnnotation;
-
- /**
- * Get the annotationName property: Name of annotation.
- *
- * @return the annotationName value.
- */
- public String annotationName() {
- return this.annotationName;
- }
-
- /**
- * Set the annotationName property: Name of annotation.
- *
- * @param annotationName the annotationName value to set.
- * @return the AnnotationInner object itself.
- */
- public AnnotationInner withAnnotationName(String annotationName) {
- this.annotationName = annotationName;
- return this;
- }
-
- /**
- * Get the category property: Category of annotation, free form.
- *
- * @return the category value.
- */
- public String category() {
- return this.category;
- }
-
- /**
- * Set the category property: Category of annotation, free form.
- *
- * @param category the category value to set.
- * @return the AnnotationInner object itself.
- */
- public AnnotationInner withCategory(String category) {
- this.category = category;
- return this;
- }
-
- /**
- * Get the eventTime property: Time when event occurred.
- *
- * @return the eventTime value.
- */
- public OffsetDateTime eventTime() {
- return this.eventTime;
- }
-
- /**
- * Set the eventTime property: Time when event occurred.
- *
- * @param eventTime the eventTime value to set.
- * @return the AnnotationInner object itself.
- */
- public AnnotationInner withEventTime(OffsetDateTime eventTime) {
- this.eventTime = eventTime;
- return this;
- }
-
- /**
- * Get the id property: Unique Id for annotation.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Set the id property: Unique Id for annotation.
- *
- * @param id the id value to set.
- * @return the AnnotationInner object itself.
- */
- public AnnotationInner withId(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Get the properties property: Serialized JSON object for detailed properties.
- *
- * @return the properties value.
- */
- public String properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: Serialized JSON object for detailed properties.
- *
- * @param properties the properties value to set.
- * @return the AnnotationInner object itself.
- */
- public AnnotationInner withProperties(String properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Get the relatedAnnotation property: Related parent annotation if any.
- *
- * @return the relatedAnnotation value.
- */
- public String relatedAnnotation() {
- return this.relatedAnnotation;
- }
-
- /**
- * Set the relatedAnnotation property: Related parent annotation if any.
- *
- * @param relatedAnnotation the relatedAnnotation value to set.
- * @return the AnnotationInner object itself.
- */
- public AnnotationInner withRelatedAnnotation(String relatedAnnotation) {
- this.relatedAnnotation = relatedAnnotation;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAnalyticsItemInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAnalyticsItemInner.java
deleted file mode 100644
index 7874a1f736512..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAnalyticsItemInner.java
+++ /dev/null
@@ -1,242 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentAnalyticsItemProperties;
-import com.azure.resourcemanager.applicationinsights.models.ItemScope;
-import com.azure.resourcemanager.applicationinsights.models.ItemType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Properties that define an Analytics item that is associated to an Application Insights component. */
-@Fluent
-public final class ApplicationInsightsComponentAnalyticsItemInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentAnalyticsItemInner.class);
-
- /*
- * Internally assigned unique id of the item definition.
- */
- @JsonProperty(value = "Id")
- private String id;
-
- /*
- * The user-defined name of the item.
- */
- @JsonProperty(value = "Name")
- private String name;
-
- /*
- * The content of this item
- */
- @JsonProperty(value = "Content")
- private String content;
-
- /*
- * This instance's version of the data model. This can change as new
- * features are added.
- */
- @JsonProperty(value = "Version", access = JsonProperty.Access.WRITE_ONLY)
- private String version;
-
- /*
- * Enum indicating if this item definition is owned by a specific user or
- * is shared between all users with access to the Application Insights
- * component.
- */
- @JsonProperty(value = "Scope")
- private ItemScope scope;
-
- /*
- * Enum indicating the type of the Analytics item.
- */
- @JsonProperty(value = "Type")
- private ItemType type;
-
- /*
- * Date and time in UTC when this item was created.
- */
- @JsonProperty(value = "TimeCreated", access = JsonProperty.Access.WRITE_ONLY)
- private String timeCreated;
-
- /*
- * Date and time in UTC of the last modification that was made to this
- * item.
- */
- @JsonProperty(value = "TimeModified", access = JsonProperty.Access.WRITE_ONLY)
- private String timeModified;
-
- /*
- * A set of properties that can be defined in the context of a specific
- * item type. Each type may have its own properties.
- */
- @JsonProperty(value = "Properties")
- private ApplicationInsightsComponentAnalyticsItemProperties properties;
-
- /**
- * Get the id property: Internally assigned unique id of the item definition.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Set the id property: Internally assigned unique id of the item definition.
- *
- * @param id the id value to set.
- * @return the ApplicationInsightsComponentAnalyticsItemInner object itself.
- */
- public ApplicationInsightsComponentAnalyticsItemInner withId(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Get the name property: The user-defined name of the item.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The user-defined name of the item.
- *
- * @param name the name value to set.
- * @return the ApplicationInsightsComponentAnalyticsItemInner object itself.
- */
- public ApplicationInsightsComponentAnalyticsItemInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the content property: The content of this item.
- *
- * @return the content value.
- */
- public String content() {
- return this.content;
- }
-
- /**
- * Set the content property: The content of this item.
- *
- * @param content the content value to set.
- * @return the ApplicationInsightsComponentAnalyticsItemInner object itself.
- */
- public ApplicationInsightsComponentAnalyticsItemInner withContent(String content) {
- this.content = content;
- return this;
- }
-
- /**
- * Get the version property: This instance's version of the data model. This can change as new features are added.
- *
- * @return the version value.
- */
- public String version() {
- return this.version;
- }
-
- /**
- * Get the scope property: Enum indicating if this item definition is owned by a specific user or is shared between
- * all users with access to the Application Insights component.
- *
- * @return the scope value.
- */
- public ItemScope scope() {
- return this.scope;
- }
-
- /**
- * Set the scope property: Enum indicating if this item definition is owned by a specific user or is shared between
- * all users with access to the Application Insights component.
- *
- * @param scope the scope value to set.
- * @return the ApplicationInsightsComponentAnalyticsItemInner object itself.
- */
- public ApplicationInsightsComponentAnalyticsItemInner withScope(ItemScope scope) {
- this.scope = scope;
- return this;
- }
-
- /**
- * Get the type property: Enum indicating the type of the Analytics item.
- *
- * @return the type value.
- */
- public ItemType type() {
- return this.type;
- }
-
- /**
- * Set the type property: Enum indicating the type of the Analytics item.
- *
- * @param type the type value to set.
- * @return the ApplicationInsightsComponentAnalyticsItemInner object itself.
- */
- public ApplicationInsightsComponentAnalyticsItemInner withType(ItemType type) {
- this.type = type;
- return this;
- }
-
- /**
- * Get the timeCreated property: Date and time in UTC when this item was created.
- *
- * @return the timeCreated value.
- */
- public String timeCreated() {
- return this.timeCreated;
- }
-
- /**
- * Get the timeModified property: Date and time in UTC of the last modification that was made to this item.
- *
- * @return the timeModified value.
- */
- public String timeModified() {
- return this.timeModified;
- }
-
- /**
- * Get the properties property: A set of properties that can be defined in the context of a specific item type. Each
- * type may have its own properties.
- *
- * @return the properties value.
- */
- public ApplicationInsightsComponentAnalyticsItemProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: A set of properties that can be defined in the context of a specific item type. Each
- * type may have its own properties.
- *
- * @param properties the properties value to set.
- * @return the ApplicationInsightsComponentAnalyticsItemInner object itself.
- */
- public ApplicationInsightsComponentAnalyticsItemInner withProperties(
- ApplicationInsightsComponentAnalyticsItemProperties properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentApiKeyInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentApiKeyInner.java
deleted file mode 100644
index 76745f707cb29..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentApiKeyInner.java
+++ /dev/null
@@ -1,162 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Properties that define an API key of an Application Insights Component. */
-@Fluent
-public final class ApplicationInsightsComponentApiKeyInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentApiKeyInner.class);
-
- /*
- * The unique ID of the API key inside an Application Insights component.
- * It is auto generated when the API key is created.
- */
- @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
- private String id;
-
- /*
- * The API key value. It will be only return once when the API Key was
- * created.
- */
- @JsonProperty(value = "apiKey", access = JsonProperty.Access.WRITE_ONLY)
- private String apiKey;
-
- /*
- * The create date of this API key.
- */
- @JsonProperty(value = "createdDate")
- private String createdDate;
-
- /*
- * The name of the API key.
- */
- @JsonProperty(value = "name")
- private String name;
-
- /*
- * The read access rights of this API Key.
- */
- @JsonProperty(value = "linkedReadProperties")
- private List linkedReadProperties;
-
- /*
- * The write access rights of this API Key.
- */
- @JsonProperty(value = "linkedWriteProperties")
- private List linkedWriteProperties;
-
- /**
- * Get the id property: The unique ID of the API key inside an Application Insights component. It is auto generated
- * when the API key is created.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Get the apiKey property: The API key value. It will be only return once when the API Key was created.
- *
- * @return the apiKey value.
- */
- public String apiKey() {
- return this.apiKey;
- }
-
- /**
- * Get the createdDate property: The create date of this API key.
- *
- * @return the createdDate value.
- */
- public String createdDate() {
- return this.createdDate;
- }
-
- /**
- * Set the createdDate property: The create date of this API key.
- *
- * @param createdDate the createdDate value to set.
- * @return the ApplicationInsightsComponentApiKeyInner object itself.
- */
- public ApplicationInsightsComponentApiKeyInner withCreatedDate(String createdDate) {
- this.createdDate = createdDate;
- return this;
- }
-
- /**
- * Get the name property: The name of the API key.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The name of the API key.
- *
- * @param name the name value to set.
- * @return the ApplicationInsightsComponentApiKeyInner object itself.
- */
- public ApplicationInsightsComponentApiKeyInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the linkedReadProperties property: The read access rights of this API Key.
- *
- * @return the linkedReadProperties value.
- */
- public List linkedReadProperties() {
- return this.linkedReadProperties;
- }
-
- /**
- * Set the linkedReadProperties property: The read access rights of this API Key.
- *
- * @param linkedReadProperties the linkedReadProperties value to set.
- * @return the ApplicationInsightsComponentApiKeyInner object itself.
- */
- public ApplicationInsightsComponentApiKeyInner withLinkedReadProperties(List linkedReadProperties) {
- this.linkedReadProperties = linkedReadProperties;
- return this;
- }
-
- /**
- * Get the linkedWriteProperties property: The write access rights of this API Key.
- *
- * @return the linkedWriteProperties value.
- */
- public List linkedWriteProperties() {
- return this.linkedWriteProperties;
- }
-
- /**
- * Set the linkedWriteProperties property: The write access rights of this API Key.
- *
- * @param linkedWriteProperties the linkedWriteProperties value to set.
- * @return the ApplicationInsightsComponentApiKeyInner object itself.
- */
- public ApplicationInsightsComponentApiKeyInner withLinkedWriteProperties(List linkedWriteProperties) {
- this.linkedWriteProperties = linkedWriteProperties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAvailableFeaturesInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAvailableFeaturesInner.java
deleted file mode 100644
index a00913acbf5e9..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAvailableFeaturesInner.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentFeature;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** An Application Insights component available features. */
-@Immutable
-public final class ApplicationInsightsComponentAvailableFeaturesInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentAvailableFeaturesInner.class);
-
- /*
- * A list of Application Insights component feature.
- */
- @JsonProperty(value = "Result", access = JsonProperty.Access.WRITE_ONLY)
- private List result;
-
- /**
- * Get the result property: A list of Application Insights component feature.
- *
- * @return the result value.
- */
- public List result() {
- return this.result;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (result() != null) {
- result().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentBillingFeaturesInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentBillingFeaturesInner.java
deleted file mode 100644
index e3eb28785935e..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentBillingFeaturesInner.java
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentDataVolumeCap;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** An Application Insights component billing features. */
-@Fluent
-public final class ApplicationInsightsComponentBillingFeaturesInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentBillingFeaturesInner.class);
-
- /*
- * An Application Insights component daily data volume cap
- */
- @JsonProperty(value = "DataVolumeCap")
- private ApplicationInsightsComponentDataVolumeCap dataVolumeCap;
-
- /*
- * Current enabled pricing plan. When the component is in the Enterprise
- * plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- */
- @JsonProperty(value = "CurrentBillingFeatures")
- private List currentBillingFeatures;
-
- /**
- * Get the dataVolumeCap property: An Application Insights component daily data volume cap.
- *
- * @return the dataVolumeCap value.
- */
- public ApplicationInsightsComponentDataVolumeCap dataVolumeCap() {
- return this.dataVolumeCap;
- }
-
- /**
- * Set the dataVolumeCap property: An Application Insights component daily data volume cap.
- *
- * @param dataVolumeCap the dataVolumeCap value to set.
- * @return the ApplicationInsightsComponentBillingFeaturesInner object itself.
- */
- public ApplicationInsightsComponentBillingFeaturesInner withDataVolumeCap(
- ApplicationInsightsComponentDataVolumeCap dataVolumeCap) {
- this.dataVolumeCap = dataVolumeCap;
- return this;
- }
-
- /**
- * Get the currentBillingFeatures property: Current enabled pricing plan. When the component is in the Enterprise
- * plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- *
- * @return the currentBillingFeatures value.
- */
- public List currentBillingFeatures() {
- return this.currentBillingFeatures;
- }
-
- /**
- * Set the currentBillingFeatures property: Current enabled pricing plan. When the component is in the Enterprise
- * plan, this will list both 'Basic' and 'Application Insights Enterprise'.
- *
- * @param currentBillingFeatures the currentBillingFeatures value to set.
- * @return the ApplicationInsightsComponentBillingFeaturesInner object itself.
- */
- public ApplicationInsightsComponentBillingFeaturesInner withCurrentBillingFeatures(
- List currentBillingFeatures) {
- this.currentBillingFeatures = currentBillingFeatures;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (dataVolumeCap() != null) {
- dataVolumeCap().validate();
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentExportConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentExportConfigurationInner.java
deleted file mode 100644
index 8f0a97e238c52..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentExportConfigurationInner.java
+++ /dev/null
@@ -1,351 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Properties that define a Continuous Export configuration. */
-@Fluent
-public final class ApplicationInsightsComponentExportConfigurationInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentExportConfigurationInner.class);
-
- /*
- * The unique ID of the export configuration inside an Application Insights
- * component. It is auto generated when the Continuous Export configuration
- * is created.
- */
- @JsonProperty(value = "ExportId", access = JsonProperty.Access.WRITE_ONLY)
- private String exportId;
-
- /*
- * The instrumentation key of the Application Insights component.
- */
- @JsonProperty(value = "InstrumentationKey", access = JsonProperty.Access.WRITE_ONLY)
- private String instrumentationKey;
-
- /*
- * This comma separated list of document types that will be exported. The
- * possible values include 'Requests', 'Event', 'Exceptions', 'Metrics',
- * 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters',
- * 'Availability', 'Messages'.
- */
- @JsonProperty(value = "RecordTypes")
- private String recordTypes;
-
- /*
- * The name of the Application Insights component.
- */
- @JsonProperty(value = "ApplicationName", access = JsonProperty.Access.WRITE_ONLY)
- private String applicationName;
-
- /*
- * The subscription of the Application Insights component.
- */
- @JsonProperty(value = "SubscriptionId", access = JsonProperty.Access.WRITE_ONLY)
- private String subscriptionId;
-
- /*
- * The resource group of the Application Insights component.
- */
- @JsonProperty(value = "ResourceGroup", access = JsonProperty.Access.WRITE_ONLY)
- private String resourceGroup;
-
- /*
- * The destination storage account subscription ID.
- */
- @JsonProperty(value = "DestinationStorageSubscriptionId", access = JsonProperty.Access.WRITE_ONLY)
- private String destinationStorageSubscriptionId;
-
- /*
- * The destination account location ID.
- */
- @JsonProperty(value = "DestinationStorageLocationId", access = JsonProperty.Access.WRITE_ONLY)
- private String destinationStorageLocationId;
-
- /*
- * The name of destination account.
- */
- @JsonProperty(value = "DestinationAccountId", access = JsonProperty.Access.WRITE_ONLY)
- private String destinationAccountId;
-
- /*
- * The destination type.
- */
- @JsonProperty(value = "DestinationType", access = JsonProperty.Access.WRITE_ONLY)
- private String destinationType;
-
- /*
- * This will be 'true' if the Continuous Export configuration is enabled,
- * otherwise it will be 'false'.
- */
- @JsonProperty(value = "IsUserEnabled", access = JsonProperty.Access.WRITE_ONLY)
- private String isUserEnabled;
-
- /*
- * Last time the Continuous Export configuration was updated.
- */
- @JsonProperty(value = "LastUserUpdate", access = JsonProperty.Access.WRITE_ONLY)
- private String lastUserUpdate;
-
- /*
- * Deprecated
- */
- @JsonProperty(value = "NotificationQueueEnabled")
- private String notificationQueueEnabled;
-
- /*
- * This indicates current Continuous Export configuration status. The
- * possible values are 'Preparing', 'Success', 'Failure'.
- */
- @JsonProperty(value = "ExportStatus", access = JsonProperty.Access.WRITE_ONLY)
- private String exportStatus;
-
- /*
- * The last time data was successfully delivered to the destination storage
- * container for this Continuous Export configuration.
- */
- @JsonProperty(value = "LastSuccessTime", access = JsonProperty.Access.WRITE_ONLY)
- private String lastSuccessTime;
-
- /*
- * The last time the Continuous Export configuration started failing.
- */
- @JsonProperty(value = "LastGapTime", access = JsonProperty.Access.WRITE_ONLY)
- private String lastGapTime;
-
- /*
- * This is the reason the Continuous Export configuration started failing.
- * It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'.
- */
- @JsonProperty(value = "PermanentErrorReason", access = JsonProperty.Access.WRITE_ONLY)
- private String permanentErrorReason;
-
- /*
- * The name of the destination storage account.
- */
- @JsonProperty(value = "StorageName", access = JsonProperty.Access.WRITE_ONLY)
- private String storageName;
-
- /*
- * The name of the destination storage container.
- */
- @JsonProperty(value = "ContainerName", access = JsonProperty.Access.WRITE_ONLY)
- private String containerName;
-
- /**
- * Get the exportId property: The unique ID of the export configuration inside an Application Insights component. It
- * is auto generated when the Continuous Export configuration is created.
- *
- * @return the exportId value.
- */
- public String exportId() {
- return this.exportId;
- }
-
- /**
- * Get the instrumentationKey property: The instrumentation key of the Application Insights component.
- *
- * @return the instrumentationKey value.
- */
- public String instrumentationKey() {
- return this.instrumentationKey;
- }
-
- /**
- * Get the recordTypes property: This comma separated list of document types that will be exported. The possible
- * values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd',
- * 'PerformanceCounters', 'Availability', 'Messages'.
- *
- * @return the recordTypes value.
- */
- public String recordTypes() {
- return this.recordTypes;
- }
-
- /**
- * Set the recordTypes property: This comma separated list of document types that will be exported. The possible
- * values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd',
- * 'PerformanceCounters', 'Availability', 'Messages'.
- *
- * @param recordTypes the recordTypes value to set.
- * @return the ApplicationInsightsComponentExportConfigurationInner object itself.
- */
- public ApplicationInsightsComponentExportConfigurationInner withRecordTypes(String recordTypes) {
- this.recordTypes = recordTypes;
- return this;
- }
-
- /**
- * Get the applicationName property: The name of the Application Insights component.
- *
- * @return the applicationName value.
- */
- public String applicationName() {
- return this.applicationName;
- }
-
- /**
- * Get the subscriptionId property: The subscription of the Application Insights component.
- *
- * @return the subscriptionId value.
- */
- public String subscriptionId() {
- return this.subscriptionId;
- }
-
- /**
- * Get the resourceGroup property: The resource group of the Application Insights component.
- *
- * @return the resourceGroup value.
- */
- public String resourceGroup() {
- return this.resourceGroup;
- }
-
- /**
- * Get the destinationStorageSubscriptionId property: The destination storage account subscription ID.
- *
- * @return the destinationStorageSubscriptionId value.
- */
- public String destinationStorageSubscriptionId() {
- return this.destinationStorageSubscriptionId;
- }
-
- /**
- * Get the destinationStorageLocationId property: The destination account location ID.
- *
- * @return the destinationStorageLocationId value.
- */
- public String destinationStorageLocationId() {
- return this.destinationStorageLocationId;
- }
-
- /**
- * Get the destinationAccountId property: The name of destination account.
- *
- * @return the destinationAccountId value.
- */
- public String destinationAccountId() {
- return this.destinationAccountId;
- }
-
- /**
- * Get the destinationType property: The destination type.
- *
- * @return the destinationType value.
- */
- public String destinationType() {
- return this.destinationType;
- }
-
- /**
- * Get the isUserEnabled property: This will be 'true' if the Continuous Export configuration is enabled, otherwise
- * it will be 'false'.
- *
- * @return the isUserEnabled value.
- */
- public String isUserEnabled() {
- return this.isUserEnabled;
- }
-
- /**
- * Get the lastUserUpdate property: Last time the Continuous Export configuration was updated.
- *
- * @return the lastUserUpdate value.
- */
- public String lastUserUpdate() {
- return this.lastUserUpdate;
- }
-
- /**
- * Get the notificationQueueEnabled property: Deprecated.
- *
- * @return the notificationQueueEnabled value.
- */
- public String notificationQueueEnabled() {
- return this.notificationQueueEnabled;
- }
-
- /**
- * Set the notificationQueueEnabled property: Deprecated.
- *
- * @param notificationQueueEnabled the notificationQueueEnabled value to set.
- * @return the ApplicationInsightsComponentExportConfigurationInner object itself.
- */
- public ApplicationInsightsComponentExportConfigurationInner withNotificationQueueEnabled(
- String notificationQueueEnabled) {
- this.notificationQueueEnabled = notificationQueueEnabled;
- return this;
- }
-
- /**
- * Get the exportStatus property: This indicates current Continuous Export configuration status. The possible values
- * are 'Preparing', 'Success', 'Failure'.
- *
- * @return the exportStatus value.
- */
- public String exportStatus() {
- return this.exportStatus;
- }
-
- /**
- * Get the lastSuccessTime property: The last time data was successfully delivered to the destination storage
- * container for this Continuous Export configuration.
- *
- * @return the lastSuccessTime value.
- */
- public String lastSuccessTime() {
- return this.lastSuccessTime;
- }
-
- /**
- * Get the lastGapTime property: The last time the Continuous Export configuration started failing.
- *
- * @return the lastGapTime value.
- */
- public String lastGapTime() {
- return this.lastGapTime;
- }
-
- /**
- * Get the permanentErrorReason property: This is the reason the Continuous Export configuration started failing. It
- * can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'.
- *
- * @return the permanentErrorReason value.
- */
- public String permanentErrorReason() {
- return this.permanentErrorReason;
- }
-
- /**
- * Get the storageName property: The name of the destination storage account.
- *
- * @return the storageName value.
- */
- public String storageName() {
- return this.storageName;
- }
-
- /**
- * Get the containerName property: The name of the destination storage container.
- *
- * @return the containerName value.
- */
- public String containerName() {
- return this.containerName;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFavoriteInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFavoriteInner.java
deleted file mode 100644
index 127347058327e..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFavoriteInner.java
+++ /dev/null
@@ -1,295 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.FavoriteType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Properties that define a favorite that is associated to an Application Insights component. */
-@Fluent
-public final class ApplicationInsightsComponentFavoriteInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentFavoriteInner.class);
-
- /*
- * The user-defined name of the favorite.
- */
- @JsonProperty(value = "Name")
- private String name;
-
- /*
- * Configuration of this particular favorite, which are driven by the Azure
- * portal UX. Configuration data is a string containing valid JSON
- */
- @JsonProperty(value = "Config")
- private String config;
-
- /*
- * This instance's version of the data model. This can change as new
- * features are added that can be marked favorite. Current examples include
- * MetricsExplorer (ME) and Search.
- */
- @JsonProperty(value = "Version")
- private String version;
-
- /*
- * Internally assigned unique id of the favorite definition.
- */
- @JsonProperty(value = "FavoriteId", access = JsonProperty.Access.WRITE_ONLY)
- private String favoriteId;
-
- /*
- * Enum indicating if this favorite definition is owned by a specific user
- * or is shared between all users with access to the Application Insights
- * component.
- */
- @JsonProperty(value = "FavoriteType")
- private FavoriteType favoriteType;
-
- /*
- * The source of the favorite definition.
- */
- @JsonProperty(value = "SourceType")
- private String sourceType;
-
- /*
- * Date and time in UTC of the last modification that was made to this
- * favorite definition.
- */
- @JsonProperty(value = "TimeModified", access = JsonProperty.Access.WRITE_ONLY)
- private String timeModified;
-
- /*
- * A list of 0 or more tags that are associated with this favorite
- * definition
- */
- @JsonProperty(value = "Tags")
- private List tags;
-
- /*
- * Favorite category, as defined by the user at creation time.
- */
- @JsonProperty(value = "Category")
- private String category;
-
- /*
- * Flag denoting wether or not this favorite was generated from a template.
- */
- @JsonProperty(value = "IsGeneratedFromTemplate")
- private Boolean isGeneratedFromTemplate;
-
- /*
- * Unique user id of the specific user that owns this favorite.
- */
- @JsonProperty(value = "UserId", access = JsonProperty.Access.WRITE_ONLY)
- private String userId;
-
- /**
- * Get the name property: The user-defined name of the favorite.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The user-defined name of the favorite.
- *
- * @param name the name value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the config property: Configuration of this particular favorite, which are driven by the Azure portal UX.
- * Configuration data is a string containing valid JSON.
- *
- * @return the config value.
- */
- public String config() {
- return this.config;
- }
-
- /**
- * Set the config property: Configuration of this particular favorite, which are driven by the Azure portal UX.
- * Configuration data is a string containing valid JSON.
- *
- * @param config the config value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withConfig(String config) {
- this.config = config;
- return this;
- }
-
- /**
- * Get the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.
- *
- * @return the version value.
- */
- public String version() {
- return this.version;
- }
-
- /**
- * Set the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.
- *
- * @param version the version value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withVersion(String version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the favoriteId property: Internally assigned unique id of the favorite definition.
- *
- * @return the favoriteId value.
- */
- public String favoriteId() {
- return this.favoriteId;
- }
-
- /**
- * Get the favoriteType property: Enum indicating if this favorite definition is owned by a specific user or is
- * shared between all users with access to the Application Insights component.
- *
- * @return the favoriteType value.
- */
- public FavoriteType favoriteType() {
- return this.favoriteType;
- }
-
- /**
- * Set the favoriteType property: Enum indicating if this favorite definition is owned by a specific user or is
- * shared between all users with access to the Application Insights component.
- *
- * @param favoriteType the favoriteType value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withFavoriteType(FavoriteType favoriteType) {
- this.favoriteType = favoriteType;
- return this;
- }
-
- /**
- * Get the sourceType property: The source of the favorite definition.
- *
- * @return the sourceType value.
- */
- public String sourceType() {
- return this.sourceType;
- }
-
- /**
- * Set the sourceType property: The source of the favorite definition.
- *
- * @param sourceType the sourceType value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withSourceType(String sourceType) {
- this.sourceType = sourceType;
- return this;
- }
-
- /**
- * Get the timeModified property: Date and time in UTC of the last modification that was made to this favorite
- * definition.
- *
- * @return the timeModified value.
- */
- public String timeModified() {
- return this.timeModified;
- }
-
- /**
- * Get the tags property: A list of 0 or more tags that are associated with this favorite definition.
- *
- * @return the tags value.
- */
- public List tags() {
- return this.tags;
- }
-
- /**
- * Set the tags property: A list of 0 or more tags that are associated with this favorite definition.
- *
- * @param tags the tags value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withTags(List tags) {
- this.tags = tags;
- return this;
- }
-
- /**
- * Get the category property: Favorite category, as defined by the user at creation time.
- *
- * @return the category value.
- */
- public String category() {
- return this.category;
- }
-
- /**
- * Set the category property: Favorite category, as defined by the user at creation time.
- *
- * @param category the category value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withCategory(String category) {
- this.category = category;
- return this;
- }
-
- /**
- * Get the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a
- * template.
- *
- * @return the isGeneratedFromTemplate value.
- */
- public Boolean isGeneratedFromTemplate() {
- return this.isGeneratedFromTemplate;
- }
-
- /**
- * Set the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a
- * template.
- *
- * @param isGeneratedFromTemplate the isGeneratedFromTemplate value to set.
- * @return the ApplicationInsightsComponentFavoriteInner object itself.
- */
- public ApplicationInsightsComponentFavoriteInner withIsGeneratedFromTemplate(Boolean isGeneratedFromTemplate) {
- this.isGeneratedFromTemplate = isGeneratedFromTemplate;
- return this;
- }
-
- /**
- * Get the userId property: Unique user id of the specific user that owns this favorite.
- *
- * @return the userId value.
- */
- public String userId() {
- return this.userId;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFeatureCapabilitiesInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFeatureCapabilitiesInner.java
deleted file mode 100644
index e56afd1ba8a60..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFeatureCapabilitiesInner.java
+++ /dev/null
@@ -1,265 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** An Application Insights component feature capabilities. */
-@Immutable
-public final class ApplicationInsightsComponentFeatureCapabilitiesInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentFeatureCapabilitiesInner.class);
-
- /*
- * Whether allow to use continuous export feature.
- */
- @JsonProperty(value = "SupportExportData", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean supportExportData;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "BurstThrottlePolicy", access = JsonProperty.Access.WRITE_ONLY)
- private String burstThrottlePolicy;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "MetadataClass", access = JsonProperty.Access.WRITE_ONLY)
- private String metadataClass;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "LiveStreamMetrics", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean liveStreamMetrics;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "ApplicationMap", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean applicationMap;
-
- /*
- * Whether allow to use work item integration feature.
- */
- @JsonProperty(value = "WorkItemIntegration", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean workItemIntegration;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "PowerBIIntegration", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean powerBIIntegration;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "OpenSchema", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean openSchema;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "ProactiveDetection", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean proactiveDetection;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "AnalyticsIntegration", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean analyticsIntegration;
-
- /*
- * Whether allow to use multiple steps web test feature.
- */
- @JsonProperty(value = "MultipleStepWebTest", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean multipleStepWebTest;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "ApiAccessLevel", access = JsonProperty.Access.WRITE_ONLY)
- private String apiAccessLevel;
-
- /*
- * The application insights component used tracking type.
- */
- @JsonProperty(value = "TrackingType", access = JsonProperty.Access.WRITE_ONLY)
- private String trackingType;
-
- /*
- * Daily data volume cap in GB.
- */
- @JsonProperty(value = "DailyCap", access = JsonProperty.Access.WRITE_ONLY)
- private Float dailyCap;
-
- /*
- * Daily data volume cap UTC reset hour.
- */
- @JsonProperty(value = "DailyCapResetTime", access = JsonProperty.Access.WRITE_ONLY)
- private Float dailyCapResetTime;
-
- /*
- * Reserved, not used now.
- */
- @JsonProperty(value = "ThrottleRate", access = JsonProperty.Access.WRITE_ONLY)
- private Float throttleRate;
-
- /**
- * Get the supportExportData property: Whether allow to use continuous export feature.
- *
- * @return the supportExportData value.
- */
- public Boolean supportExportData() {
- return this.supportExportData;
- }
-
- /**
- * Get the burstThrottlePolicy property: Reserved, not used now.
- *
- * @return the burstThrottlePolicy value.
- */
- public String burstThrottlePolicy() {
- return this.burstThrottlePolicy;
- }
-
- /**
- * Get the metadataClass property: Reserved, not used now.
- *
- * @return the metadataClass value.
- */
- public String metadataClass() {
- return this.metadataClass;
- }
-
- /**
- * Get the liveStreamMetrics property: Reserved, not used now.
- *
- * @return the liveStreamMetrics value.
- */
- public Boolean liveStreamMetrics() {
- return this.liveStreamMetrics;
- }
-
- /**
- * Get the applicationMap property: Reserved, not used now.
- *
- * @return the applicationMap value.
- */
- public Boolean applicationMap() {
- return this.applicationMap;
- }
-
- /**
- * Get the workItemIntegration property: Whether allow to use work item integration feature.
- *
- * @return the workItemIntegration value.
- */
- public Boolean workItemIntegration() {
- return this.workItemIntegration;
- }
-
- /**
- * Get the powerBIIntegration property: Reserved, not used now.
- *
- * @return the powerBIIntegration value.
- */
- public Boolean powerBIIntegration() {
- return this.powerBIIntegration;
- }
-
- /**
- * Get the openSchema property: Reserved, not used now.
- *
- * @return the openSchema value.
- */
- public Boolean openSchema() {
- return this.openSchema;
- }
-
- /**
- * Get the proactiveDetection property: Reserved, not used now.
- *
- * @return the proactiveDetection value.
- */
- public Boolean proactiveDetection() {
- return this.proactiveDetection;
- }
-
- /**
- * Get the analyticsIntegration property: Reserved, not used now.
- *
- * @return the analyticsIntegration value.
- */
- public Boolean analyticsIntegration() {
- return this.analyticsIntegration;
- }
-
- /**
- * Get the multipleStepWebTest property: Whether allow to use multiple steps web test feature.
- *
- * @return the multipleStepWebTest value.
- */
- public Boolean multipleStepWebTest() {
- return this.multipleStepWebTest;
- }
-
- /**
- * Get the apiAccessLevel property: Reserved, not used now.
- *
- * @return the apiAccessLevel value.
- */
- public String apiAccessLevel() {
- return this.apiAccessLevel;
- }
-
- /**
- * Get the trackingType property: The application insights component used tracking type.
- *
- * @return the trackingType value.
- */
- public String trackingType() {
- return this.trackingType;
- }
-
- /**
- * Get the dailyCap property: Daily data volume cap in GB.
- *
- * @return the dailyCap value.
- */
- public Float dailyCap() {
- return this.dailyCap;
- }
-
- /**
- * Get the dailyCapResetTime property: Daily data volume cap UTC reset hour.
- *
- * @return the dailyCapResetTime value.
- */
- public Float dailyCapResetTime() {
- return this.dailyCapResetTime;
- }
-
- /**
- * Get the throttleRate property: Reserved, not used now.
- *
- * @return the throttleRate value.
- */
- public Float throttleRate() {
- return this.throttleRate;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
deleted file mode 100644
index 5b3fc73c3a261..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
+++ /dev/null
@@ -1,487 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationType;
-import com.azure.resourcemanager.applicationinsights.models.ComponentsResource;
-import com.azure.resourcemanager.applicationinsights.models.FlowType;
-import com.azure.resourcemanager.applicationinsights.models.IngestionMode;
-import com.azure.resourcemanager.applicationinsights.models.PrivateLinkScopedResource;
-import com.azure.resourcemanager.applicationinsights.models.RequestSource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.List;
-import java.util.Map;
-
-/** An Application Insights component definition. */
-@JsonFlatten
-@Fluent
-public class ApplicationInsightsComponentInner extends ComponentsResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentInner.class);
-
- /*
- * The kind of application that this component refers to, used to customize
- * UI. This value is a freeform string, values should typically be one of
- * the following: web, ios, other, store, java, phone.
- */
- @JsonProperty(value = "kind", required = true)
- private String kind;
-
- /*
- * The unique ID of your application. This field mirrors the 'Name' field
- * and cannot be changed.
- */
- @JsonProperty(value = "properties.ApplicationId", access = JsonProperty.Access.WRITE_ONLY)
- private String applicationId;
-
- /*
- * Application Insights Unique ID for your Application.
- */
- @JsonProperty(value = "properties.AppId", access = JsonProperty.Access.WRITE_ONLY)
- private String appId;
-
- /*
- * Type of application being monitored.
- */
- @JsonProperty(value = "properties.Application_Type")
- private ApplicationType applicationType;
-
- /*
- * Used by the Application Insights system to determine what kind of flow
- * this component was created by. This is to be set to 'Bluefield' when
- * creating/updating a component via the REST API.
- */
- @JsonProperty(value = "properties.Flow_Type")
- private FlowType flowType;
-
- /*
- * Describes what tool created this Application Insights component.
- * Customers using this API should set this to the default 'rest'.
- */
- @JsonProperty(value = "properties.Request_Source")
- private RequestSource requestSource;
-
- /*
- * Application Insights Instrumentation key. A read-only value that
- * applications can use to identify the destination for all telemetry sent
- * to Azure Application Insights. This value will be supplied upon
- * construction of each new Application Insights component.
- */
- @JsonProperty(value = "properties.InstrumentationKey", access = JsonProperty.Access.WRITE_ONLY)
- private String instrumentationKey;
-
- /*
- * Creation Date for the Application Insights component, in ISO 8601
- * format.
- */
- @JsonProperty(value = "properties.CreationDate", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime creationDate;
-
- /*
- * Azure Tenant Id.
- */
- @JsonProperty(value = "properties.TenantId", access = JsonProperty.Access.WRITE_ONLY)
- private String tenantId;
-
- /*
- * The unique application ID created when a new application is added to
- * HockeyApp, used for communications with HockeyApp.
- */
- @JsonProperty(value = "properties.HockeyAppId")
- private String hockeyAppId;
-
- /*
- * Token used to authenticate communications with between Application
- * Insights and HockeyApp.
- */
- @JsonProperty(value = "properties.HockeyAppToken", access = JsonProperty.Access.WRITE_ONLY)
- private String hockeyAppToken;
-
- /*
- * Current state of this component: whether or not is has been provisioned
- * within the resource group it is defined. Users cannot change this value
- * but are able to read from it. Values will include Succeeded, Deploying,
- * Canceled, and Failed.
- */
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
-
- /*
- * Percentage of the data produced by the application being monitored that
- * is being sampled for Application Insights telemetry.
- */
- @JsonProperty(value = "properties.SamplingPercentage")
- private Double samplingPercentage;
-
- /*
- * Application Insights component connection string.
- */
- @JsonProperty(value = "properties.ConnectionString", access = JsonProperty.Access.WRITE_ONLY)
- private String connectionString;
-
- /*
- * Retention period in days.
- */
- @JsonProperty(value = "properties.RetentionInDays")
- private Integer retentionInDays;
-
- /*
- * Disable IP masking.
- */
- @JsonProperty(value = "properties.DisableIpMasking")
- private Boolean disableIpMasking;
-
- /*
- * Purge data immediately after 30 days.
- */
- @JsonProperty(value = "properties.ImmediatePurgeDataOn30Days")
- private Boolean immediatePurgeDataOn30Days;
-
- /*
- * List of linked private link scope resources.
- */
- @JsonProperty(value = "properties.PrivateLinkScopedResources", access = JsonProperty.Access.WRITE_ONLY)
- private List privateLinkScopedResources;
-
- /*
- * Indicates the flow of the ingestion.
- */
- @JsonProperty(value = "properties.IngestionMode")
- private IngestionMode ingestionMode;
-
- /**
- * Get the kind property: The kind of application that this component refers to, used to customize UI. This value is
- * a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.
- *
- * @return the kind value.
- */
- public String kind() {
- return this.kind;
- }
-
- /**
- * Set the kind property: The kind of application that this component refers to, used to customize UI. This value is
- * a freeform string, values should typically be one of the following: web, ios, other, store, java, phone.
- *
- * @param kind the kind value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withKind(String kind) {
- this.kind = kind;
- return this;
- }
-
- /**
- * Get the applicationId property: The unique ID of your application. This field mirrors the 'Name' field and cannot
- * be changed.
- *
- * @return the applicationId value.
- */
- public String applicationId() {
- return this.applicationId;
- }
-
- /**
- * Get the appId property: Application Insights Unique ID for your Application.
- *
- * @return the appId value.
- */
- public String appId() {
- return this.appId;
- }
-
- /**
- * Get the applicationType property: Type of application being monitored.
- *
- * @return the applicationType value.
- */
- public ApplicationType applicationType() {
- return this.applicationType;
- }
-
- /**
- * Set the applicationType property: Type of application being monitored.
- *
- * @param applicationType the applicationType value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withApplicationType(ApplicationType applicationType) {
- this.applicationType = applicationType;
- return this;
- }
-
- /**
- * Get the flowType property: Used by the Application Insights system to determine what kind of flow this component
- * was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API.
- *
- * @return the flowType value.
- */
- public FlowType flowType() {
- return this.flowType;
- }
-
- /**
- * Set the flowType property: Used by the Application Insights system to determine what kind of flow this component
- * was created by. This is to be set to 'Bluefield' when creating/updating a component via the REST API.
- *
- * @param flowType the flowType value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withFlowType(FlowType flowType) {
- this.flowType = flowType;
- return this;
- }
-
- /**
- * Get the requestSource property: Describes what tool created this Application Insights component. Customers using
- * this API should set this to the default 'rest'.
- *
- * @return the requestSource value.
- */
- public RequestSource requestSource() {
- return this.requestSource;
- }
-
- /**
- * Set the requestSource property: Describes what tool created this Application Insights component. Customers using
- * this API should set this to the default 'rest'.
- *
- * @param requestSource the requestSource value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withRequestSource(RequestSource requestSource) {
- this.requestSource = requestSource;
- return this;
- }
-
- /**
- * Get the instrumentationKey property: Application Insights Instrumentation key. A read-only value that
- * applications can use to identify the destination for all telemetry sent to Azure Application Insights. This value
- * will be supplied upon construction of each new Application Insights component.
- *
- * @return the instrumentationKey value.
- */
- public String instrumentationKey() {
- return this.instrumentationKey;
- }
-
- /**
- * Get the creationDate property: Creation Date for the Application Insights component, in ISO 8601 format.
- *
- * @return the creationDate value.
- */
- public OffsetDateTime creationDate() {
- return this.creationDate;
- }
-
- /**
- * Get the tenantId property: Azure Tenant Id.
- *
- * @return the tenantId value.
- */
- public String tenantId() {
- return this.tenantId;
- }
-
- /**
- * Get the hockeyAppId property: The unique application ID created when a new application is added to HockeyApp,
- * used for communications with HockeyApp.
- *
- * @return the hockeyAppId value.
- */
- public String hockeyAppId() {
- return this.hockeyAppId;
- }
-
- /**
- * Set the hockeyAppId property: The unique application ID created when a new application is added to HockeyApp,
- * used for communications with HockeyApp.
- *
- * @param hockeyAppId the hockeyAppId value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withHockeyAppId(String hockeyAppId) {
- this.hockeyAppId = hockeyAppId;
- return this;
- }
-
- /**
- * Get the hockeyAppToken property: Token used to authenticate communications with between Application Insights and
- * HockeyApp.
- *
- * @return the hockeyAppToken value.
- */
- public String hockeyAppToken() {
- return this.hockeyAppToken;
- }
-
- /**
- * Get the provisioningState property: Current state of this component: whether or not is has been provisioned
- * within the resource group it is defined. Users cannot change this value but are able to read from it. Values will
- * include Succeeded, Deploying, Canceled, and Failed.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /**
- * Get the samplingPercentage property: Percentage of the data produced by the application being monitored that is
- * being sampled for Application Insights telemetry.
- *
- * @return the samplingPercentage value.
- */
- public Double samplingPercentage() {
- return this.samplingPercentage;
- }
-
- /**
- * Set the samplingPercentage property: Percentage of the data produced by the application being monitored that is
- * being sampled for Application Insights telemetry.
- *
- * @param samplingPercentage the samplingPercentage value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withSamplingPercentage(Double samplingPercentage) {
- this.samplingPercentage = samplingPercentage;
- return this;
- }
-
- /**
- * Get the connectionString property: Application Insights component connection string.
- *
- * @return the connectionString value.
- */
- public String connectionString() {
- return this.connectionString;
- }
-
- /**
- * Get the retentionInDays property: Retention period in days.
- *
- * @return the retentionInDays value.
- */
- public Integer retentionInDays() {
- return this.retentionInDays;
- }
-
- /**
- * Set the retentionInDays property: Retention period in days.
- *
- * @param retentionInDays the retentionInDays value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withRetentionInDays(Integer retentionInDays) {
- this.retentionInDays = retentionInDays;
- return this;
- }
-
- /**
- * Get the disableIpMasking property: Disable IP masking.
- *
- * @return the disableIpMasking value.
- */
- public Boolean disableIpMasking() {
- return this.disableIpMasking;
- }
-
- /**
- * Set the disableIpMasking property: Disable IP masking.
- *
- * @param disableIpMasking the disableIpMasking value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withDisableIpMasking(Boolean disableIpMasking) {
- this.disableIpMasking = disableIpMasking;
- return this;
- }
-
- /**
- * Get the immediatePurgeDataOn30Days property: Purge data immediately after 30 days.
- *
- * @return the immediatePurgeDataOn30Days value.
- */
- public Boolean immediatePurgeDataOn30Days() {
- return this.immediatePurgeDataOn30Days;
- }
-
- /**
- * Set the immediatePurgeDataOn30Days property: Purge data immediately after 30 days.
- *
- * @param immediatePurgeDataOn30Days the immediatePurgeDataOn30Days value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withImmediatePurgeDataOn30Days(Boolean immediatePurgeDataOn30Days) {
- this.immediatePurgeDataOn30Days = immediatePurgeDataOn30Days;
- return this;
- }
-
- /**
- * Get the privateLinkScopedResources property: List of linked private link scope resources.
- *
- * @return the privateLinkScopedResources value.
- */
- public List privateLinkScopedResources() {
- return this.privateLinkScopedResources;
- }
-
- /**
- * Get the ingestionMode property: Indicates the flow of the ingestion.
- *
- * @return the ingestionMode value.
- */
- public IngestionMode ingestionMode() {
- return this.ingestionMode;
- }
-
- /**
- * Set the ingestionMode property: Indicates the flow of the ingestion.
- *
- * @param ingestionMode the ingestionMode value to set.
- * @return the ApplicationInsightsComponentInner object itself.
- */
- public ApplicationInsightsComponentInner withIngestionMode(IngestionMode ingestionMode) {
- this.ingestionMode = ingestionMode;
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public ApplicationInsightsComponentInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public ApplicationInsightsComponentInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- super.validate();
- if (kind() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property kind in model ApplicationInsightsComponentInner"));
- }
- if (privateLinkScopedResources() != null) {
- privateLinkScopedResources().forEach(e -> e.validate());
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
deleted file mode 100644
index 3e2af251a89cc..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
+++ /dev/null
@@ -1,197 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-
-/** Properties that define a ProactiveDetection configuration. */
-@Fluent
-public final class ApplicationInsightsComponentProactiveDetectionConfigurationInner {
- @JsonIgnore
- private final ClientLogger logger =
- new ClientLogger(ApplicationInsightsComponentProactiveDetectionConfigurationInner.class);
-
- /*
- * The rule name
- */
- @JsonProperty(value = "Name")
- private String name;
-
- /*
- * A flag that indicates whether this rule is enabled by the user
- */
- @JsonProperty(value = "Enabled")
- private Boolean enabled;
-
- /*
- * A flag that indicated whether notifications on this rule should be sent
- * to subscription owners
- */
- @JsonProperty(value = "SendEmailsToSubscriptionOwners")
- private Boolean sendEmailsToSubscriptionOwners;
-
- /*
- * Custom email addresses for this rule notifications
- */
- @JsonProperty(value = "CustomEmails")
- private List customEmails;
-
- /*
- * The last time this rule was updated
- */
- @JsonProperty(value = "LastUpdatedTime")
- private String lastUpdatedTime;
-
- /*
- * Static definitions of the ProactiveDetection configuration rule (same
- * values for all components).
- */
- @JsonProperty(value = "RuleDefinitions")
- private ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions;
-
- /**
- * Get the name property: The rule name.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: The rule name.
- *
- * @param name the name value to set.
- * @return the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
- */
- public ApplicationInsightsComponentProactiveDetectionConfigurationInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the enabled property: A flag that indicates whether this rule is enabled by the user.
- *
- * @return the enabled value.
- */
- public Boolean enabled() {
- return this.enabled;
- }
-
- /**
- * Set the enabled property: A flag that indicates whether this rule is enabled by the user.
- *
- * @param enabled the enabled value to set.
- * @return the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
- */
- public ApplicationInsightsComponentProactiveDetectionConfigurationInner withEnabled(Boolean enabled) {
- this.enabled = enabled;
- return this;
- }
-
- /**
- * Get the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should
- * be sent to subscription owners.
- *
- * @return the sendEmailsToSubscriptionOwners value.
- */
- public Boolean sendEmailsToSubscriptionOwners() {
- return this.sendEmailsToSubscriptionOwners;
- }
-
- /**
- * Set the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should
- * be sent to subscription owners.
- *
- * @param sendEmailsToSubscriptionOwners the sendEmailsToSubscriptionOwners value to set.
- * @return the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
- */
- public ApplicationInsightsComponentProactiveDetectionConfigurationInner withSendEmailsToSubscriptionOwners(
- Boolean sendEmailsToSubscriptionOwners) {
- this.sendEmailsToSubscriptionOwners = sendEmailsToSubscriptionOwners;
- return this;
- }
-
- /**
- * Get the customEmails property: Custom email addresses for this rule notifications.
- *
- * @return the customEmails value.
- */
- public List customEmails() {
- return this.customEmails;
- }
-
- /**
- * Set the customEmails property: Custom email addresses for this rule notifications.
- *
- * @param customEmails the customEmails value to set.
- * @return the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
- */
- public ApplicationInsightsComponentProactiveDetectionConfigurationInner withCustomEmails(
- List customEmails) {
- this.customEmails = customEmails;
- return this;
- }
-
- /**
- * Get the lastUpdatedTime property: The last time this rule was updated.
- *
- * @return the lastUpdatedTime value.
- */
- public String lastUpdatedTime() {
- return this.lastUpdatedTime;
- }
-
- /**
- * Set the lastUpdatedTime property: The last time this rule was updated.
- *
- * @param lastUpdatedTime the lastUpdatedTime value to set.
- * @return the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
- */
- public ApplicationInsightsComponentProactiveDetectionConfigurationInner withLastUpdatedTime(
- String lastUpdatedTime) {
- this.lastUpdatedTime = lastUpdatedTime;
- return this;
- }
-
- /**
- * Get the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values
- * for all components).
- *
- * @return the ruleDefinitions value.
- */
- public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions() {
- return this.ruleDefinitions;
- }
-
- /**
- * Set the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values
- * for all components).
- *
- * @param ruleDefinitions the ruleDefinitions value to set.
- * @return the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
- */
- public ApplicationInsightsComponentProactiveDetectionConfigurationInner withRuleDefinitions(
- ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions) {
- this.ruleDefinitions = ruleDefinitions;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (ruleDefinitions() != null) {
- ruleDefinitions().validate();
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentQuotaStatusInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentQuotaStatusInner.java
deleted file mode 100644
index 3ffbc442170e0..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentQuotaStatusInner.java
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** An Application Insights component daily data volume cap status. */
-@Immutable
-public final class ApplicationInsightsComponentQuotaStatusInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentQuotaStatusInner.class);
-
- /*
- * The Application ID for the Application Insights component.
- */
- @JsonProperty(value = "AppId", access = JsonProperty.Access.WRITE_ONLY)
- private String appId;
-
- /*
- * The daily data volume cap is met, and data ingestion will be stopped.
- */
- @JsonProperty(value = "ShouldBeThrottled", access = JsonProperty.Access.WRITE_ONLY)
- private Boolean shouldBeThrottled;
-
- /*
- * Date and time when the daily data volume cap will be reset, and data
- * ingestion will resume.
- */
- @JsonProperty(value = "ExpirationTime", access = JsonProperty.Access.WRITE_ONLY)
- private String expirationTime;
-
- /**
- * Get the appId property: The Application ID for the Application Insights component.
- *
- * @return the appId value.
- */
- public String appId() {
- return this.appId;
- }
-
- /**
- * Get the shouldBeThrottled property: The daily data volume cap is met, and data ingestion will be stopped.
- *
- * @return the shouldBeThrottled value.
- */
- public Boolean shouldBeThrottled() {
- return this.shouldBeThrottled;
- }
-
- /**
- * Get the expirationTime property: Date and time when the daily data volume cap will be reset, and data ingestion
- * will resume.
- *
- * @return the expirationTime value.
- */
- public String expirationTime() {
- return this.expirationTime;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentWebTestLocationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentWebTestLocationInner.java
deleted file mode 100644
index b5b2f868bbec4..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentWebTestLocationInner.java
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Properties that define a web test location available to an Application Insights Component. */
-@Immutable
-public final class ApplicationInsightsComponentWebTestLocationInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentWebTestLocationInner.class);
-
- /*
- * The display name of the web test location.
- */
- @JsonProperty(value = "DisplayName", access = JsonProperty.Access.WRITE_ONLY)
- private String displayName;
-
- /*
- * Internally defined geographic location tag.
- */
- @JsonProperty(value = "Tag", access = JsonProperty.Access.WRITE_ONLY)
- private String tag;
-
- /**
- * Get the displayName property: The display name of the web test location.
- *
- * @return the displayName value.
- */
- public String displayName() {
- return this.displayName;
- }
-
- /**
- * Get the tag property: Internally defined geographic location tag.
- *
- * @return the tag value.
- */
- public String tag() {
- return this.tag;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeResponseInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeResponseInner.java
deleted file mode 100644
index a3fd0f627b1c7..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeResponseInner.java
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Response containing operationId for a specific purge action. */
-@Fluent
-public final class ComponentPurgeResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentPurgeResponseInner.class);
-
- /*
- * Id to use when querying for status for a particular purge operation.
- */
- @JsonProperty(value = "operationId", required = true)
- private String operationId;
-
- /**
- * Get the operationId property: Id to use when querying for status for a particular purge operation.
- *
- * @return the operationId value.
- */
- public String operationId() {
- return this.operationId;
- }
-
- /**
- * Set the operationId property: Id to use when querying for status for a particular purge operation.
- *
- * @param operationId the operationId value to set.
- * @return the ComponentPurgeResponseInner object itself.
- */
- public ComponentPurgeResponseInner withOperationId(String operationId) {
- this.operationId = operationId;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (operationId() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property operationId in model ComponentPurgeResponseInner"));
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeStatusResponseInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeStatusResponseInner.java
deleted file mode 100644
index b187c76338113..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeStatusResponseInner.java
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.PurgeState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Response containing status for a specific purge operation. */
-@Fluent
-public final class ComponentPurgeStatusResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentPurgeStatusResponseInner.class);
-
- /*
- * Status of the operation represented by the requested Id.
- */
- @JsonProperty(value = "status", required = true)
- private PurgeState status;
-
- /**
- * Get the status property: Status of the operation represented by the requested Id.
- *
- * @return the status value.
- */
- public PurgeState status() {
- return this.status;
- }
-
- /**
- * Set the status property: Status of the operation represented by the requested Id.
- *
- * @param status the status value to set.
- * @return the ComponentPurgeStatusResponseInner object itself.
- */
- public ComponentPurgeStatusResponseInner withStatus(PurgeState status) {
- this.status = status;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (status() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property status in model ComponentPurgeStatusResponseInner"));
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java
deleted file mode 100644
index f475ac944cceb..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java
+++ /dev/null
@@ -1,331 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.Kind;
-import com.azure.resourcemanager.applicationinsights.models.ManagedIdentity;
-import com.azure.resourcemanager.applicationinsights.models.MyWorkbookResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-import java.util.Map;
-
-/** An Application Insights private workbook definition. */
-@JsonFlatten
-@Fluent
-public class MyWorkbookInner extends MyWorkbookResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MyWorkbookInner.class);
-
- /*
- * The kind of workbook. Choices are user and shared.
- */
- @JsonProperty(value = "kind")
- private Kind kind;
-
- /*
- * The user-defined name of the private workbook.
- */
- @JsonProperty(value = "properties.displayName")
- private String displayName;
-
- /*
- * Configuration of this particular private workbook. Configuration data is
- * a string containing valid JSON
- */
- @JsonProperty(value = "properties.serializedData")
- private String serializedData;
-
- /*
- * This instance's version of the data model. This can change as new
- * features are added that can be marked private workbook.
- */
- @JsonProperty(value = "properties.version")
- private String version;
-
- /*
- * Date and time in UTC of the last modification that was made to this
- * private workbook definition.
- */
- @JsonProperty(value = "properties.timeModified", access = JsonProperty.Access.WRITE_ONLY)
- private String timeModified;
-
- /*
- * Workbook category, as defined by the user at creation time.
- */
- @JsonProperty(value = "properties.category")
- private String category;
-
- /*
- * A list of 0 or more tags that are associated with this private workbook
- * definition
- */
- @JsonProperty(value = "properties.tags")
- private List tagsPropertiesTags;
-
- /*
- * Unique user id of the specific user that owns this private workbook.
- */
- @JsonProperty(value = "properties.userId", access = JsonProperty.Access.WRITE_ONLY)
- private String userId;
-
- /*
- * Optional resourceId for a source resource.
- */
- @JsonProperty(value = "properties.sourceId")
- private String sourceId;
-
- /*
- * BYOS Storage Account URI
- */
- @JsonProperty(value = "properties.storageUri")
- private String storageUri;
-
- /**
- * Get the kind property: The kind of workbook. Choices are user and shared.
- *
- * @return the kind value.
- */
- public Kind kind() {
- return this.kind;
- }
-
- /**
- * Set the kind property: The kind of workbook. Choices are user and shared.
- *
- * @param kind the kind value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withKind(Kind kind) {
- this.kind = kind;
- return this;
- }
-
- /**
- * Get the displayName property: The user-defined name of the private workbook.
- *
- * @return the displayName value.
- */
- public String displayName() {
- return this.displayName;
- }
-
- /**
- * Set the displayName property: The user-defined name of the private workbook.
- *
- * @param displayName the displayName value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withDisplayName(String displayName) {
- this.displayName = displayName;
- return this;
- }
-
- /**
- * Get the serializedData property: Configuration of this particular private workbook. Configuration data is a
- * string containing valid JSON.
- *
- * @return the serializedData value.
- */
- public String serializedData() {
- return this.serializedData;
- }
-
- /**
- * Set the serializedData property: Configuration of this particular private workbook. Configuration data is a
- * string containing valid JSON.
- *
- * @param serializedData the serializedData value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withSerializedData(String serializedData) {
- this.serializedData = serializedData;
- return this;
- }
-
- /**
- * Get the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked private workbook.
- *
- * @return the version value.
- */
- public String version() {
- return this.version;
- }
-
- /**
- * Set the version property: This instance's version of the data model. This can change as new features are added
- * that can be marked private workbook.
- *
- * @param version the version value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withVersion(String version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the timeModified property: Date and time in UTC of the last modification that was made to this private
- * workbook definition.
- *
- * @return the timeModified value.
- */
- public String timeModified() {
- return this.timeModified;
- }
-
- /**
- * Get the category property: Workbook category, as defined by the user at creation time.
- *
- * @return the category value.
- */
- public String category() {
- return this.category;
- }
-
- /**
- * Set the category property: Workbook category, as defined by the user at creation time.
- *
- * @param category the category value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withCategory(String category) {
- this.category = category;
- return this;
- }
-
- /**
- * Get the tagsPropertiesTags property: A list of 0 or more tags that are associated with this private workbook
- * definition.
- *
- * @return the tagsPropertiesTags value.
- */
- public List tagsPropertiesTags() {
- return this.tagsPropertiesTags;
- }
-
- /**
- * Set the tagsPropertiesTags property: A list of 0 or more tags that are associated with this private workbook
- * definition.
- *
- * @param tagsPropertiesTags the tagsPropertiesTags value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withTagsPropertiesTags(List tagsPropertiesTags) {
- this.tagsPropertiesTags = tagsPropertiesTags;
- return this;
- }
-
- /**
- * Get the userId property: Unique user id of the specific user that owns this private workbook.
- *
- * @return the userId value.
- */
- public String userId() {
- return this.userId;
- }
-
- /**
- * Get the sourceId property: Optional resourceId for a source resource.
- *
- * @return the sourceId value.
- */
- public String sourceId() {
- return this.sourceId;
- }
-
- /**
- * Set the sourceId property: Optional resourceId for a source resource.
- *
- * @param sourceId the sourceId value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withSourceId(String sourceId) {
- this.sourceId = sourceId;
- return this;
- }
-
- /**
- * Get the storageUri property: BYOS Storage Account URI.
- *
- * @return the storageUri value.
- */
- public String storageUri() {
- return this.storageUri;
- }
-
- /**
- * Set the storageUri property: BYOS Storage Account URI.
- *
- * @param storageUri the storageUri value to set.
- * @return the MyWorkbookInner object itself.
- */
- public MyWorkbookInner withStorageUri(String storageUri) {
- this.storageUri = storageUri;
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public MyWorkbookInner withIdentity(ManagedIdentity identity) {
- super.withIdentity(identity);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public MyWorkbookInner withId(String id) {
- super.withId(id);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public MyWorkbookInner withName(String name) {
- super.withName(name);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public MyWorkbookInner withType(String type) {
- super.withType(type);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public MyWorkbookInner withEtag(Map etag) {
- super.withEtag(etag);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public MyWorkbookInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public MyWorkbookInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- super.validate();
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/OperationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/OperationInner.java
deleted file mode 100644
index 2952d50f4b29f..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/OperationInner.java
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Azure Workbooks REST API operation. */
-@Fluent
-public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
- /*
- * Operation name: {provider}/{resource}/{operation}
- */
- @JsonProperty(value = "name")
- private String name;
-
- /*
- * The object that represents the operation.
- */
- @JsonProperty(value = "display")
- private OperationDisplay display;
-
- /**
- * Get the name property: Operation name: {provider}/{resource}/{operation}.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: Operation name: {provider}/{resource}/{operation}.
- *
- * @param name the name value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the display property: The object that represents the operation.
- *
- * @return the display value.
- */
- public OperationDisplay display() {
- return this.display;
- }
-
- /**
- * Set the display property: The object that represents the operation.
- *
- * @param display the display value to set.
- * @return the OperationInner object itself.
- */
- public OperationInner withDisplay(OperationDisplay display) {
- this.display = display;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestInner.java
deleted file mode 100644
index 46f91d3baadc8..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestInner.java
+++ /dev/null
@@ -1,368 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.WebTestGeolocation;
-import com.azure.resourcemanager.applicationinsights.models.WebTestKind;
-import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesConfiguration;
-import com.azure.resourcemanager.applicationinsights.models.WebtestsResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-import java.util.Map;
-
-/** An Application Insights web test definition. */
-@JsonFlatten
-@Fluent
-public class WebTestInner extends WebtestsResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebTestInner.class);
-
- /*
- * The kind of web test that this web test watches. Choices are ping and
- * multistep.
- */
- @JsonProperty(value = "kind")
- private WebTestKind kind;
-
- /*
- * Unique ID of this WebTest. This is typically the same value as the Name
- * field.
- */
- @JsonProperty(value = "properties.SyntheticMonitorId")
- private String syntheticMonitorId;
-
- /*
- * User defined name if this WebTest.
- */
- @JsonProperty(value = "properties.Name")
- private String webTestName;
-
- /*
- * Purpose/user defined descriptive test for this WebTest.
- */
- @JsonProperty(value = "properties.Description")
- private String description;
-
- /*
- * Is the test actively being monitored.
- */
- @JsonProperty(value = "properties.Enabled")
- private Boolean enabled;
-
- /*
- * Interval in seconds between test runs for this WebTest. Default value is
- * 300.
- */
- @JsonProperty(value = "properties.Frequency")
- private Integer frequency;
-
- /*
- * Seconds until this WebTest will timeout and fail. Default value is 30.
- */
- @JsonProperty(value = "properties.Timeout")
- private Integer timeout;
-
- /*
- * The kind of web test this is, valid choices are ping and multistep.
- */
- @JsonProperty(value = "properties.Kind")
- private WebTestKind webTestKind;
-
- /*
- * Allow for retries should this WebTest fail.
- */
- @JsonProperty(value = "properties.RetryEnabled")
- private Boolean retryEnabled;
-
- /*
- * A list of where to physically run the tests from to give global coverage
- * for accessibility of your application.
- */
- @JsonProperty(value = "properties.Locations")
- private List locations;
-
- /*
- * An XML configuration specification for a WebTest.
- */
- @JsonProperty(value = "properties.Configuration")
- private WebTestPropertiesConfiguration configuration;
-
- /*
- * Current state of this component, whether or not is has been provisioned
- * within the resource group it is defined. Users cannot change this value
- * but are able to read from it. Values will include Succeeded, Deploying,
- * Canceled, and Failed.
- */
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
-
- /**
- * Get the kind property: The kind of web test that this web test watches. Choices are ping and multistep.
- *
- * @return the kind value.
- */
- public WebTestKind kind() {
- return this.kind;
- }
-
- /**
- * Set the kind property: The kind of web test that this web test watches. Choices are ping and multistep.
- *
- * @param kind the kind value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withKind(WebTestKind kind) {
- this.kind = kind;
- return this;
- }
-
- /**
- * Get the syntheticMonitorId property: Unique ID of this WebTest. This is typically the same value as the Name
- * field.
- *
- * @return the syntheticMonitorId value.
- */
- public String syntheticMonitorId() {
- return this.syntheticMonitorId;
- }
-
- /**
- * Set the syntheticMonitorId property: Unique ID of this WebTest. This is typically the same value as the Name
- * field.
- *
- * @param syntheticMonitorId the syntheticMonitorId value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withSyntheticMonitorId(String syntheticMonitorId) {
- this.syntheticMonitorId = syntheticMonitorId;
- return this;
- }
-
- /**
- * Get the webTestName property: User defined name if this WebTest.
- *
- * @return the webTestName value.
- */
- public String webTestName() {
- return this.webTestName;
- }
-
- /**
- * Set the webTestName property: User defined name if this WebTest.
- *
- * @param webTestName the webTestName value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withWebTestName(String webTestName) {
- this.webTestName = webTestName;
- return this;
- }
-
- /**
- * Get the description property: Purpose/user defined descriptive test for this WebTest.
- *
- * @return the description value.
- */
- public String description() {
- return this.description;
- }
-
- /**
- * Set the description property: Purpose/user defined descriptive test for this WebTest.
- *
- * @param description the description value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withDescription(String description) {
- this.description = description;
- return this;
- }
-
- /**
- * Get the enabled property: Is the test actively being monitored.
- *
- * @return the enabled value.
- */
- public Boolean enabled() {
- return this.enabled;
- }
-
- /**
- * Set the enabled property: Is the test actively being monitored.
- *
- * @param enabled the enabled value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withEnabled(Boolean enabled) {
- this.enabled = enabled;
- return this;
- }
-
- /**
- * Get the frequency property: Interval in seconds between test runs for this WebTest. Default value is 300.
- *
- * @return the frequency value.
- */
- public Integer frequency() {
- return this.frequency;
- }
-
- /**
- * Set the frequency property: Interval in seconds between test runs for this WebTest. Default value is 300.
- *
- * @param frequency the frequency value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withFrequency(Integer frequency) {
- this.frequency = frequency;
- return this;
- }
-
- /**
- * Get the timeout property: Seconds until this WebTest will timeout and fail. Default value is 30.
- *
- * @return the timeout value.
- */
- public Integer timeout() {
- return this.timeout;
- }
-
- /**
- * Set the timeout property: Seconds until this WebTest will timeout and fail. Default value is 30.
- *
- * @param timeout the timeout value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withTimeout(Integer timeout) {
- this.timeout = timeout;
- return this;
- }
-
- /**
- * Get the webTestKind property: The kind of web test this is, valid choices are ping and multistep.
- *
- * @return the webTestKind value.
- */
- public WebTestKind webTestKind() {
- return this.webTestKind;
- }
-
- /**
- * Set the webTestKind property: The kind of web test this is, valid choices are ping and multistep.
- *
- * @param webTestKind the webTestKind value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withWebTestKind(WebTestKind webTestKind) {
- this.webTestKind = webTestKind;
- return this;
- }
-
- /**
- * Get the retryEnabled property: Allow for retries should this WebTest fail.
- *
- * @return the retryEnabled value.
- */
- public Boolean retryEnabled() {
- return this.retryEnabled;
- }
-
- /**
- * Set the retryEnabled property: Allow for retries should this WebTest fail.
- *
- * @param retryEnabled the retryEnabled value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withRetryEnabled(Boolean retryEnabled) {
- this.retryEnabled = retryEnabled;
- return this;
- }
-
- /**
- * Get the locations property: A list of where to physically run the tests from to give global coverage for
- * accessibility of your application.
- *
- * @return the locations value.
- */
- public List locations() {
- return this.locations;
- }
-
- /**
- * Set the locations property: A list of where to physically run the tests from to give global coverage for
- * accessibility of your application.
- *
- * @param locations the locations value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withLocations(List locations) {
- this.locations = locations;
- return this;
- }
-
- /**
- * Get the configuration property: An XML configuration specification for a WebTest.
- *
- * @return the configuration value.
- */
- public WebTestPropertiesConfiguration configuration() {
- return this.configuration;
- }
-
- /**
- * Set the configuration property: An XML configuration specification for a WebTest.
- *
- * @param configuration the configuration value to set.
- * @return the WebTestInner object itself.
- */
- public WebTestInner withConfiguration(WebTestPropertiesConfiguration configuration) {
- this.configuration = configuration;
- return this;
- }
-
- /**
- * Get the provisioningState property: Current state of this component, whether or not is has been provisioned
- * within the resource group it is defined. Users cannot change this value but are able to read from it. Values will
- * include Succeeded, Deploying, Canceled, and Failed.
- *
- * @return the provisioningState value.
- */
- public String provisioningState() {
- return this.provisioningState;
- }
-
- /** {@inheritDoc} */
- @Override
- public WebTestInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public WebTestInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- super.validate();
- if (locations() != null) {
- locations().forEach(e -> e.validate());
- }
- if (configuration() != null) {
- configuration().validate();
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkItemConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkItemConfigurationInner.java
deleted file mode 100644
index 8fe88c790d1f7..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkItemConfigurationInner.java
+++ /dev/null
@@ -1,154 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Work item configuration associated with an application insights resource. */
-@Fluent
-public final class WorkItemConfigurationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkItemConfigurationInner.class);
-
- /*
- * Connector identifier where work item is created
- */
- @JsonProperty(value = "ConnectorId")
- private String connectorId;
-
- /*
- * Configuration friendly name
- */
- @JsonProperty(value = "ConfigDisplayName")
- private String configDisplayName;
-
- /*
- * Boolean value indicating whether configuration is default
- */
- @JsonProperty(value = "IsDefault")
- private Boolean isDefault;
-
- /*
- * Unique Id for work item
- */
- @JsonProperty(value = "Id")
- private String id;
-
- /*
- * Serialized JSON object for detailed properties
- */
- @JsonProperty(value = "ConfigProperties")
- private String configProperties;
-
- /**
- * Get the connectorId property: Connector identifier where work item is created.
- *
- * @return the connectorId value.
- */
- public String connectorId() {
- return this.connectorId;
- }
-
- /**
- * Set the connectorId property: Connector identifier where work item is created.
- *
- * @param connectorId the connectorId value to set.
- * @return the WorkItemConfigurationInner object itself.
- */
- public WorkItemConfigurationInner withConnectorId(String connectorId) {
- this.connectorId = connectorId;
- return this;
- }
-
- /**
- * Get the configDisplayName property: Configuration friendly name.
- *
- * @return the configDisplayName value.
- */
- public String configDisplayName() {
- return this.configDisplayName;
- }
-
- /**
- * Set the configDisplayName property: Configuration friendly name.
- *
- * @param configDisplayName the configDisplayName value to set.
- * @return the WorkItemConfigurationInner object itself.
- */
- public WorkItemConfigurationInner withConfigDisplayName(String configDisplayName) {
- this.configDisplayName = configDisplayName;
- return this;
- }
-
- /**
- * Get the isDefault property: Boolean value indicating whether configuration is default.
- *
- * @return the isDefault value.
- */
- public Boolean isDefault() {
- return this.isDefault;
- }
-
- /**
- * Set the isDefault property: Boolean value indicating whether configuration is default.
- *
- * @param isDefault the isDefault value to set.
- * @return the WorkItemConfigurationInner object itself.
- */
- public WorkItemConfigurationInner withIsDefault(Boolean isDefault) {
- this.isDefault = isDefault;
- return this;
- }
-
- /**
- * Get the id property: Unique Id for work item.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Set the id property: Unique Id for work item.
- *
- * @param id the id value to set.
- * @return the WorkItemConfigurationInner object itself.
- */
- public WorkItemConfigurationInner withId(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Get the configProperties property: Serialized JSON object for detailed properties.
- *
- * @return the configProperties value.
- */
- public String configProperties() {
- return this.configProperties;
- }
-
- /**
- * Set the configProperties property: Serialized JSON object for detailed properties.
- *
- * @param configProperties the configProperties value to set.
- * @return the WorkItemConfigurationInner object itself.
- */
- public WorkItemConfigurationInner withConfigProperties(String configProperties) {
- this.configProperties = configProperties;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookInner.java
deleted file mode 100644
index f9540794682f4..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookInner.java
+++ /dev/null
@@ -1,422 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
-import com.azure.core.management.Resource;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.models.Kind;
-import com.azure.resourcemanager.applicationinsights.models.ManagedIdentityAutoGenerated;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.List;
-import java.util.Map;
-
-/** An Application Insights workbook definition. */
-@JsonFlatten
-@Fluent
-public class WorkbookInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookInner.class);
-
- /*
- * The kind of workbook. Choices are user and shared.
- */
- @JsonProperty(value = "kind")
- private Kind kind;
-
- /*
- * The user-defined name (display name) of the workbook.
- */
- @JsonProperty(value = "properties.displayName")
- private String displayName;
-
- /*
- * Configuration of this particular workbook. Configuration data is a
- * string containing valid JSON
- */
- @JsonProperty(value = "properties.serializedData")
- private String serializedData;
-
- /*
- * Workbook version
- */
- @JsonProperty(value = "properties.version")
- private String version;
-
- /*
- * Date and time in UTC of the last modification that was made to this
- * workbook definition.
- */
- @JsonProperty(value = "properties.timeModified", access = JsonProperty.Access.WRITE_ONLY)
- private String timeModified;
-
- /*
- * Workbook category, as defined by the user at creation time.
- */
- @JsonProperty(value = "properties.category")
- private String category;
-
- /*
- * A list of 0 or more tags that are associated with this workbook
- * definition
- */
- @JsonProperty(value = "properties.tags")
- private List tagsPropertiesTags;
-
- /*
- * Unique user id of the specific user that owns this workbook.
- */
- @JsonProperty(value = "properties.userId", access = JsonProperty.Access.WRITE_ONLY)
- private String userId;
-
- /*
- * ResourceId for a source resource.
- */
- @JsonProperty(value = "properties.sourceId")
- private String sourceId;
-
- /*
- * BYOS Storage Account URI
- */
- @JsonProperty(value = "properties.storageUri")
- private String storageUri;
-
- /*
- * Identity used for BYOS
- */
- @JsonProperty(value = "identity")
- private ManagedIdentityAutoGenerated identity;
-
- /*
- * Resource etag
- */
- @JsonProperty(value = "etag")
- private Map etag;
-
- /*
- * Azure resource Id
- */
- @JsonProperty(value = "id")
- private String id;
-
- /*
- * Azure resource name
- */
- @JsonProperty(value = "name")
- private String name;
-
- /*
- * Azure resource type
- */
- @JsonProperty(value = "type")
- private String type;
-
- /**
- * Get the kind property: The kind of workbook. Choices are user and shared.
- *
- * @return the kind value.
- */
- public Kind kind() {
- return this.kind;
- }
-
- /**
- * Set the kind property: The kind of workbook. Choices are user and shared.
- *
- * @param kind the kind value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withKind(Kind kind) {
- this.kind = kind;
- return this;
- }
-
- /**
- * Get the displayName property: The user-defined name (display name) of the workbook.
- *
- * @return the displayName value.
- */
- public String displayName() {
- return this.displayName;
- }
-
- /**
- * Set the displayName property: The user-defined name (display name) of the workbook.
- *
- * @param displayName the displayName value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withDisplayName(String displayName) {
- this.displayName = displayName;
- return this;
- }
-
- /**
- * Get the serializedData property: Configuration of this particular workbook. Configuration data is a string
- * containing valid JSON.
- *
- * @return the serializedData value.
- */
- public String serializedData() {
- return this.serializedData;
- }
-
- /**
- * Set the serializedData property: Configuration of this particular workbook. Configuration data is a string
- * containing valid JSON.
- *
- * @param serializedData the serializedData value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withSerializedData(String serializedData) {
- this.serializedData = serializedData;
- return this;
- }
-
- /**
- * Get the version property: Workbook version.
- *
- * @return the version value.
- */
- public String version() {
- return this.version;
- }
-
- /**
- * Set the version property: Workbook version.
- *
- * @param version the version value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withVersion(String version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the timeModified property: Date and time in UTC of the last modification that was made to this workbook
- * definition.
- *
- * @return the timeModified value.
- */
- public String timeModified() {
- return this.timeModified;
- }
-
- /**
- * Get the category property: Workbook category, as defined by the user at creation time.
- *
- * @return the category value.
- */
- public String category() {
- return this.category;
- }
-
- /**
- * Set the category property: Workbook category, as defined by the user at creation time.
- *
- * @param category the category value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withCategory(String category) {
- this.category = category;
- return this;
- }
-
- /**
- * Get the tagsPropertiesTags property: A list of 0 or more tags that are associated with this workbook definition.
- *
- * @return the tagsPropertiesTags value.
- */
- public List tagsPropertiesTags() {
- return this.tagsPropertiesTags;
- }
-
- /**
- * Set the tagsPropertiesTags property: A list of 0 or more tags that are associated with this workbook definition.
- *
- * @param tagsPropertiesTags the tagsPropertiesTags value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withTagsPropertiesTags(List tagsPropertiesTags) {
- this.tagsPropertiesTags = tagsPropertiesTags;
- return this;
- }
-
- /**
- * Get the userId property: Unique user id of the specific user that owns this workbook.
- *
- * @return the userId value.
- */
- public String userId() {
- return this.userId;
- }
-
- /**
- * Get the sourceId property: ResourceId for a source resource.
- *
- * @return the sourceId value.
- */
- public String sourceId() {
- return this.sourceId;
- }
-
- /**
- * Set the sourceId property: ResourceId for a source resource.
- *
- * @param sourceId the sourceId value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withSourceId(String sourceId) {
- this.sourceId = sourceId;
- return this;
- }
-
- /**
- * Get the storageUri property: BYOS Storage Account URI.
- *
- * @return the storageUri value.
- */
- public String storageUri() {
- return this.storageUri;
- }
-
- /**
- * Set the storageUri property: BYOS Storage Account URI.
- *
- * @param storageUri the storageUri value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withStorageUri(String storageUri) {
- this.storageUri = storageUri;
- return this;
- }
-
- /**
- * Get the identity property: Identity used for BYOS.
- *
- * @return the identity value.
- */
- public ManagedIdentityAutoGenerated identity() {
- return this.identity;
- }
-
- /**
- * Set the identity property: Identity used for BYOS.
- *
- * @param identity the identity value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withIdentity(ManagedIdentityAutoGenerated identity) {
- this.identity = identity;
- return this;
- }
-
- /**
- * Get the etag property: Resource etag.
- *
- * @return the etag value.
- */
- public Map etag() {
- return this.etag;
- }
-
- /**
- * Set the etag property: Resource etag.
- *
- * @param etag the etag value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withEtag(Map etag) {
- this.etag = etag;
- return this;
- }
-
- /**
- * Get the id property: Azure resource Id.
- *
- * @return the id value.
- */
- public String id() {
- return this.id;
- }
-
- /**
- * Set the id property: Azure resource Id.
- *
- * @param id the id value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withId(String id) {
- this.id = id;
- return this;
- }
-
- /**
- * Get the name property: Azure resource name.
- *
- * @return the name value.
- */
- public String name() {
- return this.name;
- }
-
- /**
- * Set the name property: Azure resource name.
- *
- * @param name the name value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withName(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Get the type property: Azure resource type.
- *
- * @return the type value.
- */
- public String type() {
- return this.type;
- }
-
- /**
- * Set the type property: Azure resource type.
- *
- * @param type the type value to set.
- * @return the WorkbookInner object itself.
- */
- public WorkbookInner withType(String type) {
- this.type = type;
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public WorkbookInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public WorkbookInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (identity() != null) {
- identity().validate();
- }
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateInner.java
new file mode 100644
index 0000000000000..4bf192dd9ec00
--- /dev/null
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateInner.java
@@ -0,0 +1,196 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.applicationinsights.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateGallery;
+import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateLocalizedGallery;
+import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateResource;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** An Application Insights workbook template definition. */
+@JsonFlatten
+@Fluent
+public class WorkbookTemplateInner extends WorkbookTemplateResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookTemplateInner.class);
+
+ /*
+ * Priority of the template. Determines which template to open when a
+ * workbook gallery is opened in viewer mode.
+ */
+ @JsonProperty(value = "properties.priority")
+ private Integer priority;
+
+ /*
+ * Information about the author of the workbook template.
+ */
+ @JsonProperty(value = "properties.author")
+ private String author;
+
+ /*
+ * Valid JSON object containing workbook template payload.
+ */
+ @JsonProperty(value = "properties.templateData")
+ private Object templateData;
+
+ /*
+ * Workbook galleries supported by the template.
+ */
+ @JsonProperty(value = "properties.galleries")
+ private List galleries;
+
+ /*
+ * Key value pair of localized gallery. Each key is the locale code of
+ * languages supported by the Azure portal.
+ */
+ @JsonProperty(value = "properties.localized")
+ private Map> localized;
+
+ /**
+ * Get the priority property: Priority of the template. Determines which template to open when a workbook gallery is
+ * opened in viewer mode.
+ *
+ * @return the priority value.
+ */
+ public Integer priority() {
+ return this.priority;
+ }
+
+ /**
+ * Set the priority property: Priority of the template. Determines which template to open when a workbook gallery is
+ * opened in viewer mode.
+ *
+ * @param priority the priority value to set.
+ * @return the WorkbookTemplateInner object itself.
+ */
+ public WorkbookTemplateInner withPriority(Integer priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * Get the author property: Information about the author of the workbook template.
+ *
+ * @return the author value.
+ */
+ public String author() {
+ return this.author;
+ }
+
+ /**
+ * Set the author property: Information about the author of the workbook template.
+ *
+ * @param author the author value to set.
+ * @return the WorkbookTemplateInner object itself.
+ */
+ public WorkbookTemplateInner withAuthor(String author) {
+ this.author = author;
+ return this;
+ }
+
+ /**
+ * Get the templateData property: Valid JSON object containing workbook template payload.
+ *
+ * @return the templateData value.
+ */
+ public Object templateData() {
+ return this.templateData;
+ }
+
+ /**
+ * Set the templateData property: Valid JSON object containing workbook template payload.
+ *
+ * @param templateData the templateData value to set.
+ * @return the WorkbookTemplateInner object itself.
+ */
+ public WorkbookTemplateInner withTemplateData(Object templateData) {
+ this.templateData = templateData;
+ return this;
+ }
+
+ /**
+ * Get the galleries property: Workbook galleries supported by the template.
+ *
+ * @return the galleries value.
+ */
+ public List galleries() {
+ return this.galleries;
+ }
+
+ /**
+ * Set the galleries property: Workbook galleries supported by the template.
+ *
+ * @param galleries the galleries value to set.
+ * @return the WorkbookTemplateInner object itself.
+ */
+ public WorkbookTemplateInner withGalleries(List galleries) {
+ this.galleries = galleries;
+ return this;
+ }
+
+ /**
+ * Get the localized property: Key value pair of localized gallery. Each key is the locale code of languages
+ * supported by the Azure portal.
+ *
+ * @return the localized value.
+ */
+ public Map> localized() {
+ return this.localized;
+ }
+
+ /**
+ * Set the localized property: Key value pair of localized gallery. Each key is the locale code of languages
+ * supported by the Azure portal.
+ *
+ * @param localized the localized value to set.
+ * @return the WorkbookTemplateInner object itself.
+ */
+ public WorkbookTemplateInner withLocalized(Map> localized) {
+ this.localized = localized;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WorkbookTemplateInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public WorkbookTemplateInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (galleries() != null) {
+ galleries().forEach(e -> e.validate());
+ }
+ if (localized() != null) {
+ localized()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.forEach(e1 -> e1.validate());
+ }
+ });
+ }
+ }
+}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnalyticsItemsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnalyticsItemsClientImpl.java
deleted file mode 100644
index cafef071c9e50..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnalyticsItemsClientImpl.java
+++ /dev/null
@@ -1,1071 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.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.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.fluent.AnalyticsItemsClient;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentAnalyticsItemInner;
-import com.azure.resourcemanager.applicationinsights.models.ItemScope;
-import com.azure.resourcemanager.applicationinsights.models.ItemScopePath;
-import com.azure.resourcemanager.applicationinsights.models.ItemTypeParameter;
-import java.util.List;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in AnalyticsItemsClient. */
-public final class AnalyticsItemsClientImpl implements AnalyticsItemsClient {
- private final ClientLogger logger = new ClientLogger(AnalyticsItemsClientImpl.class);
-
- /** The proxy service used to perform REST calls. */
- private final AnalyticsItemsService service;
-
- /** The service client containing this operation class. */
- private final ApplicationInsightsManagementClientImpl client;
-
- /**
- * Initializes an instance of AnalyticsItemsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- AnalyticsItemsClientImpl(ApplicationInsightsManagementClientImpl client) {
- this.service =
- RestProxy.create(AnalyticsItemsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for ApplicationInsightsManagementClientAnalyticsItems to be used by the
- * proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "ApplicationInsightsM")
- private interface AnalyticsItemsService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components"
- + "/{resourceName}/{scopePath}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> list(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("resourceName") String resourceName,
- @PathParam("scopePath") ItemScopePath scopePath,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("scope") ItemScope scope,
- @QueryParam("type") ItemTypeParameter type,
- @QueryParam("includeContent") Boolean includeContent,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components"
- + "/{resourceName}/{scopePath}/item")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("resourceName") String resourceName,
- @PathParam("scopePath") ItemScopePath scopePath,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("id") String id,
- @QueryParam("name") String name,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components"
- + "/{resourceName}/{scopePath}/item")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> put(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("resourceName") String resourceName,
- @PathParam("scopePath") ItemScopePath scopePath,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("overrideItem") Boolean overrideItem,
- @BodyParam("application/json") ApplicationInsightsComponentAnalyticsItemInner itemProperties,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components"
- + "/{resourceName}/{scopePath}/item")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(
- @HostParam("$host") String endpoint,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("resourceName") String resourceName,
- @PathParam("scopePath") ItemScopePath scopePath,
- @QueryParam("api-version") String apiVersion,
- @QueryParam("id") String id,
- @QueryParam("name") String name,
- Context context);
- }
-
- /**
- * Gets a list of Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param scope Enum indicating if this item definition is owned by a specific user or is shared between all users
- * with access to the Application Insights component.
- * @param type Enum indicating the type of the Analytics item.
- * @param includeContent Flag indicating whether or not to return the content of each applicable item. If false,
- * only return the item information.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> listWithResponseAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ItemScope scope,
- ItemTypeParameter type,
- Boolean includeContent) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- scope,
- type,
- includeContent,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets a list of Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param scope Enum indicating if this item definition is owned by a specific user or is shared between all users
- * with access to the Application Insights component.
- * @param type Enum indicating the type of the Analytics item.
- * @param includeContent Flag indicating whether or not to return the content of each applicable item. If false,
- * only return the item information.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> listWithResponseAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ItemScope scope,
- ItemTypeParameter type,
- Boolean includeContent,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- scope,
- type,
- includeContent,
- accept,
- context);
- }
-
- /**
- * Gets a list of Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param scope Enum indicating if this item definition is owned by a specific user or is shared between all users
- * with access to the Application Insights component.
- * @param type Enum indicating the type of the Analytics item.
- * @param includeContent Flag indicating whether or not to return the content of each applicable item. If false,
- * only return the item information.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ItemScope scope,
- ItemTypeParameter type,
- Boolean includeContent) {
- return listWithResponseAsync(resourceGroupName, resourceName, scopePath, scope, type, includeContent)
- .flatMap(
- (Response> res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Gets a list of Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listAsync(
- String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- final ItemScope scope = null;
- final ItemTypeParameter type = null;
- final Boolean includeContent = null;
- return listWithResponseAsync(resourceGroupName, resourceName, scopePath, scope, type, includeContent)
- .flatMap(
- (Response> res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Gets a list of Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public List list(
- String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- final ItemScope scope = null;
- final ItemTypeParameter type = null;
- final Boolean includeContent = null;
- return listAsync(resourceGroupName, resourceName, scopePath, scope, type, includeContent).block();
- }
-
- /**
- * Gets a list of Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param scope Enum indicating if this item definition is owned by a specific user or is shared between all users
- * with access to the Application Insights component.
- * @param type Enum indicating the type of the Analytics item.
- * @param includeContent Flag indicating whether or not to return the content of each applicable item. If false,
- * only return the item information.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response> listWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ItemScope scope,
- ItemTypeParameter type,
- Boolean includeContent,
- Context context) {
- return listWithResponseAsync(resourceGroupName, resourceName, scopePath, scope, type, includeContent, context)
- .block();
- }
-
- /**
- * Gets a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 specific Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String resourceName, ItemScopePath scopePath, String id, String name) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- id,
- name,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 specific Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- String id,
- String name,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .get(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- id,
- name,
- accept,
- context);
- }
-
- /**
- * Gets a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 specific Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(
- String resourceGroupName, String resourceName, ItemScopePath scopePath, String id, String name) {
- return getWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Gets a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @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 specific Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(
- String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- final String id = null;
- final String name = null;
- return getWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Gets a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @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 specific Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentAnalyticsItemInner get(
- String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- final String id = null;
- final String name = null;
- return getAsync(resourceGroupName, resourceName, scopePath, id, name).block();
- }
-
- /**
- * Gets a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 specific Analytics Items defined within an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- String id,
- String name,
- Context context) {
- return getWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name, context).block();
- }
-
- /**
- * Adds or Updates a specific Analytics Item within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param itemProperties Properties that need to be specified to create a new item and add it to an Application
- * Insights component.
- * @param overrideItem Flag indicating whether or not to force save an item. This allows overriding an item if it
- * already exists.
- * @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 properties that define an Analytics item that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> putWithResponseAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties,
- Boolean overrideItem) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- if (itemProperties == null) {
- return Mono.error(new IllegalArgumentException("Parameter itemProperties is required and cannot be null."));
- } else {
- itemProperties.validate();
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .put(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- overrideItem,
- itemProperties,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Adds or Updates a specific Analytics Item within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param itemProperties Properties that need to be specified to create a new item and add it to an Application
- * Insights component.
- * @param overrideItem Flag indicating whether or not to force save an item. This allows overriding an item if it
- * already exists.
- * @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 properties that define an Analytics item that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> putWithResponseAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties,
- Boolean overrideItem,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- if (itemProperties == null) {
- return Mono.error(new IllegalArgumentException("Parameter itemProperties is required and cannot be null."));
- } else {
- itemProperties.validate();
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .put(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- overrideItem,
- itemProperties,
- accept,
- context);
- }
-
- /**
- * Adds or Updates a specific Analytics Item within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param itemProperties Properties that need to be specified to create a new item and add it to an Application
- * Insights component.
- * @param overrideItem Flag indicating whether or not to force save an item. This allows overriding an item if it
- * already exists.
- * @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 properties that define an Analytics item that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono putAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties,
- Boolean overrideItem) {
- return putWithResponseAsync(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Adds or Updates a specific Analytics Item within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param itemProperties Properties that need to be specified to create a new item and add it to an Application
- * Insights component.
- * @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 properties that define an Analytics item that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono putAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties) {
- final Boolean overrideItem = null;
- return putWithResponseAsync(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Adds or Updates a specific Analytics Item within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param itemProperties Properties that need to be specified to create a new item and add it to an Application
- * Insights component.
- * @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 properties that define an Analytics item that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentAnalyticsItemInner put(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties) {
- final Boolean overrideItem = null;
- return putAsync(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem).block();
- }
-
- /**
- * Adds or Updates a specific Analytics Item within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param itemProperties Properties that need to be specified to create a new item and add it to an Application
- * Insights component.
- * @param overrideItem Flag indicating whether or not to force save an item. This allows overriding an item if it
- * already exists.
- * @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 properties that define an Analytics item that is associated to an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response putWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties,
- Boolean overrideItem,
- Context context) {
- return putWithResponseAsync(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem, context)
- .block();
- }
-
- /**
- * Deletes a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName, String resourceName, ItemScopePath scopePath, String id, String name) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- return FluxUtil
- .withContext(
- context ->
- service
- .delete(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- id,
- name,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Deletes a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- String id,
- String name,
- Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (scopePath == null) {
- return Mono.error(new IllegalArgumentException("Parameter scopePath is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- context = this.client.mergeContext(context);
- return service
- .delete(
- this.client.getEndpoint(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- resourceName,
- scopePath,
- apiVersion,
- id,
- name,
- context);
- }
-
- /**
- * Deletes a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(
- String resourceGroupName, String resourceName, ItemScopePath scopePath, String id, String name) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name)
- .flatMap((Response res) -> Mono.empty());
- }
-
- /**
- * Deletes a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @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 completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- final String id = null;
- final String name = null;
- return deleteWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name)
- .flatMap((Response res) -> Mono.empty());
- }
-
- /**
- * Deletes a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @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 resourceName, ItemScopePath scopePath) {
- final String id = null;
- final String name = null;
- deleteAsync(resourceGroupName, resourceName, scopePath, id, name).block();
- }
-
- /**
- * Deletes a specific Analytics Items defined within an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param scopePath Enum indicating if this item definition is owned by a specific user or is shared between all
- * users with access to the Application Insights component.
- * @param id The Id of a specific item defined in the Application Insights component.
- * @param name The name of a specific item defined in the Application Insights component.
- * @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 Response deleteWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- String id,
- String name,
- Context context) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name, context).block();
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnalyticsItemsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnalyticsItemsImpl.java
deleted file mode 100644
index c04b63abecced..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnalyticsItemsImpl.java
+++ /dev/null
@@ -1,168 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.implementation;
-
-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.applicationinsights.fluent.AnalyticsItemsClient;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentAnalyticsItemInner;
-import com.azure.resourcemanager.applicationinsights.models.AnalyticsItems;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentAnalyticsItem;
-import com.azure.resourcemanager.applicationinsights.models.ItemScope;
-import com.azure.resourcemanager.applicationinsights.models.ItemScopePath;
-import com.azure.resourcemanager.applicationinsights.models.ItemTypeParameter;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import java.util.Collections;
-import java.util.List;
-import java.util.stream.Collectors;
-
-public final class AnalyticsItemsImpl implements AnalyticsItems {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AnalyticsItemsImpl.class);
-
- private final AnalyticsItemsClient innerClient;
-
- private final com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager;
-
- public AnalyticsItemsImpl(
- AnalyticsItemsClient innerClient,
- com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public List list(
- String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- List inner =
- this.serviceClient().list(resourceGroupName, resourceName, scopePath);
- if (inner != null) {
- return Collections
- .unmodifiableList(
- inner
- .stream()
- .map(inner1 -> new ApplicationInsightsComponentAnalyticsItemImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return Collections.emptyList();
- }
- }
-
- public Response> listWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ItemScope scope,
- ItemTypeParameter type,
- Boolean includeContent,
- Context context) {
- Response> inner =
- this
- .serviceClient()
- .listWithResponse(resourceGroupName, resourceName, scopePath, scope, type, includeContent, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- inner
- .getValue()
- .stream()
- .map(inner1 -> new ApplicationInsightsComponentAnalyticsItemImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return null;
- }
- }
-
- public ApplicationInsightsComponentAnalyticsItem get(
- String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- ApplicationInsightsComponentAnalyticsItemInner inner =
- this.serviceClient().get(resourceGroupName, resourceName, scopePath);
- if (inner != null) {
- return new ApplicationInsightsComponentAnalyticsItemImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response getWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- String id,
- String name,
- Context context) {
- Response inner =
- this.serviceClient().getWithResponse(resourceGroupName, resourceName, scopePath, id, name, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ApplicationInsightsComponentAnalyticsItemImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public ApplicationInsightsComponentAnalyticsItem put(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties) {
- ApplicationInsightsComponentAnalyticsItemInner inner =
- this.serviceClient().put(resourceGroupName, resourceName, scopePath, itemProperties);
- if (inner != null) {
- return new ApplicationInsightsComponentAnalyticsItemImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public Response putWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties,
- Boolean overrideItem,
- Context context) {
- Response inner =
- this
- .serviceClient()
- .putWithResponse(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- new ApplicationInsightsComponentAnalyticsItemImpl(inner.getValue(), this.manager()));
- } else {
- return null;
- }
- }
-
- public void delete(String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- this.serviceClient().delete(resourceGroupName, resourceName, scopePath);
- }
-
- public Response deleteWithResponse(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- String id,
- String name,
- Context context) {
- return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, scopePath, id, name, context);
- }
-
- private AnalyticsItemsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationImpl.java
deleted file mode 100644
index f6340d77058ab..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationImpl.java
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.implementation;
-
-import com.azure.resourcemanager.applicationinsights.fluent.models.AnnotationInner;
-import com.azure.resourcemanager.applicationinsights.models.Annotation;
-import java.time.OffsetDateTime;
-
-public final class AnnotationImpl implements Annotation {
- private AnnotationInner innerObject;
-
- private final com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager;
-
- AnnotationImpl(
- AnnotationInner innerObject,
- com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String annotationName() {
- return this.innerModel().annotationName();
- }
-
- public String category() {
- return this.innerModel().category();
- }
-
- public OffsetDateTime eventTime() {
- return this.innerModel().eventTime();
- }
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String properties() {
- return this.innerModel().properties();
- }
-
- public String relatedAnnotation() {
- return this.innerModel().relatedAnnotation();
- }
-
- public AnnotationInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsClientImpl.java
deleted file mode 100644
index 4b38ced0684ff..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsClientImpl.java
+++ /dev/null
@@ -1,822 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.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.PathParam;
-import com.azure.core.annotation.Put;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.fluent.AnnotationsClient;
-import com.azure.resourcemanager.applicationinsights.fluent.models.AnnotationInner;
-import com.azure.resourcemanager.applicationinsights.models.AnnotationErrorException;
-import com.azure.resourcemanager.applicationinsights.models.AnnotationsListResult;
-import java.util.List;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in AnnotationsClient. */
-public final class AnnotationsClientImpl implements AnnotationsClient {
- private final ClientLogger logger = new ClientLogger(AnnotationsClientImpl.class);
-
- /** The proxy service used to perform REST calls. */
- private final AnnotationsService service;
-
- /** The service client containing this operation class. */
- private final ApplicationInsightsManagementClientImpl client;
-
- /**
- * Initializes an instance of AnnotationsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- AnnotationsClientImpl(ApplicationInsightsManagementClientImpl client) {
- this.service =
- RestProxy.create(AnnotationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for ApplicationInsightsManagementClientAnnotations to be used by the
- * proxy service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "ApplicationInsightsM")
- private interface AnnotationsService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/Annotations")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(AnnotationErrorException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @QueryParam("start") String start,
- @QueryParam("end") String end,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/Annotations")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(AnnotationErrorException.class)
- Mono>> create(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @BodyParam("application/json") AnnotationInner annotationProperties,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Accept: application/json;q=0.9", "Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/Annotations/{annotationId}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @PathParam("annotationId") String annotationId,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/Annotations/{annotationId}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(AnnotationErrorException.class)
- Mono>> get(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @PathParam("annotationId") String annotationId,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Gets the list of annotations for a component for given time range.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param start The start time to query from for annotations, cannot be older than 90 days from current date.
- * @param end The end time to query for annotations.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, String resourceName, String start, String end) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (start == null) {
- return Mono.error(new IllegalArgumentException("Parameter start is required and cannot be null."));
- }
- if (end == null) {
- return Mono.error(new IllegalArgumentException("Parameter end is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- start,
- end,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets the list of annotations for a component for given time range.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param start The start time to query from for annotations, cannot be older than 90 days from current date.
- * @param end The end time to query for annotations.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, String resourceName, String start, String end, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (start == null) {
- return Mono.error(new IllegalArgumentException("Parameter start is required and cannot be null."));
- }
- if (end == null) {
- return Mono.error(new IllegalArgumentException("Parameter end is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- start,
- end,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
- }
-
- /**
- * Gets the list of annotations for a component for given time range.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param start The start time to query from for annotations, cannot be older than 90 days from current date.
- * @param end The end time to query for annotations.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName, String resourceName, String start, String end) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, start, end));
- }
-
- /**
- * Gets the list of annotations for a component for given time range.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param start The start time to query from for annotations, cannot be older than 90 days from current date.
- * @param end The end time to query for annotations.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName, String resourceName, String start, String end, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, start, end, context));
- }
-
- /**
- * Gets the list of annotations for a component for given time range.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param start The start time to query from for annotations, cannot be older than 90 days from current date.
- * @param end The end time to query for annotations.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String resourceGroupName, String resourceName, String start, String end) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceName, start, end));
- }
-
- /**
- * Gets the list of annotations for a component for given time range.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param start The start time to query from for annotations, cannot be older than 90 days from current date.
- * @param end The end time to query for annotations.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String resourceGroupName, String resourceName, String start, String end, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceName, start, end, context));
- }
-
- /**
- * Create an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationProperties Properties that need to be specified to create an annotation of a Application
- * Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of Annotation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (annotationProperties == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter annotationProperties is required and cannot be null."));
- } else {
- annotationProperties.validate();
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .create(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- annotationProperties,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationProperties Properties that need to be specified to create an annotation of a Application
- * Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of Annotation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (annotationProperties == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter annotationProperties is required and cannot be null."));
- } else {
- annotationProperties.validate();
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .create(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- annotationProperties,
- accept,
- context);
- }
-
- /**
- * Create an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationProperties Properties that need to be specified to create an annotation of a Application
- * Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of Annotation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createAsync(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties) {
- return createWithResponseAsync(resourceGroupName, resourceName, annotationProperties)
- .flatMap(
- (Response> res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Create an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationProperties Properties that need to be specified to create an annotation of a Application
- * Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of Annotation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public List create(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties) {
- return createAsync(resourceGroupName, resourceName, annotationProperties).block();
- }
-
- /**
- * Create an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationProperties Properties that need to be specified to create an annotation of a Application
- * Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return array of Annotation.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response> createWithResponse(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties, Context context) {
- return createWithResponseAsync(resourceGroupName, resourceName, annotationProperties, context).block();
- }
-
- /**
- * Delete an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @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 completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName, String resourceName, String annotationId) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (annotationId == null) {
- return Mono.error(new IllegalArgumentException("Parameter annotationId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- return FluxUtil
- .withContext(
- context ->
- service
- .delete(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- annotationId,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @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 completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName, String resourceName, String annotationId, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (annotationId == null) {
- return Mono.error(new IllegalArgumentException("Parameter annotationId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- context = this.client.mergeContext(context);
- return service
- .delete(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- annotationId,
- context);
- }
-
- /**
- * Delete an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @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 completion.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String resourceName, String annotationId) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, annotationId)
- .flatMap((Response res) -> Mono.empty());
- }
-
- /**
- * Delete an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @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 resourceName, String annotationId) {
- deleteAsync(resourceGroupName, resourceName, annotationId).block();
- }
-
- /**
- * Delete an Annotation of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @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 Response deleteWithResponse(
- String resourceGroupName, String resourceName, String annotationId, Context context) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, annotationId, context).block();
- }
-
- /**
- * Get the annotation for given id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the annotation for given id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> getWithResponseAsync(
- String resourceGroupName, String resourceName, String annotationId) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (annotationId == null) {
- return Mono.error(new IllegalArgumentException("Parameter annotationId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- annotationId,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the annotation for given id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the annotation for given id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> getWithResponseAsync(
- String resourceGroupName, String resourceName, String annotationId, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (annotationId == null) {
- return Mono.error(new IllegalArgumentException("Parameter annotationId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .get(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- annotationId,
- accept,
- context);
- }
-
- /**
- * Get the annotation for given id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the annotation for given id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getAsync(String resourceGroupName, String resourceName, String annotationId) {
- return getWithResponseAsync(resourceGroupName, resourceName, annotationId)
- .flatMap(
- (Response> res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Get the annotation for given id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the annotation for given id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public List get(String resourceGroupName, String resourceName, String annotationId) {
- return getAsync(resourceGroupName, resourceName, annotationId).block();
- }
-
- /**
- * Get the annotation for given id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param annotationId The unique annotation ID. This is unique within a Application Insights component.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws AnnotationErrorException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the annotation for given id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response> getWithResponse(
- String resourceGroupName, String resourceName, String annotationId, Context context) {
- return getWithResponseAsync(resourceGroupName, resourceName, annotationId, context).block();
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsImpl.java
deleted file mode 100644
index 632b3a21b0908..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsImpl.java
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.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.applicationinsights.fluent.AnnotationsClient;
-import com.azure.resourcemanager.applicationinsights.fluent.models.AnnotationInner;
-import com.azure.resourcemanager.applicationinsights.models.Annotation;
-import com.azure.resourcemanager.applicationinsights.models.Annotations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import java.util.Collections;
-import java.util.List;
-import java.util.stream.Collectors;
-
-public final class AnnotationsImpl implements Annotations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AnnotationsImpl.class);
-
- private final AnnotationsClient innerClient;
-
- private final com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager;
-
- public AnnotationsImpl(
- AnnotationsClient innerClient,
- com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String resourceGroupName, String resourceName, String start, String end) {
- PagedIterable inner = this.serviceClient().list(resourceGroupName, resourceName, start, end);
- return Utils.mapPage(inner, inner1 -> new AnnotationImpl(inner1, this.manager()));
- }
-
- public PagedIterable list(
- String resourceGroupName, String resourceName, String start, String end, Context context) {
- PagedIterable inner =
- this.serviceClient().list(resourceGroupName, resourceName, start, end, context);
- return Utils.mapPage(inner, inner1 -> new AnnotationImpl(inner1, this.manager()));
- }
-
- public List create(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties) {
- List inner =
- this.serviceClient().create(resourceGroupName, resourceName, annotationProperties);
- if (inner != null) {
- return Collections
- .unmodifiableList(
- inner
- .stream()
- .map(inner1 -> new AnnotationImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return Collections.emptyList();
- }
- }
-
- public Response> createWithResponse(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties, Context context) {
- Response> inner =
- this.serviceClient().createWithResponse(resourceGroupName, resourceName, annotationProperties, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- inner
- .getValue()
- .stream()
- .map(inner1 -> new AnnotationImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return null;
- }
- }
-
- public void delete(String resourceGroupName, String resourceName, String annotationId) {
- this.serviceClient().delete(resourceGroupName, resourceName, annotationId);
- }
-
- public Response deleteWithResponse(
- String resourceGroupName, String resourceName, String annotationId, Context context) {
- return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, annotationId, context);
- }
-
- public List get(String resourceGroupName, String resourceName, String annotationId) {
- List inner = this.serviceClient().get(resourceGroupName, resourceName, annotationId);
- if (inner != null) {
- return Collections
- .unmodifiableList(
- inner
- .stream()
- .map(inner1 -> new AnnotationImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return Collections.emptyList();
- }
- }
-
- public Response> getWithResponse(
- String resourceGroupName, String resourceName, String annotationId, Context context) {
- Response> inner =
- this.serviceClient().getWithResponse(resourceGroupName, resourceName, annotationId, context);
- if (inner != null) {
- return new SimpleResponse<>(
- inner.getRequest(),
- inner.getStatusCode(),
- inner.getHeaders(),
- inner
- .getValue()
- .stream()
- .map(inner1 -> new AnnotationImpl(inner1, this.manager()))
- .collect(Collectors.toList()));
- } else {
- return null;
- }
- }
-
- private AnnotationsClient serviceClient() {
- return this.innerClient;
- }
-
- private com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysClientImpl.java
deleted file mode 100644
index c8eee64acc846..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysClientImpl.java
+++ /dev/null
@@ -1,804 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.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.PathParam;
-import com.azure.core.annotation.Post;
-import com.azure.core.annotation.QueryParam;
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceInterface;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.annotation.UnexpectedResponseExceptionType;
-import com.azure.core.http.rest.PagedFlux;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.PagedResponse;
-import com.azure.core.http.rest.PagedResponseBase;
-import com.azure.core.http.rest.Response;
-import com.azure.core.http.rest.RestProxy;
-import com.azure.core.management.exception.ManagementException;
-import com.azure.core.util.Context;
-import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.applicationinsights.fluent.ApiKeysClient;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentApiKeyInner;
-import com.azure.resourcemanager.applicationinsights.models.ApiKeyRequest;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentApiKeyListResult;
-import reactor.core.publisher.Mono;
-
-/** An instance of this class provides access to all the operations defined in ApiKeysClient. */
-public final class ApiKeysClientImpl implements ApiKeysClient {
- private final ClientLogger logger = new ClientLogger(ApiKeysClientImpl.class);
-
- /** The proxy service used to perform REST calls. */
- private final ApiKeysService service;
-
- /** The service client containing this operation class. */
- private final ApplicationInsightsManagementClientImpl client;
-
- /**
- * Initializes an instance of ApiKeysClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- ApiKeysClientImpl(ApplicationInsightsManagementClientImpl client) {
- this.service = RestProxy.create(ApiKeysService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for ApplicationInsightsManagementClientApiKeys to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{$host}")
- @ServiceInterface(name = "ApplicationInsightsM")
- private interface ApiKeysService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/ApiKeys")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Post(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/ApiKeys")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> create(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @BodyParam("application/json") ApiKeyRequest apiKeyProperties,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/APIKeys/{keyId}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> delete(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @PathParam("keyId") String keyId,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
- + "/{resourceName}/APIKeys/{keyId}")
- @ExpectedResponses({200})
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(
- @HostParam("$host") String endpoint,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceName") String resourceName,
- @PathParam("keyId") String keyId,
- @HeaderParam("Accept") String accept,
- Context context);
- }
-
- /**
- * Gets a list of API keys of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, String resourceName) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .list(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- accept,
- context))
- .>map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Gets a list of API keys of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(
- String resourceGroupName, String resourceName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .list(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- accept,
- context)
- .map(
- res ->
- new PagedResponseBase<>(
- res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
- }
-
- /**
- * Gets a list of API keys of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName, String resourceName) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName));
- }
-
- /**
- * Gets a list of API keys of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(
- String resourceGroupName, String resourceName, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context));
- }
-
- /**
- * Gets a list of API keys of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(String resourceGroupName, String resourceName) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceName));
- }
-
- /**
- * Gets a list of API keys of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(
- String resourceGroupName, String resourceName, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context));
- }
-
- /**
- * Create an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param apiKeyProperties Properties that need to be specified to create an API key of a Application Insights
- * component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createWithResponseAsync(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (apiKeyProperties == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter apiKeyProperties is required and cannot be null."));
- } else {
- apiKeyProperties.validate();
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .create(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- apiKeyProperties,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param apiKeyProperties Properties that need to be specified to create an API key of a Application Insights
- * component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> createWithResponseAsync(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (apiKeyProperties == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter apiKeyProperties is required and cannot be null."));
- } else {
- apiKeyProperties.validate();
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .create(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- apiKeyProperties,
- accept,
- context);
- }
-
- /**
- * Create an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param apiKeyProperties Properties that need to be specified to create an API key of a Application Insights
- * component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties) {
- return createWithResponseAsync(resourceGroupName, resourceName, apiKeyProperties)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Create an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param apiKeyProperties Properties that need to be specified to create an API key of a Application Insights
- * component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentApiKeyInner create(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties) {
- return createAsync(resourceGroupName, resourceName, apiKeyProperties).block();
- }
-
- /**
- * Create an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param apiKeyProperties Properties that need to be specified to create an API key of a Application Insights
- * component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response createWithResponse(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties, Context context) {
- return createWithResponseAsync(resourceGroupName, resourceName, apiKeyProperties, context).block();
- }
-
- /**
- * Delete an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName, String resourceName, String keyId) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (keyId == null) {
- return Mono.error(new IllegalArgumentException("Parameter keyId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .delete(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- keyId,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> deleteWithResponseAsync(
- String resourceGroupName, String resourceName, String keyId, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (keyId == null) {
- return Mono.error(new IllegalArgumentException("Parameter keyId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .delete(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- keyId,
- accept,
- context);
- }
-
- /**
- * Delete an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(
- String resourceGroupName, String resourceName, String keyId) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, keyId)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Delete an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentApiKeyInner delete(String resourceGroupName, String resourceName, String keyId) {
- return deleteAsync(resourceGroupName, resourceName, keyId).block();
- }
-
- /**
- * Delete an API Key of an Application Insights component.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 properties that define an API key of an Application Insights Component.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName, String resourceName, String keyId, Context context) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, keyId, context).block();
- }
-
- /**
- * Get the API Key for this key id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 API Key for this key id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String resourceName, String keyId) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (keyId == null) {
- return Mono.error(new IllegalArgumentException("Parameter keyId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- return FluxUtil
- .withContext(
- context ->
- service
- .get(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- keyId,
- accept,
- context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the API Key for this key id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 API Key for this key id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(
- String resourceGroupName, String resourceName, String keyId, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceName == null) {
- return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null."));
- }
- if (keyId == null) {
- return Mono.error(new IllegalArgumentException("Parameter keyId is required and cannot be null."));
- }
- final String apiVersion = "2015-05-01";
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service
- .get(
- this.client.getEndpoint(),
- resourceGroupName,
- apiVersion,
- this.client.getSubscriptionId(),
- resourceName,
- keyId,
- accept,
- context);
- }
-
- /**
- * Get the API Key for this key id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 API Key for this key id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(
- String resourceGroupName, String resourceName, String keyId) {
- return getWithResponseAsync(resourceGroupName, resourceName, keyId)
- .flatMap(
- (Response res) -> {
- if (res.getValue() != null) {
- return Mono.just(res.getValue());
- } else {
- return Mono.empty();
- }
- });
- }
-
- /**
- * Get the API Key for this key id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 API Key for this key id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentApiKeyInner get(String resourceGroupName, String resourceName, String keyId) {
- return getAsync(resourceGroupName, resourceName, keyId).block();
- }
-
- /**
- * Get the API Key for this key id.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param resourceName The name of the Application Insights component resource.
- * @param keyId The API Key ID. This is unique within a Application Insights component.
- * @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 API Key for this key id.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String resourceName, String keyId, Context context) {
- return getWithResponseAsync(resourceGroupName, resourceName, keyId, context).block();
- }
-}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysImpl.java
deleted file mode 100644
index 6d3cf0a506ac1..0000000000000
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysImpl.java
+++ /dev/null
@@ -1,129 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.applicationinsights.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.applicationinsights.fluent.ApiKeysClient;
-import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentApiKeyInner;
-import com.azure.resourcemanager.applicationinsights.models.ApiKeyRequest;
-import com.azure.resourcemanager.applicationinsights.models.ApiKeys;
-import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentApiKey;
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
-public final class ApiKeysImpl implements ApiKeys {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiKeysImpl.class);
-
- private final ApiKeysClient innerClient;
-
- private final com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager;
-
- public ApiKeysImpl(
- ApiKeysClient innerClient,
- com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager serviceManager) {
- this.innerClient = innerClient;
- this.serviceManager = serviceManager;
- }
-
- public PagedIterable list(String resourceGroupName, String resourceName) {
- PagedIterable inner =
- this.serviceClient().list(resourceGroupName, resourceName);
- return Utils.mapPage(inner, inner1 -> new ApplicationInsightsComponentApiKeyImpl(inner1, this.manager()));
- }
-
- public PagedIterable