Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-applicationinsights] typo: verion -> verion #1720

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.6 (Unreleased)
## 1.0.0-beta.1 (2022-08-31)

- 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-07-27-only. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager ApplicationInsights client library for Java.

This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-04-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. Composite Swagger for Application Insights Management Client. Package tag package-2022-07-27-only. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-applicationinsights</artifactId>
<version>1.0.0-beta.5</version>
<version>1.0.0-beta.6</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ public final class ComponentCurrentBillingFeaturesUpdateSamples {
new ApplicationInsightsComponentBillingFeaturesInner()
.withDataVolumeCap(
new ApplicationInsightsComponentDataVolumeCap()
.withCap(100.0f)
.withCap(100.0F)
.withStopSendNotificationWhenHitCap(true))
.withCurrentBillingFeatures(Arrays.asList("Basic", "Application Insights Enterprise")),
Context.NONE);
Expand Down Expand Up @@ -1840,15 +1840,18 @@ public final class WebTestLocationsListSamples {
### WebTests_CreateOrUpdate

```java
import com.azure.resourcemanager.applicationinsights.models.HeaderField;
import com.azure.resourcemanager.applicationinsights.models.WebTestGeolocation;
import com.azure.resourcemanager.applicationinsights.models.WebTestKind;
import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesConfiguration;
import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesRequest;
import com.azure.resourcemanager.applicationinsights.models.WebTestPropertiesValidationRules;
import java.util.Arrays;

/** Samples for WebTests CreateOrUpdate. */
public final class WebTestsCreateOrUpdateSamples {
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestCreate.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreate.json
*/
/**
* Sample code: webTestCreate.
Expand Down Expand Up @@ -1889,7 +1892,46 @@ public final class WebTestsCreateOrUpdateSamples {
}

/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestUpdate.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestCreateStandard.json
*/
/**
* Sample code: webTestCreateStandard.
*
* @param manager Entry point to ApplicationInsightsManager.
*/
public static void webTestCreateStandard(
com.azure.resourcemanager.applicationinsights.ApplicationInsightsManager manager) {
manager
.webTests()
.define("my-webtest-my-component")
.withRegion("South Central US")
.withExistingResourceGroup("my-resource-group")
.withSyntheticMonitorId("my-webtest-my-component")
.withWebTestName("my-webtest-my-component")
.withDescription("Ping web test alert for mytestwebapp")
.withEnabled(true)
.withFrequency(900)
.withTimeout(120)
.withWebTestKind(WebTestKind.STANDARD)
.withRetryEnabled(true)
.withLocations(Arrays.asList(new WebTestGeolocation().withLocation("us-fl-mia-edge")))
.withRequest(
new WebTestPropertiesRequest()
.withRequestUrl("https://bing.com")
.withHeaders(
Arrays
.asList(
new HeaderField().withHeaderFieldName("Content-Language").withHeaderFieldValue("de-DE"),
new HeaderField().withHeaderFieldName("Accept-Language").withHeaderFieldValue("de-DE")))
.withHttpVerb("POST")
.withRequestBody("SGVsbG8gd29ybGQ="))
.withValidationRules(
new WebTestPropertiesValidationRules().withSslCheck(true).withSslCertRemainingLifetimeCheck(100))
.create();
}

/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdate.json
*/
/**
* Sample code: webTestUpdate.
Expand Down Expand Up @@ -1940,7 +1982,7 @@ import com.azure.core.util.Context;
/** Samples for WebTests Delete. */
public final class WebTestsDeleteSamples {
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestDelete.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestDelete.json
*/
/**
* Sample code: webTestDelete.
Expand All @@ -1961,7 +2003,7 @@ import com.azure.core.util.Context;
/** Samples for WebTests GetByResourceGroup. */
public final class WebTestsGetByResourceGroupSamples {
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestGet.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestGet.json
*/
/**
* Sample code: webTestGet.
Expand All @@ -1984,7 +2026,7 @@ import com.azure.core.util.Context;
/** Samples for WebTests List. */
public final class WebTestsListSamples {
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestList.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestList.json
*/
/**
* Sample code: webTestList.
Expand All @@ -2005,7 +2047,7 @@ import com.azure.core.util.Context;
/** Samples for WebTests ListByComponent. */
public final class WebTestsListByComponentSamples {
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByComponent.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByComponent.json
*/
/**
* Sample code: webTestListByComponent.
Expand All @@ -2027,7 +2069,7 @@ import com.azure.core.util.Context;
/** Samples for WebTests ListByResourceGroup. */
public final class WebTestsListByResourceGroupSamples {
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestListByResourceGroup.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestListByResourceGroup.json
*/
/**
* Sample code: webTestListByResourceGroup.
Expand All @@ -2052,7 +2094,7 @@ import java.util.Map;
/** Samples for WebTests UpdateTags. */
public final class WebTestsUpdateTagsSamples {
/*
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/examples/WebTestUpdateTagsOnly.json
* x-ms-original-file: specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2022-06-15/examples/WebTestUpdateTagsOnly.json
*/
/**
* Sample code: webTestUpdateTags.
Expand All @@ -2077,8 +2119,6 @@ public final class WebTestsUpdateTagsSamples {
"SystemType",
"A08",
"hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Insights/components/my-component",
"Resource",
"hidden-link:/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.Web/sites/mytestwebapp",
"Resource"))
.apply();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for ApplicationInsights Management</name>
<description>This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-04-01.</description>
<description>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-07-27-only.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

/** Entry point to ApplicationInsightsManager. Composite Swagger for Application Insights Management Client. */
public final class ApplicationInsightsManager {
private Operations operations;
private Components components;

private Annotations annotations;

Expand Down Expand Up @@ -102,18 +102,18 @@ public final class ApplicationInsightsManager {

private AnalyticsItems analyticsItems;

private Operations operations;

private WorkbookTemplates workbookTemplates;

private MyWorkbooks myWorkbooks;

private Workbooks workbooks;

private Components components;
private LiveTokens liveTokens;

private ComponentLinkedStorageAccountsOperations componentLinkedStorageAccountsOperations;

private LiveTokens liveTokens;

private final ApplicationInsightsManagementClient clientObject;

private ApplicationInsightsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -279,7 +279,7 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure
.append("-")
.append("com.azure.resourcemanager.applicationinsights")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -337,15 +337,15 @@ public ApplicationInsightsManager authenticate(TokenCredential credential, Azure
}

/**
* Gets the resource collection API of Operations.
* Gets the resource collection API of Components. It manages ApplicationInsightsComponent.
*
* @return Resource collection API of Operations.
* @return Resource collection API of Components.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
public Components components() {
if (this.components == null) {
this.components = new ComponentsImpl(clientObject.getComponents(), this);
}
return operations;
return components;
}

/**
Expand Down Expand Up @@ -509,6 +509,18 @@ public AnalyticsItems analyticsItems() {
return analyticsItems;
}

/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* Gets the resource collection API of WorkbookTemplates. It manages WorkbookTemplate.
*
Expand Down Expand Up @@ -546,15 +558,15 @@ public Workbooks workbooks() {
}

/**
* Gets the resource collection API of Components. It manages ApplicationInsightsComponent.
* Gets the resource collection API of LiveTokens.
*
* @return Resource collection API of Components.
* @return Resource collection API of LiveTokens.
*/
public Components components() {
if (this.components == null) {
this.components = new ComponentsImpl(clientObject.getComponents(), this);
public LiveTokens liveTokens() {
if (this.liveTokens == null) {
this.liveTokens = new LiveTokensImpl(clientObject.getLiveTokens(), this);
}
return components;
return liveTokens;
}

/**
Expand All @@ -572,18 +584,6 @@ public ComponentLinkedStorageAccountsOperations componentLinkedStorageAccountsOp
return componentLinkedStorageAccountsOperations;
}

/**
* Gets the resource collection API of LiveTokens.
*
* @return Resource collection API of LiveTokens.
*/
public LiveTokens liveTokens() {
if (this.liveTokens == null) {
this.liveTokens = new LiveTokensImpl(clientObject.getLiveTokens(), this);
}
return liveTokens;
}

/**
* @return Wrapped service client ApplicationInsightsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public interface ApplicationInsightsManagementClient {
Duration getDefaultPollInterval();

/**
* Gets the OperationsClient object to access its operations.
* Gets the ComponentsClient object to access its operations.
*
* @return the OperationsClient object.
* @return the ComponentsClient object.
*/
OperationsClient getOperations();
ComponentsClient getComponents();

/**
* Gets the AnnotationsClient object to access its operations.
Expand Down Expand Up @@ -135,6 +135,13 @@ public interface ApplicationInsightsManagementClient {
*/
AnalyticsItemsClient getAnalyticsItems();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the WorkbookTemplatesClient object to access its operations.
*
Expand All @@ -157,23 +164,16 @@ public interface ApplicationInsightsManagementClient {
WorkbooksClient getWorkbooks();

/**
* Gets the ComponentsClient object to access its operations.
* Gets the LiveTokensClient object to access its operations.
*
* @return the ComponentsClient object.
* @return the LiveTokensClient object.
*/
ComponentsClient getComponents();
LiveTokensClient getLiveTokens();

/**
* Gets the ComponentLinkedStorageAccountsOperationsClient object to access its operations.
*
* @return the ComponentLinkedStorageAccountsOperationsClient object.
*/
ComponentLinkedStorageAccountsOperationsClient getComponentLinkedStorageAccountsOperations();

/**
* Gets the LiveTokensClient object to access its operations.
*
* @return the LiveTokensClient object.
*/
LiveTokensClient getLiveTokens();
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ Response<ApplicationInsightsComponentInner> updateTagsWithResponse(
* <p>In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch
* the execution of purge requests by sending a single command whose predicate includes all user identities that
* require purging. Use the in operator to specify multiple identities. You should run the query prior to using for
* a purge request to verify that the results are expected.
* a purge request to verify that the results are expected. Note: this operation is intended for Classic resources,
* for workspace-based Application Insights resource please run purge operation (directly on the
* workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific
* resource id.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
Expand All @@ -214,7 +217,10 @@ Response<ApplicationInsightsComponentInner> updateTagsWithResponse(
* <p>In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch
* the execution of purge requests by sending a single command whose predicate includes all user identities that
* require purging. Use the in operator to specify multiple identities. You should run the query prior to using for
* a purge request to verify that the results are expected.
* a purge request to verify that the results are expected. Note: this operation is intended for Classic resources,
* for workspace-based Application Insights resource please run purge operation (directly on the
* workspace)(https://docs.microsoft.com/en-us/rest/api/loganalytics/workspace-purge/purge) , scoped to specific
* resource id.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param resourceName The name of the Application Insights component resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public interface OperationsClient {
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list CDN operations as paginated response with {@link PagedIterable}.
* @return result of the request to list Azure Workbooks operations as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list();
Expand All @@ -29,7 +30,8 @@ public interface OperationsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of the request to list CDN operations as paginated response with {@link PagedIterable}.
* @return result of the request to list Azure Workbooks operations as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OperationInner> list(Context context);
Expand Down
Loading