Skip to content

Commit

Permalink
CodeGen from PR 21267 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 45aa8a666da7fc5e19b662d3dadecfd6ab174b3a into abd5d0016f12f6862cae88ef70f1333e84e20c07
  • Loading branch information
SDKAuto committed Oct 30, 2022
1 parent 980f59e commit 7611515
Show file tree
Hide file tree
Showing 692 changed files with 8,218 additions and 2,793 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2022-10-30)

- 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-11. 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-09. 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-11. 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.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
487 changes: 298 additions & 189 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-09.</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-11.</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 @@ -41,6 +41,8 @@
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.GetRecommendationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.GetsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentCommentsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentRelationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.IncidentsImpl;
Expand All @@ -57,6 +59,7 @@
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorMetricsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsImpl;
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsOperationsImpl;
import com.azure.resourcemanager.securityinsights.implementation.UpdatesImpl;
import com.azure.resourcemanager.securityinsights.implementation.WatchlistItemsImpl;
import com.azure.resourcemanager.securityinsights.implementation.WatchlistsImpl;
import com.azure.resourcemanager.securityinsights.models.Actions;
Expand All @@ -76,6 +79,8 @@
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.GetRecommendations;
import com.azure.resourcemanager.securityinsights.models.Gets;
import com.azure.resourcemanager.securityinsights.models.IncidentComments;
import com.azure.resourcemanager.securityinsights.models.IncidentRelations;
import com.azure.resourcemanager.securityinsights.models.Incidents;
Expand All @@ -91,6 +96,7 @@
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorMetrics;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicators;
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorsOperations;
import com.azure.resourcemanager.securityinsights.models.Updates;
import com.azure.resourcemanager.securityinsights.models.WatchlistItems;
import com.azure.resourcemanager.securityinsights.models.Watchlists;
import java.time.Duration;
Expand Down Expand Up @@ -157,6 +163,12 @@ public final class SecurityInsightsManager {

private SourceControlsOperations sourceControlsOperations;

private GetRecommendations getRecommendations;

private Gets gets;

private Updates updates;

private ThreatIntelligenceIndicators threatIntelligenceIndicators;

private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
Expand Down Expand Up @@ -338,7 +350,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.securityinsights")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -710,6 +722,42 @@ public SourceControlsOperations sourceControlsOperations() {
return sourceControlsOperations;
}

/**
* Gets the resource collection API of GetRecommendations.
*
* @return Resource collection API of GetRecommendations.
*/
public GetRecommendations getRecommendations() {
if (this.getRecommendations == null) {
this.getRecommendations = new GetRecommendationsImpl(clientObject.getGetRecommendations(), this);
}
return getRecommendations;
}

/**
* Gets the resource collection API of Gets.
*
* @return Resource collection API of Gets.
*/
public Gets gets() {
if (this.gets == null) {
this.gets = new GetsImpl(clientObject.getGets(), this);
}
return gets;
}

/**
* Gets the resource collection API of Updates.
*
* @return Resource collection API of Updates.
*/
public Updates updates() {
if (this.updates == null) {
this.updates = new UpdatesImpl(clientObject.getUpdates(), this);
}
return updates;
}

/**
* Gets the resource collection API of ThreatIntelligenceIndicators.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,6 @@ public interface ActionsClient {
PagedIterable<ActionResponseInner> listByAlertRule(
String resourceGroupName, String workspaceName, String ruleId, Context context);

/**
* Gets the action of alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param actionId Action 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 action of alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId);

/**
* Gets the action of alert rule.
*
Expand All @@ -77,21 +62,19 @@ Response<ActionResponseInner> getWithResponse(
String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context);

/**
* Creates or updates the action of alert rule.
* Gets the action of alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param actionId Action ID.
* @param action The action.
* @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 action for alert rule.
* @return the action of alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ActionResponseInner createOrUpdate(
String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action);
ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId);

/**
* Creates or updates the action of alert rule.
Expand All @@ -117,18 +100,21 @@ Response<ActionResponseInner> createOrUpdateWithResponse(
Context context);

/**
* Delete the action of alert rule.
* Creates or updates the action of alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param actionId Action ID.
* @param action The action.
* @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 action for alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId);
ActionResponseInner createOrUpdate(
String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action);

/**
* Delete the action of alert rule.
Expand All @@ -146,4 +132,18 @@ Response<ActionResponseInner> createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context);

/**
* Delete the action of alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param actionId Action 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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,27 +46,27 @@ public interface AlertRuleTemplatesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param alertRuleTemplateId Alert rule template 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 alert rule template.
* @return the alert rule template along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AlertRuleTemplateInner get(String resourceGroupName, String workspaceName, String alertRuleTemplateId);
Response<AlertRuleTemplateInner> getWithResponse(
String resourceGroupName, String workspaceName, String alertRuleTemplateId, Context context);

/**
* Gets the alert rule template.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param alertRuleTemplateId Alert rule template 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 alert rule template along with {@link Response}.
* @return the alert rule template.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AlertRuleTemplateInner> getWithResponse(
String resourceGroupName, String workspaceName, String alertRuleTemplateId, Context context);
AlertRuleTemplateInner get(String resourceGroupName, String workspaceName, String alertRuleTemplateId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,29 @@ public interface AlertRulesClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule 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 alert rule.
* @return the alert rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AlertRuleInner get(String resourceGroupName, String workspaceName, String ruleId);
Response<AlertRuleInner> getWithResponse(
String resourceGroupName, String workspaceName, String ruleId, Context context);

/**
* Gets the alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule 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 alert rule along with {@link Response}.
* @return the alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AlertRuleInner> getWithResponse(
String resourceGroupName, String workspaceName, String ruleId, Context context);
AlertRuleInner get(String resourceGroupName, String workspaceName, String ruleId);

/**
* Creates or updates the alert rule.
Expand All @@ -77,14 +77,15 @@ Response<AlertRuleInner> getWithResponse(
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param alertRule The alert rule.
* @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 alert rule.
* @return alert rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AlertRuleInner createOrUpdate(
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule);
Response<AlertRuleInner> createOrUpdateWithResponse(
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule, Context context);

/**
* Creates or updates the alert rule.
Expand All @@ -93,41 +94,40 @@ AlertRuleInner createOrUpdate(
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule ID.
* @param alertRule The alert rule.
* @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 alert rule along with {@link Response}.
* @return alert rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AlertRuleInner> createOrUpdateWithResponse(
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule, Context context);
AlertRuleInner createOrUpdate(
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule);

/**
* Delete the alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule 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 Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String ruleId);
Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, Context context);

/**
* Delete the alert rule.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param ruleId Alert rule 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 Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, Context context);
void delete(String resourceGroupName, String workspaceName, String ruleId);
}
Loading

0 comments on commit 7611515

Please sign in to comment.