diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md index b73233664d83..548c4c2add26 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.6 (Unreleased) +## 1.0.0-beta.1 (2022-07-12) + +- Azure Resource Manager ApplicationInsights client library for Java. This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-06-15. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md index c2eb8ee5509b..e70211fbba19 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/README.md @@ -2,7 +2,7 @@ Azure Resource Manager ApplicationInsights client library for Java. -This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-04-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-06-15. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-applicationinsights - 1.0.0-beta.5 + 1.0.0-beta.6 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md index 33081992ad74..305cb29d3ba2 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md @@ -1840,15 +1840,18 @@ public final class WebTestLocationsListSamples { ### WebTests_CreateOrUpdate ```java +import com.azure.resourcemanager.applicationinsights.models.HeaderField; 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 java.util.Arrays; /** Samples for WebTests CreateOrUpdate. */ public final class WebTestsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestCreate.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreate.json */ /** * Sample code: webTestCreate. @@ -1889,7 +1892,46 @@ public final class WebTestsCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestUpdate.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreateStandard.json + */ + /** + * Sample code: webTestCreateStandard. + * + * @param manager Entry point to ApplicationInsightsManager. + */ + public static void webTestCreateStandard( + com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) { + manager + .webTests() + .define("my-webtest-my-component") + .withRegion("South Central US") + .withExistingResourceGroup("my-resource-group") + .withSyntheticMonitorId("my-webtest-my-component") + .withWebTestName("my-webtest-my-component") + .withDescription("Ping web test alert for mytestwebapp") + .withEnabled(true) + .withFrequency(900) + .withTimeout(120) + .withWebTestKind(WebTestKind.STANDARD) + .withRetryEnabled(true) + .withLocations(Arrays.asList(new WebTestGeolocation().withLocation("us-fl-mia-edge"))) + .withRequest( + new WebTestPropertiesRequest() + .withRequestUrl("https://bing.com") + .withHeaders( + Arrays + .asList( + new HeaderField().withHeaderFieldName("Content-Language").withHeaderFieldValue("de-DE"), + new HeaderField().withHeaderFieldName("Accept-Language").withHeaderFieldValue("de-DE"))) + .withHttpVerb("POST") + .withRequestBody("SGVsbG8gd29ybGQ=")) + .withValidationRules( + new WebTestPropertiesValidationRules().withSslCheck(true).withSslCertRemainingLifetimeCheck(100)) + .create(); + } + + /* + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdate.json */ /** * Sample code: webTestUpdate. @@ -1940,7 +1982,7 @@ import com.azure.core.util.Context; /** Samples for WebTests Delete. */ public final class WebTestsDeleteSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestDelete.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestDelete.json */ /** * Sample code: webTestDelete. @@ -1961,7 +2003,7 @@ import com.azure.core.util.Context; /** Samples for WebTests GetByResourceGroup. */ public final class WebTestsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestGet.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestGet.json */ /** * Sample code: webTestGet. @@ -1984,7 +2026,7 @@ import com.azure.core.util.Context; /** Samples for WebTests List. */ public final class WebTestsListSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestList.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestList.json */ /** * Sample code: webTestList. @@ -2005,7 +2047,7 @@ import com.azure.core.util.Context; /** Samples for WebTests ListByComponent. */ public final class WebTestsListByComponentSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByComponent.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByComponent.json */ /** * Sample code: webTestListByComponent. @@ -2027,7 +2069,7 @@ import com.azure.core.util.Context; /** Samples for WebTests ListByResourceGroup. */ public final class WebTestsListByResourceGroupSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByResourceGroup.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByResourceGroup.json */ /** * Sample code: webTestListByResourceGroup. @@ -2052,7 +2094,7 @@ import java.util.Map; /** Samples for WebTests UpdateTags. */ public final class WebTestsUpdateTagsSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestUpdateTagsOnly.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdateTagsOnly.json */ /** * Sample code: webTestUpdateTags. @@ -2077,8 +2119,6 @@ public final class WebTestsUpdateTagsSamples { "SystemType", "A08", "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", - "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp", "Resource")) .apply(); } diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml index b812b52015b2..678fadb1b7a3 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for ApplicationInsights Management - This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-04-01. + This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-06-15. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java index 7a0a02f3a605..fdbb629ffa7c 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/ApplicationInsightsManager.java @@ -74,7 +74,7 @@ /** Entry point to ApplicationInsightsManager. Composite Swagger for Application Insights Management Client. */ public final class ApplicationInsightsManager { - private Operations operations; + private Components components; private Annotations annotations; @@ -102,18 +102,18 @@ public final class ApplicationInsightsManager { private AnalyticsItems analyticsItems; + private Operations operations; + private WorkbookTemplates workbookTemplates; private MyWorkbooks myWorkbooks; private Workbooks workbooks; - private Components components; + private LiveTokens liveTokens; private ComponentLinkedStorageAccountsOperations componentLinkedStorageAccountsOperations; - private LiveTokens liveTokens; - private final ApplicationInsightsManagementClient clientObject; private ApplicationInsightsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) { @@ -279,7 +279,7 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure .append("-") .append("com.azure.resourcemanager.applicationinsights") .append("/") - .append("1.0.0-beta.5"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") @@ -337,15 +337,15 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure } /** - * Gets the resource collection API of Operations. + * Gets the resource collection API of Components. It manages ApplicationInsightsComponent. * - * @return Resource collection API of Operations. + * @return Resource collection API of Components. */ - public Operations operations() { - if (this.operations == null) { - this.operations = new OperationsImpl(clientObject.getOperations(), this); + public Components components() { + if (this.components == null) { + this.components = new ComponentsImpl(clientObject.getComponents(), this); } - return operations; + return components; } /** @@ -509,6 +509,18 @@ public AnalyticsItems analyticsItems() { return analyticsItems; } + /** + * Gets the resource collection API of Operations. + * + * @return Resource collection API of Operations. + */ + public Operations operations() { + if (this.operations == null) { + this.operations = new OperationsImpl(clientObject.getOperations(), this); + } + return operations; + } + /** * Gets the resource collection API of WorkbookTemplates. It manages WorkbookTemplate. * @@ -546,15 +558,15 @@ public Workbooks workbooks() { } /** - * Gets the resource collection API of Components. It manages ApplicationInsightsComponent. + * Gets the resource collection API of LiveTokens. * - * @return Resource collection API of Components. + * @return Resource collection API of LiveTokens. */ - public Components components() { - if (this.components == null) { - this.components = new ComponentsImpl(clientObject.getComponents(), this); + public LiveTokens liveTokens() { + if (this.liveTokens == null) { + this.liveTokens = new LiveTokensImpl(clientObject.getLiveTokens(), this); } - return components; + return liveTokens; } /** @@ -572,18 +584,6 @@ public ComponentLinkedStorageAccountsOperations componentLinkedStorageAccountsOp return componentLinkedStorageAccountsOperations; } - /** - * Gets the resource collection API of LiveTokens. - * - * @return Resource collection API of LiveTokens. - */ - public LiveTokens liveTokens() { - if (this.liveTokens == null) { - this.liveTokens = new LiveTokensImpl(clientObject.getLiveTokens(), this); - } - return liveTokens; - } - /** * @return Wrapped service client ApplicationInsightsManagementClient providing direct access to the underlying * auto-generated API implementation, based on Azure REST API. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java index 5b4984d43ad4..7d6680144ae7 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApplicationInsightsManagementClient.java @@ -38,11 +38,11 @@ public interface ApplicationInsightsManagementClient { Duration getDefaultPollInterval(); /** - * Gets the OperationsClient object to access its operations. + * Gets the ComponentsClient object to access its operations. * - * @return the OperationsClient object. + * @return the ComponentsClient object. */ - OperationsClient getOperations(); + ComponentsClient getComponents(); /** * Gets the AnnotationsClient object to access its operations. @@ -135,6 +135,13 @@ public interface ApplicationInsightsManagementClient { */ AnalyticsItemsClient getAnalyticsItems(); + /** + * Gets the OperationsClient object to access its operations. + * + * @return the OperationsClient object. + */ + OperationsClient getOperations(); + /** * Gets the WorkbookTemplatesClient object to access its operations. * @@ -157,11 +164,11 @@ public interface ApplicationInsightsManagementClient { WorkbooksClient getWorkbooks(); /** - * Gets the ComponentsClient object to access its operations. + * Gets the LiveTokensClient object to access its operations. * - * @return the ComponentsClient object. + * @return the LiveTokensClient object. */ - ComponentsClient getComponents(); + LiveTokensClient getLiveTokens(); /** * Gets the ComponentLinkedStorageAccountsOperationsClient object to access its operations. @@ -169,11 +176,4 @@ public interface ApplicationInsightsManagementClient { * @return the ComponentLinkedStorageAccountsOperationsClient object. */ ComponentLinkedStorageAccountsOperationsClient getComponentLinkedStorageAccountsOperations(); - - /** - * Gets the LiveTokensClient object to access its operations. - * - * @return the LiveTokensClient object. - */ - LiveTokensClient getLiveTokens(); } diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ComponentsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ComponentsClient.java index 552034af9f36..80585bb29094 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ComponentsClient.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ComponentsClient.java @@ -195,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. @@ -214,7 +217,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. 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/WebTestsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestsClient.java index 389b5ec88568..4e30b854c9fb 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,7 +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. + * @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. @@ -58,7 +58,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. + * @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. @@ -73,13 +73,13 @@ Response getByResourceGroupWithResponse( * 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. * @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 createOrUpdate(String resourceGroupName, String webTestName, WebTestInner webTestDefinition); @@ -88,44 +88,44 @@ Response getByResourceGroupWithResponse( * 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( String resourceGroupName, String webTestName, WebTestInner webTestDefinition, Context context); /** - * 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. * @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); /** - * 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( @@ -135,7 +135,7 @@ Response updateTagsWithResponse( * 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. * @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. @@ -147,7 +147,7 @@ Response updateTagsWithResponse( * 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 +158,24 @@ Response updateTagsWithResponse( Response deleteWithResponse(String resourceGroupName, String webTestName, Context context); /** - * Get all Application Insights web test alerts definitions within a subscription. + * 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/models/OperationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/OperationInner.java index 437b7f7c17eb..94b5a9c6ad7a 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 { /* 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..50764f1f960c 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,19 @@ 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; @@ -30,7 +32,7 @@ public final class WebTestInner extends WebtestsResource { private WebTestProperties innerProperties; /** - * 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 +41,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 +123,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 +132,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 +215,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 +224,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 +319,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..22aadaa144e5 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; @@ -29,7 +31,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; @@ -54,7 +56,8 @@ 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; @@ -87,6 +90,18 @@ public final class WebTestProperties { @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; + /** * Get the syntheticMonitorId property: Unique ID of this WebTest. This is typically the same value as the Name * field. @@ -130,7 +145,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 +154,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 +225,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 +234,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 +317,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 +389,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/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/ComponentsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsClientImpl.java index b1cb815f3010..3e3039874090 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsClientImpl.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsClientImpl.java @@ -1153,7 +1153,10 @@ public 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. @@ -1215,7 +1218,10 @@ private Mono> purgeWithResponseAsync( *

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. @@ -1275,7 +1281,10 @@ private Mono> purgeWithResponseAsync( *

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. @@ -1298,7 +1307,10 @@ private Mono purgeAsync( *

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. @@ -1319,7 +1331,10 @@ public ComponentPurgeResponseInner purge(String resourceGroupName, String resour *

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. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsClientImpl.java index f966c1406737..4db66eb8c0bf 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsClientImpl.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsClientImpl.java @@ -82,8 +82,8 @@ Mono> listNext( * * @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 result of the request to list CDN operations along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return result of the request to list Azure Workbooks operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync() { @@ -93,7 +93,7 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2021-03-08"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) @@ -116,8 +116,8 @@ private Mono> listSinglePageAsync() { * @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 result of the request to list CDN operations along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return result of the request to list Azure Workbooks operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listSinglePageAsync(Context context) { @@ -127,7 +127,7 @@ private Mono> listSinglePageAsync(Context context) new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2021-03-08"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -148,7 +148,7 @@ private Mono> listSinglePageAsync(Context context) * * @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 result of the request to list CDN operations as paginated response with {@link PagedFlux}. + * @return result of the request to list Azure Workbooks operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync() { @@ -162,7 +162,7 @@ private PagedFlux listAsync() { * @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 result of the request to list CDN operations as paginated response with {@link PagedFlux}. + * @return result of the request to list Azure Workbooks operations as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -175,7 +175,8 @@ private PagedFlux listAsync(Context context) { * * @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 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) public PagedIterable list() { @@ -189,7 +190,8 @@ public PagedIterable list() { * @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 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) public PagedIterable list(Context context) { @@ -203,8 +205,8 @@ public PagedIterable list(Context context) { * @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 result of the request to list CDN operations along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return result of the request to list Azure Workbooks operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink) { @@ -240,8 +242,8 @@ private Mono> listNextSinglePageAsync(String nextL * @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 result of the request to list CDN operations along with {@link PagedResponse} on successful completion of - * {@link Mono}. + * @return result of the request to list Azure Workbooks operations along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> listNextSinglePageAsync(String nextLink, Context context) { diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestImpl.java index 73aa68849eb9..98b9d33f6327 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestImpl.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestImpl.java @@ -12,6 +12,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 java.util.Collections; import java.util.List; import java.util.Map; @@ -99,6 +101,14 @@ public String provisioningState() { return this.innerModel().provisioningState(); } + public WebTestPropertiesRequest request() { + return this.innerModel().request(); + } + + public WebTestPropertiesValidationRules validationRules() { + return this.innerModel().validationRules(); + } + public Region region() { return Region.fromName(this.regionName()); } @@ -285,6 +295,16 @@ public WebTestImpl withConfiguration(WebTestPropertiesConfiguration configuratio return this; } + public WebTestImpl withRequest(WebTestPropertiesRequest request) { + this.innerModel().withRequest(request); + return this; + } + + public WebTestImpl withValidationRules(WebTestPropertiesValidationRules validationRules) { + this.innerModel().withValidationRules(validationRules); + return this; + } + private boolean isInCreateMode() { return this.innerModel().id() == null; } diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsClientImpl.java index faa0d9358d4f..5abf9cf4cc9c 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsClientImpl.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsClientImpl.java @@ -191,13 +191,13 @@ Mono> listByComponentNext( } /** - * 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 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 along with {@link + * @return all Application Insights web tests defined for the specified resource group along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -218,7 +218,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; return FluxUtil .withContext( @@ -244,14 +244,14 @@ private Mono> listByResourceGroupSinglePageAsync(Str } /** - * 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 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 along with {@link + * @return all Application Insights web tests defined for the specified resource group along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -273,7 +273,7 @@ private Mono> listByResourceGroupSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -296,13 +296,13 @@ private Mono> listByResourceGroupSinglePageAsync( } /** - * 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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -313,14 +313,14 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * 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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -331,13 +331,13 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam } /** - * 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 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) @@ -346,14 +346,14 @@ public 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 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) @@ -365,7 +365,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName, * 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. * @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. @@ -394,7 +394,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (webTestName == null) { return Mono.error(new IllegalArgumentException("Parameter webTestName is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; return FluxUtil .withContext( @@ -415,7 +415,7 @@ private Mono> getByResourceGroupWithResponseAsync( * 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 ManagementException thrown if the request is rejected by server. @@ -445,7 +445,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (webTestName == null) { return Mono.error(new IllegalArgumentException("Parameter webTestName is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -463,7 +463,7 @@ private Mono> getByResourceGroupWithResponseAsync( * 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. * @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. @@ -479,7 +479,7 @@ private Mono getByResourceGroupAsync(String resourceGroupName, Str * 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. * @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. @@ -494,7 +494,7 @@ public WebTestInner getByResourceGroup(String resourceGroupName, String webTestN * 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 ManagementException thrown if the request is rejected by server. @@ -511,14 +511,14 @@ public Response getByResourceGroupWithResponse( * 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. * @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 web test definition along with {@link Response} on successful completion of - * {@link Mono}. + * @return an Application Insights WebTest definition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -548,7 +548,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { webTestDefinition.validate(); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; return FluxUtil .withContext( @@ -570,15 +570,15 @@ private Mono> createOrUpdateWithResponseAsync( * 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 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} on successful completion of - * {@link Mono}. + * @return an Application Insights WebTest definition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> createOrUpdateWithResponseAsync( @@ -608,7 +608,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { webTestDefinition.validate(); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -627,13 +627,13 @@ private Mono> createOrUpdateWithResponseAsync( * 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. * @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 web test definition on successful completion of {@link Mono}. + * @return an Application Insights WebTest definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( @@ -646,13 +646,13 @@ private Mono createOrUpdateAsync( * 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. * @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 web test definition. + * @return an Application Insights WebTest definition. */ @ServiceMethod(returns = ReturnType.SINGLE) public WebTestInner createOrUpdate(String resourceGroupName, String webTestName, WebTestInner webTestDefinition) { @@ -663,14 +663,14 @@ public WebTestInner createOrUpdate(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 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) public Response createOrUpdateWithResponse( @@ -679,16 +679,16 @@ public Response createOrUpdateWithResponse( } /** - * 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. * @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 web test definition along with {@link Response} on successful completion of - * {@link Mono}. + * @return an Application Insights WebTest definition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateTagsWithResponseAsync( @@ -717,7 +717,7 @@ private Mono> updateTagsWithResponseAsync( } else { webTestTags.validate(); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; return FluxUtil .withContext( @@ -736,17 +736,17 @@ private Mono> updateTagsWithResponseAsync( } /** - * 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 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} on successful completion of - * {@link Mono}. + * @return an Application Insights WebTest definition along with {@link Response} on successful completion of {@link + * Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono> updateTagsWithResponseAsync( @@ -775,7 +775,7 @@ private Mono> updateTagsWithResponseAsync( } else { webTestTags.validate(); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -791,15 +791,15 @@ private Mono> updateTagsWithResponseAsync( } /** - * 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. * @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 web test definition on successful completion of {@link Mono}. + * @return an Application Insights WebTest definition on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono updateTagsAsync(String resourceGroupName, String webTestName, TagsResource webTestTags) { @@ -808,15 +808,15 @@ private Mono updateTagsAsync(String resourceGroupName, String webT } /** - * 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. * @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 web test definition. + * @return an Application Insights WebTest definition. */ @ServiceMethod(returns = ReturnType.SINGLE) public WebTestInner updateTags(String resourceGroupName, String webTestName, TagsResource webTestTags) { @@ -824,16 +824,16 @@ public WebTestInner updateTags(String resourceGroupName, String webTestName, Tag } /** - * 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 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) public Response updateTagsWithResponse( @@ -845,7 +845,7 @@ public Response updateTagsWithResponse( * 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. * @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. @@ -872,7 +872,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (webTestName == null) { return Mono.error(new IllegalArgumentException("Parameter webTestName is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; return FluxUtil .withContext( context -> @@ -891,7 +891,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S * 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 ManagementException thrown if the request is rejected by server. @@ -920,7 +920,7 @@ private Mono> deleteWithResponseAsync( if (webTestName == null) { return Mono.error(new IllegalArgumentException("Parameter webTestName is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; context = this.client.mergeContext(context); return service .delete( @@ -936,7 +936,7 @@ private Mono> deleteWithResponseAsync( * 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. * @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. @@ -951,7 +951,7 @@ private Mono deleteAsync(String resourceGroupName, String webTestName) { * Deletes an Application Insights web test. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param webTestName The name of the Application Insights WebTest resource. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -965,7 +965,7 @@ public void delete(String resourceGroupName, String webTestName) { * Deletes an Application Insights web test. * * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param webTestName The name of the Application Insights webtest resource. + * @param 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 ManagementException thrown if the request is rejected by server. @@ -978,11 +978,11 @@ public Response deleteWithResponse(String resourceGroupName, String webTes } /** - * Get all Application Insights web test alerts definitions within a subscription. + * Get all Application Insights web test definitions for the specified subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return all Application Insights web test alerts definitions within a subscription along with {@link + * @return all Application Insights web test definitions for the specified subscription along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -999,7 +999,7 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1019,13 +1019,13 @@ private Mono> listSinglePageAsync() { } /** - * 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 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 along with {@link + * @return all Application Insights web test definitions for the specified subscription along with {@link * PagedResponse} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1042,7 +1042,7 @@ private Mono> listSinglePageAsync(Context context) { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1059,11 +1059,11 @@ private Mono> listSinglePageAsync(Context context) { } /** - * Get all Application Insights web test alerts definitions within a subscription. + * Get all Application Insights web test definitions for the specified subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1072,13 +1072,13 @@ private PagedFlux listAsync() { } /** - * 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 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 PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1088,11 +1088,11 @@ private PagedFlux listAsync(Context context) { } /** - * Get all Application Insights web test alerts definitions within a subscription. + * Get all Application Insights web test definitions for the specified subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) @@ -1101,13 +1101,13 @@ public 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 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) @@ -1148,7 +1148,7 @@ private Mono> listByComponentSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1208,7 +1208,7 @@ private Mono> listByComponentSinglePageAsync( new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2015-05-01"; + final String apiVersion = "2022-06-15"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1310,7 +1310,7 @@ public PagedIterable listByComponent( * @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 0 or more Application Insights web test definitions along with {@link PagedResponse} on + * @return a list of 0 or more Application Insights WebTest definitions along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1348,7 +1348,7 @@ private Mono> listByResourceGroupNextSinglePageAsync * @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 0 or more Application Insights web test definitions along with {@link PagedResponse} on + * @return a list of 0 or more Application Insights WebTest definitions along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1384,7 +1384,7 @@ private Mono> listByResourceGroupNextSinglePageAsync * @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 0 or more Application Insights web test definitions along with {@link PagedResponse} on + * @return a list of 0 or more Application Insights WebTest definitions along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1421,7 +1421,7 @@ private Mono> listNextSinglePageAsync(String nextLin * @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 0 or more Application Insights web test definitions along with {@link PagedResponse} on + * @return a list of 0 or more Application Insights WebTest definitions along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1457,7 +1457,7 @@ private Mono> listNextSinglePageAsync(String nextLin * @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 0 or more Application Insights web test definitions along with {@link PagedResponse} on + * @return a list of 0 or more Application Insights WebTest definitions along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1494,7 +1494,7 @@ private Mono> listByComponentNextSinglePageAsync(Str * @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 0 or more Application Insights web test definitions along with {@link PagedResponse} on + * @return a list of 0 or more Application Insights WebTest definitions along with {@link PagedResponse} on * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java index d913f9869dfd..76420f049984 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/ApplicationInsightsComponent.java @@ -614,7 +614,10 @@ interface WithTags { *

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 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. @@ -630,7 +633,10 @@ interface WithTags { *

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 body Describes the body of a request to purge data in a single table of an Application Insights component. * @param context The context to associate with this operation. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Components.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Components.java index 92f9aa97eb31..22b5e1aec5ab 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Components.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Components.java @@ -113,7 +113,10 @@ Response getByResourceGroupWithResponse( *

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. @@ -131,7 +134,10 @@ Response getByResourceGroupWithResponse( *

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. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/HeaderField.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/HeaderField.java new file mode 100644 index 000000000000..9458b478ad29 --- /dev/null +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/HeaderField.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.applicationinsights.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** A header to add to the WebTest. */ +@Fluent +public final class HeaderField { + /* + * The name of the header. + */ + @JsonProperty(value = "key") + private String headerFieldName; + + /* + * The value of the header. + */ + @JsonProperty(value = "value") + private String headerFieldValue; + + /** + * Get the headerFieldName property: The name of the header. + * + * @return the headerFieldName value. + */ + public String headerFieldName() { + return this.headerFieldName; + } + + /** + * Set the headerFieldName property: The name of the header. + * + * @param headerFieldName the headerFieldName value to set. + * @return the HeaderField object itself. + */ + public HeaderField withHeaderFieldName(String headerFieldName) { + this.headerFieldName = headerFieldName; + return this; + } + + /** + * Get the headerFieldValue property: The value of the header. + * + * @return the headerFieldValue value. + */ + public String headerFieldValue() { + return this.headerFieldValue; + } + + /** + * Set the headerFieldValue property: The value of the header. + * + * @param headerFieldValue the headerFieldValue value to set. + * @return the HeaderField object itself. + */ + public HeaderField withHeaderFieldValue(String headerFieldValue) { + this.headerFieldValue = headerFieldValue; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationDisplay.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationDisplay.java index aaa8ee337798..7c346a276631 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationDisplay.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationDisplay.java @@ -11,7 +11,7 @@ @Fluent public final class OperationDisplay { /* - * Service provider: Microsoft.Cdn + * Service provider: Microsoft.Insights */ @JsonProperty(value = "provider") private String provider; @@ -29,7 +29,7 @@ public final class OperationDisplay { private String operation; /** - * Get the provider property: Service provider: Microsoft.Cdn. + * Get the provider property: Service provider: Microsoft.Insights. * * @return the provider value. */ @@ -38,7 +38,7 @@ public String provider() { } /** - * Set the provider property: Service provider: Microsoft.Cdn. + * Set the provider property: Service provider: Microsoft.Insights. * * @param provider the provider value to set. * @return the OperationDisplay object itself. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationListResult.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationListResult.java index bf32cff840e1..0e6b671f9a50 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationListResult.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/OperationListResult.java @@ -10,13 +10,14 @@ import java.util.List; /** - * Result of the request to list CDN operations. It contains a list of operations and a URL link to get the next set of - * results. + * Result of the request to list Azure Workbooks operations. It contains a list of operations and a URL link to get the + * next set of results. */ @Fluent public final class OperationListResult { /* - * List of CDN operations supported by the CDN resource provider. + * List of Workbook operations supported by the Microsoft.Insights resource + * provider. */ @JsonProperty(value = "value") private List value; @@ -28,7 +29,7 @@ public final class OperationListResult { private String nextLink; /** - * Get the value property: List of CDN operations supported by the CDN resource provider. + * Get the value property: List of Workbook operations supported by the Microsoft.Insights resource provider. * * @return the value value. */ @@ -37,7 +38,7 @@ public List value() { } /** - * Set the value property: List of CDN operations supported by the CDN resource provider. + * Set the value property: List of Workbook operations supported by the Microsoft.Insights resource provider. * * @param value the value value to set. * @return the OperationListResult object itself. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Operations.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Operations.java index 1688fc056d41..f9de153a4a05 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Operations.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Operations.java @@ -14,7 +14,8 @@ public interface Operations { * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return result of the request to list CDN operations as paginated response with {@link PagedIterable}. + * @return result of the request to list Azure Workbooks operations as paginated response with {@link + * PagedIterable}. */ PagedIterable list(); @@ -25,7 +26,8 @@ public interface Operations { * @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}. */ PagedIterable list(Context context); } diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTest.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTest.java index 4a02d8d12ea0..3565c9ab1f21 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTest.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTest.java @@ -48,7 +48,7 @@ public interface WebTest { Map tags(); /** - * Gets the kind property: The kind of web test that this web test watches. Choices are ping and multistep. + * Gets the kind property: The kind of WebTest that this web test watches. Choices are ping, multistep and standard. * * @return the kind value. */ @@ -70,7 +70,7 @@ public interface WebTest { String webTestName(); /** - * Gets the description property: Purpose/user defined descriptive test for this WebTest. + * Gets the description property: User defined description for this WebTest. * * @return the description value. */ @@ -98,7 +98,7 @@ public interface WebTest { Integer timeout(); /** - * Gets the webTestKind property: The kind of web test this is, valid choices are ping and multistep. + * Gets the webTestKind property: The kind of web test this is, valid choices are ping, multistep and standard. * * @return the webTestKind value. */ @@ -135,6 +135,20 @@ public interface WebTest { */ String provisioningState(); + /** + * Gets the request property: The collection of request properties. + * + * @return the request value. + */ + WebTestPropertiesRequest request(); + + /** + * Gets the validationRules property: The collection of validation rule properties. + * + * @return the validationRules value. + */ + WebTestPropertiesValidationRules validationRules(); + /** * Gets the region of the resource. * @@ -219,7 +233,9 @@ interface WithCreate DefinitionStages.WithWebTestKind, DefinitionStages.WithRetryEnabled, DefinitionStages.WithLocations, - DefinitionStages.WithConfiguration { + DefinitionStages.WithConfiguration, + DefinitionStages.WithRequest, + DefinitionStages.WithValidationRules { /** * Executes the create request. * @@ -248,10 +264,10 @@ interface WithTags { /** The stage of the WebTest definition allowing to specify kind. */ interface WithKind { /** - * Specifies the kind property: The kind of web test that this web test watches. Choices are ping and - * multistep.. + * Specifies the kind property: The kind of WebTest that this web test watches. Choices are ping, multistep + * and standard.. * - * @param kind The kind of web test that this web test watches. Choices are ping and multistep. + * @param kind The kind of WebTest that this web test watches. Choices are ping, multistep and standard. * @return the next definition stage. */ WithCreate withKind(WebTestKind kind); @@ -280,9 +296,9 @@ interface WithWebTestName { /** The stage of the WebTest definition allowing to specify description. */ interface WithDescription { /** - * Specifies the description property: Purpose/user defined descriptive test for this WebTest.. + * Specifies the description property: User defined description for this WebTest.. * - * @param description Purpose/user defined descriptive test for this WebTest. + * @param description User defined description for this WebTest. * @return the next definition stage. */ WithCreate withDescription(String description); @@ -321,9 +337,10 @@ interface WithTimeout { /** The stage of the WebTest definition allowing to specify webTestKind. */ interface WithWebTestKind { /** - * Specifies the webTestKind property: The kind of web test this is, valid choices are ping and multistep.. + * Specifies the webTestKind property: The kind of web test this is, valid choices are ping, multistep and + * standard.. * - * @param webTestKind The kind of web test this is, valid choices are ping and multistep. + * @param webTestKind The kind of web test this is, valid choices are ping, multistep and standard. * @return the next definition stage. */ WithCreate withWebTestKind(WebTestKind webTestKind); @@ -360,6 +377,26 @@ interface WithConfiguration { */ WithCreate withConfiguration(WebTestPropertiesConfiguration configuration); } + /** The stage of the WebTest definition allowing to specify request. */ + interface WithRequest { + /** + * Specifies the request property: The collection of request properties. + * + * @param request The collection of request properties. + * @return the next definition stage. + */ + WithCreate withRequest(WebTestPropertiesRequest request); + } + /** The stage of the WebTest definition allowing to specify validationRules. */ + interface WithValidationRules { + /** + * Specifies the validationRules property: The collection of validation rule properties. + * + * @param validationRules The collection of validation rule properties. + * @return the next definition stage. + */ + WithCreate withValidationRules(WebTestPropertiesValidationRules validationRules); + } } /** * Begins update for the WebTest resource. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestGeolocation.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestGeolocation.java index a64604c501e0..d2d73c3facd0 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestGeolocation.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestGeolocation.java @@ -7,17 +7,17 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** Geo-physical location to run a web test from. You must specify one or more locations for the test to run from. */ +/** Geo-physical location to run a WebTest from. You must specify one or more locations for the test to run from. */ @Fluent public final class WebTestGeolocation { /* - * Location ID for the webtest to run from. + * Location ID for the WebTest to run from. */ @JsonProperty(value = "Id") private String location; /** - * Get the location property: Location ID for the webtest to run from. + * Get the location property: Location ID for the WebTest to run from. * * @return the location value. */ @@ -26,7 +26,7 @@ public String location() { } /** - * Set the location property: Location ID for the webtest to run from. + * Set the location property: Location ID for the WebTest to run from. * * @param location the location value to set. * @return the WebTestGeolocation object itself. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestKind.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestKind.java index 863583cd95cf..1f79e8ea2e1f 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestKind.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestKind.java @@ -13,7 +13,10 @@ public enum WebTestKind { PING("ping"), /** Enum value multistep. */ - MULTISTEP("multistep"); + MULTISTEP("multistep"), + + /** Enum value standard. */ + STANDARD("standard"); /** The actual serialized value for a WebTestKind instance. */ private final String value; diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestListResult.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestListResult.java index f4f8db891c0e..d24443d2a19e 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestListResult.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestListResult.java @@ -10,24 +10,24 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** A list of 0 or more Application Insights web test definitions. */ +/** A list of 0 or more Application Insights WebTest definitions. */ @Fluent public final class WebTestListResult { /* - * Set of Application Insights web test definitions. + * Set of Application Insights WebTest definitions. */ @JsonProperty(value = "value", required = true) private List value; /* - * The link to get the next part of the returned list of web tests, should + * The link to get the next part of the returned list of WebTest, should * the return set be too large for a single request. May be null. */ @JsonProperty(value = "nextLink") private String nextLink; /** - * Get the value property: Set of Application Insights web test definitions. + * Get the value property: Set of Application Insights WebTest definitions. * * @return the value value. */ @@ -36,7 +36,7 @@ public List value() { } /** - * Set the value property: Set of Application Insights web test definitions. + * Set the value property: Set of Application Insights WebTest definitions. * * @param value the value value to set. * @return the WebTestListResult object itself. @@ -47,7 +47,7 @@ public WebTestListResult withValue(List value) { } /** - * Get the nextLink property: The link to get the next part of the returned list of web tests, should the return set + * Get the nextLink property: The link to get the next part of the returned list of WebTest, should the return set * be too large for a single request. May be null. * * @return the nextLink value. @@ -57,7 +57,7 @@ public String nextLink() { } /** - * Set the nextLink property: The link to get the next part of the returned list of web tests, should the return set + * Set the nextLink property: The link to get the next part of the returned list of WebTest, should the return set * be too large for a single request. May be null. * * @param nextLink the nextLink value to set. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesRequest.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesRequest.java new file mode 100644 index 000000000000..9db0d606e7c9 --- /dev/null +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesRequest.java @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.applicationinsights.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** The collection of request properties. */ +@Fluent +public final class WebTestPropertiesRequest { + /* + * Url location to test. + */ + @JsonProperty(value = "RequestUrl") + private String requestUrl; + + /* + * List of headers and their values to add to the WebTest call. + */ + @JsonProperty(value = "Headers") + private List headers; + + /* + * Http verb to use for this web test. + */ + @JsonProperty(value = "HttpVerb") + private String httpVerb; + + /* + * Base64 encoded string body to send with this web test. + */ + @JsonProperty(value = "RequestBody") + private String requestBody; + + /* + * Parse Dependent request for this WebTest. + */ + @JsonProperty(value = "ParseDependentRequests") + private Boolean parseDependentRequests; + + /* + * Follow redirects for this web test. + */ + @JsonProperty(value = "FollowRedirects") + private Boolean followRedirects; + + /** + * Get the requestUrl property: Url location to test. + * + * @return the requestUrl value. + */ + public String requestUrl() { + return this.requestUrl; + } + + /** + * Set the requestUrl property: Url location to test. + * + * @param requestUrl the requestUrl value to set. + * @return the WebTestPropertiesRequest object itself. + */ + public WebTestPropertiesRequest withRequestUrl(String requestUrl) { + this.requestUrl = requestUrl; + return this; + } + + /** + * Get the headers property: List of headers and their values to add to the WebTest call. + * + * @return the headers value. + */ + public List headers() { + return this.headers; + } + + /** + * Set the headers property: List of headers and their values to add to the WebTest call. + * + * @param headers the headers value to set. + * @return the WebTestPropertiesRequest object itself. + */ + public WebTestPropertiesRequest withHeaders(List headers) { + this.headers = headers; + return this; + } + + /** + * Get the httpVerb property: Http verb to use for this web test. + * + * @return the httpVerb value. + */ + public String httpVerb() { + return this.httpVerb; + } + + /** + * Set the httpVerb property: Http verb to use for this web test. + * + * @param httpVerb the httpVerb value to set. + * @return the WebTestPropertiesRequest object itself. + */ + public WebTestPropertiesRequest withHttpVerb(String httpVerb) { + this.httpVerb = httpVerb; + return this; + } + + /** + * Get the requestBody property: Base64 encoded string body to send with this web test. + * + * @return the requestBody value. + */ + public String requestBody() { + return this.requestBody; + } + + /** + * Set the requestBody property: Base64 encoded string body to send with this web test. + * + * @param requestBody the requestBody value to set. + * @return the WebTestPropertiesRequest object itself. + */ + public WebTestPropertiesRequest withRequestBody(String requestBody) { + this.requestBody = requestBody; + return this; + } + + /** + * Get the parseDependentRequests property: Parse Dependent request for this WebTest. + * + * @return the parseDependentRequests value. + */ + public Boolean parseDependentRequests() { + return this.parseDependentRequests; + } + + /** + * Set the parseDependentRequests property: Parse Dependent request for this WebTest. + * + * @param parseDependentRequests the parseDependentRequests value to set. + * @return the WebTestPropertiesRequest object itself. + */ + public WebTestPropertiesRequest withParseDependentRequests(Boolean parseDependentRequests) { + this.parseDependentRequests = parseDependentRequests; + return this; + } + + /** + * Get the followRedirects property: Follow redirects for this web test. + * + * @return the followRedirects value. + */ + public Boolean followRedirects() { + return this.followRedirects; + } + + /** + * Set the followRedirects property: Follow redirects for this web test. + * + * @param followRedirects the followRedirects value to set. + * @return the WebTestPropertiesRequest object itself. + */ + public WebTestPropertiesRequest withFollowRedirects(Boolean followRedirects) { + this.followRedirects = followRedirects; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (headers() != null) { + headers().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesValidationRules.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesValidationRules.java new file mode 100644 index 000000000000..618e9a9313a1 --- /dev/null +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesValidationRules.java @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.applicationinsights.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The collection of validation rule properties. */ +@Fluent +public final class WebTestPropertiesValidationRules { + /* + * The collection of content validation properties + */ + @JsonProperty(value = "ContentValidation") + private WebTestPropertiesValidationRulesContentValidation contentValidation; + + /* + * Checks to see if the SSL cert is still valid. + */ + @JsonProperty(value = "SSLCheck") + private Boolean sslCheck; + + /* + * A number of days to check still remain before the the existing SSL cert + * expires. Value must be positive and the SSLCheck must be set to true. + */ + @JsonProperty(value = "SSLCertRemainingLifetimeCheck") + private Integer sslCertRemainingLifetimeCheck; + + /* + * Validate that the WebTest returns the http status code provided. + */ + @JsonProperty(value = "ExpectedHttpStatusCode") + private Integer expectedHttpStatusCode; + + /* + * When set, validation will ignore the status code. + */ + @JsonProperty(value = "IgnoreHttpsStatusCode") + private Boolean ignoreHttpsStatusCode; + + /** + * Get the contentValidation property: The collection of content validation properties. + * + * @return the contentValidation value. + */ + public WebTestPropertiesValidationRulesContentValidation contentValidation() { + return this.contentValidation; + } + + /** + * Set the contentValidation property: The collection of content validation properties. + * + * @param contentValidation the contentValidation value to set. + * @return the WebTestPropertiesValidationRules object itself. + */ + public WebTestPropertiesValidationRules withContentValidation( + WebTestPropertiesValidationRulesContentValidation contentValidation) { + this.contentValidation = contentValidation; + return this; + } + + /** + * Get the sslCheck property: Checks to see if the SSL cert is still valid. + * + * @return the sslCheck value. + */ + public Boolean sslCheck() { + return this.sslCheck; + } + + /** + * Set the sslCheck property: Checks to see if the SSL cert is still valid. + * + * @param sslCheck the sslCheck value to set. + * @return the WebTestPropertiesValidationRules object itself. + */ + public WebTestPropertiesValidationRules withSslCheck(Boolean sslCheck) { + this.sslCheck = sslCheck; + return this; + } + + /** + * Get the sslCertRemainingLifetimeCheck property: A number of days to check still remain before the the existing + * SSL cert expires. Value must be positive and the SSLCheck must be set to true. + * + * @return the sslCertRemainingLifetimeCheck value. + */ + public Integer sslCertRemainingLifetimeCheck() { + return this.sslCertRemainingLifetimeCheck; + } + + /** + * Set the sslCertRemainingLifetimeCheck property: A number of days to check still remain before the the existing + * SSL cert expires. Value must be positive and the SSLCheck must be set to true. + * + * @param sslCertRemainingLifetimeCheck the sslCertRemainingLifetimeCheck value to set. + * @return the WebTestPropertiesValidationRules object itself. + */ + public WebTestPropertiesValidationRules withSslCertRemainingLifetimeCheck(Integer sslCertRemainingLifetimeCheck) { + this.sslCertRemainingLifetimeCheck = sslCertRemainingLifetimeCheck; + return this; + } + + /** + * Get the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided. + * + * @return the expectedHttpStatusCode value. + */ + public Integer expectedHttpStatusCode() { + return this.expectedHttpStatusCode; + } + + /** + * Set the expectedHttpStatusCode property: Validate that the WebTest returns the http status code provided. + * + * @param expectedHttpStatusCode the expectedHttpStatusCode value to set. + * @return the WebTestPropertiesValidationRules object itself. + */ + public WebTestPropertiesValidationRules withExpectedHttpStatusCode(Integer expectedHttpStatusCode) { + this.expectedHttpStatusCode = expectedHttpStatusCode; + return this; + } + + /** + * Get the ignoreHttpsStatusCode property: When set, validation will ignore the status code. + * + * @return the ignoreHttpsStatusCode value. + */ + public Boolean ignoreHttpsStatusCode() { + return this.ignoreHttpsStatusCode; + } + + /** + * Set the ignoreHttpsStatusCode property: When set, validation will ignore the status code. + * + * @param ignoreHttpsStatusCode the ignoreHttpsStatusCode value to set. + * @return the WebTestPropertiesValidationRules object itself. + */ + public WebTestPropertiesValidationRules withIgnoreHttpsStatusCode(Boolean ignoreHttpsStatusCode) { + this.ignoreHttpsStatusCode = ignoreHttpsStatusCode; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (contentValidation() != null) { + contentValidation().validate(); + } + } +} diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesValidationRulesContentValidation.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesValidationRulesContentValidation.java new file mode 100644 index 000000000000..9d6020d874b4 --- /dev/null +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTestPropertiesValidationRulesContentValidation.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.applicationinsights.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The collection of content validation properties. */ +@Fluent +public final class WebTestPropertiesValidationRulesContentValidation { + /* + * Content to look for in the return of the WebTest. Must not be null or + * empty. + */ + @JsonProperty(value = "ContentMatch") + private String contentMatch; + + /* + * When set, this value makes the ContentMatch validation case insensitive. + */ + @JsonProperty(value = "IgnoreCase") + private Boolean ignoreCase; + + /* + * When true, validation will pass if there is a match for the ContentMatch + * string. If false, validation will fail if there is a match + */ + @JsonProperty(value = "PassIfTextFound") + private Boolean passIfTextFound; + + /** + * Get the contentMatch property: Content to look for in the return of the WebTest. Must not be null or empty. + * + * @return the contentMatch value. + */ + public String contentMatch() { + return this.contentMatch; + } + + /** + * Set the contentMatch property: Content to look for in the return of the WebTest. Must not be null or empty. + * + * @param contentMatch the contentMatch value to set. + * @return the WebTestPropertiesValidationRulesContentValidation object itself. + */ + public WebTestPropertiesValidationRulesContentValidation withContentMatch(String contentMatch) { + this.contentMatch = contentMatch; + return this; + } + + /** + * Get the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive. + * + * @return the ignoreCase value. + */ + public Boolean ignoreCase() { + return this.ignoreCase; + } + + /** + * Set the ignoreCase property: When set, this value makes the ContentMatch validation case insensitive. + * + * @param ignoreCase the ignoreCase value to set. + * @return the WebTestPropertiesValidationRulesContentValidation object itself. + */ + public WebTestPropertiesValidationRulesContentValidation withIgnoreCase(Boolean ignoreCase) { + this.ignoreCase = ignoreCase; + return this; + } + + /** + * Get the passIfTextFound property: When true, validation will pass if there is a match for the ContentMatch + * string. If false, validation will fail if there is a match. + * + * @return the passIfTextFound value. + */ + public Boolean passIfTextFound() { + return this.passIfTextFound; + } + + /** + * Set the passIfTextFound property: When true, validation will pass if there is a match for the ContentMatch + * string. If false, validation will fail if there is a match. + * + * @param passIfTextFound the passIfTextFound value to set. + * @return the WebTestPropertiesValidationRulesContentValidation object itself. + */ + public WebTestPropertiesValidationRulesContentValidation withPassIfTextFound(Boolean passIfTextFound) { + this.passIfTextFound = passIfTextFound; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTests.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTests.java index 3e6ffddca129..8b299604529c 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTests.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/WebTests.java @@ -11,26 +11,26 @@ /** Resource collection API of WebTests. */ public interface WebTests { /** - * 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}. */ 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}. */ PagedIterable listByResourceGroup(String resourceGroupName, Context context); @@ -39,7 +39,7 @@ public interface WebTests { * 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. * @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. @@ -51,7 +51,7 @@ public interface WebTests { * 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. @@ -64,7 +64,7 @@ public interface WebTests { * 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. * @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. @@ -75,7 +75,7 @@ public interface WebTests { * 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. @@ -85,23 +85,23 @@ public interface WebTests { Response deleteWithResponse(String resourceGroupName, String webTestName, Context context); /** - * Get all Application Insights web test alerts definitions within a subscription. + * 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}. */ 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}. */ PagedIterable list(Context context); diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsCreateOrUpdateSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsCreateOrUpdateSamples.java index cbc0a8680266..993d4ca6c611 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsCreateOrUpdateSamples.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsCreateOrUpdateSamples.java @@ -4,15 +4,18 @@ package com.azure.resourcemanager.applicationinsights.generated; +import com.azure.resourcemanager.applicationinsights.models.HeaderField; 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 java.util.Arrays; /** Samples for WebTests CreateOrUpdate. */ public final class WebTestsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestCreate.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreate.json */ /** * Sample code: webTestCreate. @@ -53,7 +56,46 @@ public static void webTestCreate(com.azure.resourcemanager.applicationinsights.A } /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestUpdate.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreateStandard.json + */ + /** + * Sample code: webTestCreateStandard. + * + * @param manager Entry point to ApplicationInsightsManager. + */ + public static void webTestCreateStandard( + com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) { + manager + .webTests() + .define("my-webtest-my-component") + .withRegion("South Central US") + .withExistingResourceGroup("my-resource-group") + .withSyntheticMonitorId("my-webtest-my-component") + .withWebTestName("my-webtest-my-component") + .withDescription("Ping web test alert for mytestwebapp") + .withEnabled(true) + .withFrequency(900) + .withTimeout(120) + .withWebTestKind(WebTestKind.STANDARD) + .withRetryEnabled(true) + .withLocations(Arrays.asList(new WebTestGeolocation().withLocation("us-fl-mia-edge"))) + .withRequest( + new WebTestPropertiesRequest() + .withRequestUrl("https://bing.com") + .withHeaders( + Arrays + .asList( + new HeaderField().withHeaderFieldName("Content-Language").withHeaderFieldValue("de-DE"), + new HeaderField().withHeaderFieldName("Accept-Language").withHeaderFieldValue("de-DE"))) + .withHttpVerb("POST") + .withRequestBody("SGVsbG8gd29ybGQ=")) + .withValidationRules( + new WebTestPropertiesValidationRules().withSslCheck(true).withSslCertRemainingLifetimeCheck(100)) + .create(); + } + + /* + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdate.json */ /** * Sample code: webTestUpdate. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsDeleteSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsDeleteSamples.java index dd155f43ccc2..89c8a13487c3 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsDeleteSamples.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for WebTests Delete. */ public final class WebTestsDeleteSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestDelete.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestDelete.json */ /** * Sample code: webTestDelete. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsGetByResourceGroupSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsGetByResourceGroupSamples.java index 122f03a6a80c..8772458d3a1b 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsGetByResourceGroupSamples.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for WebTests GetByResourceGroup. */ public final class WebTestsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestGet.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestGet.json */ /** * Sample code: webTestGet. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByComponentSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByComponentSamples.java index 71a428618a75..2d063868e2ed 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByComponentSamples.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByComponentSamples.java @@ -9,7 +9,7 @@ /** Samples for WebTests ListByComponent. */ public final class WebTestsListByComponentSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByComponent.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByComponent.json */ /** * Sample code: webTestListByComponent. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByResourceGroupSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByResourceGroupSamples.java index d8e5d1e36150..42a83f48b71d 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByResourceGroupSamples.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ /** Samples for WebTests ListByResourceGroup. */ public final class WebTestsListByResourceGroupSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByResourceGroup.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByResourceGroup.json */ /** * Sample code: webTestListByResourceGroup. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListSamples.java index 16668f68094c..f8fd8dcb397d 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListSamples.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsListSamples.java @@ -9,7 +9,7 @@ /** Samples for WebTests List. */ public final class WebTestsListSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestList.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestList.json */ /** * Sample code: webTestList. diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsUpdateTagsSamples.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsUpdateTagsSamples.java index 1406204a3ef1..2335b7711c32 100644 --- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsUpdateTagsSamples.java +++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/samples/java/com/azure/resourcemanager/applicationinsights/generated/WebTestsUpdateTagsSamples.java @@ -12,7 +12,7 @@ /** Samples for WebTests UpdateTags. */ public final class WebTestsUpdateTagsSamples { /* - * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestUpdateTagsOnly.json + * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdateTagsOnly.json */ /** * Sample code: webTestUpdateTags. @@ -37,8 +37,6 @@ public static void webTestUpdateTags( "SystemType", "A08", "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component", - "Resource", - "hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp", "Resource")) .apply(); }