Skip to content

Commit 917452a

Browse files
author
SDKAuto
committed
CodeGen from PR 18536 in Azure/azure-rest-api-specs
Merge 5705de7d2625189c540fdaae108a4675816b1787 into d521635d9d9543c0dab932d9d4b7911dcee1de3b
1 parent 032d613 commit 917452a

File tree

130 files changed

+957
-632
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+957
-632
lines changed

sdk/securityinsights/azure-resourcemanager-securityinsights/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2022-04-04)
4+
5+
- Azure Resource Manager SecurityInsights client library for Java. This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

sdk/securityinsights/azure-resourcemanager-securityinsights/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager SecurityInsights client library for Java.
44

5-
This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-securityinsights</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md

Lines changed: 179 additions & 205 deletions
Large diffs are not rendered by default.

sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for SecurityInsights Management</name>
16-
<description>This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-01.</description>
16+
<description>This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-05.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
301301
.append("-")
302302
.append("com.azure.resourcemanager.securityinsights")
303303
.append("/")
304-
.append("1.0.0-beta.2");
304+
.append("1.0.0-beta.1");
305305
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
306306
userAgentBuilder
307307
.append(" (")

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/EntityQueryTemplatesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import com.azure.core.http.rest.Response;
1111
import com.azure.core.util.Context;
1212
import com.azure.resourcemanager.securityinsights.fluent.models.EntityQueryTemplateInner;
13-
import com.azure.resourcemanager.securityinsights.models.Constant74;
13+
import com.azure.resourcemanager.securityinsights.models.Constant75;
1414

