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-securityinsights] dev-Sentinel-2022-08-01 #1449

Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2022-08-18)

- 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-08. 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-08. 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.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
684 changes: 477 additions & 207 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-08.</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 @@ -40,6 +40,7 @@
import com.azure.resourcemanager.securityinsights.implementation.EntityQueriesImpl;
import com.azure.resourcemanager.securityinsights.implementation.EntityQueryTemplatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.EntityRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.FileImportsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentCommentsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentsImpl;
Expand All @@ -49,6 +50,7 @@
import com.azure.resourcemanager.securityinsights.implementation.OperationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ProductSettingsImpl;
import com.azure.resourcemanager.securityinsights.implementation.SecurityInsightsBuilder;
import com.azure.resourcemanager.securityinsights.implementation.SecurityMLAnalyticsSettingsImpl;
import com.azure.resourcemanager.securityinsights.implementation.SentinelOnboardingStatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.SourceControlsImpl;
import com.azure.resourcemanager.securityinsights.implementation.SourceControlsOperationsImpl;
Expand All @@ -73,6 +75,7 @@
import com.azure.resourcemanager.securityinsights.models.EntityQueries;
import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplates;
import com.azure.resourcemanager.securityinsights.models.EntityRelations;
import com.azure.resourcemanager.securityinsights.models.FileImports;
import com.azure.resourcemanager.securityinsights.models.IncidentComments;
import com.azure.resourcemanager.securityinsights.models.IncidentRelations;
import com.azure.resourcemanager.securityinsights.models.Incidents;
Expand All @@ -81,6 +84,7 @@
import com.azure.resourcemanager.securityinsights.models.OfficeConsents;
import com.azure.resourcemanager.securityinsights.models.Operations;
import com.azure.resourcemanager.securityinsights.models.ProductSettings;
import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettings;
import com.azure.resourcemanager.securityinsights.models.SentinelOnboardingStates;
import com.azure.resourcemanager.securityinsights.models.SourceControls;
import com.azure.resourcemanager.securityinsights.models.SourceControlsOperations;
Expand Down Expand Up @@ -133,6 +137,8 @@ public final class SecurityInsightsManager {

private EntityQueryTemplates entityQueryTemplates;

private FileImports fileImports;

private IncidentComments incidentComments;

private IncidentRelations incidentRelations;
Expand All @@ -143,6 +149,8 @@ public final class SecurityInsightsManager {

private SentinelOnboardingStates sentinelOnboardingStates;

private SecurityMLAnalyticsSettings securityMLAnalyticsSettings;

private ProductSettings productSettings;

private SourceControls sourceControls;
Expand Down Expand Up @@ -330,7 +338,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.securityinsights")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -579,6 +587,18 @@ public EntityQueryTemplates entityQueryTemplates() {
return entityQueryTemplates;
}

/**
* Gets the resource collection API of FileImports. It manages FileImport.
*
* @return Resource collection API of FileImports.
*/
public FileImports fileImports() {
if (this.fileImports == null) {
this.fileImports = new FileImportsImpl(clientObject.getFileImports(), this);
}
return fileImports;
}

/**
* Gets the resource collection API of IncidentComments. It manages IncidentComment.
*
Expand Down Expand Up @@ -640,6 +660,19 @@ public SentinelOnboardingStates sentinelOnboardingStates() {
return sentinelOnboardingStates;
}

/**
* Gets the resource collection API of SecurityMLAnalyticsSettings.
*
* @return Resource collection API of SecurityMLAnalyticsSettings.
*/
public SecurityMLAnalyticsSettings securityMLAnalyticsSettings() {
if (this.securityMLAnalyticsSettings == null) {
this.securityMLAnalyticsSettings =
new SecurityMLAnalyticsSettingsImpl(clientObject.getSecurityMLAnalyticsSettings(), this);
}
return securityMLAnalyticsSettings;
}

/**
* Gets the resource collection API of ProductSettings.
*
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.Constant85;

/** 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, Constant85 kind, Context context);

/**
* Gets an entity query.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
// 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;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;

/** An instance of this class provides access to all the operations defined in FileImportsClient. */
public interface FileImportsClient {
/**
* Gets all file imports.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @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 file imports as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<FileImportInner> list(String resourceGroupName, String workspaceName);

/**
* Gets all file imports.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param filter Filters the results, based on a Boolean condition. Optional.
* @param orderby Sorts the results. Optional.
* @param top Returns only the first n results. Optional.
* @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
* contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
* specifies a starting point to use for subsequent calls. Optional.
* @param context The context to associate with this operation.
* @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 file imports as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<FileImportInner> list(
String resourceGroupName,
String workspaceName,
String filter,
String orderby,
Integer top,
String skipToken,
Context context);

/**
* Gets a file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @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 file import.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FileImportInner get(String resourceGroupName, String workspaceName, String fileImportId);

/**
* Gets a file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @param context The context to associate with this operation.
* @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 file import along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<FileImportInner> getWithResponse(
String resourceGroupName, String workspaceName, String fileImportId, Context context);

/**
* Creates the file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @param fileImport The file import.
* @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 represents a file import in Azure Security Insights.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FileImportInner create(
String resourceGroupName, String workspaceName, String fileImportId, FileImportInner fileImport);

/**
* Creates the file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @param fileImport The file import.
* @param context The context to associate with this operation.
* @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 represents a file import in Azure Security Insights along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<FileImportInner> createWithResponse(
String resourceGroupName,
String workspaceName,
String fileImportId,
FileImportInner fileImport,
Context context);

/**
* Delete the file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @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 the {@link SyncPoller} for polling of represents a file import in Azure Security Insights.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<FileImportInner>, FileImportInner> beginDelete(
String resourceGroupName, String workspaceName, String fileImportId);

/**
* Delete the file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @param context The context to associate with this operation.
* @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 the {@link SyncPoller} for polling of represents a file import in Azure Security Insights.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<FileImportInner>, FileImportInner> beginDelete(
String resourceGroupName, String workspaceName, String fileImportId, Context context);

/**
* Delete the file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @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 represents a file import in Azure Security Insights.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId);

/**
* Delete the file import.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param fileImportId File import ID.
* @param context The context to associate with this operation.
* @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 represents a file import in Azure Security Insights.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ public interface SecurityInsights {
*/
EntityQueryTemplatesClient getEntityQueryTemplates();

/**
* Gets the FileImportsClient object to access its operations.
*
* @return the FileImportsClient object.
*/
FileImportsClient getFileImports();

/**
* Gets the IncidentCommentsClient object to access its operations.
*
Expand Down Expand Up @@ -191,6 +198,13 @@ public interface SecurityInsights {
*/
SentinelOnboardingStatesClient getSentinelOnboardingStates();

/**
* Gets the SecurityMLAnalyticsSettingsClient object to access its operations.
*
* @return the SecurityMLAnalyticsSettingsClient object.
*/
SecurityMLAnalyticsSettingsClient getSecurityMLAnalyticsSettings();

/**
* Gets the ProductSettingsClient object to access its operations.
*
Expand Down
Loading