Skip to content
Merged
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
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ com.azure.resourcemanager:azure-resourcemanager-relay;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-costmanagement;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-recoveryservices;1.5.0;1.6.0
com.azure.resourcemanager:azure-resourcemanager-kusto;1.2.0;1.3.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-loganalytics;2.0.0;2.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-loganalytics;2.0.0;2.1.0
com.azure.resourcemanager:azure-resourcemanager-eventgrid;1.2.0;1.3.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-healthbot;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-confluent;1.2.0;1.3.0-beta.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Release History

## 2.1.0-beta.1 (Unreleased)
## 2.1.0 (2026-01-05)

### Features Added
- Azure Resource Manager LogAnalytics client library for Java. This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2025-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes
### Features Added

### Bugs Fixed
#### `models.RuleDefinition` was modified

### Other Changes
* `withDestinationTable(java.lang.String)` was added

## 2.0.0 (2025-12-22)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-loganalytics</artifactId>
<version>2.0.0</version>
<version>2.1.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,8 @@ public final class SummaryLogsOperationCreateOrUpdateSamples {
.withRuleDefinition(new RuleDefinition().withQuery("MyTable_CL")
.withBinSize(180)
.withBinDelay(10)
.withBinStartTime(OffsetDateTime.parse("2020-02-03T04:05:06Z")))
.withBinStartTime(OffsetDateTime.parse("2020-02-03T04:05:06Z"))
.withDestinationTable("MyDestinationTable_CL"))
.create();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-loganalytics</artifactId>
<version>2.1.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-loganalytics;current} -->
<version>2.1.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-loganalytics;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for LogAnalytics Management</name>
Expand Down Expand Up @@ -45,7 +45,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ public String destinationTable() {
return this.destinationTable;
}

