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.
+ * Updates an existing component's tags. To update other fields use the CreateOrUpdate method.
*
* @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 componentTags Updated tag information to set into the component 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 response containing operationId for a specific purge action.
+ * @return an Application Insights component definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComponentPurgeResponseInner purge(String resourceGroupName, String resourceName, ComponentPurgeBody body);
+ ApplicationInsightsComponentInner updateTags(
+ String resourceGroupName, String resourceName, TagsResource componentTags);
/**
* Purges data in an Application Insights component by a set of user-defined filters.
@@ -214,7 +195,10 @@ Response updateTagsWithResponse(
* 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.
+ * a purge request to verify that the results are expected. Note: this operation is intended for Classic resources,
+ * for workspace-based Application Insights resource please run purge operation (directly on the
+ * workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific
+ * resource id.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
@@ -230,18 +214,26 @@ Response purgeWithResponse(
String resourceGroupName, String resourceName, ComponentPurgeBody body, Context context);
/**
- * Get status for an ongoing purge operation.
+ * 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. Note: this operation is intended for Classic resources,
+ * for workspace-based Application Insights resource please run purge operation (directly on the
+ * workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific
+ * resource 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 purgeId In a purge status request, this is the Id of the operation the status of which is returned.
+ * @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 status for an ongoing purge operation.
+ * @return response containing operationId for a specific purge action.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComponentPurgeStatusResponseInner getPurgeStatus(String resourceGroupName, String resourceName, String purgeId);
+ ComponentPurgeResponseInner purge(String resourceGroupName, String resourceName, ComponentPurgeBody body);
/**
* Get status for an ongoing purge operation.
@@ -258,4 +250,18 @@ Response purgeWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response getPurgeStatusWithResponse(
String resourceGroupName, String resourceName, String purgeId, 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);
}
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
index 3cdd5235d0e1..a46498bd465c 100644
--- 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
@@ -14,19 +14,6 @@
/** 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.
*
@@ -44,20 +31,17 @@ Response> listWithRes
String resourceGroupName, String resourceName, Context context);
/**
- * Create a Continuous Export configuration of an Application Insights component.
+ * 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 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.
+ * @return a list of Continuous Export configuration of an Application Insights component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- List create(
- String resourceGroupName, String resourceName, ApplicationInsightsComponentExportRequest exportProperties);
+ List list(String resourceGroupName, String resourceName);
/**
* Create a Continuous Export configuration of an Application Insights component.
@@ -80,19 +64,20 @@ Response> createWithR
Context context);
/**
- * Delete a Continuous Export configuration of an Application Insights component.
+ * 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 exportId The Continuous Export configuration ID. This is unique within a Application Insights component.
+ * @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 properties that define a Continuous Export configuration.
+ * @return a list of Continuous Export configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentExportConfigurationInner delete(
- String resourceGroupName, String resourceName, String exportId);
+ List create(
+ String resourceGroupName, String resourceName, ApplicationInsightsComponentExportRequest exportProperties);
/**
* Delete a Continuous Export configuration of an Application Insights component.
@@ -111,7 +96,7 @@ Response deleteWithRespons
String resourceGroupName, String resourceName, String exportId, Context context);
/**
- * Get the Continuous Export configuration for this export id.
+ * 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.
@@ -119,10 +104,10 @@ Response deleteWithRespons
* @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.
+ * @return properties that define a Continuous Export configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentExportConfigurationInner get(
+ ApplicationInsightsComponentExportConfigurationInner delete(
String resourceGroupName, String resourceName, String exportId);
/**
@@ -142,23 +127,19 @@ Response getWithResponse(
String resourceGroupName, String resourceName, String exportId, Context context);
/**
- * Update the Continuous Export configuration for this export id.
+ * 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 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.
+ * @return the Continuous Export configuration for this export id.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentExportConfigurationInner update(
- String resourceGroupName,
- String resourceName,
- String exportId,
- ApplicationInsightsComponentExportRequest exportProperties);
+ ApplicationInsightsComponentExportConfigurationInner get(
+ String resourceGroupName, String resourceName, String exportId);
/**
* Update the Continuous Export configuration for this export id.
@@ -180,4 +161,23 @@ Response updateWithRespons
String exportId,
ApplicationInsightsComponentExportRequest exportProperties,
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);
}
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
index 36393aa0e312..53a5ace76bfb 100644
--- 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
@@ -15,19 +15,6 @@
/** 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.
*
@@ -56,18 +43,17 @@ Response> listWithResponse(
Context context);
/**
- * Get a single favorite by its FavoriteId, defined within an Application Insights component.
+ * 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 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.
+ * @return a list of favorites defined within an Application Insights component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentFavoriteInner get(String resourceGroupName, String resourceName, String favoriteId);
+ List list(String resourceGroupName, String resourceName);
/**
* Get a single favorite by its FavoriteId, defined within an Application Insights component.
@@ -87,24 +73,18 @@ Response getWithResponse(
String resourceGroupName, String resourceName, String favoriteId, Context context);
/**
- * Adds a new favorites to an Application Insights component.
+ * 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 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.
+ * @return a single favorite by its FavoriteId, defined within an Application Insights component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentFavoriteInner add(
- String resourceGroupName,
- String resourceName,
- String favoriteId,
- ApplicationInsightsComponentFavoriteInner favoriteProperties);
+ ApplicationInsightsComponentFavoriteInner get(String resourceGroupName, String resourceName, String favoriteId);
/**
* Adds a new favorites to an Application Insights component.
@@ -130,19 +110,20 @@ Response addWithResponse(
Context context);
/**
- * Updates a favorite that has already been added to an Application Insights component.
+ * 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 update the existing favorite.
+ * @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 update(
+ ApplicationInsightsComponentFavoriteInner add(
String resourceGroupName,
String resourceName,
String favoriteId,
@@ -171,17 +152,23 @@ Response updateWithResponse(
Context context);
/**
- * Remove a favorite that is associated to an Application Insights component.
+ * 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)
- void delete(String resourceGroupName, String resourceName, String favoriteId);
+ ApplicationInsightsComponentFavoriteInner update(
+ String resourceGroupName,
+ String resourceName,
+ String favoriteId,
+ ApplicationInsightsComponentFavoriteInner favoriteProperties);
/**
* Remove a favorite that is associated to an Application Insights component.
@@ -198,4 +185,17 @@ Response updateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
String resourceGroupName, String resourceName, String favoriteId, 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);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/LiveTokensClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/LiveTokensClient.java
index 7659750d5fdb..3fa9baf5c68e 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/LiveTokensClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/LiveTokensClient.java
@@ -16,24 +16,24 @@ public interface LiveTokensClient {
* **Gets an access token for live metrics stream data.**.
*
* @param resourceUri The identifier of the 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 to a live token query.
+ * @return the response to a live token query along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LiveTokenResponseInner get(String resourceUri);
+ Response getWithResponse(String resourceUri, Context context);
/**
* **Gets an access token for live metrics stream data.**.
*
* @param resourceUri The identifier of the 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 to a live token query along with {@link Response}.
+ * @return the response to a live token query.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceUri, Context context);
+ LiveTokenResponseInner get(String resourceUri);
}
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
index ba1ccf6ed7e9..22093576b0b3 100644
--- 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
@@ -89,20 +89,6 @@ PagedIterable listByResourceGroup(
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.
*
@@ -120,7 +106,7 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String resourceName, Context context);
/**
- * Delete a private workbook.
+ * 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.
@@ -128,9 +114,10 @@ Response getByResourceGroupWithResponse(
* @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)
- void delete(String resourceGroupName, String resourceName);
+ MyWorkbookInner getByResourceGroup(String resourceGroupName, String resourceName);
/**
* Delete a private workbook.
@@ -148,19 +135,17 @@ Response getByResourceGroupWithResponse(
Response deleteWithResponse(String resourceGroupName, String resourceName, Context context);
/**
- * Create a new private workbook.
+ * 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 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);
+ void delete(String resourceGroupName, String resourceName);
/**
* Create a new private workbook.
@@ -185,7 +170,7 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Updates a private workbook that has already been added.
+ * 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.
@@ -197,7 +182,7 @@ Response createOrUpdateWithResponse(
* @return an Application Insights private workbook definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MyWorkbookInner update(String resourceGroupName, String resourceName, MyWorkbookInner workbookProperties);
+ MyWorkbookInner createOrUpdate(String resourceGroupName, String resourceName, MyWorkbookInner workbookProperties);
/**
* Updates a private workbook that has already been added.
@@ -220,4 +205,19 @@ Response updateWithResponse(
MyWorkbookInner workbookProperties,
String sourceId,
Context context);
+
+ /**
+ * Updates a private workbook that has already been added.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param workbookProperties Properties that need to be specified to create a new private workbook.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
+ * rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Application Insights private workbook definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MyWorkbookInner update(String resourceGroupName, String resourceName, MyWorkbookInner workbookProperties);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/OperationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/OperationsClient.java
index 179d564a1690..eef1549f5516 100644
--- 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
@@ -17,7 +17,8 @@ public interface OperationsClient {
*
* @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 CDN operations as paginated response with {@link PagedIterable}.
+ * @return result of the request to list Azure Workbooks operations as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +30,8 @@ public interface OperationsClient {
* @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 CDN operations as paginated response with {@link PagedIterable}.
+ * @return result of the request to list Azure Workbooks operations as paginated response with {@link
+ * PagedIterable}.
*/
@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
index a8e05b856372..95d35c1b8ce1 100644
--- 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
@@ -20,30 +20,30 @@ public interface ProactiveDetectionConfigurationsClient {
*
* @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.
+ * @return a list of ProactiveDetection configurations of an Application Insights component along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- List list(
- String resourceGroupName, String resourceName);
+ Response> listWithResponse(
+ String resourceGroupName, String resourceName, Context context);
/**
* 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 along with {@link
- * Response}.
+ * @return a list of ProactiveDetection configurations of an Application Insights component.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response> listWithResponse(
- String resourceGroupName, String resourceName, Context context);
+ List list(
+ String resourceGroupName, String resourceName);
/**
* Get the ProactiveDetection configuration for this configuration id.
@@ -52,14 +52,15 @@ Response>
* @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.
+ * @return the ProactiveDetection configuration for this configuration id along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentProactiveDetectionConfigurationInner get(
- String resourceGroupName, String resourceName, String configurationId);
+ Response getWithResponse(
+ String resourceGroupName, String resourceName, String configurationId, Context context);
/**
* Get the ProactiveDetection configuration for this configuration id.
@@ -68,15 +69,14 @@ ApplicationInsightsComponentProactiveDetectionConfigurationInner get(
* @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 along with {@link Response}.
+ * @return the ProactiveDetection configuration for this configuration id.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String resourceName, String configurationId, Context context);
+ ApplicationInsightsComponentProactiveDetectionConfigurationInner get(
+ String resourceGroupName, String resourceName, String configurationId);
/**
* Update the ProactiveDetection configuration for this configuration id.
@@ -87,17 +87,19 @@ Response getWi
* 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.
+ * @return properties that define a ProactiveDetection configuration along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInsightsComponentProactiveDetectionConfigurationInner update(
+ Response updateWithResponse(
String resourceGroupName,
String resourceName,
String configurationId,
- ApplicationInsightsComponentProactiveDetectionConfigurationInner proactiveDetectionProperties);
+ ApplicationInsightsComponentProactiveDetectionConfigurationInner proactiveDetectionProperties,
+ Context context);
/**
* Update the ProactiveDetection configuration for this configuration id.
@@ -108,17 +110,15 @@ ApplicationInsightsComponentProactiveDetectionConfigurationInner update(
* 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 along with {@link Response}.
+ * @return properties that define a ProactiveDetection configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
+ ApplicationInsightsComponentProactiveDetectionConfigurationInner update(
String resourceGroupName,
String resourceName,
String configurationId,
- ApplicationInsightsComponentProactiveDetectionConfigurationInner proactiveDetectionProperties,
- Context context);
+ ApplicationInsightsComponentProactiveDetectionConfigurationInner proactiveDetectionProperties);
}
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
index 389b5ec88568..b6b6194917a7 100644
--- 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
@@ -15,27 +15,27 @@
/** 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.
+ * Get all Application Insights web tests defined for the 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 as paginated response with
+ * @return all Application Insights web tests defined for the specified resource group as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Get all Application Insights web tests defined within a specified resource group.
+ * Get all Application Insights web tests defined for the 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 as paginated response with
+ * @return all Application Insights web tests defined for the specified resource group as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
@@ -45,20 +45,7 @@ public interface WebTestsClient {
* 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 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.
@@ -70,32 +57,30 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String webTestName, Context context);
/**
- * Creates or updates an Application Insights web test definition.
+ * 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 webTestDefinition Properties that need to be specified to create or update an Application Insights web
- * test definition.
+ * @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 an Application Insights web test definition.
+ * @return a specific Application Insights web test definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WebTestInner createOrUpdate(String resourceGroupName, String webTestName, WebTestInner webTestDefinition);
+ WebTestInner getByResourceGroup(String resourceGroupName, String webTestName);
/**
* 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 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 along with {@link Response}.
+ * @return an Application Insights WebTest definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -105,49 +90,52 @@ Response createOrUpdateWithResponse(
* 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 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.
+ * @return an Application Insights WebTest definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WebTestInner updateTags(String resourceGroupName, String webTestName, TagsResource webTestTags);
+ WebTestInner createOrUpdate(String resourceGroupName, String webTestName, WebTestInner webTestDefinition);
/**
- * Creates or updates an Application Insights web test definition.
+ * Updates the tags associated with 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 webTestTags Updated tag information to set into the web test instance.
+ * @param webTestName The name of the Application Insights WebTest resource.
+ * @param webTestTags Updated tag information to associate with the web test 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 an Application Insights web test definition along with {@link Response}.
+ * @return an Application Insights WebTest definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateTagsWithResponse(
String resourceGroupName, String webTestName, TagsResource webTestTags, Context context);
/**
- * Deletes an Application Insights web test.
+ * Updates the tags associated with 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 webTestName The name of the Application Insights WebTest resource.
+ * @param webTestTags Updated tag information to associate with the web test 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 an Application Insights WebTest definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String webTestName);
+ WebTestInner updateTags(String resourceGroupName, String webTestName, TagsResource webTestTags);
/**
* 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 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.
@@ -158,24 +146,36 @@ Response updateTagsWithResponse(
Response deleteWithResponse(String resourceGroupName, String webTestName, Context context);
/**
- * Get all Application Insights web test alerts definitions within a subscription.
+ * 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);
+
+ /**
+ * Get all Application Insights web test definitions for the specified 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 as paginated response with
+ * @return all Application Insights web test definitions for the specified subscription as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
- * Get all Application Insights web test alerts definitions within a subscription.
+ * Get all Application Insights web test definitions for the specified 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 as paginated response with
+ * @return all Application Insights web test definitions for the specified subscription as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
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
index 41b5c4b356f2..005d889dd40f 100644
--- 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
@@ -45,22 +45,6 @@ public interface WorkItemConfigurationsClient {
@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.
*
@@ -82,17 +66,20 @@ Response createWithResponse(
Context context);
/**
- * Gets default work item configurations that exist for the application.
+ * 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 default work item configurations that exist for the application.
+ * @return work item configuration associated with an application insights resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkItemConfigurationInner getDefault(String resourceGroupName, String resourceName);
+ WorkItemConfigurationInner create(
+ String resourceGroupName, String resourceName, WorkItemCreateConfiguration workItemConfigurationProperties);
/**
* Gets default work item configurations that exist for the application.
@@ -110,18 +97,17 @@ Response getDefaultWithResponse(
String resourceGroupName, String resourceName, Context context);
/**
- * Delete a work item configuration of an Application Insights component.
+ * 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 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 default work item configurations that exist for the application.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String resourceName, String workItemConfigId);
+ WorkItemConfigurationInner getDefault(String resourceGroupName, String resourceName);
/**
* Delete a work item configuration of an Application Insights component.
@@ -141,7 +127,7 @@ Response deleteWithResponse(
String resourceGroupName, String resourceName, String workItemConfigId, Context context);
/**
- * Gets specified work item configuration for an Application Insights component.
+ * 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.
@@ -150,10 +136,9 @@ Response deleteWithResponse(
* @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);
+ void delete(String resourceGroupName, String resourceName, String workItemConfigId);
/**
* Gets specified work item configuration for an Application Insights component.
@@ -172,6 +157,21 @@ Response deleteWithResponse(
Response getItemWithResponse(
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);
+
/**
* Update a work item configuration for an Application Insights component.
*
@@ -181,17 +181,19 @@ Response getItemWithResponse(
* 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.
+ * @return work item configuration associated with an application insights resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkItemConfigurationInner updateItem(
+ Response updateItemWithResponse(
String resourceGroupName,
String resourceName,
String workItemConfigId,
- WorkItemCreateConfiguration workItemConfigurationProperties);
+ WorkItemCreateConfiguration workItemConfigurationProperties,
+ Context context);
/**
* Update a work item configuration for an Application Insights component.
@@ -202,17 +204,15 @@ WorkItemConfigurationInner updateItem(
* 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 along with {@link Response}.
+ * @return work item configuration associated with an application insights resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateItemWithResponse(
+ WorkItemConfigurationInner updateItem(
String resourceGroupName,
String resourceName,
String workItemConfigId,
- WorkItemCreateConfiguration workItemConfigurationProperties,
- Context context);
+ WorkItemCreateConfiguration workItemConfigurationProperties);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
index 890e1ae89395..7cb3f51ddc46 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
@@ -41,19 +41,6 @@ public interface WorkbookTemplatesClient {
@ServiceMethod(returns = ReturnType.COLLECTION)
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.
*
@@ -70,16 +57,17 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String resourceName, Context context);
/**
- * Delete a workbook template.
+ * 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)
- void delete(String resourceGroupName, String resourceName);
+ WorkbookTemplateInner getByResourceGroup(String resourceGroupName, String resourceName);
/**
* Delete a workbook template.
@@ -96,19 +84,16 @@ Response getByResourceGroupWithResponse(
Response deleteWithResponse(String resourceGroupName, String resourceName, Context context);
/**
- * Create a new workbook template.
+ * 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 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 an Application Insights workbook template definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookTemplateInner createOrUpdate(
- String resourceGroupName, String resourceName, WorkbookTemplateInner workbookTemplateProperties);
+ void delete(String resourceGroupName, String resourceName);
/**
* Create a new workbook template.
@@ -130,17 +115,19 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Updates a workbook template that has already been added.
+ * 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 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 an Application Insights workbook template definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookTemplateInner update(String resourceGroupName, String resourceName);
+ WorkbookTemplateInner createOrUpdate(
+ String resourceGroupName, String resourceName, WorkbookTemplateInner workbookTemplateProperties);
/**
* Updates a workbook template that has already been added.
@@ -160,4 +147,17 @@ Response updateWithResponse(
String resourceName,
WorkbookTemplateUpdateParameters workbookTemplateUpdateParameters,
Context context);
+
+ /**
+ * 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.
+ * @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 workbook template definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkbookTemplateInner update(String resourceGroupName, String resourceName);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
index c419ad3f6f36..083782eb5faf 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
@@ -90,20 +90,6 @@ PagedIterable listByResourceGroup(
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 resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException 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.
*
@@ -123,7 +109,7 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String resourceName, Boolean canFetchContent, Context context);
/**
- * Delete a workbook.
+ * Get a single workbook by its resourceName.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the resource.
@@ -131,9 +117,10 @@ Response getByResourceGroupWithResponse(
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException 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)
- void delete(String resourceGroupName, String resourceName);
+ WorkbookInner getByResourceGroup(String resourceGroupName, String resourceName);
/**
* Delete a workbook.
@@ -151,19 +138,17 @@ Response getByResourceGroupWithResponse(
Response deleteWithResponse(String resourceGroupName, String resourceName, Context context);
/**
- * Create a new workbook.
+ * Delete a workbook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the 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.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a workbook definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookInner createOrUpdate(String resourceGroupName, String resourceName, WorkbookInner workbookProperties);
+ void delete(String resourceGroupName, String resourceName);
/**
* Create a new workbook.
@@ -188,10 +173,11 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Updates a workbook that has already been added.
+ * Create a new workbook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the resource.
+ * @param workbookProperties Properties that need to be specified to create a new workbook.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
@@ -199,7 +185,7 @@ Response createOrUpdateWithResponse(
* @return a workbook definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookInner update(String resourceGroupName, String resourceName);
+ WorkbookInner createOrUpdate(String resourceGroupName, String resourceName, WorkbookInner workbookProperties);
/**
* Updates a workbook that has already been added.
@@ -223,6 +209,20 @@ Response updateWithResponse(
WorkbookUpdateParameters workbookUpdateParameters,
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 resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
+ * request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a workbook definition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkbookInner update(String resourceGroupName, String resourceName);
+
/**
* Get the revisions for the workbook defined by its resourceName.
*
@@ -260,14 +260,16 @@ Response updateWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the resource.
* @param revisionId The id of the workbook's revision.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException 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 revision defined by its revisionId.
+ * @return a single workbook revision defined by its revisionId along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkbookInner revisionGet(String resourceGroupName, String resourceName, String revisionId);
+ Response revisionGetWithResponse(
+ String resourceGroupName, String resourceName, String revisionId, Context context);
/**
* Get a single workbook revision defined by its revisionId.
@@ -275,14 +277,12 @@ Response updateWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the resource.
* @param revisionId The id of the workbook's revision.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException 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 revision defined by its revisionId along with {@link Response}.
+ * @return a single workbook revision defined by its revisionId.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response revisionGetWithResponse(
- String resourceGroupName, String resourceName, String revisionId, Context context);
+ WorkbookInner revisionGet(String resourceGroupName, String resourceName, String revisionId);
}
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
index 15f70037ac3c..1e5c69bab098 100644
--- 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
@@ -47,6 +47,10 @@ public final class AnnotationInner {
@JsonProperty(value = "RelatedAnnotation")
private String relatedAnnotation;
+ /** Creates an instance of AnnotationInner class. */
+ public AnnotationInner() {
+ }
+
/**
* Get the annotationName property: Name of annotation.
*
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
index e9200b8bbb5e..5d0c3c653841 100644
--- 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
@@ -32,16 +32,14 @@ public final class ApplicationInsightsComponentAnalyticsItemInner {
private String content;
/*
- * This instance's version of the data model. This can change as new
- * features are added.
+ * 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.
+ * 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;
@@ -59,19 +57,22 @@ public final class ApplicationInsightsComponentAnalyticsItemInner {
private String timeCreated;
/*
- * Date and time in UTC of the last modification that was made to this
- * item.
+ * 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.
+ * 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;
+ /** Creates an instance of ApplicationInsightsComponentAnalyticsItemInner class. */
+ public ApplicationInsightsComponentAnalyticsItemInner() {
+ }
+
/**
* Get the id property: Internally assigned unique id of the item definition.
*
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
index cc0406b16b24..4ca82677a176 100644
--- 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
@@ -12,15 +12,14 @@
@Fluent
public final class ApplicationInsightsComponentApiKeyInner {
/*
- * The unique ID of the API key inside an Application Insights component.
- * It is auto generated when the API key is created.
+ * 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.
+ * 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;
@@ -49,6 +48,10 @@ public final class ApplicationInsightsComponentApiKeyInner {
@JsonProperty(value = "linkedWriteProperties")
private List linkedWriteProperties;
+ /** Creates an instance of ApplicationInsightsComponentApiKeyInner class. */
+ public ApplicationInsightsComponentApiKeyInner() {
+ }
+
/**
* 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.
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
index edead3d53003..b65a146d0cd4 100644
--- 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
@@ -18,6 +18,10 @@ public final class ApplicationInsightsComponentAvailableFeaturesInner {
@JsonProperty(value = "Result", access = JsonProperty.Access.WRITE_ONLY)
private List result;
+ /** Creates an instance of ApplicationInsightsComponentAvailableFeaturesInner class. */
+ public ApplicationInsightsComponentAvailableFeaturesInner() {
+ }
+
/**
* Get the result property: A list of Application Insights component feature.
*
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
index 5e1f727b1480..095c628f1080 100644
--- 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
@@ -19,12 +19,16 @@ public final class ApplicationInsightsComponentBillingFeaturesInner {
private ApplicationInsightsComponentDataVolumeCap dataVolumeCap;
/*
- * Current enabled pricing plan. When the component is in the Enterprise
- * plan, this will list both 'Basic' and 'Application Insights Enterprise'.
+ * 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;
+ /** Creates an instance of ApplicationInsightsComponentBillingFeaturesInner class. */
+ public ApplicationInsightsComponentBillingFeaturesInner() {
+ }
+
/**
* Get the dataVolumeCap property: An Application Insights component daily data volume cap.
*
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
index 6892d0e698ce..2b6f2fe2eaae 100644
--- 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
@@ -11,9 +11,8 @@
@Fluent
public final class ApplicationInsightsComponentExportConfigurationInner {
/*
- * The unique ID of the export configuration inside an Application Insights
- * component. It is auto generated when the Continuous Export configuration
- * is created.
+ * 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;
@@ -25,9 +24,8 @@ public final class ApplicationInsightsComponentExportConfigurationInner {
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',
+ * 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")
@@ -76,8 +74,7 @@ public final class ApplicationInsightsComponentExportConfigurationInner {
private String destinationType;
/*
- * This will be 'true' if the Continuous Export configuration is enabled,
- * otherwise it will be 'false'.
+ * 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;
@@ -95,15 +92,15 @@ public final class ApplicationInsightsComponentExportConfigurationInner {
private String notificationQueueEnabled;
/*
- * This indicates current Continuous Export configuration status. The
- * possible values are 'Preparing', 'Success', 'Failure'.
+ * 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.
+ * 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;
@@ -115,8 +112,8 @@ public final class ApplicationInsightsComponentExportConfigurationInner {
private String lastGapTime;
/*
- * This is the reason the Continuous Export configuration started failing.
- * It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'.
+ * 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;
@@ -133,6 +130,10 @@ public final class ApplicationInsightsComponentExportConfigurationInner {
@JsonProperty(value = "ContainerName", access = JsonProperty.Access.WRITE_ONLY)
private String containerName;
+ /** Creates an instance of ApplicationInsightsComponentExportConfigurationInner class. */
+ public ApplicationInsightsComponentExportConfigurationInner() {
+ }
+
/**
* 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.
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
index a35bac698a26..9b1f710e7a0f 100644
--- 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
@@ -19,16 +19,15 @@ public final class ApplicationInsightsComponentFavoriteInner {
private String name;
/*
- * Configuration of this particular favorite, which are driven by the Azure
- * portal UX. Configuration data is a string containing valid JSON
+ * 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.
+ * 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;
@@ -40,9 +39,8 @@ public final class ApplicationInsightsComponentFavoriteInner {
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.
+ * 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;
@@ -54,15 +52,13 @@ public final class ApplicationInsightsComponentFavoriteInner {
private String sourceType;
/*
- * Date and time in UTC of the last modification that was made to this
- * favorite definition.
+ * 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
+ * A list of 0 or more tags that are associated with this favorite definition
*/
@JsonProperty(value = "Tags")
private List tags;
@@ -85,6 +81,10 @@ public final class ApplicationInsightsComponentFavoriteInner {
@JsonProperty(value = "UserId", access = JsonProperty.Access.WRITE_ONLY)
private String userId;
+ /** Creates an instance of ApplicationInsightsComponentFavoriteInner class. */
+ public ApplicationInsightsComponentFavoriteInner() {
+ }
+
/**
* Get the name property: The user-defined name of the favorite.
*
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
index e3a2e056b297..cfb116faf312 100644
--- 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
@@ -106,6 +106,10 @@ public final class ApplicationInsightsComponentFeatureCapabilitiesInner {
@JsonProperty(value = "ThrottleRate", access = JsonProperty.Access.WRITE_ONLY)
private Float throttleRate;
+ /** Creates an instance of ApplicationInsightsComponentFeatureCapabilitiesInner class. */
+ public ApplicationInsightsComponentFeatureCapabilitiesInner() {
+ }
+
/**
* Get the supportExportData property: Whether allow to use continuous export feature.
*
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
index 18f11a922b88..ea5812477ea3 100644
--- 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
@@ -22,9 +22,8 @@
@Fluent
public final class ApplicationInsightsComponentInner extends ComponentsResource {
/*
- * 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.
+ * 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;
@@ -41,6 +40,10 @@ public final class ApplicationInsightsComponentInner extends ComponentsResource
@JsonProperty(value = "properties")
private ApplicationInsightsComponentProperties innerProperties;
+ /** Creates an instance of ApplicationInsightsComponentInner class. */
+ public ApplicationInsightsComponentInner() {
+ }
+
/**
* 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.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
index 40681ab28186..5d85a2959967 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
@@ -25,8 +25,7 @@ public final class ApplicationInsightsComponentProactiveDetectionConfigurationIn
private Boolean enabled;
/*
- * A flag that indicated whether notifications on this rule should be sent
- * to subscription owners
+ * A flag that indicated whether notifications on this rule should be sent to subscription owners
*/
@JsonProperty(value = "SendEmailsToSubscriptionOwners")
private Boolean sendEmailsToSubscriptionOwners;
@@ -44,12 +43,15 @@ public final class ApplicationInsightsComponentProactiveDetectionConfigurationIn
private String lastUpdatedTime;
/*
- * Static definitions of the ProactiveDetection configuration rule (same
- * values for all components).
+ * Static definitions of the ProactiveDetection configuration rule (same values for all components).
*/
@JsonProperty(value = "RuleDefinitions")
private ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions;
+ /** Creates an instance of ApplicationInsightsComponentProactiveDetectionConfigurationInner class. */
+ public ApplicationInsightsComponentProactiveDetectionConfigurationInner() {
+ }
+
/**
* Get the name property: The rule name.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
index 4dfe395d589a..556d4e0ca95f 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
@@ -20,8 +20,7 @@
@Fluent
public final class ApplicationInsightsComponentProperties {
/*
- * The unique ID of your application. This field mirrors the 'Name' field
- * and cannot be changed.
+ * The unique ID of your application. This field mirrors the 'Name' field and cannot be changed.
*/
@JsonProperty(value = "ApplicationId", access = JsonProperty.Access.WRITE_ONLY)
private String applicationId;
@@ -45,32 +44,29 @@ public final class ApplicationInsightsComponentProperties {
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.
+ * 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 = "Flow_Type")
private FlowType flowType;
/*
- * Describes what tool created this Application Insights component.
- * Customers using this API should set this to the default 'rest'.
+ * Describes what tool created this Application Insights component. Customers using this API should set this to the
+ * default 'rest'.
*/
@JsonProperty(value = "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.
+ * 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 = "InstrumentationKey", access = JsonProperty.Access.WRITE_ONLY)
private String instrumentationKey;
/*
- * Creation Date for the Application Insights component, in ISO 8601
- * format.
+ * Creation Date for the Application Insights component, in ISO 8601 format.
*/
@JsonProperty(value = "CreationDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime creationDate;
@@ -82,31 +78,29 @@ public final class ApplicationInsightsComponentProperties {
private String tenantId;
/*
- * The unique application ID created when a new application is added to
- * HockeyApp, used for communications with HockeyApp.
+ * The unique application ID created when a new application is added to HockeyApp, used for communications with
+ * HockeyApp.
*/
@JsonProperty(value = "HockeyAppId")
private String hockeyAppId;
/*
- * Token used to authenticate communications with between Application
- * Insights and HockeyApp.
+ * Token used to authenticate communications with between Application Insights and HockeyApp.
*/
@JsonProperty(value = "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.
+ * 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 = "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.
+ * Percentage of the data produced by the application being monitored that is being sampled for Application
+ * Insights telemetry.
*/
@JsonProperty(value = "SamplingPercentage")
private Double samplingPercentage;
@@ -136,10 +130,8 @@ public final class ApplicationInsightsComponentProperties {
private Boolean immediatePurgeDataOn30Days;
/*
- * Resource Id of the log analytics workspace which the data will be
- * ingested to. This property is required to create an application with
- * this API version. Applications from older versions will not have this
- * property.
+ * Resource Id of the log analytics workspace which the data will be ingested to. This property is required to
+ * create an application with this API version. Applications from older versions will not have this property.
*/
@JsonProperty(value = "WorkspaceResourceId")
private String workspaceResourceId;
@@ -181,12 +173,15 @@ public final class ApplicationInsightsComponentProperties {
private Boolean disableLocalAuth;
/*
- * Force users to create their own storage account for profiler and
- * debugger.
+ * Force users to create their own storage account for profiler and debugger.
*/
@JsonProperty(value = "ForceCustomerStorageForProfiler")
private Boolean forceCustomerStorageForProfiler;
+ /** Creates an instance of ApplicationInsightsComponentProperties class. */
+ public ApplicationInsightsComponentProperties() {
+ }
+
/**
* Get the applicationId property: The unique ID of your application. This field mirrors the 'Name' field and cannot
* be changed.
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
index ffcbd1bfb622..82749296f272 100644
--- 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
@@ -23,12 +23,15 @@ public final class ApplicationInsightsComponentQuotaStatusInner {
private Boolean shouldBeThrottled;
/*
- * Date and time when the daily data volume cap will be reset, and data
- * ingestion will resume.
+ * 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;
+ /** Creates an instance of ApplicationInsightsComponentQuotaStatusInner class. */
+ public ApplicationInsightsComponentQuotaStatusInner() {
+ }
+
/**
* Get the appId property: The Application ID for the Application Insights component.
*
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
index 08b76a00801f..dd2c01d59760 100644
--- 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
@@ -22,6 +22,10 @@ public final class ApplicationInsightsComponentWebTestLocationInner {
@JsonProperty(value = "Tag", access = JsonProperty.Access.WRITE_ONLY)
private String tag;
+ /** Creates an instance of ApplicationInsightsComponentWebTestLocationInner class. */
+ public ApplicationInsightsComponentWebTestLocationInner() {
+ }
+
/**
* Get the displayName property: The display name of the web test location.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
index 5e72ba5dc848..63ae5f9f1e9a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
@@ -17,6 +17,10 @@ public final class ComponentLinkedStorageAccountsInner extends ProxyResource {
@JsonProperty(value = "properties")
private LinkedStorageAccountsProperties innerProperties;
+ /** Creates an instance of ComponentLinkedStorageAccountsInner class. */
+ public ComponentLinkedStorageAccountsInner() {
+ }
+
/**
* Get the innerProperties property: The properties of the linked storage accounts.
*
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
index 8a5269ced552..17740139d0fb 100644
--- 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
@@ -17,6 +17,10 @@ public final class ComponentPurgeResponseInner {
@JsonProperty(value = "operationId", required = true)
private String operationId;
+ /** Creates an instance of ComponentPurgeResponseInner class. */
+ public ComponentPurgeResponseInner() {
+ }
+
/**
* Get the operationId property: Id to use when querying for status for a particular purge operation.
*
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
index 2d665c7db72a..3add07f21c1e 100644
--- 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
@@ -18,6 +18,10 @@ public final class ComponentPurgeStatusResponseInner {
@JsonProperty(value = "status", required = true)
private PurgeState status;
+ /** Creates an instance of ComponentPurgeStatusResponseInner class. */
+ public ComponentPurgeStatusResponseInner() {
+ }
+
/**
* Get the status property: Status of the operation represented by the requested Id.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
index b1778adacf71..e54a3bf4850d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
@@ -16,6 +16,10 @@ public final class LinkedStorageAccountsProperties {
@JsonProperty(value = "linkedStorageAccount")
private String linkedStorageAccount;
+ /** Creates an instance of LinkedStorageAccountsProperties class. */
+ public LinkedStorageAccountsProperties() {
+ }
+
/**
* Get the linkedStorageAccount property: Linked storage account resource ID.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java
index 5f7177892188..e6c8a9c28385 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java
@@ -16,6 +16,10 @@ public final class LiveTokenResponseInner {
@JsonProperty(value = "liveToken", access = JsonProperty.Access.WRITE_ONLY)
private String liveToken;
+ /** Creates an instance of LiveTokenResponseInner class. */
+ public LiveTokenResponseInner() {
+ }
+
/**
* Get the liveToken property: JWT token for accessing live metrics stream data.
*
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
index 0185689e01ad..55ff07eea9cc 100644
--- 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
@@ -34,6 +34,10 @@ public final class MyWorkbookInner extends MyWorkbookResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of MyWorkbookInner class. */
+ public MyWorkbookInner() {
+ }
+
/**
* Get the kind property: The kind of workbook. Choices are user and shared.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
index bb7a9a9d691b..fd8c2f01eef1 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
@@ -19,22 +19,20 @@ public final class MyWorkbookProperties {
private String displayName;
/*
- * Configuration of this particular private workbook. Configuration data is
- * a string containing valid JSON
+ * Configuration of this particular private workbook. Configuration data is a string containing valid JSON
*/
@JsonProperty(value = "serializedData", required = true)
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.
+ * This instance's version of the data model. This can change as new features are added that can be marked private
+ * workbook.
*/
@JsonProperty(value = "version")
private String version;
/*
- * Date and time in UTC of the last modification that was made to this
- * private workbook definition.
+ * Date and time in UTC of the last modification that was made to this private workbook definition.
*/
@JsonProperty(value = "timeModified", access = JsonProperty.Access.WRITE_ONLY)
private String timeModified;
@@ -46,8 +44,7 @@ public final class MyWorkbookProperties {
private String category;
/*
- * A list of 0 or more tags that are associated with this private workbook
- * definition
+ * A list of 0 or more tags that are associated with this private workbook definition
*/
@JsonProperty(value = "tags")
private List tags;
@@ -70,6 +67,10 @@ public final class MyWorkbookProperties {
@JsonProperty(value = "storageUri")
private String storageUri;
+ /** Creates an instance of MyWorkbookProperties class. */
+ public MyWorkbookProperties() {
+ }
+
/**
* Get the displayName property: The user-defined name of the private workbook.
*
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
index 437b7f7c17eb..4a3d048c8df7 100644
--- 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
@@ -8,7 +8,7 @@
import com.azure.resourcemanager.applicationinsights.models.OperationDisplay;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** CDN REST API operation. */
+/** Azure Workbooks REST API operation. */
@Fluent
public final class OperationInner {
/*
@@ -23,6 +23,10 @@ public final class OperationInner {
@JsonProperty(value = "display")
private OperationDisplay display;
+ /** Creates an instance of OperationInner class. */
+ public OperationInner() {
+ }
+
/**
* Get the name property: Operation name: {provider}/{resource}/{operation}.
*
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
index f5c12ebdf2d4..4d597cb797d6 100644
--- 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
@@ -8,17 +8,18 @@
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.WebTestPropertiesRequest;
+import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesValidationRules;
import com.azure.resourcemanager.applicationinsights.models.WebtestsResource;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
-/** An Application Insights web test definition. */
+/** An Application Insights WebTest definition. */
@Fluent
public final class WebTestInner extends WebtestsResource {
/*
- * The kind of web test that this web test watches. Choices are ping and
- * multistep.
+ * The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
*/
@JsonProperty(value = "kind")
private WebTestKind kind;
@@ -29,8 +30,12 @@ public final class WebTestInner extends WebtestsResource {
@JsonProperty(value = "properties")
private WebTestProperties innerProperties;
+ /** Creates an instance of WebTestInner class. */
+ public WebTestInner() {
+ }
+
/**
- * Get the kind property: The kind of web test that this web test watches. Choices are ping and multistep.
+ * Get the kind property: The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
*
* @return the kind value.
*/
@@ -39,7 +44,7 @@ public WebTestKind kind() {
}
/**
- * Set the kind property: The kind of web test that this web test watches. Choices are ping and multistep.
+ * Set the kind property: The kind of WebTest that this web test watches. Choices are ping, multistep and standard.
*
* @param kind the kind value to set.
* @return the WebTestInner object itself.
@@ -121,7 +126,7 @@ public WebTestInner withWebTestName(String webTestName) {
}
/**
- * Get the description property: Purpose/user defined descriptive test for this WebTest.
+ * Get the description property: User defined description for this WebTest.
*
* @return the description value.
*/
@@ -130,7 +135,7 @@ public String description() {
}
/**
- * Set the description property: Purpose/user defined descriptive test for this WebTest.
+ * Set the description property: User defined description for this WebTest.
*
* @param description the description value to set.
* @return the WebTestInner object itself.
@@ -213,7 +218,7 @@ public WebTestInner withTimeout(Integer timeout) {
}
/**
- * Get the webTestKind property: The kind of web test this is, valid choices are ping and multistep.
+ * Get the webTestKind property: The kind of web test this is, valid choices are ping, multistep and standard.
*
* @return the webTestKind value.
*/
@@ -222,7 +227,7 @@ public WebTestKind webTestKind() {
}
/**
- * Set the webTestKind property: The kind of web test this is, valid choices are ping and multistep.
+ * Set the webTestKind property: The kind of web test this is, valid choices are ping, multistep and standard.
*
* @param webTestKind the webTestKind value to set.
* @return the WebTestInner object itself.
@@ -317,6 +322,52 @@ public String provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the request property: The collection of request properties.
+ *
+ * @return the request value.
+ */
+ public WebTestPropertiesRequest request() {
+ return this.innerProperties() == null ? null : this.innerProperties().request();
+ }
+
+ /**
+ * Set the request property: The collection of request properties.
+ *
+ * @param request the request value to set.
+ * @return the WebTestInner object itself.
+ */
+ public WebTestInner withRequest(WebTestPropertiesRequest request) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WebTestProperties();
+ }
+ this.innerProperties().withRequest(request);
+ return this;
+ }
+
+ /**
+ * Get the validationRules property: The collection of validation rule properties.
+ *
+ * @return the validationRules value.
+ */
+ public WebTestPropertiesValidationRules validationRules() {
+ return this.innerProperties() == null ? null : this.innerProperties().validationRules();
+ }
+
+ /**
+ * Set the validationRules property: The collection of validation rule properties.
+ *
+ * @param validationRules the validationRules value to set.
+ * @return the WebTestInner object itself.
+ */
+ public WebTestInner withValidationRules(WebTestPropertiesValidationRules validationRules) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WebTestProperties();
+ }
+ this.innerProperties().withValidationRules(validationRules);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestProperties.java
index 1e2ecf0f8ecc..0f7959dc3998 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestProperties.java
@@ -9,6 +9,8 @@
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.WebTestPropertiesRequest;
+import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesValidationRules;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -16,8 +18,7 @@
@Fluent
public final class WebTestProperties {
/*
- * Unique ID of this WebTest. This is typically the same value as the Name
- * field.
+ * Unique ID of this WebTest. This is typically the same value as the Name field.
*/
@JsonProperty(value = "SyntheticMonitorId", required = true)
private String syntheticMonitorId;
@@ -29,7 +30,7 @@ public final class WebTestProperties {
private String webTestName;
/*
- * Purpose/user defined descriptive test for this WebTest.
+ * User defined description for this WebTest.
*/
@JsonProperty(value = "Description")
private String description;
@@ -41,8 +42,7 @@ public final class WebTestProperties {
private Boolean enabled;
/*
- * Interval in seconds between test runs for this WebTest. Default value is
- * 300.
+ * Interval in seconds between test runs for this WebTest. Default value is 300.
*/
@JsonProperty(value = "Frequency")
private Integer frequency;
@@ -54,7 +54,7 @@ public final class WebTestProperties {
private Integer timeout;
/*
- * The kind of web test this is, valid choices are ping and multistep.
+ * The kind of web test this is, valid choices are ping, multistep and standard.
*/
@JsonProperty(value = "Kind", required = true)
private WebTestKind webTestKind;
@@ -66,8 +66,7 @@ public final class WebTestProperties {
private Boolean retryEnabled;
/*
- * A list of where to physically run the tests from to give global coverage
- * for accessibility of your application.
+ * A list of where to physically run the tests from to give global coverage for accessibility of your application.
*/
@JsonProperty(value = "Locations", required = true)
private List locations;
@@ -79,14 +78,29 @@ public final class WebTestProperties {
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.
+ * 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 = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
+ /*
+ * The collection of request properties
+ */
+ @JsonProperty(value = "Request")
+ private WebTestPropertiesRequest request;
+
+ /*
+ * The collection of validation rule properties
+ */
+ @JsonProperty(value = "ValidationRules")
+ private WebTestPropertiesValidationRules validationRules;
+
+ /** Creates an instance of WebTestProperties class. */
+ public WebTestProperties() {
+ }
+
/**
* Get the syntheticMonitorId property: Unique ID of this WebTest. This is typically the same value as the Name
* field.
@@ -130,7 +144,7 @@ public WebTestProperties withWebTestName(String webTestName) {
}
/**
- * Get the description property: Purpose/user defined descriptive test for this WebTest.
+ * Get the description property: User defined description for this WebTest.
*
* @return the description value.
*/
@@ -139,7 +153,7 @@ public String description() {
}
/**
- * Set the description property: Purpose/user defined descriptive test for this WebTest.
+ * Set the description property: User defined description for this WebTest.
*
* @param description the description value to set.
* @return the WebTestProperties object itself.
@@ -210,7 +224,7 @@ public WebTestProperties withTimeout(Integer timeout) {
}
/**
- * Get the webTestKind property: The kind of web test this is, valid choices are ping and multistep.
+ * Get the webTestKind property: The kind of web test this is, valid choices are ping, multistep and standard.
*
* @return the webTestKind value.
*/
@@ -219,7 +233,7 @@ public WebTestKind webTestKind() {
}
/**
- * Set the webTestKind property: The kind of web test this is, valid choices are ping and multistep.
+ * Set the webTestKind property: The kind of web test this is, valid choices are ping, multistep and standard.
*
* @param webTestKind the webTestKind value to set.
* @return the WebTestProperties object itself.
@@ -302,6 +316,46 @@ public String provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the request property: The collection of request properties.
+ *
+ * @return the request value.
+ */
+ public WebTestPropertiesRequest request() {
+ return this.request;
+ }
+
+ /**
+ * Set the request property: The collection of request properties.
+ *
+ * @param request the request value to set.
+ * @return the WebTestProperties object itself.
+ */
+ public WebTestProperties withRequest(WebTestPropertiesRequest request) {
+ this.request = request;
+ return this;
+ }
+
+ /**
+ * Get the validationRules property: The collection of validation rule properties.
+ *
+ * @return the validationRules value.
+ */
+ public WebTestPropertiesValidationRules validationRules() {
+ return this.validationRules;
+ }
+
+ /**
+ * Set the validationRules property: The collection of validation rule properties.
+ *
+ * @param validationRules the validationRules value to set.
+ * @return the WebTestProperties object itself.
+ */
+ public WebTestProperties withValidationRules(WebTestPropertiesValidationRules validationRules) {
+ this.validationRules = validationRules;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -334,6 +388,12 @@ public void validate() {
if (configuration() != null) {
configuration().validate();
}
+ if (request() != null) {
+ request().validate();
+ }
+ if (validationRules() != null) {
+ validationRules().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(WebTestProperties.class);
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
index 81b4547c2b8d..687c996e84b7 100644
--- 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
@@ -40,6 +40,10 @@ public final class WorkItemConfigurationInner {
@JsonProperty(value = "ConfigProperties")
private String configProperties;
+ /** Creates an instance of WorkItemConfigurationInner class. */
+ public WorkItemConfigurationInner() {
+ }
+
/**
* Get the connectorId property: Connector identifier where work item is created.
*
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
index ecbe65dfe056..3d38d764aea7 100644
--- 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
@@ -29,6 +29,10 @@ public final class WorkbookInner extends WorkbookResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of WorkbookInner class. */
+ public WorkbookInner() {
+ }
+
/**
* Get the innerProperties property: Metadata describing a workbook for an Azure resource.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java
index 57fd417fb212..20d9d41c2c29 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java
@@ -20,22 +20,19 @@ public final class WorkbookProperties {
private String displayName;
/*
- * Configuration of this particular workbook. Configuration data is a
- * string containing valid JSON
+ * Configuration of this particular workbook. Configuration data is a string containing valid JSON
*/
@JsonProperty(value = "serializedData", required = true)
private String serializedData;
/*
- * Workbook schema version format, like 'Notebook/1.0', which should match
- * the workbook in serializedData
+ * Workbook schema version format, like 'Notebook/1.0', which should match the workbook in serializedData
*/
@JsonProperty(value = "version")
private String version;
/*
- * Date and time in UTC of the last modification that was made to this
- * workbook definition.
+ * Date and time in UTC of the last modification that was made to this workbook definition.
*/
@JsonProperty(value = "timeModified", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime timeModified;
@@ -65,8 +62,7 @@ public final class WorkbookProperties {
private String sourceId;
/*
- * The resourceId to the storage account when bring your own storage is
- * used
+ * The resourceId to the storage account when bring your own storage is used
*/
@JsonProperty(value = "storageUri")
private String storageUri;
@@ -83,6 +79,10 @@ public final class WorkbookProperties {
@JsonProperty(value = "revision", access = JsonProperty.Access.WRITE_ONLY)
private String revision;
+ /** Creates an instance of WorkbookProperties class. */
+ public WorkbookProperties() {
+ }
+
/**
* Get the displayName property: The user-defined name (display name) of the workbook.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java
index ae5fe8a053fe..350b986b2b06 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java
@@ -18,8 +18,7 @@ public final class WorkbookPropertiesUpdateParameters {
private String displayName;
/*
- * Configuration of this particular workbook. Configuration data is a
- * string containing valid JSON
+ * Configuration of this particular workbook. Configuration data is a string containing valid JSON
*/
@JsonProperty(value = "serializedData")
private String serializedData;
@@ -31,8 +30,7 @@ public final class WorkbookPropertiesUpdateParameters {
private String category;
/*
- * A list of 0 or more tags that are associated with this workbook
- * definition
+ * A list of 0 or more tags that are associated with this workbook definition
*/
@JsonProperty(value = "tags")
private List tags;
@@ -49,6 +47,10 @@ public final class WorkbookPropertiesUpdateParameters {
@JsonProperty(value = "revision")
private String revision;
+ /** Creates an instance of WorkbookPropertiesUpdateParameters class. */
+ public WorkbookPropertiesUpdateParameters() {
+ }
+
/**
* Get the displayName property: The user-defined name (display name) of the workbook.
*
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
index c0662c2dcf8b..ab41289cd9d1 100644
--- 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
@@ -21,6 +21,10 @@ public final class WorkbookTemplateInner extends WorkbookTemplateResource {
@JsonProperty(value = "properties")
private WorkbookTemplateProperties innerProperties;
+ /** Creates an instance of WorkbookTemplateInner class. */
+ public WorkbookTemplateInner() {
+ }
+
/**
* Get the innerProperties property: Metadata describing a workbook template for an Azure resource.
*
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java
index ee326b6a0a50..f8e4d8b0834c 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java
@@ -17,8 +17,7 @@
@Fluent
public final class WorkbookTemplateProperties {
/*
- * Priority of the template. Determines which template to open when a
- * workbook gallery is opened in viewer mode.
+ * Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.
*/
@JsonProperty(value = "priority")
private Integer priority;
@@ -42,13 +41,16 @@ public final class WorkbookTemplateProperties {
private List galleries;
/*
- * Key value pair of localized gallery. Each key is the locale code of
- * languages supported by the Azure portal.
+ * Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.
*/
@JsonProperty(value = "localized")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map> localized;
+ /** Creates an instance of WorkbookTemplateProperties class. */
+ public WorkbookTemplateProperties() {
+ }
+
/**
* Get the priority property: Priority of the template. Determines which template to open when a workbook gallery is
* opened in viewer mode.
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
index d39916333157..a88606dc186f 100644
--- 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
@@ -57,7 +57,7 @@ public final class AnalyticsItemsClientImpl implements AnalyticsItemsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ApplicationInsightsM")
- private interface AnalyticsItemsService {
+ public interface AnalyticsItemsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components"
@@ -268,36 +268,6 @@ private Mono>> lis
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 on successful completion of
- * {@link Mono}.
- */
- @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(res -> Mono.justOrEmpty(res.getValue()));
- }
-
/**
* Gets a list of Analytics Items defined within an Application Insights component.
*
@@ -321,27 +291,6 @@ private Mono> listAsync(
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
- /**
- * 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.
*
@@ -373,6 +322,28 @@ public Response> listWithRe
.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.
+ * @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 listWithResponse(resourceGroupName, resourceName, scopePath, scope, type, includeContent, Context.NONE)
+ .getValue();
+ }
+
/**
* Gets a specific Analytics Items defined within an Application Insights component.
*
@@ -503,8 +474,6 @@ private Mono> getWithRe
* @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.
@@ -513,7 +482,9 @@ private Mono> getWithRe
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getAsync(
- String resourceGroupName, String resourceName, ItemScopePath scopePath, String id, String name) {
+ String resourceGroupName, String resourceName, ItemScopePath scopePath) {
+ final String id = null;
+ final String name = null;
return getWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -525,19 +496,23 @@ private Mono getAsync(
* @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 on successful completion of
- * {@link Mono}.
+ * @return a specific Analytics Items defined within an Application Insights component along with {@link Response}.
*/
@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(res -> Mono.justOrEmpty(res.getValue()));
+ public Response getWithResponse(
+ String resourceGroupName,
+ String resourceName,
+ ItemScopePath scopePath,
+ String id,
+ String name,
+ Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name, context).block();
}
/**
@@ -557,33 +532,7 @@ 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 along with {@link Response}.
- */
- @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();
+ return getWithResponse(resourceGroupName, resourceName, scopePath, id, name, Context.NONE).getValue();
}
/**
@@ -736,8 +685,6 @@ private Mono> putWithRe
* 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.
@@ -749,8 +696,8 @@ private Mono putAsync(
String resourceGroupName,
String resourceName,
ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties,
- Boolean overrideItem) {
+ ApplicationInsightsComponentAnalyticsItemInner itemProperties) {
+ final Boolean overrideItem = null;
return putWithResponseAsync(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -764,21 +711,25 @@ private Mono putAsync(
* 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 on
- * successful completion of {@link Mono}.
+ * @return properties that define an Analytics item that is associated to an Application Insights component along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono putAsync(
+ public Response putWithResponse(
String resourceGroupName,
String resourceName,
ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties) {
- final Boolean overrideItem = null;
- return putWithResponseAsync(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ ApplicationInsightsComponentAnalyticsItemInner itemProperties,
+ Boolean overrideItem,
+ Context context) {
+ return putWithResponseAsync(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem, context)
+ .block();
}
/**
@@ -802,37 +753,8 @@ public ApplicationInsightsComponentAnalyticsItemInner put(
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 along
- * with {@link Response}.
- */
- @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();
+ return putWithResponse(resourceGroupName, resourceName, scopePath, itemProperties, overrideItem, Context.NONE)
+ .getValue();
}
/**
@@ -952,27 +874,6 @@ private Mono> deleteWithResponseAsync(
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 A {@link Mono} that completes when a successful response is received.
- */
- @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(ignored -> Mono.empty());
- }
-
/**
* Deletes a specific Analytics Items defined within an Application Insights component.
*
@@ -1000,15 +901,23 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, It
* @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 {@link Response}.
*/
@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();
+ public Response deleteWithResponse(
+ String resourceGroupName,
+ String resourceName,
+ ItemScopePath scopePath,
+ String id,
+ String name,
+ Context context) {
+ return deleteWithResponseAsync(resourceGroupName, resourceName, scopePath, id, name, context).block();
}
/**
@@ -1018,22 +927,14 @@ public void delete(String resourceGroupName, String resourceName, ItemScopePath
* @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 {@link 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();
+ public void delete(String resourceGroupName, String resourceName, ItemScopePath scopePath) {
+ final String id = null;
+ final String name = null;
+ deleteWithResponse(resourceGroupName, resourceName, scopePath, id, name, Context.NONE);
}
}
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
index 13501885114b..54464dafaeaa 100644
--- 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
@@ -33,22 +33,6 @@ public AnalyticsItemsImpl(
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,
@@ -76,14 +60,19 @@ public Response> listWithRespons
}
}
- public ApplicationInsightsComponentAnalyticsItem get(
+ public List list(
String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- ApplicationInsightsComponentAnalyticsItemInner inner =
- this.serviceClient().get(resourceGroupName, resourceName, scopePath);
+ List inner =
+ this.serviceClient().list(resourceGroupName, resourceName, scopePath);
if (inner != null) {
- return new ApplicationInsightsComponentAnalyticsItemImpl(inner, this.manager());
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new ApplicationInsightsComponentAnalyticsItemImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
} else {
- return null;
+ return Collections.emptyList();
}
}
@@ -107,13 +96,10 @@ public Response getWithResponse(
}
}
- public ApplicationInsightsComponentAnalyticsItem put(
- String resourceGroupName,
- String resourceName,
- ItemScopePath scopePath,
- ApplicationInsightsComponentAnalyticsItemInner itemProperties) {
+ public ApplicationInsightsComponentAnalyticsItem get(
+ String resourceGroupName, String resourceName, ItemScopePath scopePath) {
ApplicationInsightsComponentAnalyticsItemInner inner =
- this.serviceClient().put(resourceGroupName, resourceName, scopePath, itemProperties);
+ this.serviceClient().get(resourceGroupName, resourceName, scopePath);
if (inner != null) {
return new ApplicationInsightsComponentAnalyticsItemImpl(inner, this.manager());
} else {
@@ -143,8 +129,18 @@ public Response putWithResponse(
}
}
- public void delete(String resourceGroupName, String resourceName, ItemScopePath scopePath) {
- this.serviceClient().delete(resourceGroupName, resourceName, scopePath);
+ 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 deleteWithResponse(
@@ -157,6 +153,10 @@ public Response deleteWithResponse(
return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, scopePath, id, name, context);
}
+ public void delete(String resourceGroupName, String resourceName, ItemScopePath scopePath) {
+ this.serviceClient().delete(resourceGroupName, resourceName, scopePath);
+ }
+
private AnalyticsItemsClient serviceClient() {
return this.innerClient;
}
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
index 70b6055c29ee..d7af09ead0f1 100644
--- 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
@@ -60,7 +60,7 @@ public final class AnnotationsClientImpl implements AnnotationsClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ApplicationInsightsM")
- private interface AnnotationsService {
+ public interface AnnotationsService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
@@ -470,15 +470,16 @@ private Mono> createAsync(
* @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.
+ * @return array of Annotation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public List create(
- String resourceGroupName, String resourceName, AnnotationInner annotationProperties) {
- return createAsync(resourceGroupName, resourceName, annotationProperties).block();
+ public Response> createWithResponse(
+ String resourceGroupName, String resourceName, AnnotationInner annotationProperties, Context context) {
+ return createWithResponseAsync(resourceGroupName, resourceName, annotationProperties, context).block();
}
/**
@@ -488,16 +489,15 @@ public List create(
* @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 along with {@link Response}.
+ * @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();
+ public List create(
+ String resourceGroupName, String resourceName, AnnotationInner annotationProperties) {
+ return createWithResponse(resourceGroupName, resourceName, annotationProperties, Context.NONE).getValue();
}
/**
@@ -624,13 +624,16 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St
* @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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String resourceName, String annotationId) {
- deleteAsync(resourceGroupName, resourceName, annotationId).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String resourceName, String annotationId, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, resourceName, annotationId, context).block();
}
/**
@@ -639,16 +642,13 @@ public void delete(String resourceGroupName, String resourceName, String annotat
* @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 {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response deleteWithResponse(
- String resourceGroupName, String resourceName, String annotationId, Context context) {
- return deleteWithResponseAsync(resourceGroupName, resourceName, annotationId, context).block();
+ public void delete(String resourceGroupName, String resourceName, String annotationId) {
+ deleteWithResponse(resourceGroupName, resourceName, annotationId, Context.NONE);
}
/**
@@ -780,14 +780,16 @@ private Mono> getAsync(String resourceGroupName, String re
* @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.
+ * @return the annotation for given id along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public List get(String resourceGroupName, String resourceName, String annotationId) {
- return getAsync(resourceGroupName, resourceName, annotationId).block();
+ public Response> getWithResponse(
+ String resourceGroupName, String resourceName, String annotationId, Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, annotationId, context).block();
}
/**
@@ -796,15 +798,13 @@ public List get(String resourceGroupName, String 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 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 along with {@link Response}.
+ * @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();
+ public List get(String resourceGroupName, String resourceName, String annotationId) {
+ return getWithResponse(resourceGroupName, resourceName, annotationId, Context.NONE).getValue();
}
}
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
index dad3d4fc6d2f..fd1133b807aa 100644
--- 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
@@ -43,22 +43,6 @@ public PagedIterable list(
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 =
@@ -78,17 +62,10 @@ public Response> createWithResponse(
}
}
- 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);
+ public List create(
+ String resourceGroupName, String resourceName, AnnotationInner annotationProperties) {
+ List inner =
+ this.serviceClient().create(resourceGroupName, resourceName, annotationProperties);
if (inner != null) {
return Collections
.unmodifiableList(
@@ -101,6 +78,15 @@ public List get(String resourceGroupName, String resourceName, Strin
}
}
+ public Response deleteWithResponse(
+ String resourceGroupName, String resourceName, String annotationId, Context context) {
+ return this.serviceClient().deleteWithResponse(resourceGroupName, resourceName, annotationId, context);
+ }
+
+ public void delete(String resourceGroupName, String resourceName, String annotationId) {
+ this.serviceClient().delete(resourceGroupName, resourceName, annotationId);
+ }
+
public Response> getWithResponse(
String resourceGroupName, String resourceName, String annotationId, Context context) {
Response> inner =
@@ -120,6 +106,20 @@ public Response> getWithResponse(
}
}
+ 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();
+ }
+ }
+
private AnnotationsClient serviceClient() {
return this.innerClient;
}
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
index bd95be1478e2..42a5f416c39f 100644
--- 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
@@ -58,7 +58,7 @@ public final class ApiKeysClientImpl implements ApiKeysClient {
*/
@Host("{$host}")
@ServiceInterface(name = "ApplicationInsightsM")
- private interface ApiKeysService {
+ public interface ApiKeysService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
@@ -437,15 +437,16 @@ private Mono createAsync(
* @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.
+ * @return properties that define an API key of an Application Insights Component along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentApiKeyInner create(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties) {
- return createAsync(resourceGroupName, resourceName, apiKeyProperties).block();
+ public Response createWithResponse(
+ String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties, Context context) {
+ return createWithResponseAsync(resourceGroupName, resourceName, apiKeyProperties, context).block();
}
/**
@@ -455,16 +456,15 @@ public ApplicationInsightsComponentApiKeyInner create(
* @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 along with {@link Response}.
+ * @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();
+ public ApplicationInsightsComponentApiKeyInner create(
+ String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties) {
+ return createWithResponse(resourceGroupName, resourceName, apiKeyProperties, Context.NONE).getValue();
}
/**
@@ -600,14 +600,16 @@ private Mono deleteAsync(
* @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.
+ * @return properties that define an API key of an Application Insights Component along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentApiKeyInner delete(String resourceGroupName, String resourceName, String keyId) {
- return deleteAsync(resourceGroupName, resourceName, keyId).block();
+ public Response deleteWithResponse(
+ String resourceGroupName, String resourceName, String keyId, Context context) {
+ return deleteWithResponseAsync(resourceGroupName, resourceName, keyId, context).block();
}
/**
@@ -616,16 +618,14 @@ public ApplicationInsightsComponentApiKeyInner delete(String resourceGroupName,
* @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 along with {@link Response}.
+ * @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();
+ public ApplicationInsightsComponentApiKeyInner delete(String resourceGroupName, String resourceName, String keyId) {
+ return deleteWithResponse(resourceGroupName, resourceName, keyId, Context.NONE).getValue();
}
/**
@@ -758,14 +758,16 @@ private Mono getAsync(
* @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.
+ * @return the API Key for this key id along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentApiKeyInner get(String resourceGroupName, String resourceName, String keyId) {
- return getAsync(resourceGroupName, resourceName, keyId).block();
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, String keyId, Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, keyId, context).block();
}
/**
@@ -774,15 +776,13 @@ public ApplicationInsightsComponentApiKeyInner get(String resourceGroupName, Str
* @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 along with {@link Response}.
+ * @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();
+ public ApplicationInsightsComponentApiKeyInner get(String resourceGroupName, String resourceName, String keyId) {
+ return getWithResponse(resourceGroupName, resourceName, keyId, Context.NONE).getValue();
}
}
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
index e8da74e95723..fed98f799dfb 100644
--- 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
@@ -42,17 +42,6 @@ public PagedIterable list(
return Utils.mapPage(inner, inner1 -> new ApplicationInsightsComponentApiKeyImpl(inner1, this.manager()));
}
- public ApplicationInsightsComponentApiKey create(
- String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties) {
- ApplicationInsightsComponentApiKeyInner inner =
- this.serviceClient().create(resourceGroupName, resourceName, apiKeyProperties);
- if (inner != null) {
- return new ApplicationInsightsComponentApiKeyImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response createWithResponse(
String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties, Context context) {
Response inner =
@@ -68,9 +57,10 @@ public Response createWithResponse(
}
}
- public ApplicationInsightsComponentApiKey delete(String resourceGroupName, String resourceName, String keyId) {
+ public ApplicationInsightsComponentApiKey create(
+ String resourceGroupName, String resourceName, ApiKeyRequest apiKeyProperties) {
ApplicationInsightsComponentApiKeyInner inner =
- this.serviceClient().delete(resourceGroupName, resourceName, keyId);
+ this.serviceClient().create(resourceGroupName, resourceName, apiKeyProperties);
if (inner != null) {
return new ApplicationInsightsComponentApiKeyImpl(inner, this.manager());
} else {
@@ -93,9 +83,9 @@ public Response deleteWithResponse(
}
}
- public ApplicationInsightsComponentApiKey get(String resourceGroupName, String resourceName, String keyId) {
+ public ApplicationInsightsComponentApiKey delete(String resourceGroupName, String resourceName, String keyId) {
ApplicationInsightsComponentApiKeyInner inner =
- this.serviceClient().get(resourceGroupName, resourceName, keyId);
+ this.serviceClient().delete(resourceGroupName, resourceName, keyId);
if (inner != null) {
return new ApplicationInsightsComponentApiKeyImpl(inner, this.manager());
} else {
@@ -118,6 +108,16 @@ public Response getWithResponse(
}
}
+ public ApplicationInsightsComponentApiKey get(String resourceGroupName, String resourceName, String keyId) {
+ ApplicationInsightsComponentApiKeyInner inner =
+ this.serviceClient().get(resourceGroupName, resourceName, keyId);
+ if (inner != null) {
+ return new ApplicationInsightsComponentApiKeyImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private ApiKeysClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java
index ebe648faf1a1..402d3bdf7e4f 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsComponentImpl.java
@@ -281,14 +281,14 @@ public ApplicationInsightsComponent refresh(Context context) {
return this;
}
- public ComponentPurgeResponse purge(ComponentPurgeBody body) {
- return serviceManager.components().purge(resourceGroupName, resourceName, body);
- }
-
public Response purgeWithResponse(ComponentPurgeBody body, Context context) {
return serviceManager.components().purgeWithResponse(resourceGroupName, resourceName, body, context);
}
+ public ComponentPurgeResponse purge(ComponentPurgeBody body) {
+ return serviceManager.components().purge(resourceGroupName, resourceName, body);
+ }
+
public ApplicationInsightsComponentImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientBuilder.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientBuilder.java
index 7793c01cd415..0c615d304b2b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientBuilder.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientBuilder.java
@@ -119,24 +119,26 @@ public ApplicationInsightsManagementClientBuilder serializerAdapter(SerializerAd
* @return an instance of ApplicationInsightsManagementClientImpl.
*/
public ApplicationInsightsManagementClientImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
ApplicationInsightsManagementClientImpl client =
new ApplicationInsightsManagementClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java
index 495810507dd5..28450eccd204 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApplicationInsightsManagementClientImpl.java
@@ -115,16 +115,16 @@ public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
- /** The OperationsClient object to access its operations. */
- private final OperationsClient operations;
+ /** The ComponentsClient object to access its operations. */
+ private final ComponentsClient components;
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the ComponentsClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the ComponentsClient object.
*/
- public OperationsClient getOperations() {
- return this.operations;
+ public ComponentsClient getComponents() {
+ return this.components;
}
/** The AnnotationsClient object to access its operations. */
@@ -283,6 +283,18 @@ public AnalyticsItemsClient getAnalyticsItems() {
return this.analyticsItems;
}
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
/** The WorkbookTemplatesClient object to access its operations. */
private final WorkbookTemplatesClient workbookTemplates;
@@ -319,16 +331,16 @@ public WorkbooksClient getWorkbooks() {
return this.workbooks;
}
- /** The ComponentsClient object to access its operations. */
- private final ComponentsClient components;
+ /** The LiveTokensClient object to access its operations. */
+ private final LiveTokensClient liveTokens;
/**
- * Gets the ComponentsClient object to access its operations.
+ * Gets the LiveTokensClient object to access its operations.
*
- * @return the ComponentsClient object.
+ * @return the LiveTokensClient object.
*/
- public ComponentsClient getComponents() {
- return this.components;
+ public LiveTokensClient getLiveTokens() {
+ return this.liveTokens;
}
/** The ComponentLinkedStorageAccountsOperationsClient object to access its operations. */
@@ -343,18 +355,6 @@ public ComponentLinkedStorageAccountsOperationsClient getComponentLinkedStorageA
return this.componentLinkedStorageAccountsOperations;
}
- /** The LiveTokensClient object to access its operations. */
- private final LiveTokensClient liveTokens;
-
- /**
- * Gets the LiveTokensClient object to access its operations.
- *
- * @return the LiveTokensClient object.
- */
- public LiveTokensClient getLiveTokens() {
- return this.liveTokens;
- }
-
/**
* Initializes an instance of ApplicationInsightsManagementClient client.
*
@@ -377,7 +377,7 @@ public LiveTokensClient getLiveTokens() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.operations = new OperationsClientImpl(this);
+ this.components = new ComponentsClientImpl(this);
this.annotations = new AnnotationsClientImpl(this);
this.apiKeys = new ApiKeysClientImpl(this);
this.exportConfigurations = new ExportConfigurationsClientImpl(this);
@@ -391,12 +391,12 @@ public LiveTokensClient getLiveTokens() {
this.webTestLocations = new WebTestLocationsClientImpl(this);
this.webTests = new WebTestsClientImpl(this);
this.analyticsItems = new AnalyticsItemsClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
this.workbookTemplates = new WorkbookTemplatesClientImpl(this);
this.myWorkbooks = new MyWorkbooksClientImpl(this);
this.workbooks = new WorkbooksClientImpl(this);
- this.components = new ComponentsClientImpl(this);
- this.componentLinkedStorageAccountsOperations = new ComponentLinkedStorageAccountsOperationsClientImpl(this);
this.liveTokens = new LiveTokensClientImpl(this);
+ this.componentLinkedStorageAccountsOperations = new ComponentLinkedStorageAccountsOperationsClientImpl(this);
}
/**
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java
index 8861b6b28aeb..4fc2deafadc6 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java
@@ -52,7 +52,7 @@ public final class ComponentAvailableFeaturesClientImpl implements ComponentAvai
*/
@Host("{$host}")
@ServiceInterface(name = "ApplicationInsightsM")
- private interface ComponentAvailableFeaturesService {
+ public interface ComponentAvailableFeaturesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
@@ -188,14 +188,16 @@ private Mono getAsync(
*
* @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 an Application Insights component available features.
+ * @return an Application Insights component available features along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentAvailableFeaturesInner get(String resourceGroupName, String resourceName) {
- return getAsync(resourceGroupName, resourceName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, context).block();
}
/**
@@ -203,15 +205,13 @@ public ApplicationInsightsComponentAvailableFeaturesInner get(String resourceGro
*
* @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 an Application Insights component available features along with {@link Response}.
+ * @return an Application Insights component available features.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String resourceName, Context context) {
- return getWithResponseAsync(resourceGroupName, resourceName, context).block();
+ public ApplicationInsightsComponentAvailableFeaturesInner get(String resourceGroupName, String resourceName) {
+ return getWithResponse(resourceGroupName, resourceName, Context.NONE).getValue();
}
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java
index ecb43a7830cc..c5c04b13f586 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java
@@ -27,16 +27,6 @@ public ComponentAvailableFeaturesImpl(
this.serviceManager = serviceManager;
}
- public ApplicationInsightsComponentAvailableFeatures get(String resourceGroupName, String resourceName) {
- ApplicationInsightsComponentAvailableFeaturesInner inner =
- this.serviceClient().get(resourceGroupName, resourceName);
- if (inner != null) {
- return new ApplicationInsightsComponentAvailableFeaturesImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response getWithResponse(
String resourceGroupName, String resourceName, Context context) {
Response inner =
@@ -52,6 +42,16 @@ public Response getWithResponse(
}
}
+ public ApplicationInsightsComponentAvailableFeatures get(String resourceGroupName, String resourceName) {
+ ApplicationInsightsComponentAvailableFeaturesInner inner =
+ this.serviceClient().get(resourceGroupName, resourceName);
+ if (inner != null) {
+ return new ApplicationInsightsComponentAvailableFeaturesImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
private ComponentAvailableFeaturesClient serviceClient() {
return this.innerClient;
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java
index 65ebfc728d6b..70d82f46d41b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java
@@ -56,7 +56,7 @@ public final class ComponentCurrentBillingFeaturesClientImpl implements Componen
*/
@Host("{$host}")
@ServiceInterface(name = "ApplicationInsightsM")
- private interface ComponentCurrentBillingFeaturesService {
+ public interface ComponentCurrentBillingFeaturesService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components"
@@ -208,14 +208,16 @@ private Mono getAsync(
*
* @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 an Application Insights component billing features.
+ * @return an Application Insights component billing features along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentBillingFeaturesInner get(String resourceGroupName, String resourceName) {
- return getAsync(resourceGroupName, resourceName).block();
+ public Response getWithResponse(
+ String resourceGroupName, String resourceName, Context context) {
+ return getWithResponseAsync(resourceGroupName, resourceName, context).block();
}
/**
@@ -223,16 +225,14 @@ public ApplicationInsightsComponentBillingFeaturesInner get(String resourceGroup
*
* @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 an Application Insights component billing features along with {@link Response}.
+ * @return an Application Insights component billing features.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(
- String resourceGroupName, String resourceName, Context context) {
- return getWithResponseAsync(resourceGroupName, resourceName, context).block();
+ public ApplicationInsightsComponentBillingFeaturesInner get(String resourceGroupName, String resourceName) {
+ return getWithResponse(resourceGroupName, resourceName, Context.NONE).getValue();
}
/**
@@ -388,17 +388,19 @@ private Mono updateAsync(
* @param resourceName The name of the Application Insights component resource.
* @param billingFeaturesProperties Properties that need to be specified to update billing features for an
* 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 an Application Insights component billing features.
+ * @return an Application Insights component billing features along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ApplicationInsightsComponentBillingFeaturesInner update(
+ public Response updateWithResponse(
String resourceGroupName,
String resourceName,
- ApplicationInsightsComponentBillingFeaturesInner billingFeaturesProperties) {
- return updateAsync(resourceGroupName, resourceName, billingFeaturesProperties).block();
+ ApplicationInsightsComponentBillingFeaturesInner billingFeaturesProperties,
+ Context context) {
+ return updateWithResponseAsync(resourceGroupName, resourceName, billingFeaturesProperties, context).block();
}
/**
@@ -408,18 +410,16 @@ public ApplicationInsightsComponentBillingFeaturesInner update(
* @param resourceName The name of the Application Insights component resource.
* @param billingFeaturesProperties Properties that need to be specified to update billing features for an
* 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 an Application Insights component billing features along with {@link Response}.
+ * @return an Application Insights component billing features.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response updateWithResponse(
+ public ApplicationInsightsComponentBillingFeaturesInner update(
String resourceGroupName,
String resourceName,
- ApplicationInsightsComponentBillingFeaturesInner billingFeaturesProperties,
- Context context) {
- return updateWithResponseAsync(resourceGroupName, resourceName, billingFeaturesProperties, context).block();
+ ApplicationInsightsComponentBillingFeaturesInner billingFeaturesProperties) {
+ return updateWithResponse(resourceGroupName, resourceName, billingFeaturesProperties, Context.NONE).getValue();
}
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java
index 5df442fb1add..b2d95c3b1f09 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java
@@ -27,16 +27,6 @@ public ComponentCurrentBillingFeaturesImpl(
this.serviceManager = serviceManager;
}
- public ApplicationInsightsComponentBillingFeatures get(String resourceGroupName, String resourceName) {
- ApplicationInsightsComponentBillingFeaturesInner inner =
- this.serviceClient().get(resourceGroupName, resourceName);
- if (inner != null) {
- return new ApplicationInsightsComponentBillingFeaturesImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response