Skip to content

Commit 7611515

Browse files
author
SDKAuto
committed
CodeGen from PR 21267 in Azure/azure-rest-api-specs
Merge 45aa8a666da7fc5e19b662d3dadecfd6ab174b3a into abd5d0016f12f6862cae88ef70f1333e84e20c07
1 parent 980f59e commit 7611515

File tree

692 files changed

+8218
-2793
lines changed

Some content is hidden

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

692 files changed

+8218
-2793
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.5 (Unreleased)
3+
## 1.0.0-beta.1 (2022-10-30)
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-11. 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-09. 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-11. 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.4</version>
35+
<version>1.0.0-beta.5</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 298 additions & 189 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-09.</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-11.</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: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
import com.azure.resourcemanager.securityinsights.implementation.EntityQueryTemplatesImpl;
4242
import com.azure.resourcemanager.securityinsights.implementation.EntityRelationsImpl;
4343
import com.azure.resourcemanager.securityinsights.implementation.FileImportsImpl;
44+
import com.azure.resourcemanager.securityinsights.implementation.GetRecommendationsImpl;
45+
import com.azure.resourcemanager.securityinsights.implementation.GetsImpl;
4446
import com.azure.resourcemanager.securityinsights.implementation.IncidentCommentsImpl;
4547
import com.azure.resourcemanager.securityinsights.implementation.IncidentRelationsImpl;
4648
import com.azure.resourcemanager.securityinsights.implementation.IncidentsImpl;
@@ -57,6 +59,7 @@
5759
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorMetricsImpl;
5860
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsImpl;
5961
import com.azure.resourcemanager.securityinsights.implementation.ThreatIntelligenceIndicatorsOperationsImpl;
62+
import com.azure.resourcemanager.securityinsights.implementation.UpdatesImpl;
6063
import com.azure.resourcemanager.securityinsights.implementation.WatchlistItemsImpl;
6164
import com.azure.resourcemanager.securityinsights.implementation.WatchlistsImpl;
6265
import com.azure.resourcemanager.securityinsights.models.Actions;
@@ -76,6 +79,8 @@
7679
import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplates;
7780
import com.azure.resourcemanager.securityinsights.models.EntityRelations;
7881
import com.azure.resourcemanager.securityinsights.models.FileImports;
82+
import com.azure.resourcemanager.securityinsights.models.GetRecommendations;
83+
import com.azure.resourcemanager.securityinsights.models.Gets;
7984
import com.azure.resourcemanager.securityinsights.models.IncidentComments;
8085
import com.azure.resourcemanager.securityinsights.models.IncidentRelations;
8186
import com.azure.resourcemanager.securityinsights.models.Incidents;
@@ -91,6 +96,7 @@
9196
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorMetrics;
9297
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicators;
9398
import com.azure.resourcemanager.securityinsights.models.ThreatIntelligenceIndicatorsOperations;
99+
import com.azure.resourcemanager.securityinsights.models.Updates;
94100
import com.azure.resourcemanager.securityinsights.models.WatchlistItems;
95101
import com.azure.resourcemanager.securityinsights.models.Watchlists;
96102
import java.time.Duration;
@@ -157,6 +163,12 @@ public final class SecurityInsightsManager {
157163

158164
private SourceControlsOperations sourceControlsOperations;
159165

166+
private GetRecommendations getRecommendations;
167+
168+
private Gets gets;
169+
170+
private Updates updates;
171+
160172
private ThreatIntelligenceIndicators threatIntelligenceIndicators;
161173

162174
private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
@@ -338,7 +350,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
338350
.append("-")
339351
.append("com.azure.resourcemanager.securityinsights")
340352
.append("/")
341-
.append("1.0.0-beta.4");
353+
.append("1.0.0-beta.1");
342354
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
343355
userAgentBuilder
344356
.append(" (")
@@ -710,6 +722,42 @@ public SourceControlsOperations sourceControlsOperations() {
710722
return sourceControlsOperations;
711723
}
712724

725+
/**
726+
* Gets the resource collection API of GetRecommendations.
727+
*
728+
* @return Resource collection API of GetRecommendations.
729+
*/
730+
public GetRecommendations getRecommendations() {
731+
if (this.getRecommendations == null) {
732+
this.getRecommendations = new GetRecommendationsImpl(clientObject.getGetRecommendations(), this);
733+
}
734+
return getRecommendations;
735+
}
736+
737+
/**
738+
* Gets the resource collection API of Gets.
739+
*
740+
* @return Resource collection API of Gets.
741+
*/
742+
public Gets gets() {
743+
if (this.gets == null) {
744+
this.gets = new GetsImpl(clientObject.getGets(), this);
745+
}
746+
return gets;
747+
}
748+
749+
/**
750+
* Gets the resource collection API of Updates.
751+
*
752+
* @return Resource collection API of Updates.
753+
*/
754+
public Updates updates() {
755+
if (this.updates == null) {
756+
this.updates = new UpdatesImpl(clientObject.getUpdates(), this);
757+
}
758+
return updates;
759+
}
760+
713761
/**
714762
* Gets the resource collection API of ThreatIntelligenceIndicators.
715763
*

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,6 @@ public interface ActionsClient {
4444
PagedIterable<ActionResponseInner> listByAlertRule(
4545
String resourceGroupName, String workspaceName, String ruleId, Context context);
4646

47-
/**
48-
* Gets the action of alert rule.
49-
*
50-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
51-
* @param workspaceName The name of the workspace.
52-
* @param ruleId Alert rule ID.
53-
* @param actionId Action ID.
54-
* @throws IllegalArgumentException thrown if parameters fail the validation.
55-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
56-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
57-
* @return the action of alert rule.
58-
*/
59-
@ServiceMethod(returns = ReturnType.SINGLE)
60-
ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId);
61-
6247
/**
6348
* Gets the action of alert rule.
6449
*
@@ -77,21 +62,19 @@ Response<ActionResponseInner> getWithResponse(
7762
String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context);
7863

7964
/**
80-
* Creates or updates the action of alert rule.
65+
* Gets the action of alert rule.
8166
*
8267
* @param resourceGroupName The name of the resource group. The name is case insensitive.
8368
* @param workspaceName The name of the workspace.
8469
* @param ruleId Alert rule ID.
8570
* @param actionId Action ID.
86-
* @param action The action.
8771
* @throws IllegalArgumentException thrown if parameters fail the validation.
8872
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8973
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
90-
* @return action for alert rule.
74+
* @return the action of alert rule.
9175
*/
9276
@ServiceMethod(returns = ReturnType.SINGLE)
93-
ActionResponseInner createOrUpdate(
94-
String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action);
77+
ActionResponseInner get(String resourceGroupName, String workspaceName, String ruleId, String actionId);
9578

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