/**
* Set the destinationTable property: The destination table used for the Summary rule results.
*
* @param destinationTable the destinationTable value to set.
* @return the RuleDefinition object itself.
*/
public RuleDefinition withDestinationTable(String destinationTable) {
this.destinationTable = destinationTable;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -184,6 +195,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("binStartTime",
this.binStartTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.binStartTime));
jsonWriter.writeStringField("timeSelector", this.timeSelector == null ? null : this.timeSelector.toString());
jsonWriter.writeStringField("destinationTable", this.destinationTable);
return jsonWriter.writeEndObject();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public static void summaryLogsUpsert(com.azure.resourcemanager.loganalytics.LogA
.withRuleDefinition(new RuleDefinition().withQuery("MyTable_CL")
.withBinSize(180)
.withBinDelay(10)
.withBinStartTime(OffsetDateTime.parse("2020-02-03T04:05:06Z")))
.withBinStartTime(OffsetDateTime.parse("2020-02-03T04:05:06Z"))
.withDestinationTable("MyDestinationTable_CL"))
.create();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ public final class AccessRulePropertiesTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AccessRuleProperties model = BinaryData.fromString(
"{\"direction\":\"Outbound\",\"addressPrefixes\":[\"ywuhpsvfuur\",\"tlwexxwlalniexz\",\"rzpgep\"],\"subscriptions\":[{\"id\":\"bwwpgdakchzy\"}],\"networkSecurityPerimeters\":[{\"id\":\"q\",\"perimeterGuid\":\"93bc26fc-f9fb-4e69-9852-158903792b58\",\"location\":\"cxkjibnxmysuxswq\"},{\"id\":\"tvlwijpsttexoq\",\"perimeterGuid\":\"4eded75f-0555-44c1-944a-0d0074ddf66e\",\"location\":\"cyyufmh\"},{\"id\":\"nc\",\"perimeterGuid\":\"344e5ead-a6e5-4329-9351-1a3ed62f4f98\",\"location\":\"qspkcdqzhlctd\"},{\"id\":\"nqndyfpchrqbn\",\"perimeterGuid\":\"de737e0c-b524-425d-b66b-095fab635f9c\",\"location\":\"cgegydcwbo\"}],\"fullyQualifiedDomainNames\":[\"mvqqolih\"],\"emailAddresses\":[\"iouaubrjt\",\"oq\",\"fuojrngif\"],\"phoneNumbers\":[\"pasccbi\"]}")
"{\"direction\":\"Outbound\",\"addressPrefixes\":[\"ywuhpsvfuur\",\"tlwexxwlalniexz\",\"rzpgep\"],\"subscriptions\":[{\"id\":\"bwwpgdakchzy\"}],\"networkSecurityPerimeters\":[{\"id\":\"q\",\"perimeterGuid\":\"fcdf021f-cddf-4ed2-9e35-35a95af5df26\",\"location\":\"cxkjibnxmysuxswq\"},{\"id\":\"tvlwijpsttexoq\",\"perimeterGuid\":\"8237a725-6bb9-4eb9-986a-ba9c33d7a075\",\"location\":\"cyyufmh\"},{\"id\":\"nc\",\"perimeterGuid\":\"4afd3e24-43f2-4eb4-95b1-9cda16e7448c\",\"location\":\"qspkcdqzhlctd\"},{\"id\":\"nqndyfpchrqbn\",\"perimeterGuid\":\"c5688b78-39bc-4c74-bbff-74cd364f3c29\",\"location\":\"cgegydcwbo\"}],\"fullyQualifiedDomainNames\":[\"mvqqolih\"],\"emailAddresses\":[\"iouaubrjt\",\"oq\",\"fuojrngif\"],\"phoneNumbers\":[\"pasccbi\"]}")
.toObject(AccessRuleProperties.class);
Assertions.assertEquals(AccessRuleDirection.OUTBOUND, model.direction());
Assertions.assertEquals("ywuhpsvfuur", model.addressPrefixes().get(0));
Assertions.assertEquals("bwwpgdakchzy", model.subscriptions().get(0).id());
Assertions.assertEquals("q", model.networkSecurityPerimeters().get(0).id());
Assertions.assertEquals(UUID.fromString("93bc26fc-f9fb-4e69-9852-158903792b58"),
Assertions.assertEquals(UUID.fromString("fcdf021f-cddf-4ed2-9e35-35a95af5df26"),
model.networkSecurityPerimeters().get(0).perimeterGuid());
Assertions.assertEquals("cxkjibnxmysuxswq", model.networkSecurityPerimeters().get(0).location());
Assertions.assertEquals("mvqqolih", model.fullyQualifiedDomainNames().get(0));
Expand All @@ -38,16 +38,16 @@ public void testSerialize() throws Exception {
.withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem().withId("bwwpgdakchzy")))
.withNetworkSecurityPerimeters(Arrays.asList(
new NetworkSecurityPerimeter().withId("q")
.withPerimeterGuid(UUID.fromString("93bc26fc-f9fb-4e69-9852-158903792b58"))
.withPerimeterGuid(UUID.fromString("fcdf021f-cddf-4ed2-9e35-35a95af5df26"))
.withLocation("cxkjibnxmysuxswq"),
new NetworkSecurityPerimeter().withId("tvlwijpsttexoq")
.withPerimeterGuid(UUID.fromString("4eded75f-0555-44c1-944a-0d0074ddf66e"))
.withPerimeterGuid(UUID.fromString("8237a725-6bb9-4eb9-986a-ba9c33d7a075"))
.withLocation("cyyufmh"),
new NetworkSecurityPerimeter().withId("nc")
.withPerimeterGuid(UUID.fromString("344e5ead-a6e5-4329-9351-1a3ed62f4f98"))
.withPerimeterGuid(UUID.fromString("4afd3e24-43f2-4eb4-95b1-9cda16e7448c"))
.withLocation("qspkcdqzhlctd"),
new NetworkSecurityPerimeter().withId("nqndyfpchrqbn")
.withPerimeterGuid(UUID.fromString("de737e0c-b524-425d-b66b-095fab635f9c"))
.withPerimeterGuid(UUID.fromString("c5688b78-39bc-4c74-bbff-74cd364f3c29"))
.withLocation("cgegydcwbo")))
.withFullyQualifiedDomainNames(Arrays.asList("mvqqolih"))
.withEmailAddresses(Arrays.asList("iouaubrjt", "oq", "fuojrngif"))
Expand All @@ -57,7 +57,7 @@ public void testSerialize() throws Exception {
Assertions.assertEquals("ywuhpsvfuur", model.addressPrefixes().get(0));
Assertions.assertEquals("bwwpgdakchzy", model.subscriptions().get(0).id());
Assertions.assertEquals("q", model.networkSecurityPerimeters().get(0).id());
Assertions.assertEquals(UUID.fromString("93bc26fc-f9fb-4e69-9852-158903792b58"),
Assertions.assertEquals(UUID.fromString("fcdf021f-cddf-4ed2-9e35-35a95af5df26"),
model.networkSecurityPerimeters().get(0).perimeterGuid());
Assertions.assertEquals("cxkjibnxmysuxswq", model.networkSecurityPerimeters().get(0).location());
Assertions.assertEquals("mvqqolih", model.fullyQualifiedDomainNames().get(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public final class AccessRuleTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AccessRule model = BinaryData.fromString(
"{\"name\":\"yrxpdlcgqls\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rddga\",\"quhiosrsjuivf\",\"disyirnxz\",\"czexrxzbujrtrhqv\"],\"subscriptions\":[{\"id\":\"khgn\"}],\"networkSecurityPerimeters\":[{\"id\":\"nzlrpiqywncvjt\",\"perimeterGuid\":\"da835f74-0b91-40ea-b2cb-eb01d99bf24d\",\"location\":\"ofizehtdhgbj\"},{\"id\":\"reljeamur\",\"perimeterGuid\":\"214214b7-277e-49e9-9256-f50f7ae9cacc\",\"location\":\"lovuana\"},{\"id\":\"cxlpmjerb\",\"perimeterGuid\":\"3dbe07f2-7712-4b46-8c7a-50c7f90f2469\",\"location\":\"lvidizozs\"},{\"id\":\"ccxjm\",\"perimeterGuid\":\"86b2dc0b-6721-48cf-9996-5475b5828c29\",\"location\":\"dgnwncypuuwwlt\"}],\"fullyQualifiedDomainNames\":[\"jctzenkei\",\"zzhmkd\",\"svflyhbxcudch\"],\"emailAddresses\":[\"rb\",\"ldforobwj\",\"vizbfhfo\"],\"phoneNumbers\":[\"cqpbtuo\",\"xesz\",\"bbelawumuaslzk\",\"rrwoycqucwyhahn\"]}}")
"{\"name\":\"yrxpdlcgqls\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rddga\",\"quhiosrsjuivf\",\"disyirnxz\",\"czexrxzbujrtrhqv\"],\"subscriptions\":[{\"id\":\"khgn\"}],\"networkSecurityPerimeters\":[{\"id\":\"nzlrpiqywncvjt\",\"perimeterGuid\":\"bbdc99ed-04bf-44a9-bcce-e0e5e32f2675\",\"location\":\"ofizehtdhgbj\"},{\"id\":\"reljeamur\",\"perimeterGuid\":\"35ed2012-51db-4e82-9308-ff8bd4f8b868\",\"location\":\"lovuana\"},{\"id\":\"cxlpmjerb\",\"perimeterGuid\":\"8a369177-ebd3-4583-b465-eafb572e3f34\",\"location\":\"lvidizozs\"},{\"id\":\"ccxjm\",\"perimeterGuid\":\"6b1215e4-8788-4ec0-9135-19bbe112ee85\",\"location\":\"dgnwncypuuwwlt\"}],\"fullyQualifiedDomainNames\":[\"jctzenkei\",\"zzhmkd\",\"svflyhbxcudch\"],\"emailAddresses\":[\"rb\",\"ldforobwj\",\"vizbfhfo\"],\"phoneNumbers\":[\"cqpbtuo\",\"xesz\",\"bbelawumuaslzk\",\"rrwoycqucwyhahn\"]}}")
.toObject(AccessRule.class);
Assertions.assertEquals("yrxpdlcgqls", model.name());
Assertions.assertEquals(AccessRuleDirection.OUTBOUND, model.properties().direction());
Assertions.assertEquals("rddga", model.properties().addressPrefixes().get(0));
Assertions.assertEquals("khgn", model.properties().subscriptions().get(0).id());
Assertions.assertEquals("nzlrpiqywncvjt", model.properties().networkSecurityPerimeters().get(0).id());
Assertions.assertEquals(UUID.fromString("da835f74-0b91-40ea-b2cb-eb01d99bf24d"),
Assertions.assertEquals(UUID.fromString("bbdc99ed-04bf-44a9-bcce-e0e5e32f2675"),
model.properties().networkSecurityPerimeters().get(0).perimeterGuid());
Assertions.assertEquals("ofizehtdhgbj", model.properties().networkSecurityPerimeters().get(0).location());
Assertions.assertEquals("jctzenkei", model.properties().fullyQualifiedDomainNames().get(0));
Expand All @@ -41,16 +41,16 @@ public void testSerialize() throws Exception {
.withSubscriptions(Arrays.asList(new AccessRulePropertiesSubscriptionsItem().withId("khgn")))
.withNetworkSecurityPerimeters(Arrays.asList(
new NetworkSecurityPerimeter().withId("nzlrpiqywncvjt")
.withPerimeterGuid(UUID.fromString("da835f74-0b91-40ea-b2cb-eb01d99bf24d"))
.withPerimeterGuid(UUID.fromString("bbdc99ed-04bf-44a9-bcce-e0e5e32f2675"))
.withLocation("ofizehtdhgbj"),
new NetworkSecurityPerimeter().withId("reljeamur")
.withPerimeterGuid(UUID.fromString("214214b7-277e-49e9-9256-f50f7ae9cacc"))
.withPerimeterGuid(UUID.fromString("35ed2012-51db-4e82-9308-ff8bd4f8b868"))
.withLocation("lovuana"),
new NetworkSecurityPerimeter().withId("cxlpmjerb")
.withPerimeterGuid(UUID.fromString("3dbe07f2-7712-4b46-8c7a-50c7f90f2469"))
.withPerimeterGuid(UUID.fromString("8a369177-ebd3-4583-b465-eafb572e3f34"))
.withLocation("lvidizozs"),
new NetworkSecurityPerimeter().withId("ccxjm")
.withPerimeterGuid(UUID.fromString("86b2dc0b-6721-48cf-9996-5475b5828c29"))
.withPerimeterGuid(UUID.fromString("6b1215e4-8788-4ec0-9135-19bbe112ee85"))
.withLocation("dgnwncypuuwwlt")))
.withFullyQualifiedDomainNames(Arrays.asList("jctzenkei", "zzhmkd", "svflyhbxcudch"))
.withEmailAddresses(Arrays.asList("rb", "ldforobwj", "vizbfhfo"))
Expand All @@ -61,7 +61,7 @@ public void testSerialize() throws Exception {
Assertions.assertEquals("rddga", model.properties().addressPrefixes().get(0));
Assertions.assertEquals("khgn", model.properties().subscriptions().get(0).id());
Assertions.assertEquals("nzlrpiqywncvjt", model.properties().networkSecurityPerimeters().get(0).id());
Assertions.assertEquals(UUID.fromString("da835f74-0b91-40ea-b2cb-eb01d99bf24d"),
Assertions.assertEquals(UUID.fromString("bbdc99ed-04bf-44a9-bcce-e0e5e32f2675"),
model.properties().networkSecurityPerimeters().get(0).perimeterGuid());
Assertions.assertEquals("ofizehtdhgbj", model.properties().networkSecurityPerimeters().get(0).location());
Assertions.assertEquals("jctzenkei", model.properties().fullyQualifiedDomainNames().get(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class AssociatedWorkspaceTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
AssociatedWorkspace model = BinaryData.fromString(
"{\"workspaceId\":\"a86d2e6d-74b6-4e05-a0b9-c41d1cdb673b\",\"workspaceName\":\"cqhsm\",\"resourceId\":\"rkdtmlxh\",\"associateDate\":\"2021-09-14T21:41:32Z\"}")
"{\"workspaceId\":\"d4467277-9932-4ff4-9713-ca5858c7d9fc\",\"workspaceName\":\"cqhsm\",\"resourceId\":\"rkdtmlxh\",\"associateDate\":\"2021-09-14T21:41:32Z\"}")
.toObject(AssociatedWorkspace.class);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class ManagedServiceIdentityTests {
@org.junit.jupiter.api.Test
public void testDeserialize() throws Exception {
ManagedServiceIdentity model = BinaryData.fromString(
"{\"principalId\":\"4f489df3-8016-476b-8e91-c04b1f58e415\",\"tenantId\":\"42e608e0-f5a7-4847-a317-9f231b68adfa\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"f\":{\"principalId\":\"e3f04b40-47a8-4323-8155-b654561a6e5d\",\"clientId\":\"ad28cede-46a0-4859-b5a6-fd978dadf090\"},\"rvktsi\":{\"principalId\":\"9b2c09be-ae3e-489c-a76a-522e98790141\",\"clientId\":\"c6139a3e-11c3-4025-b8af-8c1aba50601f\"},\"ocipaouajpsqucm\":{\"principalId\":\"a3b1ce65-9f5a-471b-b615-d8104f9cf738\",\"clientId\":\"b61166de-704d-4a8d-85a3-a06d54506119\"}}}")
"{\"principalId\":\"f80856e4-8dd6-4dcb-a8e6-9e199e7016b5\",\"tenantId\":\"50c95719-87cb-4144-a84e-fead5df80792\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"f\":{\"principalId\":\"6b97a81c-8a15-43bb-980b-543e3276cc55\",\"clientId\":\"87125785-d13b-4908-bbb7-f7be7e48f54c\"},\"rvktsi\":{\"principalId\":\"31ca72c9-7606-4d97-bce6-ed7144757fe3\",\"clientId\":\"dfab8ca2-46b9-43d2-a899-9e1ad2f128e9\"},\"ocipaouajpsqucm\":{\"principalId\":\"9e6a81ea-e769-4d67-a5a0-184e9029ac3a\",\"clientId\":\"f749d11d-d88e-464b-9e82-1fa51f02e65f\"}}}")
.toObject(ManagedServiceIdentity.class);
Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type());
}
Expand Down
Loading
Loading