Skip to content
Draft
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.3 (Unreleased)
## 1.0.0-beta.1 (2022-04-04)

- 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).

### Features Added

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

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-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 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).

## 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-securityinsights</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
384 changes: 179 additions & 205 deletions sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for SecurityInsights Management</name>
<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>
<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>
<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 @@ -301,7 +301,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.securityinsights")
.append("/")
.append("1.0.0-beta.2");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.securityinsights.fluent.models.EntityQueryTemplateInner;
import com.azure.resourcemanager.securityinsights.models.Constant74;
import com.azure.resourcemanager.securityinsights.models.Constant75;

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

/**
* Gets an entity query.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,38 @@

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

import com.azure.core.annotation.Immutable;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.securityinsights.models.EntityProviders;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** EntityAnalytics property bag. */
@Immutable
@Fluent
public final class EntityAnalyticsProperties {
/*
* Determines whether the setting is enable or disabled.
* The relevant entity providers that are synced
*/
@JsonProperty(value = "isEnabled", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isEnabled;
@JsonProperty(value = "entityProviders")
private List<EntityProviders> entityProviders;

/**
* Get the isEnabled property: Determines whether the setting is enable or disabled.
* Get the entityProviders property: The relevant entity providers that are synced.
*
* @return the isEnabled value.
* @return the entityProviders value.
*/
public Boolean isEnabled() {
return this.isEnabled;
public List<EntityProviders> entityProviders() {
return this.entityProviders;
}

/**
* Set the entityProviders property: The relevant entity providers that are synced.
*
* @param entityProviders the entityProviders value to set.
* @return the EntityAnalyticsProperties object itself.
*/
public EntityAnalyticsProperties withEntityProviders(List<EntityProviders> entityProviders) {
this.entityProviders = entityProviders;
return this;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.azure.resourcemanager.securityinsights.models.MailMessageEntity;
import com.azure.resourcemanager.securityinsights.models.MailboxEntity;
import com.azure.resourcemanager.securityinsights.models.MalwareEntity;
import com.azure.resourcemanager.securityinsights.models.NicEntity;
import com.azure.resourcemanager.securityinsights.models.ProcessEntity;
import com.azure.resourcemanager.securityinsights.models.RegistryKeyEntity;
import com.azure.resourcemanager.securityinsights.models.RegistryValueEntity;
Expand Down Expand Up @@ -61,7 +62,8 @@
@JsonSubTypes.Type(name = "RegistryValue", value = RegistryValueEntity.class),
@JsonSubTypes.Type(name = "SecurityGroup", value = SecurityGroupEntity.class),
@JsonSubTypes.Type(name = "SubmissionMail", value = SubmissionMailEntity.class),
@JsonSubTypes.Type(name = "Url", value = UrlEntity.class)
@JsonSubTypes.Type(name = "Url", value = UrlEntity.class),
@JsonSubTypes.Type(name = "Nic", value = NicEntity.class)
})
@Immutable
public class EntityInner extends ProxyResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

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

import com.azure.core.annotation.Immutable;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.securityinsights.models.DeviceImportance;
import com.azure.resourcemanager.securityinsights.models.EntityCommonProperties;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligence;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.UUID;

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

/*
* A list of Nic entity ids of the IoTDevice entity.
*/
@JsonProperty(value = "nicEntityIds", access = JsonProperty.Access.WRITE_ONLY)
private List<String> nicEntityIds;

/*
* The site of the device
*/
@JsonProperty(value = "site", access = JsonProperty.Access.WRITE_ONLY)
private String site;

/*
* The zone location of the device within a site
*/
@JsonProperty(value = "zone", access = JsonProperty.Access.WRITE_ONLY)
private String zone;

/*
* The sensor the device is monitored by
*/
@JsonProperty(value = "sensor", access = JsonProperty.Access.WRITE_ONLY)
private String sensor;

/*
* The subType of the device ('PLC', 'HMI', 'EWS', etc.)
*/
@JsonProperty(value = "deviceSubType", access = JsonProperty.Access.WRITE_ONLY)
private String deviceSubType;

/*
* Device importance, determines if the device classified as 'crown jewel'
*/
@JsonProperty(value = "importance")
private DeviceImportance importance;

/*
* The Purdue Layer of the device
*/
@JsonProperty(value = "purdueLayer", access = JsonProperty.Access.WRITE_ONLY)
private String purdueLayer;

/*
* Determines whether the device classified as authorized device
*/
@JsonProperty(value = "isAuthorized", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isAuthorized;

/*
* Determines whether the device classified as programming device
*/
@JsonProperty(value = "isProgramming", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isProgramming;

/*
* Is the device classified as a scanner device
*/
@JsonProperty(value = "isScanner", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isScanner;

/**
* Get the deviceId property: The ID of the IoT Device in the IoT Hub.
*
Expand Down Expand Up @@ -269,6 +330,107 @@ public List<String> protocols() {
return this.protocols;
}

/**
* Get the nicEntityIds property: A list of Nic entity ids of the IoTDevice entity.
*
* @return the nicEntityIds value.
*/
public List<String> nicEntityIds() {
return this.nicEntityIds;
}

/**
* Get the site property: The site of the device.
*
* @return the site value.
*/
public String site() {
return this.site;
}

/**
* Get the zone property: The zone location of the device within a site.
*
* @return the zone value.
*/
public String zone() {
return this.zone;
}

/**
* Get the sensor property: The sensor the device is monitored by.
*
* @return the sensor value.
*/
public String sensor() {
return this.sensor;
}

/**
* Get the deviceSubType property: The subType of the device ('PLC', 'HMI', 'EWS', etc.).
*
* @return the deviceSubType value.
*/
public String deviceSubType() {
return this.deviceSubType;
}

/**
* Get the importance property: Device importance, determines if the device classified as 'crown jewel'.
*
* @return the importance value.
*/
public DeviceImportance importance() {
return this.importance;
}

/**
* Set the importance property: Device importance, determines if the device classified as 'crown jewel'.
*
* @param importance the importance value to set.
* @return the IoTDeviceEntityProperties object itself.
*/
public IoTDeviceEntityProperties withImportance(DeviceImportance importance) {
this.importance = importance;
return this;
}

/**
* Get the purdueLayer property: The Purdue Layer of the device.
*
* @return the purdueLayer value.
*/
public String purdueLayer() {
return this.purdueLayer;
}

/**
* Get the isAuthorized property: Determines whether the device classified as authorized device.
*
* @return the isAuthorized value.
*/
public Boolean isAuthorized() {
return this.isAuthorized;
}

/**
* Get the isProgramming property: Determines whether the device classified as programming device.
*
* @return the isProgramming value.
*/
public Boolean isProgramming() {
return this.isProgramming;
}

/**
* Get the isScanner property: Is the device classified as a scanner device.
*
* @return the isScanner value.
*/
public Boolean isScanner() {
return this.isScanner;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

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

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.securityinsights.models.EntityCommonProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Nic entity property bag. */
@Immutable
public final class NicEntityProperties extends EntityCommonProperties {
/*
* The MAC address of this network interface
*/
@JsonProperty(value = "macAddress", access = JsonProperty.Access.WRITE_ONLY)
private String macAddress;

/*
* The IP entity id of this network interface
*/
@JsonProperty(value = "ipAddressEntityId", access = JsonProperty.Access.WRITE_ONLY)
private String ipAddressEntityId;

/*
* A list of VLANs of the network interface entity.
*/
@JsonProperty(value = "vlans", access = JsonProperty.Access.WRITE_ONLY)
private List<String> vlans;

/**
* Get the macAddress property: The MAC address of this network interface.
*
* @return the macAddress value.
*/
public String macAddress() {
return this.macAddress;
}

/**
* Get the ipAddressEntityId property: The IP entity id of this network interface.
*
* @return the ipAddressEntityId value.
*/
public String ipAddressEntityId() {
return this.ipAddressEntityId;
}

/**
* Get the vlans property: A list of VLANs of the network interface entity.
*
* @return the vlans value.
*/
public List<String> vlans() {
return this.vlans;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}
Loading