1515
/** An instance of this class provides access to all the operations defined in EntityQueryTemplatesClient. */
1616
public interface EntityQueryTemplatesClient {
@@ -41,7 +41,7 @@ public interface EntityQueryTemplatesClient {
4141
*/
4242
@ServiceMethod(returns = ReturnType.COLLECTION)
4343
PagedIterable<EntityQueryTemplateInner> list(
44-
String resourceGroupName, String workspaceName, Constant74 kind, Context context);
44+
String resourceGroupName, String workspaceName, Constant75 kind, Context context);
4545

4646
/**
4747
* Gets an entity query.

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/EntityAnalyticsProperties.java

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,38 @@
44

55
package com.azure.resourcemanager.securityinsights.fluent.models;
66

7-
import com.azure.core.annotation.Immutable;
7+
import com.azure.core.annotation.Fluent;
8+
import com.azure.resourcemanager.securityinsights.models.EntityProviders;
89
import com.fasterxml.jackson.annotation.JsonProperty;
10+
import java.util.List;
911

1012
/** EntityAnalytics property bag. */
11-
@Immutable
13+
@Fluent
1214
public final class EntityAnalyticsProperties {
1315
/*
14-
* Determines whether the setting is enable or disabled.
16+
* The relevant entity providers that are synced
1517
*/
16-
@JsonProperty(value = "isEnabled", access = JsonProperty.Access.WRITE_ONLY)
17-
private Boolean isEnabled;
18+
@JsonProperty(value = "entityProviders")
19+
private List<EntityProviders> entityProviders;
1820

1921
/**
20-
* Get the isEnabled property: Determines whether the setting is enable or disabled.
22+
* Get the entityProviders property: The relevant entity providers that are synced.
2123
*
22-
* @return the isEnabled value.
24+
* @return the entityProviders value.
2325
*/
24-
public Boolean isEnabled() {
25-
return this.isEnabled;
26+
public List<EntityProviders> entityProviders() {
27+
return this.entityProviders;
28+
}
29+
30+
/**
31+
* Set the entityProviders property: The relevant entity providers that are synced.
32+
*
33+
* @param entityProviders the entityProviders value to set.
34+
* @return the EntityAnalyticsProperties object itself.
35+
*/
36+
public EntityAnalyticsProperties withEntityProviders(List<EntityProviders> entityProviders) {
37+
this.entityProviders = entityProviders;
38+
return this;
2639
}
2740

2841
/**

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/EntityInner.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import com.azure.resourcemanager.securityinsights.models.MailMessageEntity;
2222
import com.azure.resourcemanager.securityinsights.models.MailboxEntity;
2323
import com.azure.resourcemanager.securityinsights.models.MalwareEntity;
24+
import com.azure.resourcemanager.securityinsights.models.NicEntity;
2425
import com.azure.resourcemanager.securityinsights.models.ProcessEntity;
2526
import com.azure.resourcemanager.securityinsights.models.RegistryKeyEntity;
2627
import com.azure.resourcemanager.securityinsights.models.RegistryValueEntity;
@@ -61,7 +62,8 @@
6162
@JsonSubTypes.Type(name = "RegistryValue", value = RegistryValueEntity.class),
6263
@JsonSubTypes.Type(name = "SecurityGroup", value = SecurityGroupEntity.class),
6364
@JsonSubTypes.Type(name = "SubmissionMail", value = SubmissionMailEntity.class),
64-
@JsonSubTypes.Type(name = "Url", value = UrlEntity.class)
65+
@JsonSubTypes.Type(name = "Url", value = UrlEntity.class),
66+
@JsonSubTypes.Type(name = "Nic", value = NicEntity.class)
6567
})
6668
@Immutable
6769
public class EntityInner extends ProxyResource {

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/models/IoTDeviceEntityProperties.java

Lines changed: 164 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
package com.azure.resourcemanager.securityinsights.fluent.models;
66

7-
import com.azure.core.annotation.Immutable;
7+
import com.azure.core.annotation.Fluent;
8+
import com.azure.resourcemanager.securityinsights.models.DeviceImportance;
89
import com.azure.resourcemanager.securityinsights.models.EntityCommonProperties;
910
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligence;
1011
import com.fasterxml.jackson.annotation.JsonProperty;
1112
import java.util.List;
1213
import java.util.UUID;
1314

1415
/** IoTDevice entity property bag. */
15-
@Immutable
16+
@Fluent
1617
public final class IoTDeviceEntityProperties extends EntityCommonProperties {
1718
/*
1819
* The ID of the IoT Device in the IoT Hub
@@ -116,6 +117,66 @@ public final class IoTDeviceEntityProperties extends EntityCommonProperties {
116117
@JsonProperty(value = "protocols", access = JsonProperty.Access.WRITE_ONLY)
117118
private List<String> protocols;
118119

120+
/*
121+
* A list of Nic entity ids of the IoTDevice entity.
122+
*/
123+
@JsonProperty(value = "nicEntityIds", access = JsonProperty.Access.WRITE_ONLY)
124+
private List<String> nicEntityIds;
125+
126+
/*
127+
* The site of the device
128+
*/
129+
@JsonProperty(value = "site", access = JsonProperty.Access.WRITE_ONLY)
130+
private String site;
131+
132+
/*
133+
* The zone location of the device within a site
134+
*/
135+
@JsonProperty(value = "zone", access = JsonProperty.Access.WRITE_ONLY)
136+
private String zone;
137+
138+
/*
139+
* The sensor the device is monitored by
140+
*/
141+
@JsonProperty(value = "sensor", access = JsonProperty.Access.WRITE_ONLY)
142+
private String sensor;
143+
144+
/*
145+
* The subType of the device ('PLC', 'HMI', 'EWS', etc.)
146+
*/
147+
@JsonProperty(value = "deviceSubType", access = JsonProperty.Access.WRITE_ONLY)
148+
private String deviceSubType;
149+
150+
/*
151+
* Device importance, determines if the device classified as 'crown jewel'
152+
*/
153+
@JsonProperty(value = "importance")
154+
private DeviceImportance importance;
155+
156+
/*
157+
* The Purdue Layer of the device
158+
*/
159+
@JsonProperty(value = "purdueLayer", access = JsonProperty.Access.WRITE_ONLY)
160+
private String purdueLayer;
161+
162+
/*
163+
* Determines whether the device classified as authorized device
164+
*/
165+
@JsonProperty(value = "isAuthorized", access = JsonProperty.Access.WRITE_ONLY)
166+
private Boolean isAuthorized;
167+
168+
/*
169+
* Determines whether the device classified as programming device
170+
*/
171+
@JsonProperty(value = "isProgramming", access = JsonProperty.Access.WRITE_ONLY)
172+
private Boolean isProgramming;
173+
174+
/*
175+
* Is the device classified as a scanner device
176+
*/
177+
@JsonProperty(value = "isScanner", access = JsonProperty.Access.WRITE_ONLY)
178+
private Boolean isScanner;
179+
119180
/**
120181
* Get the deviceId property: The ID of the IoT Device in the IoT Hub.
121182
*
@@ -269,6 +330,107 @@ public List<String> protocols() {
269330
return this.protocols;
270331
}
271332

333+
/**
334+
* Get the nicEntityIds property: A list of Nic entity ids of the IoTDevice entity.
335+
*
336+
* @return the nicEntityIds value.
337+
*/
338+
public List<String> nicEntityIds() {
339+
return this.nicEntityIds;
340+
}
341+
342+
/**
343+
* Get the site property: The site of the device.
344+
*
345+
* @return the site value.
346+
*/
347+
public String site() {
348+
return this.site;
349+
}
350+
351+
/**
352+
* Get the zone property: The zone location of the device within a site.
353+
*
354+
* @return the zone value.
355+
*/
356+
public String zone() {
357+
return this.zone;
358+
}
359+
360+
/**
361+
* Get the sensor property: The sensor the device is monitored by.
362+
*
363+
* @return the sensor value.
364+
*/
365+
public String sensor() {
366+
return this.sensor;
367+
}
368+
369+
/**
370+
* Get the deviceSubType property: The subType of the device ('PLC', 'HMI', 'EWS', etc.).
371+
*
372+
* @return the deviceSubType value.
373+
*/
374+
public String deviceSubType() {
375+
return this.deviceSubType;
376+
}
377+
378+
/**
379+
* Get the importance property: Device importance, determines if the device classified as 'crown jewel'.
380+
*
381+
* @return the importance value.
382+
*/
383+
public DeviceImportance importance() {
384+
return this.importance;
385+
}
386+
387+
/**
388+
* Set the importance property: Device importance, determines if the device classified as 'crown jewel'.
389+
*
390+
* @param importance the importance value to set.
391+
* @return the IoTDeviceEntityProperties object itself.
392+
*/
393+
public IoTDeviceEntityProperties withImportance(DeviceImportance importance) {
394+
this.importance = importance;
395+
return this;
396+
}
397+
398+
/**
399+
* Get the purdueLayer property: The Purdue Layer of the device.
400+
*
401+
* @return the purdueLayer value.
402+
*/
403+
public String purdueLayer() {
404+
return this.purdueLayer;
405+
}
406+
407+
/**
408+
* Get the isAuthorized property: Determines whether the device classified as authorized device.
409+
*
410+
* @return the isAuthorized value.
411+
*/
412+
public Boolean isAuthorized() {
413+
return this.isAuthorized;
414+
}
415+
416+
/**
417+
* Get the isProgramming property: Determines whether the device classified as programming device.
418+
*
419+
* @return the isProgramming value.
420+
*/
421+
public Boolean isProgramming() {
422+
return this.isProgramming;
423+
}
424+
425+
/**
426+
* Get the isScanner property: Is the device classified as a scanner device.
427+
*
428+
* @return the isScanner value.
429+
*/
430+
public Boolean isScanner() {
431+
return this.isScanner;
432+
}
433+
272434
/**
273435
* Validates the instance.
274436
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.securityinsights.fluent.models;
6+
7+
import com.azure.core.annotation.Immutable;
8+
import com.azure.resourcemanager.securityinsights.models.EntityCommonProperties;
9+
import com.fasterxml.jackson.annotation.JsonProperty;
10+
import java.util.List;
11+
12+
/** Nic entity property bag. */
13+
@Immutable
14+
public final class NicEntityProperties extends EntityCommonProperties {
15+
/*
16+
* The MAC address of this network interface
17+
*/
18+
@JsonProperty(value = "macAddress", access = JsonProperty.Access.WRITE_ONLY)
19+
private String macAddress;
20+
21+
/*
22+
* The IP entity id of this network interface
23+
*/
24+
@JsonProperty(value = "ipAddressEntityId", access = JsonProperty.Access.WRITE_ONLY)
25+
private String ipAddressEntityId;
26+
27+
/*
28+
* A list of VLANs of the network interface entity.
29+
*/
30+
@JsonProperty(value = "vlans", access = JsonProperty.Access.WRITE_ONLY)
31+
private List<String> vlans;
32+
33+
/**
34+
* Get the macAddress property: The MAC address of this network interface.
35+
*
36+
* @return the macAddress value.
37+
*/
38+
public String macAddress() {
39+
return this.macAddress;
40+
}
41+
42+
/**
43+
* Get the ipAddressEntityId property: The IP entity id of this network interface.
44+
*
45+
* @return the ipAddressEntityId value.
46+
*/
47+
public String ipAddressEntityId() {
48+
return this.ipAddressEntityId;
49+
}
50+
51+
/**
52+
* Get the vlans property: A list of VLANs of the network interface entity.
53+
*
54+
* @return the vlans value.
55+
*/
56+
public List<String> vlans() {
57+
return this.vlans;
58+
}
59+
60+
/**
61+
* Validates the instance.
62+
*
63+
* @throws IllegalArgumentException thrown if the instance is not valid.
64+
*/
65+
@Override
66+
public void validate() {
67+
super.validate();
68+
}
69+
}

0 commit comments

Comments
 (0)