diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/CHANGELOG.md
index ad28ae6806e2..de9ffabecd18 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.4 (Unreleased)
+## 1.0.0-beta.1 (2022-03-14)
+
+- 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-02-01. 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 73c85b881540..1575860a0fc5 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-01-11. 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-02-01. 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.3
+ 1.0.0-beta.4
```
[//]: # ({x-version-update-end})
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
index 1cccb5f417b2..812aba3c7007 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/SAMPLE.md
@@ -2448,7 +2448,6 @@ import com.azure.resourcemanager.applicationinsights.models.Kind;
import com.azure.resourcemanager.applicationinsights.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.applicationinsights.models.UserAssignedIdentity;
import com.azure.resourcemanager.applicationinsights.models.WorkbookResourceIdentity;
-import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -2469,27 +2468,25 @@ public final class WorkbooksCreateOrUpdateSamples {
.define("deadb33f-5e0d-4064-8ebb-1a4ed0313eb2")
.withRegion("westus")
.withExistingResourceGroup("my-resource-group")
- .withTags(mapOf("hidden-title", "tttt"))
.withIdentity(
new WorkbookResourceIdentity()
.withType(ManagedServiceIdentityType.USER_ASSIGNED)
.withUserAssignedIdentities(
mapOf(
- "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myid",
new UserAssignedIdentity())))
.withKind(Kind.SHARED)
- .withEtag("\"4a00f78d-0000-0700-0000-5f8f616c1000\"")
- .withDisplayName("tttt")
+ .withDisplayName("Sample workbook")
.withSerializedData(
"{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"test\"},\"name\":\"text -"
- + " 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/MyGroup\"]}")
+ + " 0\"}],\"isLocked\":false,\"fallbackResourceIds\":[\"/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/my-resource-group\"]}")
.withVersion("Notebook/1.0")
.withCategory("workbook")
- .withTagsPropertiesTags(Arrays.asList())
.withStorageUri(
- "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/MyGroup/providers/Microsoft.Storage/storageAccounts/testStorage/blobServices/default/containers/testContainer")
+ "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Storage/storageAccounts/mystorage/blobServices/default/containers/mycontainer")
.withDescription("Sample workbook")
- .withSourceIdParameter("/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/MyGroup")
+ .withSourceIdParameter(
+ "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group")
.create();
}
@@ -2504,12 +2501,12 @@ public final class WorkbooksCreateOrUpdateSamples {
public static void workbookAdd(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
manager
.workbooks()
- .define("deadb33f-8bee-4d3b-a059-9be8dac93960")
- .withRegion("west us")
+ .define("deadb33f-5e0d-4064-8ebb-1a4ed0313eb2")
+ .withRegion("westus")
.withExistingResourceGroup("my-resource-group")
.withTags(mapOf("TagSample01", "sample01", "TagSample02", "sample02"))
.withKind(Kind.SHARED)
- .withDisplayName("tttt")
+ .withDisplayName("Sample workbook")
.withSerializedData(
"{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":\"{\"json\":\"## New workbook\\r"
+ "\\n"
@@ -2532,7 +2529,8 @@ public final class WorkbooksCreateOrUpdateSamples {
+ " barchart\",\"showQuery\":false,\"size\":1,\"aggregation\":0,\"showAnnotations\":false}\",\"halfWidth\":null,\"conditionalVisibility\":null}],\"isLocked\":false}")
.withCategory("workbook")
.withDescription("Sample workbook")
- .withSourceIdParameter("/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/MyGroup")
+ .withSourceIdParameter(
+ "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group")
.create();
}
@@ -2591,7 +2589,8 @@ public final class WorkbooksGetByResourceGroupSamples {
public static void workbookGet1(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
manager
.workbooks()
- .getByResourceGroupWithResponse("my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", Context.NONE);
+ .getByResourceGroupWithResponse(
+ "my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", null, Context.NONE);
}
/*
@@ -2606,7 +2605,8 @@ public final class WorkbooksGetByResourceGroupSamples {
com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
manager
.workbooks()
- .getByResourceGroupWithResponse("my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", Context.NONE);
+ .getByResourceGroupWithResponse(
+ "my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", null, Context.NONE);
}
/*
@@ -2620,7 +2620,8 @@ public final class WorkbooksGetByResourceGroupSamples {
public static void workbookGet(com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
manager
.workbooks()
- .getByResourceGroupWithResponse("my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", Context.NONE);
+ .getByResourceGroupWithResponse(
+ "my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", null, Context.NONE);
}
}
```
@@ -2633,19 +2634,6 @@ import com.azure.resourcemanager.applicationinsights.models.CategoryType;
/** Samples for Workbooks List. */
public final class WorkbooksListSamples {
- /*
- * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-08-01/examples/WorkbooksManagedList.json
- */
- /**
- * Sample code: WorkbooksManagedList.
- *
- * @param manager Entry point to ApplicationInsightsManager.
- */
- public static void workbooksManagedList(
- com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
- manager.workbooks().list(CategoryType.WORKBOOK, null, null, Context.NONE);
- }
-
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-08-01/examples/WorkbooksListSub.json
*/
@@ -2682,6 +2670,27 @@ import com.azure.resourcemanager.applicationinsights.models.CategoryType;
/** Samples for Workbooks ListByResourceGroup. */
public final class WorkbooksListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-08-01/examples/WorkbooksManagedList.json
+ */
+ /**
+ * Sample code: WorkbooksManagedList.
+ *
+ * @param manager Entry point to ApplicationInsightsManager.
+ */
+ public static void workbooksManagedList(
+ com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
+ manager
+ .workbooks()
+ .listByResourceGroup(
+ "my-resource-group",
+ CategoryType.WORKBOOK,
+ null,
+ "/subscriptions/6b643656-33eb-422f-aee8-3ac119r124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
+ null,
+ Context.NONE);
+ }
+
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2021-08-01/examples/WorkbooksList.json
*/
@@ -2697,7 +2706,7 @@ public final class WorkbooksListByResourceGroupSamples {
"my-resource-group",
CategoryType.WORKBOOK,
null,
- "/subscriptions/ad2f1a83-caac-4e21-9d2a-9ca3f87105e2/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1",
+ "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp",
null,
Context.NONE);
}
@@ -2776,12 +2785,12 @@ public final class WorkbooksUpdateSamples {
manager
.workbooks()
.getByResourceGroupWithResponse(
- "my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", Context.NONE)
+ "my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", null, Context.NONE)
.getValue();
resource
.update()
.withSourceId(
- "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/Default-Web-WestUS/providers/Microsoft.Web/sites/MyTestApp-CodeLens1")
+ "/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/MyApp")
.apply();
}
@@ -2799,11 +2808,11 @@ public final class WorkbooksUpdateSamples {
manager
.workbooks()
.getByResourceGroupWithResponse(
- "my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", Context.NONE)
+ "my-resource-group", "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2", null, Context.NONE)
.getValue();
resource
.update()
- .withSourceId("/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/MyGroup")
+ .withSourceId("/subscriptions/6b643656-33eb-422f-aee8-3ac145d124af/resourcegroups/my-resource-group")
.apply();
}
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/pom.xml
index 713ff4b6255a..79b80a1baddc 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-01-11.
+ 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-02-01.
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 242f981a7349..091c931e6ec4 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
@@ -150,7 +150,7 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
@@ -224,9 +224,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -248,7 +250,7 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure
.append("-")
.append("com.azure.resourcemanager.applicationinsights")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/AnnotationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/AnnotationsClient.java
index b9f26a94253c..f225ed93af97 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/AnnotationsClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/AnnotationsClient.java
@@ -25,7 +25,8 @@ public interface AnnotationsClient {
* @throws com.azure.resourcemanager.applicationinsights.models.AnnotationErrorException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName, String start, String end);
@@ -42,7 +43,8 @@ public interface AnnotationsClient {
* @throws com.azure.resourcemanager.applicationinsights.models.AnnotationErrorException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApiKeysClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApiKeysClient.java
index 961d770ba66a..f73033e768f5 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApiKeysClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/ApiKeysClient.java
@@ -22,7 +22,7 @@ public interface ApiKeysClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
+ * @return a list of API keys of an Application Insights component as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -36,7 +36,7 @@ public interface ApiKeysClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
+ * @return a list of API keys of an Application Insights component as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
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 7424176a8925..552034af9f36 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
@@ -22,7 +22,8 @@ public interface ComponentsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all Application Insights components within a subscription.
+ * @return a list of all Application Insights components within a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -34,7 +35,8 @@ public interface ComponentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all Application Insights components within a subscription.
+ * @return a list of all Application Insights components within a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -46,7 +48,8 @@ public interface ComponentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Application Insights components within a resource group.
+ * @return a list of Application Insights components within a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -59,7 +62,8 @@ public interface ComponentsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of Application Insights components within a resource group.
+ * @return a list of Application Insights components within a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java
index 3f5fb80e5fb6..ba1ccf6ed7e9 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/MyWorkbooksClient.java
@@ -24,7 +24,8 @@ public interface MyWorkbooksClient {
* @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
+ * @return all private workbooks defined within a specified resource group and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category);
@@ -43,7 +44,8 @@ public interface MyWorkbooksClient {
* @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
+ * @return all private workbooks defined within a specified resource group and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(
@@ -62,7 +64,8 @@ PagedIterable listByResourceGroup(
* @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all private workbooks defined within a specified subscription and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(CategoryType category);
@@ -79,7 +82,8 @@ PagedIterable listByResourceGroup(
* @throws com.azure.resourcemanager.applicationinsights.models.ErrorDefinitionException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all private workbooks defined within a specified subscription and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
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 c56a42ad2600..179d564a1690 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,7 @@ 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.
+ * @return result of the request to list CDN operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ 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.
+ * @return result of the request to list CDN 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/WebTestLocationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestLocationsClient.java
index 1674989efa78..24790c3ab2d3 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestLocationsClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WebTestLocationsClient.java
@@ -20,7 +20,8 @@ public interface WebTestLocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of web test locations available to this Application Insights component.
+ * @return a list of web test locations available to this Application Insights component as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -34,7 +35,8 @@ public interface WebTestLocationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of web test locations available to this Application Insights component.
+ * @return a list of web test locations available to this Application Insights component as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
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 2a4e5b1064d6..389b5ec88568 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
@@ -21,7 +21,8 @@ public interface WebTestsClient {
* @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.
+ * @return all Application Insights web tests defined within a specified resource group as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -34,7 +35,8 @@ public interface WebTestsClient {
* @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.
+ * @return all Application Insights web tests defined within a specified resource group as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -160,7 +162,8 @@ Response updateTagsWithResponse(
*
* @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.
+ * @return all Application Insights web test alerts definitions within a subscription as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -172,7 +175,8 @@ Response updateTagsWithResponse(
* @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.
+ * @return all Application Insights web test alerts definitions within a subscription as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -185,7 +189,8 @@ Response updateTagsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Application Insights web tests defined for the specified component.
+ * @return all Application Insights web tests defined for the specified component as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByComponent(String componentName, String resourceGroupName);
@@ -199,7 +204,8 @@ Response updateTagsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Application Insights web tests defined for the specified component.
+ * @return all Application Insights web tests defined for the specified component as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByComponent(String componentName, String resourceGroupName, Context context);
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkItemConfigurationsClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkItemConfigurationsClient.java
index 4fa92bcbdb36..41b5c4b356f2 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkItemConfigurationsClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkItemConfigurationsClient.java
@@ -23,7 +23,8 @@ public interface WorkItemConfigurationsClient {
* @throws com.azure.resourcemanager.applicationinsights.models.WorkItemConfigurationErrorException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
+ * @return the list work item configurations that exist for the application as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName);
@@ -38,7 +39,8 @@ public interface WorkItemConfigurationsClient {
* @throws com.azure.resourcemanager.applicationinsights.models.WorkItemConfigurationErrorException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
+ * @return the list work item configurations that exist for the application as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String resourceName, Context context);
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
index 20f93b289534..890e1ae89395 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbookTemplatesClient.java
@@ -21,7 +21,8 @@ public interface WorkbookTemplatesClient {
* @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 Workbook templates defined within a specified resource group.
+ * @return all Workbook templates defined within a specified resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -34,7 +35,8 @@ public interface WorkbookTemplatesClient {
* @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 Workbook templates defined within a specified resource group.
+ * @return all Workbook templates defined within a specified resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
index 8da4b97038ed..ac97d579c8f5 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/WorkbooksClient.java
@@ -17,20 +17,21 @@
/** An instance of this class provides access to all the operations defined in WorkbooksClient. */
public interface WorkbooksClient {
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all Workbooks defined within a specified subscription and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(CategoryType category);
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @param tags Tags presents on each workbook returned.
@@ -41,7 +42,8 @@ public interface WorkbooksClient {
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all Workbooks defined within a specified subscription and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -56,7 +58,8 @@ PagedIterable list(
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
+ * @return all Workbooks defined within a specified resource group and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category);
@@ -75,7 +78,8 @@ PagedIterable list(
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
+ * @return all Workbooks defined within a specified resource group and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(
@@ -105,6 +109,8 @@ PagedIterable listByResourceGroup(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
+ * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
+ * false, only return summary content for workbooks.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
@@ -114,7 +120,7 @@ PagedIterable listByResourceGroup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
- String resourceGroupName, String resourceName, Context context);
+ String resourceGroupName, String resourceName, Boolean canFetchContent, Context context);
/**
* Delete a workbook.
@@ -226,7 +232,8 @@ Response updateWithResponse(
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the revisions for the workbook defined by its resourceName.
+ * @return the revisions for the workbook defined by its resourceName as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable revisionsList(String resourceGroupName, String resourceName);
@@ -241,7 +248,8 @@ Response updateWithResponse(
* @throws com.azure.resourcemanager.applicationinsights.models.WorkbookErrorDefinitionException thrown if the
* request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the revisions for the workbook defined by its resourceName.
+ * @return the revisions for the workbook defined by its resourceName as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable revisionsList(String resourceGroupName, String resourceName, Context context);
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/AnnotationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/AnnotationInner.java
index 860531512953..15f70037ac3c 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/AnnotationInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/AnnotationInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
/** Annotation associated with an application insights resource. */
@Fluent
public final class AnnotationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AnnotationInner.class);
-
/*
* Name of annotation
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAnalyticsItemInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAnalyticsItemInner.java
index 7874a1f73651..e9200b8bbb5e 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAnalyticsItemInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAnalyticsItemInner.java
@@ -5,19 +5,14 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentAnalyticsItemProperties;
import com.azure.resourcemanager.applicationinsights.models.ItemScope;
import com.azure.resourcemanager.applicationinsights.models.ItemType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties that define an Analytics item that is associated to an Application Insights component. */
@Fluent
public final class ApplicationInsightsComponentAnalyticsItemInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentAnalyticsItemInner.class);
-
/*
* Internally assigned unique id of the item definition.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentApiKeyInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentApiKeyInner.java
index 76745f707cb2..cc0406b16b24 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentApiKeyInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentApiKeyInner.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties that define an API key of an Application Insights Component. */
@Fluent
public final class ApplicationInsightsComponentApiKeyInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentApiKeyInner.class);
-
/*
* The unique ID of the API key inside an Application Insights component.
* It is auto generated when the API key is created.
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAvailableFeaturesInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAvailableFeaturesInner.java
index a00913acbf5e..edead3d53003 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAvailableFeaturesInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentAvailableFeaturesInner.java
@@ -5,18 +5,13 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentFeature;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** An Application Insights component available features. */
@Immutable
public final class ApplicationInsightsComponentAvailableFeaturesInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentAvailableFeaturesInner.class);
-
/*
* A list of Application Insights component feature.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentBillingFeaturesInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentBillingFeaturesInner.java
index e3eb28785935..5e1f727b1480 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentBillingFeaturesInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentBillingFeaturesInner.java
@@ -5,18 +5,13 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentDataVolumeCap;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** An Application Insights component billing features. */
@Fluent
public final class ApplicationInsightsComponentBillingFeaturesInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentBillingFeaturesInner.class);
-
/*
* An Application Insights component daily data volume cap
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentExportConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentExportConfigurationInner.java
index 8f0a97e238c5..6892d0e698ce 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentExportConfigurationInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentExportConfigurationInner.java
@@ -5,16 +5,11 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties that define a Continuous Export configuration. */
@Fluent
public final class ApplicationInsightsComponentExportConfigurationInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentExportConfigurationInner.class);
-
/*
* The unique ID of the export configuration inside an Application Insights
* component. It is auto generated when the Continuous Export configuration
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFavoriteInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFavoriteInner.java
index 127347058327..a35bac698a26 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFavoriteInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFavoriteInner.java
@@ -5,17 +5,13 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.FavoriteType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties that define a favorite that is associated to an Application Insights component. */
@Fluent
public final class ApplicationInsightsComponentFavoriteInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentFavoriteInner.class);
-
/*
* The user-defined name of the favorite.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFeatureCapabilitiesInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFeatureCapabilitiesInner.java
index e56afd1ba8a6..e3a2e056b297 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFeatureCapabilitiesInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentFeatureCapabilitiesInner.java
@@ -5,16 +5,11 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** An Application Insights component feature capabilities. */
@Immutable
public final class ApplicationInsightsComponentFeatureCapabilitiesInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentFeatureCapabilitiesInner.class);
-
/*
* Whether allow to use continuous export feature.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
index 6524e9492a70..18f11a922b88 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentInner.java
@@ -13,7 +13,6 @@
import com.azure.resourcemanager.applicationinsights.models.PrivateLinkScopedResource;
import com.azure.resourcemanager.applicationinsights.models.PublicNetworkAccessType;
import com.azure.resourcemanager.applicationinsights.models.RequestSource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -22,8 +21,6 @@
/** An Application Insights component definition. */
@Fluent
public final class ApplicationInsightsComponentInner extends ComponentsResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentInner.class);
-
/*
* The kind of application that this component refers to, used to customize
* UI. This value is a freeform string, values should typically be one of
@@ -564,7 +561,7 @@ public ApplicationInsightsComponentInner withForceCustomerStorageForProfiler(
public void validate() {
super.validate();
if (kind() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property kind in model ApplicationInsightsComponentInner"));
@@ -573,4 +570,6 @@ public void validate() {
innerProperties().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationInsightsComponentInner.class);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
index 3e2af251a89c..40681ab28186 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProactiveDetectionConfigurationInner.java
@@ -5,19 +5,13 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties that define a ProactiveDetection configuration. */
@Fluent
public final class ApplicationInsightsComponentProactiveDetectionConfigurationInner {
- @JsonIgnore
- private final ClientLogger logger =
- new ClientLogger(ApplicationInsightsComponentProactiveDetectionConfigurationInner.class);
-
/*
* The rule name
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
index d57d29efe85a..4dfe395d589a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentProperties.java
@@ -12,7 +12,6 @@
import com.azure.resourcemanager.applicationinsights.models.PrivateLinkScopedResource;
import com.azure.resourcemanager.applicationinsights.models.PublicNetworkAccessType;
import com.azure.resourcemanager.applicationinsights.models.RequestSource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -20,8 +19,6 @@
/** Properties that define an Application Insights component resource. */
@Fluent
public final class ApplicationInsightsComponentProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentProperties.class);
-
/*
* The unique ID of your application. This field mirrors the 'Name' field
* and cannot be changed.
@@ -601,7 +598,7 @@ public ApplicationInsightsComponentProperties withForceCustomerStorageForProfile
*/
public void validate() {
if (applicationType() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property applicationType in model ApplicationInsightsComponentProperties"));
@@ -610,4 +607,6 @@ public void validate() {
privateLinkScopedResources().forEach(e -> e.validate());
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationInsightsComponentProperties.class);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentQuotaStatusInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentQuotaStatusInner.java
index 3ffbc442170e..ffcbd1bfb622 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentQuotaStatusInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentQuotaStatusInner.java
@@ -5,16 +5,11 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** An Application Insights component daily data volume cap status. */
@Immutable
public final class ApplicationInsightsComponentQuotaStatusInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentQuotaStatusInner.class);
-
/*
* The Application ID for the Application Insights component.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentWebTestLocationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentWebTestLocationInner.java
index b5b2f868bbec..08b76a00801f 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentWebTestLocationInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ApplicationInsightsComponentWebTestLocationInner.java
@@ -5,16 +5,11 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Properties that define a web test location available to an Application Insights Component. */
@Immutable
public final class ApplicationInsightsComponentWebTestLocationInner {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsComponentWebTestLocationInner.class);
-
/*
* The display name of the web test location.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
index 3c03751128c1..5e72ba5dc848 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentLinkedStorageAccountsInner.java
@@ -6,15 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** An Application Insights component linked storage accounts. */
@Fluent
public final class ComponentLinkedStorageAccountsInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentLinkedStorageAccountsInner.class);
-
/*
* The properties of the linked storage accounts.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeResponseInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeResponseInner.java
index a3fd0f627b1c..8a5269ced552 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeResponseInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeResponseInner.java
@@ -6,14 +6,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Response containing operationId for a specific purge action. */
@Fluent
public final class ComponentPurgeResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentPurgeResponseInner.class);
-
/*
* Id to use when querying for status for a particular purge operation.
*/
@@ -47,10 +44,12 @@ public ComponentPurgeResponseInner withOperationId(String operationId) {
*/
public void validate() {
if (operationId() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property operationId in model ComponentPurgeResponseInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentPurgeResponseInner.class);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeStatusResponseInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeStatusResponseInner.java
index b187c7633811..2d665c7db72a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeStatusResponseInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/ComponentPurgeStatusResponseInner.java
@@ -7,14 +7,11 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.PurgeState;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Response containing status for a specific purge operation. */
@Fluent
public final class ComponentPurgeStatusResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentPurgeStatusResponseInner.class);
-
/*
* Status of the operation represented by the requested Id.
*/
@@ -48,10 +45,12 @@ public ComponentPurgeStatusResponseInner withStatus(PurgeState status) {
*/
public void validate() {
if (status() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property status in model ComponentPurgeStatusResponseInner"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentPurgeStatusResponseInner.class);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
index d5cbc7b4628f..b1778adacf71 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LinkedStorageAccountsProperties.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** An Application Insights component linked storage account. */
@Fluent
public final class LinkedStorageAccountsProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LinkedStorageAccountsProperties.class);
-
/*
* Linked storage account resource ID
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java
index 19d5a6f6a531..5f7177892188 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/LiveTokenResponseInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** The response to a live token query. */
@Immutable
public final class LiveTokenResponseInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LiveTokenResponseInner.class);
-
/*
* JWT token for accessing live metrics stream data.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java
index 067723284c9d..0185689e01ad 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookInner.java
@@ -6,11 +6,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.Kind;
import com.azure.resourcemanager.applicationinsights.models.MyWorkbookManagedIdentity;
import com.azure.resourcemanager.applicationinsights.models.MyWorkbookResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -18,8 +16,6 @@
/** An Application Insights private workbook definition. */
@Fluent
public final class MyWorkbookInner extends MyWorkbookResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MyWorkbookInner.class);
-
/*
* The kind of workbook. Choices are user and shared.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
index 5b07673a01fc..bb7a9a9d691b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/MyWorkbookProperties.java
@@ -6,15 +6,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties that contain a private workbook. */
@Fluent
public final class MyWorkbookProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MyWorkbookProperties.class);
-
/*
* The user-defined name of the private workbook.
*/
@@ -243,21 +240,23 @@ public MyWorkbookProperties withStorageUri(String storageUri) {
*/
public void validate() {
if (displayName() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property displayName in model MyWorkbookProperties"));
}
if (serializedData() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property serializedData in model MyWorkbookProperties"));
}
if (category() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property category in model MyWorkbookProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(MyWorkbookProperties.class);
}
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 d2105b1acfa7..437b7f7c17eb 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
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.OperationDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** CDN REST API operation. */
@Fluent
public final class OperationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
-
/*
* Operation name: {provider}/{resource}/{operation}
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WebTestInner.java
index 4c466545f0fa..f5c12ebdf2d4 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
@@ -5,12 +5,10 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.WebTestGeolocation;
import com.azure.resourcemanager.applicationinsights.models.WebTestKind;
import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesConfiguration;
import com.azure.resourcemanager.applicationinsights.models.WebtestsResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -18,8 +16,6 @@
/** An Application Insights web test definition. */
@Fluent
public final class WebTestInner extends WebtestsResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebTestInner.class);
-
/*
* The kind of web test that this web test watches. Choices are ping and
* multistep.
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 24830c518cf8..1e2ecf0f8ecc 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,15 +9,12 @@
import com.azure.resourcemanager.applicationinsights.models.WebTestGeolocation;
import com.azure.resourcemanager.applicationinsights.models.WebTestKind;
import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesConfiguration;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Metadata describing a web test for an Azure resource. */
@Fluent
public final class WebTestProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebTestProperties.class);
-
/*
* Unique ID of this WebTest. This is typically the same value as the Name
* field.
@@ -312,23 +309,23 @@ public String provisioningState() {
*/
public void validate() {
if (syntheticMonitorId() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property syntheticMonitorId in model WebTestProperties"));
}
if (webTestName() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property webTestName in model WebTestProperties"));
}
if (webTestKind() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property webTestKind in model WebTestProperties"));
}
if (locations() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property locations in model WebTestProperties"));
} else {
@@ -338,4 +335,6 @@ public void validate() {
configuration().validate();
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(WebTestProperties.class);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkItemConfigurationInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkItemConfigurationInner.java
index 8fe88c790d1f..81b4547c2b8d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkItemConfigurationInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkItemConfigurationInner.java
@@ -5,15 +5,11 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Work item configuration associated with an application insights resource. */
@Fluent
public final class WorkItemConfigurationInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkItemConfigurationInner.class);
-
/*
* Connector identifier where work item is created
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookInner.java
index 3026a123f9af..2091ccc49dca 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookInner.java
@@ -6,11 +6,9 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.Kind;
import com.azure.resourcemanager.applicationinsights.models.WorkbookResource;
import com.azure.resourcemanager.applicationinsights.models.WorkbookResourceIdentity;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -19,8 +17,6 @@
/** An Application Insights workbook definition. */
@Fluent
public final class WorkbookInner extends WorkbookResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookInner.class);
-
/*
* Metadata describing a workbook for an Azure resource.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java
index 85aa81e35ba8..57fd417fb212 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookProperties.java
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -14,8 +13,6 @@
/** Properties that contain a workbook. */
@Fluent
public final class WorkbookProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookProperties.class);
-
/*
* The user-defined name (display name) of the workbook.
*/
@@ -285,20 +282,22 @@ public String revision() {
*/
public void validate() {
if (displayName() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property displayName in model WorkbookProperties"));
}
if (serializedData() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property serializedData in model WorkbookProperties"));
}
if (category() == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property category in model WorkbookProperties"));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(WorkbookProperties.class);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java
index 6ca2ca99a0f3..ae5fe8a053fe 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookPropertiesUpdateParameters.java
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** Properties that contain a workbook for PATCH operation. */
@Fluent
public final class WorkbookPropertiesUpdateParameters {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookPropertiesUpdateParameters.class);
-
/*
* The user-defined name (display name) of the workbook.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateInner.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateInner.java
index 7fd549d73adb..c0662c2dcf8b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateInner.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateInner.java
@@ -5,11 +5,9 @@
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateGallery;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateLocalizedGallery;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
@@ -17,8 +15,6 @@
/** An Application Insights workbook template definition. */
@Fluent
public final class WorkbookTemplateInner extends WorkbookTemplateResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookTemplateInner.class);
-
/*
* Metadata describing a workbook template for an Azure resource.
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java
index 8d5ca5a99866..ee326b6a0a50 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/fluent/models/WorkbookTemplateProperties.java
@@ -8,7 +8,6 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateGallery;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateLocalizedGallery;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@@ -17,8 +16,6 @@
/** Properties that contain a workbook template. */
@Fluent
public final class WorkbookTemplateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookTemplateProperties.class);
-
/*
* Priority of the template. Determines which template to open when a
* workbook gallery is opened in viewer mode.
@@ -163,13 +160,13 @@ public WorkbookTemplateProperties withLocalized(Map> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws AnnotationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -284,7 +282,8 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws AnnotationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -302,7 +301,8 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws AnnotationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -321,7 +321,8 @@ public PagedIterable list(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws AnnotationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsImpl.java
index 632b3a21b090..dad3d4fc6d2f 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/AnnotationsImpl.java
@@ -13,13 +13,12 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.AnnotationInner;
import com.azure.resourcemanager.applicationinsights.models.Annotation;
import com.azure.resourcemanager.applicationinsights.models.Annotations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public final class AnnotationsImpl implements Annotations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AnnotationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AnnotationsImpl.class);
private final AnnotationsClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysClientImpl.java
index 8d2fda3bfece..a5c1a292ee9c 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysClientImpl.java
@@ -28,7 +28,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ApiKeysClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentApiKeyInner;
import com.azure.resourcemanager.applicationinsights.models.ApiKeyRequest;
@@ -37,8 +36,6 @@
/** An instance of this class provides access to all the operations defined in ApiKeysClient. */
public final class ApiKeysClientImpl implements ApiKeysClient {
- private final ClientLogger logger = new ClientLogger(ApiKeysClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ApiKeysService service;
@@ -240,7 +237,7 @@ private Mono> listSingleP
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
+ * @return a list of API keys of an Application Insights component as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -257,7 +254,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 a list of API keys of an Application Insights component.
+ * @return a list of API keys of an Application Insights component as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -273,7 +270,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 a list of API keys of an Application Insights component.
+ * @return a list of API keys of an Application Insights component as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String resourceName) {
@@ -289,7 +286,7 @@ public PagedIterable list(String resour
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of API keys of an Application Insights component.
+ * @return a list of API keys of an Application Insights component as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysImpl.java
index 6d3cf0a506ac..e8da74e95723 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ApiKeysImpl.java
@@ -14,10 +14,9 @@
import com.azure.resourcemanager.applicationinsights.models.ApiKeyRequest;
import com.azure.resourcemanager.applicationinsights.models.ApiKeys;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentApiKey;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ApiKeysImpl implements ApiKeys {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ApiKeysImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ApiKeysImpl.class);
private final ApiKeysClient innerClient;
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 bd27f5bac7ae..6e30e46f207f 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
@@ -55,8 +55,6 @@
/** Initializes a new instance of the ApplicationInsightsManagementClientImpl type. */
@ServiceClient(builder = ApplicationInsightsManagementClientBuilder.class)
public final class ApplicationInsightsManagementClientImpl implements ApplicationInsightsManagementClient {
- private final ClientLogger logger = new ClientLogger(ApplicationInsightsManagementClientImpl.class);
-
/** The ID of the target subscription. */
private final String subscriptionId;
@@ -484,7 +482,7 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
managementError = null;
}
} catch (IOException | RuntimeException ioe) {
- logger.logThrowableAsWarning(ioe);
+ LOGGER.logThrowableAsWarning(ioe);
}
}
} else {
@@ -543,4 +541,6 @@ public Mono getBodyAsString(Charset charset) {
return Mono.just(new String(responseBody, charset));
}
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ApplicationInsightsManagementClientImpl.class);
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java
index 04063bcf7c8e..73a94d1509b8 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesClientImpl.java
@@ -21,15 +21,12 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentAvailableFeaturesClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentAvailableFeaturesInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ComponentAvailableFeaturesClient. */
public final class ComponentAvailableFeaturesClientImpl implements ComponentAvailableFeaturesClient {
- private final ClientLogger logger = new ClientLogger(ComponentAvailableFeaturesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ComponentAvailableFeaturesService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java
index 38c40d5dc320..ecb43a7830cc 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentAvailableFeaturesImpl.java
@@ -12,10 +12,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentAvailableFeaturesInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentAvailableFeatures;
import com.azure.resourcemanager.applicationinsights.models.ComponentAvailableFeatures;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ComponentAvailableFeaturesImpl implements ComponentAvailableFeatures {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentAvailableFeaturesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentAvailableFeaturesImpl.class);
private final ComponentAvailableFeaturesClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java
index 121946b0fb10..0abe0c386965 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesClientImpl.java
@@ -23,15 +23,12 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentCurrentBillingFeaturesClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentBillingFeaturesInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ComponentCurrentBillingFeaturesClient. */
public final class ComponentCurrentBillingFeaturesClientImpl implements ComponentCurrentBillingFeaturesClient {
- private final ClientLogger logger = new ClientLogger(ComponentCurrentBillingFeaturesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ComponentCurrentBillingFeaturesService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java
index 3c5926b58004..5df442fb1add 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentCurrentBillingFeaturesImpl.java
@@ -12,10 +12,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentBillingFeaturesInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentBillingFeatures;
import com.azure.resourcemanager.applicationinsights.models.ComponentCurrentBillingFeatures;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ComponentCurrentBillingFeaturesImpl implements ComponentCurrentBillingFeatures {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentCurrentBillingFeaturesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentCurrentBillingFeaturesImpl.class);
private final ComponentCurrentBillingFeaturesClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesClientImpl.java
index ca2a08ea4f45..80d3a792dc7e 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesClientImpl.java
@@ -21,15 +21,12 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentFeatureCapabilitiesClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentFeatureCapabilitiesInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ComponentFeatureCapabilitiesClient. */
public final class ComponentFeatureCapabilitiesClientImpl implements ComponentFeatureCapabilitiesClient {
- private final ClientLogger logger = new ClientLogger(ComponentFeatureCapabilitiesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ComponentFeatureCapabilitiesService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesImpl.java
index 23a1118e0238..9cc9e7d0c18b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentFeatureCapabilitiesImpl.java
@@ -12,10 +12,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentFeatureCapabilitiesInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentFeatureCapabilities;
import com.azure.resourcemanager.applicationinsights.models.ComponentFeatureCapabilities;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ComponentFeatureCapabilitiesImpl implements ComponentFeatureCapabilities {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentFeatureCapabilitiesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentFeatureCapabilitiesImpl.class);
private final ComponentFeatureCapabilitiesClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsClientImpl.java
index 819103eae883..d758b7332aea 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentLinkedStorageAccountsOperationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ComponentLinkedStorageAccountsInner;
import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccountsPatch;
@@ -38,8 +37,6 @@
*/
public final class ComponentLinkedStorageAccountsOperationsClientImpl
implements ComponentLinkedStorageAccountsOperationsClient {
- private final ClientLogger logger = new ClientLogger(ComponentLinkedStorageAccountsOperationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ComponentLinkedStorageAccountsOperationsService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsImpl.java
index 817b253119e4..0e3953147b8a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentLinkedStorageAccountsOperationsImpl.java
@@ -13,11 +13,9 @@
import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccounts;
import com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccountsOperations;
import com.azure.resourcemanager.applicationinsights.models.StorageType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ComponentLinkedStorageAccountsOperationsImpl implements ComponentLinkedStorageAccountsOperations {
- @JsonIgnore
- private final ClientLogger logger = new ClientLogger(ComponentLinkedStorageAccountsOperationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentLinkedStorageAccountsOperationsImpl.class);
private final ComponentLinkedStorageAccountsOperationsClient innerClient;
@@ -67,7 +65,7 @@ public Response deleteWithResponse(
public ComponentLinkedStorageAccounts getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -75,14 +73,14 @@ public ComponentLinkedStorageAccounts getById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
}
StorageType storageType = StorageType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
if (storageType == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -96,7 +94,7 @@ public ComponentLinkedStorageAccounts getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -104,14 +102,14 @@ public Response getByIdWithResponse(String id, C
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
}
StorageType storageType = StorageType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
if (storageType == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -125,7 +123,7 @@ public Response getByIdWithResponse(String id, C
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -133,14 +131,14 @@ public void deleteById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
}
StorageType storageType = StorageType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
if (storageType == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -154,7 +152,7 @@ public void deleteById(String id) {
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -162,14 +160,14 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
}
StorageType storageType = StorageType.fromString(Utils.getValueFromIdByName(id, "linkedStorageAccounts"));
if (storageType == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusClientImpl.java
index 50dcd8f39d1f..a2443241f5a2 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusClientImpl.java
@@ -21,15 +21,12 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentQuotaStatusClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentQuotaStatusInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ComponentQuotaStatusClient. */
public final class ComponentQuotaStatusClientImpl implements ComponentQuotaStatusClient {
- private final ClientLogger logger = new ClientLogger(ComponentQuotaStatusClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ComponentQuotaStatusService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusImpl.java
index 4a943c62e140..afff0fb0d107 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentQuotaStatusImpl.java
@@ -12,10 +12,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentQuotaStatusInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentQuotaStatus;
import com.azure.resourcemanager.applicationinsights.models.ComponentQuotaStatus;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ComponentQuotaStatusImpl implements ComponentQuotaStatus {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentQuotaStatusImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentQuotaStatusImpl.class);
private final ComponentQuotaStatusClient innerClient;
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 cbdc2ffe09bc..dcf107aee8b0 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
@@ -30,7 +30,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ComponentsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentInner;
import com.azure.resourcemanager.applicationinsights.fluent.models.ComponentPurgeResponseInner;
@@ -42,8 +41,6 @@
/** An instance of this class provides access to all the operations defined in ComponentsClient. */
public final class ComponentsClientImpl implements ComponentsClient {
- private final ClientLogger logger = new ClientLogger(ComponentsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ComponentsService service;
@@ -294,7 +291,8 @@ private Mono> listSinglePageAsy
*
* @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 all Application Insights components within a subscription.
+ * @return a list of all Application Insights components within a subscription as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -308,7 +306,8 @@ 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 a list of all Application Insights components within a subscription.
+ * @return a list of all Application Insights components within a subscription as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -321,7 +320,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 a list of all Application Insights components within a subscription.
+ * @return a list of all Application Insights components within a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -335,7 +335,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 a list of all Application Insights components within a subscription.
+ * @return a list of all Application Insights components within a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -455,7 +456,8 @@ private Mono> listByResourceGro
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Application Insights components within a resource group.
+ * @return a list of Application Insights components within a resource group as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -472,7 +474,8 @@ private PagedFlux listByResourceGroupAsync(St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Application Insights components within a resource group.
+ * @return a list of Application Insights components within a resource group as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -489,7 +492,8 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Application Insights components within a resource group.
+ * @return a list of Application Insights components within a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -504,7 +508,8 @@ public PagedIterable listByResourceGroup(Stri
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Application Insights components within a resource group.
+ * @return a list of Application Insights components within a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsImpl.java
index dc59964f4d0f..569604d13325 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ComponentsImpl.java
@@ -18,10 +18,9 @@
import com.azure.resourcemanager.applicationinsights.models.ComponentPurgeResponse;
import com.azure.resourcemanager.applicationinsights.models.ComponentPurgeStatusResponse;
import com.azure.resourcemanager.applicationinsights.models.Components;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class ComponentsImpl implements Components {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ComponentsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ComponentsImpl.class);
private final ComponentsClient innerClient;
@@ -141,7 +140,7 @@ public Response getPurgeStatusWithResponse(
public ApplicationInsightsComponent getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -149,7 +148,7 @@ public ApplicationInsightsComponent getById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
@@ -160,7 +159,7 @@ public ApplicationInsightsComponent getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -168,7 +167,7 @@ public Response getByIdWithResponse(String id, Con
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
@@ -179,7 +178,7 @@ public Response getByIdWithResponse(String id, Con
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -187,7 +186,7 @@ public void deleteById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
@@ -198,7 +197,7 @@ public void deleteById(String id) {
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -206,7 +205,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "components");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsClientImpl.java
index 8903b694da5d..d060485f4dc0 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ExportConfigurationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentExportConfigurationInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentExportRequest;
@@ -34,8 +33,6 @@
/** An instance of this class provides access to all the operations defined in ExportConfigurationsClient. */
public final class ExportConfigurationsClientImpl implements ExportConfigurationsClient {
- private final ClientLogger logger = new ClientLogger(ExportConfigurationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ExportConfigurationsService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsImpl.java
index ecc6bdcfffc4..af7c175f633a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ExportConfigurationsImpl.java
@@ -13,13 +13,12 @@
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentExportConfiguration;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentExportRequest;
import com.azure.resourcemanager.applicationinsights.models.ExportConfigurations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public final class ExportConfigurationsImpl implements ExportConfigurations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ExportConfigurationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ExportConfigurationsImpl.class);
private final ExportConfigurationsClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesClientImpl.java
index 05b56a367a54..53da02070f34 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.serializer.CollectionFormat;
import com.azure.core.util.serializer.JacksonAdapter;
import com.azure.resourcemanager.applicationinsights.fluent.FavoritesClient;
@@ -37,8 +36,6 @@
/** An instance of this class provides access to all the operations defined in FavoritesClient. */
public final class FavoritesClientImpl implements FavoritesClient {
- private final ClientLogger logger = new ClientLogger(FavoritesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final FavoritesService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesImpl.java
index 3ed9a12e44ba..d2e48b9a0085 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/FavoritesImpl.java
@@ -14,13 +14,12 @@
import com.azure.resourcemanager.applicationinsights.models.FavoriteSourceType;
import com.azure.resourcemanager.applicationinsights.models.FavoriteType;
import com.azure.resourcemanager.applicationinsights.models.Favorites;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public final class FavoritesImpl implements Favorites {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(FavoritesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(FavoritesImpl.class);
private final FavoritesClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java
index a0eccbc69d44..5f386d88d0ef 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensClientImpl.java
@@ -21,15 +21,12 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.LiveTokensClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.LiveTokenResponseInner;
import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in LiveTokensClient. */
public final class LiveTokensClientImpl implements LiveTokensClient {
- private final ClientLogger logger = new ClientLogger(LiveTokensClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final LiveTokensService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensImpl.java
index 83344b427302..741ffacf1910 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/LiveTokensImpl.java
@@ -12,10 +12,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.LiveTokenResponseInner;
import com.azure.resourcemanager.applicationinsights.models.LiveTokenResponse;
import com.azure.resourcemanager.applicationinsights.models.LiveTokens;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class LiveTokensImpl implements LiveTokens {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(LiveTokensImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(LiveTokensImpl.class);
private final LiveTokensClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksClientImpl.java
index 6a13ea98770a..1d34767ba52a 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksClientImpl.java
@@ -28,7 +28,6 @@
import com.azure.core.http.rest.RestProxy;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.serializer.CollectionFormat;
import com.azure.core.util.serializer.JacksonAdapter;
import com.azure.resourcemanager.applicationinsights.fluent.MyWorkbooksClient;
@@ -41,8 +40,6 @@
/** An instance of this class provides access to all the operations defined in MyWorkbooksClient. */
public final class MyWorkbooksClientImpl implements MyWorkbooksClient {
- private final ClientLogger logger = new ClientLogger(MyWorkbooksClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final MyWorkbooksService service;
@@ -335,7 +332,8 @@ private Mono> listByResourceGroupSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
+ * @return all private workbooks defined within a specified resource group and category as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -353,7 +351,8 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
+ * @return all private workbooks defined within a specified resource group and category as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, CategoryType category) {
@@ -378,7 +377,8 @@ private PagedFlux listByResourceGroupAsync(String resourceGroup
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
+ * @return all private workbooks defined within a specified resource group and category as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -403,7 +403,8 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
+ * @return all private workbooks defined within a specified resource group and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category) {
@@ -427,7 +428,8 @@ public PagedIterable listByResourceGroup(String resourceGroupNa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified resource group and category.
+ * @return all private workbooks defined within a specified resource group and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(
@@ -569,7 +571,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all private workbooks defined within a specified subscription and category as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(CategoryType category, List tags, Boolean canFetchContent) {
@@ -585,7 +588,8 @@ private PagedFlux listAsync(CategoryType category, List
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all private workbooks defined within a specified subscription and category as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(CategoryType category) {
@@ -607,7 +611,8 @@ private PagedFlux listAsync(CategoryType category) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all private workbooks defined within a specified subscription and category as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -624,7 +629,8 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all private workbooks defined within a specified subscription and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(CategoryType category) {
@@ -644,7 +650,8 @@ public PagedIterable list(CategoryType category) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all private workbooks defined within a specified subscription and category as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksImpl.java
index dffe6cf795c1..cd7c5517cb29 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/MyWorkbooksImpl.java
@@ -14,11 +14,10 @@
import com.azure.resourcemanager.applicationinsights.models.CategoryType;
import com.azure.resourcemanager.applicationinsights.models.MyWorkbook;
import com.azure.resourcemanager.applicationinsights.models.MyWorkbooks;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.List;
public final class MyWorkbooksImpl implements MyWorkbooks {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MyWorkbooksImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(MyWorkbooksImpl.class);
private final MyWorkbooksClient innerClient;
@@ -96,7 +95,7 @@ public Response deleteWithResponse(String resourceGroupName, String resour
public MyWorkbook getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -104,7 +103,7 @@ public MyWorkbook getById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "myWorkbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'myWorkbooks'.", id)));
@@ -115,7 +114,7 @@ public MyWorkbook getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -123,7 +122,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "myWorkbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'myWorkbooks'.", id)));
@@ -134,7 +133,7 @@ public Response getByIdWithResponse(String id, Context context) {
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -142,7 +141,7 @@ public void deleteById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "myWorkbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'myWorkbooks'.", id)));
@@ -153,7 +152,7 @@ public void deleteById(String id) {
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -161,7 +160,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "myWorkbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'myWorkbooks'.", id)));
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 617e5acaa91f..f966c1406737 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
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.OperationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.OperationInner;
import com.azure.resourcemanager.applicationinsights.models.OperationListResult;
@@ -33,8 +32,6 @@
/** An instance of this class provides access to all the operations defined in OperationsClient. */
public final class OperationsClientImpl implements OperationsClient {
- private final ClientLogger logger = new ClientLogger(OperationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final OperationsService service;
@@ -151,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.
+ * @return result of the request to list CDN operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -165,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.
+ * @return result of the request to list CDN operations as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -178,7 +175,7 @@ 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.
+ * @return result of the request to list CDN operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -192,7 +189,7 @@ 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.
+ * @return result of the request to list CDN operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsImpl.java
index 38dc6c14deda..2b381e9c2962 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/OperationsImpl.java
@@ -11,10 +11,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.OperationInner;
import com.azure.resourcemanager.applicationinsights.models.Operation;
import com.azure.resourcemanager.applicationinsights.models.Operations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class OperationsImpl implements Operations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
private final OperationsClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsClientImpl.java
index b93ad494213d..059445175c4f 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsClientImpl.java
@@ -23,7 +23,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.ProactiveDetectionConfigurationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentProactiveDetectionConfigurationInner;
import java.util.List;
@@ -33,8 +32,6 @@
* An instance of this class provides access to all the operations defined in ProactiveDetectionConfigurationsClient.
*/
public final class ProactiveDetectionConfigurationsClientImpl implements ProactiveDetectionConfigurationsClient {
- private final ClientLogger logger = new ClientLogger(ProactiveDetectionConfigurationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final ProactiveDetectionConfigurationsService service;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsImpl.java
index 6cb1a46b21f2..ce828f58959d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/ProactiveDetectionConfigurationsImpl.java
@@ -12,13 +12,12 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentProactiveDetectionConfigurationInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentProactiveDetectionConfiguration;
import com.azure.resourcemanager.applicationinsights.models.ProactiveDetectionConfigurations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public final class ProactiveDetectionConfigurationsImpl implements ProactiveDetectionConfigurations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ProactiveDetectionConfigurationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(ProactiveDetectionConfigurationsImpl.class);
private final ProactiveDetectionConfigurationsClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsClientImpl.java
index 4da1b2ef6917..1940a8807619 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsClientImpl.java
@@ -25,7 +25,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.WebTestLocationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentWebTestLocationInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsWebTestLocationsListResult;
@@ -33,8 +32,6 @@
/** An instance of this class provides access to all the operations defined in WebTestLocationsClient. */
public final class WebTestLocationsClientImpl implements WebTestLocationsClient {
- private final ClientLogger logger = new ClientLogger(WebTestLocationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final WebTestLocationsService service;
@@ -189,7 +186,8 @@ private Mono> li
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 web test locations available to this Application Insights component.
+ * @return a list of web test locations available to this Application Insights component as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -206,7 +204,8 @@ 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 a list of web test locations available to this Application Insights component.
+ * @return a list of web test locations available to this Application Insights component as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -222,7 +221,8 @@ 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 a list of web test locations available to this Application Insights component.
+ * @return a list of web test locations available to this Application Insights component as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -239,7 +239,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 a list of web test locations available to this Application Insights component.
+ * @return a list of web test locations available to this Application Insights component as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsImpl.java
index 7efef3d33d28..1ba1e77acbb7 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestLocationsImpl.java
@@ -11,10 +11,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentWebTestLocationInner;
import com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentWebTestLocation;
import com.azure.resourcemanager.applicationinsights.models.WebTestLocations;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class WebTestLocationsImpl implements WebTestLocations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebTestLocationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(WebTestLocationsImpl.class);
private final WebTestLocationsClient innerClient;
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 051dff76c9fb..263784adaa09 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
@@ -29,7 +29,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.WebTestsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.WebTestInner;
import com.azure.resourcemanager.applicationinsights.models.TagsResource;
@@ -38,8 +37,6 @@
/** An instance of this class provides access to all the operations defined in WebTestsClient. */
public final class WebTestsClientImpl implements WebTestsClient {
- private final ClientLogger logger = new ClientLogger(WebTestsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final WebTestsService service;
@@ -305,7 +302,8 @@ private Mono> listByResourceGroupSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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.
+ * @return all Application Insights web tests defined within a specified resource group as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -322,7 +320,8 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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.
+ * @return all Application Insights web tests defined within a specified resource group as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
@@ -338,7 +337,8 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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.
+ * @return all Application Insights web tests defined within a specified resource group as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -353,7 +353,8 @@ public PagedIterable listByResourceGroup(String resourceGroupName)
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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.
+ * @return all Application Insights web tests defined within a specified resource group as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
@@ -1083,7 +1084,8 @@ 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 all Application Insights web test alerts definitions within a subscription.
+ * @return all Application Insights web test alerts definitions within a subscription as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync() {
@@ -1097,7 +1099,8 @@ 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 all Application Insights web test alerts definitions within a subscription.
+ * @return all Application Insights web test alerts definitions within a subscription as paginated response with
+ * {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(Context context) {
@@ -1110,7 +1113,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 all Application Insights web test alerts definitions within a subscription.
+ * @return all Application Insights web test alerts definitions within a subscription as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list() {
@@ -1124,7 +1128,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 all Application Insights web test alerts definitions within a subscription.
+ * @return all Application Insights web test alerts definitions within a subscription as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(Context context) {
@@ -1255,7 +1260,8 @@ private Mono> listByComponentSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 for the specified component.
+ * @return all Application Insights web tests defined for the specified component as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByComponentAsync(String componentName, String resourceGroupName) {
@@ -1273,7 +1279,8 @@ private PagedFlux listByComponentAsync(String componentName, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 for the specified component.
+ * @return all Application Insights web tests defined for the specified component as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByComponentAsync(
@@ -1291,7 +1298,8 @@ private PagedFlux listByComponentAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 for the specified component.
+ * @return all Application Insights web tests defined for the specified component as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByComponent(String componentName, String resourceGroupName) {
@@ -1307,7 +1315,8 @@ public PagedIterable listByComponent(String componentName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 for the specified component.
+ * @return all Application Insights web tests defined for the specified component as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByComponent(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsImpl.java
index 18407ec7c5a9..5ba72b8e5271 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WebTestsImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.WebTestInner;
import com.azure.resourcemanager.applicationinsights.models.WebTest;
import com.azure.resourcemanager.applicationinsights.models.WebTests;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class WebTestsImpl implements WebTests {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WebTestsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(WebTestsImpl.class);
private final WebTestsClient innerClient;
@@ -95,7 +94,7 @@ public PagedIterable listByComponent(String componentName, String resou
public WebTest getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -103,7 +102,7 @@ public WebTest getById(String id) {
}
String webTestName = Utils.getValueFromIdByName(id, "webtests");
if (webTestName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'webtests'.", id)));
@@ -114,7 +113,7 @@ public WebTest getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -122,7 +121,7 @@ public Response getByIdWithResponse(String id, Context context) {
}
String webTestName = Utils.getValueFromIdByName(id, "webtests");
if (webTestName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'webtests'.", id)));
@@ -133,7 +132,7 @@ public Response getByIdWithResponse(String id, Context context) {
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -141,7 +140,7 @@ public void deleteById(String id) {
}
String webTestName = Utils.getValueFromIdByName(id, "webtests");
if (webTestName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'webtests'.", id)));
@@ -152,7 +151,7 @@ public void deleteById(String id) {
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -160,7 +159,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String webTestName = Utils.getValueFromIdByName(id, "webtests");
if (webTestName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'webtests'.", id)));
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsClientImpl.java
index a6a92c9769e5..71bd52aa322d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.WorkItemConfigurationsClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.WorkItemConfigurationInner;
import com.azure.resourcemanager.applicationinsights.models.WorkItemConfigurationErrorException;
@@ -39,8 +38,6 @@
/** An instance of this class provides access to all the operations defined in WorkItemConfigurationsClient. */
public final class WorkItemConfigurationsClientImpl implements WorkItemConfigurationsClient {
- private final ClientLogger logger = new ClientLogger(WorkItemConfigurationsClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final WorkItemConfigurationsService service;
@@ -275,7 +272,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkItemConfigurationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
+ * @return the list work item configurations that exist for the application as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName, String resourceName) {
@@ -291,7 +289,8 @@ private PagedFlux listAsync(String resourceGroupName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkItemConfigurationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
+ * @return the list work item configurations that exist for the application as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -307,7 +306,8 @@ private PagedFlux listAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkItemConfigurationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
+ * @return the list work item configurations that exist for the application as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName, String resourceName) {
@@ -323,7 +323,8 @@ public PagedIterable list(String resourceGroupName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkItemConfigurationErrorException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list work item configurations that exist for the application.
+ * @return the list work item configurations that exist for the application as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsImpl.java
index bc64d729afad..456b0180f62f 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkItemConfigurationsImpl.java
@@ -14,10 +14,9 @@
import com.azure.resourcemanager.applicationinsights.models.WorkItemConfiguration;
import com.azure.resourcemanager.applicationinsights.models.WorkItemConfigurations;
import com.azure.resourcemanager.applicationinsights.models.WorkItemCreateConfiguration;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class WorkItemConfigurationsImpl implements WorkItemConfigurations {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkItemConfigurationsImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(WorkItemConfigurationsImpl.class);
private final WorkItemConfigurationsClient innerClient;
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookImpl.java
index b5c245ae3f2d..2995d2fcca49 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookImpl.java
@@ -210,21 +210,23 @@ public Workbook apply(Context context) {
}
public Workbook refresh() {
+ Boolean localCanFetchContent = null;
this.innerObject =
serviceManager
.serviceClient()
.getWorkbooks()
- .getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE)
+ .getByResourceGroupWithResponse(resourceGroupName, resourceName, localCanFetchContent, Context.NONE)
.getValue();
return this;
}
public Workbook refresh(Context context) {
+ Boolean localCanFetchContent = null;
this.innerObject =
serviceManager
.serviceClient()
.getWorkbooks()
- .getByResourceGroupWithResponse(resourceGroupName, resourceName, context)
+ .getByResourceGroupWithResponse(resourceGroupName, resourceName, localCanFetchContent, context)
.getValue();
return this;
}
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesClientImpl.java
index 16568b8dba2c..a7150680be0d 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesClientImpl.java
@@ -29,7 +29,6 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.applicationinsights.fluent.WorkbookTemplatesClient;
import com.azure.resourcemanager.applicationinsights.fluent.models.WorkbookTemplateInner;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateUpdateParameters;
@@ -38,8 +37,6 @@
/** An instance of this class provides access to all the operations defined in WorkbookTemplatesClient. */
public final class WorkbookTemplatesClientImpl implements WorkbookTemplatesClient {
- private final ClientLogger logger = new ClientLogger(WorkbookTemplatesClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final WorkbookTemplatesService service;
@@ -243,7 +240,8 @@ private Mono> listByResourceGroupSinglePage
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Workbook templates defined within a specified resource group.
+ * @return all Workbook templates defined within a specified resource group as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
@@ -258,7 +256,8 @@ private PagedFlux listByResourceGroupAsync(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Workbook templates defined within a specified resource group.
+ * @return all Workbook templates defined within a specified resource group as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
@@ -272,7 +271,8 @@ private PagedFlux listByResourceGroupAsync(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Workbook templates defined within a specified resource group.
+ * @return all Workbook templates defined within a specified resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName) {
@@ -287,7 +287,8 @@ public PagedIterable listByResourceGroup(String resourceG
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @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 Workbook templates defined within a specified resource group.
+ * @return all Workbook templates defined within a specified resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesImpl.java
index 30ae121e2cc1..54d822c3be75 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbookTemplatesImpl.java
@@ -13,10 +13,9 @@
import com.azure.resourcemanager.applicationinsights.fluent.models.WorkbookTemplateInner;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplate;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplates;
-import com.fasterxml.jackson.annotation.JsonIgnore;
public final class WorkbookTemplatesImpl implements WorkbookTemplates {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbookTemplatesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(WorkbookTemplatesImpl.class);
private final WorkbookTemplatesClient innerClient;
@@ -75,7 +74,7 @@ public Response deleteWithResponse(String resourceGroupName, String resour
public WorkbookTemplate getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -83,7 +82,7 @@ public WorkbookTemplate getById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "workbooktemplates");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -96,7 +95,7 @@ public WorkbookTemplate getById(String id) {
public Response getByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -104,7 +103,7 @@ public Response getByIdWithResponse(String id, Context context
}
String resourceName = Utils.getValueFromIdByName(id, "workbooktemplates");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -117,7 +116,7 @@ public Response getByIdWithResponse(String id, Context context
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -125,7 +124,7 @@ public void deleteById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "workbooktemplates");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -138,7 +137,7 @@ public void deleteById(String id) {
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -146,7 +145,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "workbooktemplates");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksClientImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksClientImpl.java
index bdac814cc053..bde758be7c7e 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksClientImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksClientImpl.java
@@ -28,7 +28,6 @@
import com.azure.core.http.rest.RestProxy;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.serializer.CollectionFormat;
import com.azure.core.util.serializer.JacksonAdapter;
import com.azure.resourcemanager.applicationinsights.fluent.WorkbooksClient;
@@ -42,8 +41,6 @@
/** An instance of this class provides access to all the operations defined in WorkbooksClient. */
public final class WorkbooksClientImpl implements WorkbooksClient {
- private final ClientLogger logger = new ClientLogger(WorkbooksClientImpl.class);
-
/** The proxy service used to perform REST calls. */
private final WorkbooksService service;
@@ -111,6 +108,7 @@ Mono> getByResourceGroup(
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("resourceName") String resourceName,
@QueryParam("api-version") String apiVersion,
+ @QueryParam("canFetchContent") Boolean canFetchContent,
@HeaderParam("Accept") String accept,
Context context);
@@ -226,7 +224,7 @@ Mono> revisionsListNext(
}
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @param tags Tags presents on each workbook returned.
@@ -235,8 +233,8 @@ Mono> revisionsListNext(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category along with {@link
- * PagedResponse} on successful completion of {@link Mono}.
+ * @return all Workbooks defined within a specified subscription and category along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -286,7 +284,7 @@ private Mono> listSinglePageAsync(
}
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @param tags Tags presents on each workbook returned.
@@ -296,8 +294,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category along with {@link
- * PagedResponse} on successful completion of {@link Mono}.
+ * @return all Workbooks defined within a specified subscription and category along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
@@ -344,7 +342,7 @@ private Mono> listSinglePageAsync(
}
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @param tags Tags presents on each workbook returned.
@@ -353,7 +351,8 @@ private Mono> listSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all Workbooks defined within a specified subscription and category as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(CategoryType category, List tags, Boolean canFetchContent) {
@@ -363,13 +362,14 @@ private PagedFlux listAsync(CategoryType category, List t
}
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all Workbooks defined within a specified subscription and category as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(CategoryType category) {
@@ -381,7 +381,7 @@ private PagedFlux listAsync(CategoryType category) {
}
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @param tags Tags presents on each workbook returned.
@@ -391,7 +391,8 @@ private PagedFlux listAsync(CategoryType category) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all Workbooks defined within a specified subscription and category as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(
@@ -402,13 +403,14 @@ private PagedFlux listAsync(
}
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all Workbooks defined within a specified subscription and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(CategoryType category) {
@@ -418,7 +420,7 @@ public PagedIterable list(CategoryType category) {
}
/**
- * Get all private workbooks defined within a specified subscription and category.
+ * Get all Workbooks defined within a specified subscription and category.
*
* @param category Category of workbook to return.
* @param tags Tags presents on each workbook returned.
@@ -428,7 +430,8 @@ public PagedIterable list(CategoryType category) {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all private workbooks defined within a specified subscription and category.
+ * @return all Workbooks defined within a specified subscription and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(
@@ -587,7 +590,8 @@ private Mono> listByResourceGroupSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
+ * @return all Workbooks defined within a specified resource group and category as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -605,7 +609,8 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
+ * @return all Workbooks defined within a specified resource group and category as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(String resourceGroupName, CategoryType category) {
@@ -630,7 +635,8 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNa
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
+ * @return all Workbooks defined within a specified resource group and category as paginated response with {@link
+ * PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listByResourceGroupAsync(
@@ -655,7 +661,8 @@ private PagedFlux listByResourceGroupAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
+ * @return all Workbooks defined within a specified resource group and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(String resourceGroupName, CategoryType category) {
@@ -679,7 +686,8 @@ public PagedIterable listByResourceGroup(String resourceGroupName
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return all Workbooks defined within a specified resource group and category.
+ * @return all Workbooks defined within a specified resource group and category as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable listByResourceGroup(
@@ -698,6 +706,8 @@ public PagedIterable listByResourceGroup(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
+ * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
+ * false, only return summary content for workbooks.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -706,7 +716,7 @@ public PagedIterable listByResourceGroup(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String resourceName) {
+ String resourceGroupName, String resourceName, Boolean canFetchContent) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -738,6 +748,7 @@ private Mono> getByResourceGroupWithResponseAsync(
resourceGroupName,
resourceName,
apiVersion,
+ canFetchContent,
accept,
context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
@@ -748,6 +759,8 @@ private Mono> getByResourceGroupWithResponseAsync(
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
+ * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
+ * false, only return summary content for workbooks.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
@@ -757,7 +770,7 @@ private Mono> getByResourceGroupWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String resourceName, Context context) {
+ String resourceGroupName, String resourceName, Boolean canFetchContent, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
@@ -787,10 +800,37 @@ private Mono> getByResourceGroupWithResponseAsync(
resourceGroupName,
resourceName,
apiVersion,
+ canFetchContent,
accept,
context);
}
+ /**
+ * Get a single workbook by its resourceName.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceName The name of the Application Insights component resource.
+ * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
+ * false, only return summary content for workbooks.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a single workbook by its resourceName on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(
+ String resourceGroupName, String resourceName, Boolean canFetchContent) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, canFetchContent)
+ .flatMap(
+ (Response res) -> {
+ if (res.getValue() != null) {
+ return Mono.just(res.getValue());
+ } else {
+ return Mono.empty();
+ }
+ });
+ }
+
/**
* Get a single workbook by its resourceName.
*
@@ -803,7 +843,8 @@ private Mono> getByResourceGroupWithResponseAsync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName)
+ final Boolean canFetchContent = null;
+ return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, canFetchContent)
.flatMap(
(Response res) -> {
if (res.getValue() != null) {
@@ -826,7 +867,8 @@ private Mono getByResourceGroupAsync(String resourceGroupName, St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public WorkbookInner getByResourceGroup(String resourceGroupName, String resourceName) {
- return getByResourceGroupAsync(resourceGroupName, resourceName).block();
+ final Boolean canFetchContent = null;
+ return getByResourceGroupAsync(resourceGroupName, resourceName, canFetchContent).block();
}
/**
@@ -834,6 +876,8 @@ public WorkbookInner getByResourceGroup(String resourceGroupName, String resourc
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
+ * @param canFetchContent Flag indicating whether or not to return the full content for each applicable workbook. If
+ * false, only return summary content for workbooks.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
@@ -842,8 +886,8 @@ public WorkbookInner getByResourceGroup(String resourceGroupName, String resourc
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(
- String resourceGroupName, String resourceName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, context).block();
+ String resourceGroupName, String resourceName, Boolean canFetchContent, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, canFetchContent, context).block();
}
/**
@@ -1540,7 +1584,7 @@ private Mono> revisionsListSinglePageAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the revisions for the workbook defined by its resourceName.
+ * @return the revisions for the workbook defined by its resourceName as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux revisionsListAsync(String resourceGroupName, String resourceName) {
@@ -1558,7 +1602,7 @@ private PagedFlux revisionsListAsync(String resourceGroupName, St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the revisions for the workbook defined by its resourceName.
+ * @return the revisions for the workbook defined by its resourceName as paginated response with {@link PagedFlux}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux revisionsListAsync(
@@ -1576,7 +1620,8 @@ private PagedFlux revisionsListAsync(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the revisions for the workbook defined by its resourceName.
+ * @return the revisions for the workbook defined by its resourceName as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable revisionsList(String resourceGroupName, String resourceName) {
@@ -1592,7 +1637,8 @@ public PagedIterable revisionsList(String resourceGroupName, Stri
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws WorkbookErrorDefinitionException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the revisions for the workbook defined by its resourceName.
+ * @return the revisions for the workbook defined by its resourceName as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable revisionsList(String resourceGroupName, String resourceName, Context context) {
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksImpl.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksImpl.java
index 23ed0fa79e6b..2aeb3baf2482 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksImpl.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/implementation/WorkbooksImpl.java
@@ -14,11 +14,10 @@
import com.azure.resourcemanager.applicationinsights.models.CategoryType;
import com.azure.resourcemanager.applicationinsights.models.Workbook;
import com.azure.resourcemanager.applicationinsights.models.Workbooks;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.List;
public final class WorkbooksImpl implements Workbooks {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(WorkbooksImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(WorkbooksImpl.class);
private final WorkbooksClient innerClient;
@@ -71,9 +70,11 @@ public Workbook getByResourceGroup(String resourceGroupName, String resourceName
}
public Response getByResourceGroupWithResponse(
- String resourceGroupName, String resourceName, Context context) {
+ String resourceGroupName, String resourceName, Boolean canFetchContent, Context context) {
Response inner =
- this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, resourceName, context);
+ this
+ .serviceClient()
+ .getByResourceGroupWithResponse(resourceGroupName, resourceName, canFetchContent, context);
if (inner != null) {
return new SimpleResponse<>(
inner.getRequest(),
@@ -131,7 +132,7 @@ public Response revisionGetWithResponse(
public Workbook getById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -139,18 +140,21 @@ public Workbook getById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "workbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workbooks'.", id)));
}
- return this.getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE).getValue();
+ Boolean localCanFetchContent = null;
+ return this
+ .getByResourceGroupWithResponse(resourceGroupName, resourceName, localCanFetchContent, Context.NONE)
+ .getValue();
}
- public Response getByIdWithResponse(String id, Context context) {
+ public Response getByIdWithResponse(String id, Boolean canFetchContent, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -158,18 +162,18 @@ public Response getByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "workbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workbooks'.", id)));
}
- return this.getByResourceGroupWithResponse(resourceGroupName, resourceName, context);
+ return this.getByResourceGroupWithResponse(resourceGroupName, resourceName, canFetchContent, context);
}
public void deleteById(String id) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -177,7 +181,7 @@ public void deleteById(String id) {
}
String resourceName = Utils.getValueFromIdByName(id, "workbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workbooks'.", id)));
@@ -188,7 +192,7 @@ public void deleteById(String id) {
public Response deleteByIdWithResponse(String id, Context context) {
String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");
if (resourceGroupName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String
@@ -196,7 +200,7 @@ public Response deleteByIdWithResponse(String id, Context context) {
}
String resourceName = Utils.getValueFromIdByName(id, "workbooks");
if (resourceName == null) {
- throw logger
+ throw LOGGER
.logExceptionAsError(
new IllegalArgumentException(
String.format("The resource ID '%s' is not valid. Missing path segment 'workbooks'.", id)));
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/AnnotationError.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/AnnotationError.java
index 0aa0ae1bfa74..c6adf61afa0b 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/AnnotationError.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/AnnotationError.java
@@ -6,15 +6,11 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Error associated with trying to create annotation with Id that already exist. */
@Immutable
public final class AnnotationError extends ManagementError {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(AnnotationError.class);
-
/*
* Inner error
*/
diff --git a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Annotations.java b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Annotations.java
index d7d86f77eec3..1eaa420e53dd 100644
--- a/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Annotations.java
+++ b/sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/Annotations.java
@@ -23,7 +23,8 @@ public interface Annotations {
* @throws com.azure.resourcemanager.applicationinsights.models.AnnotationErrorException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedIterable}.
*/
PagedIterable list(String resourceGroupName, String resourceName, String start, String end);
@@ -39,7 +40,8 @@ public interface Annotations {
* @throws com.azure.resourcemanager.applicationinsights.models.AnnotationErrorException thrown if the request is
* rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of annotations for a component for given time range.
+ * @return the list of annotations for a component for given time range as paginated response with {@link
+ * PagedIterable}.
*/
PagedIterable