119102
/**
120-
* Delete the action of alert rule.
103+
* Creates or updates the action of alert rule.
121104
*
122105
* @param resourceGroupName The name of the resource group. The name is case insensitive.
123106
* @param workspaceName The name of the workspace.
124107
* @param ruleId Alert rule ID.
125108
* @param actionId Action ID.
109+
* @param action The action.
126110
* @throws IllegalArgumentException thrown if parameters fail the validation.
127111
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
128112
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
113+
* @return action for alert rule.
129114
*/
130115
@ServiceMethod(returns = ReturnType.SINGLE)
131-
void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId);
116+
ActionResponseInner createOrUpdate(
117+
String resourceGroupName, String workspaceName, String ruleId, String actionId, ActionRequest action);
132118

133119
/**
134120
* Delete the action of alert rule.
@@ -146,4 +132,18 @@ Response<ActionResponseInner> createOrUpdateWithResponse(
146132
@ServiceMethod(returns = ReturnType.SINGLE)
147133
Response<Void> deleteWithResponse(
148134
String resourceGroupName, String workspaceName, String ruleId, String actionId, Context context);
135+
136+
/**
137+
* Delete the action of alert rule.
138+
*
139+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
140+
* @param workspaceName The name of the workspace.
141+
* @param ruleId Alert rule ID.
142+
* @param actionId Action ID.
143+
* @throws IllegalArgumentException thrown if parameters fail the validation.
144+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
145+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
146+
*/
147+
@ServiceMethod(returns = ReturnType.SINGLE)
148+
void delete(String resourceGroupName, String workspaceName, String ruleId, String actionId);
149149
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,27 @@ public interface AlertRuleTemplatesClient {
4646
* @param resourceGroupName The name of the resource group. The name is case insensitive.
4747
* @param workspaceName The name of the workspace.
4848
* @param alertRuleTemplateId Alert rule template ID.
49+
* @param context The context to associate with this operation.
4950
* @throws IllegalArgumentException thrown if parameters fail the validation.
5051
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5152
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
52-
* @return the alert rule template.
53+
* @return the alert rule template along with {@link Response}.
5354
*/
5455
@ServiceMethod(returns = ReturnType.SINGLE)
55-
AlertRuleTemplateInner get(String resourceGroupName, String workspaceName, String alertRuleTemplateId);
56+
Response<AlertRuleTemplateInner> getWithResponse(
57+
String resourceGroupName, String workspaceName, String alertRuleTemplateId, Context context);
5658

5759
/**
5860
* Gets the alert rule template.
5961
*
6062
* @param resourceGroupName The name of the resource group. The name is case insensitive.
6163
* @param workspaceName The name of the workspace.
6264
* @param alertRuleTemplateId Alert rule template ID.
63-
* @param context The context to associate with this operation.
6465
* @throws IllegalArgumentException thrown if parameters fail the validation.
6566
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6667
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
67-
* @return the alert rule template along with {@link Response}.
68+
* @return the alert rule template.
6869
*/
6970
@ServiceMethod(returns = ReturnType.SINGLE)
70-
Response<AlertRuleTemplateInner> getWithResponse(
71-
String resourceGroupName, String workspaceName, String alertRuleTemplateId, Context context);
71+
AlertRuleTemplateInner get(String resourceGroupName, String workspaceName, String alertRuleTemplateId);
7272
}

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,29 @@ public interface AlertRulesClient {
4646
* @param resourceGroupName The name of the resource group. The name is case insensitive.
4747
* @param workspaceName The name of the workspace.
4848
* @param ruleId Alert rule ID.
49+
* @param context The context to associate with this operation.
4950
* @throws IllegalArgumentException thrown if parameters fail the validation.
5051
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
5152
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
52-
* @return the alert rule.
53+
* @return the alert rule along with {@link Response}.
5354
*/
5455
@ServiceMethod(returns = ReturnType.SINGLE)
55-
AlertRuleInner get(String resourceGroupName, String workspaceName, String ruleId);
56+
Response<AlertRuleInner> getWithResponse(
57+
String resourceGroupName, String workspaceName, String ruleId, Context context);
5658

5759
/**
5860
* Gets the alert rule.
5961
*
6062
* @param resourceGroupName The name of the resource group. The name is case insensitive.
6163
* @param workspaceName The name of the workspace.
6264
* @param ruleId Alert rule ID.
63-
* @param context The context to associate with this operation.
6465
* @throws IllegalArgumentException thrown if parameters fail the validation.
6566
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6667
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
67-
* @return the alert rule along with {@link Response}.
68+
* @return the alert rule.
6869
*/
6970
@ServiceMethod(returns = ReturnType.SINGLE)
70-
Response<AlertRuleInner> getWithResponse(
71-
String resourceGroupName, String workspaceName, String ruleId, Context context);
71+
AlertRuleInner get(String resourceGroupName, String workspaceName, String ruleId);
7272

7373
/**
7474
* Creates or updates the alert rule.
@@ -77,14 +77,15 @@ Response<AlertRuleInner> getWithResponse(
7777
* @param workspaceName The name of the workspace.
7878
* @param ruleId Alert rule ID.
7979
* @param alertRule The alert rule.
80+
* @param context The context to associate with this operation.
8081
* @throws IllegalArgumentException thrown if parameters fail the validation.
8182
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8283
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
83-
* @return alert rule.
84+
* @return alert rule along with {@link Response}.
8485
*/
8586
@ServiceMethod(returns = ReturnType.SINGLE)
86-
AlertRuleInner createOrUpdate(
87-
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule);
87+
Response<AlertRuleInner> createOrUpdateWithResponse(
88+
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule, Context context);
8889

8990
/**
9091
* Creates or updates the alert rule.
@@ -93,41 +94,40 @@ AlertRuleInner createOrUpdate(
9394
* @param workspaceName The name of the workspace.
9495
* @param ruleId Alert rule ID.
9596
* @param alertRule The alert rule.
96-
* @param context The context to associate with this operation.
9797
* @throws IllegalArgumentException thrown if parameters fail the validation.
9898
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9999
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
100-
* @return alert rule along with {@link Response}.
100+
* @return alert rule.
101101
*/
102102
@ServiceMethod(returns = ReturnType.SINGLE)
103-
Response<AlertRuleInner> createOrUpdateWithResponse(
104-
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule, Context context);
103+
AlertRuleInner createOrUpdate(
104+
String resourceGroupName, String workspaceName, String ruleId, AlertRuleInner alertRule);
105105

106106
/**
107107
* Delete the alert rule.
108108
*
109109
* @param resourceGroupName The name of the resource group. The name is case insensitive.
110110
* @param workspaceName The name of the workspace.
111111
* @param ruleId Alert rule ID.
112+
* @param context The context to associate with this operation.
112113
* @throws IllegalArgumentException thrown if parameters fail the validation.
113114
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
114115
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
116+
* @return the {@link Response}.
115117
*/
116118
@ServiceMethod(returns = ReturnType.SINGLE)
117-
void delete(String resourceGroupName, String workspaceName, String ruleId);
119+
Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, Context context);
118120

119121
/**
120122
* Delete the alert rule.
121123
*
122124
* @param resourceGroupName The name of the resource group. The name is case insensitive.
123125
* @param workspaceName The name of the workspace.
124126
* @param ruleId Alert rule ID.
125-
* @param context The context to associate with this operation.
126127
* @throws IllegalArgumentException thrown if parameters fail the validation.
127128
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
128129
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
129-
* @return the {@link Response}.
130130
*/
131131
@ServiceMethod(returns = ReturnType.SINGLE)
132-
Response<Void> deleteWithResponse(String resourceGroupName, String workspaceName, String ruleId, Context context);
132+
void delete(String resourceGroupName, String workspaceName, String ruleId);
133133
}

0 commit comments

Comments
 (0)