Skip to content

Commit c74e2b8

Browse files
author
SDKAuto
committed
CodeGen from PR 19903 in Azure/azure-rest-api-specs
Merge dd310d477e8c829309f5d41c8cd1215e7b2ed187 into bd05dd03d03343e1942fd2bc6a6e21946a3e307c
1 parent f4a1528 commit c74e2b8

File tree

175 files changed

+4973
-759
lines changed

Some content is hidden

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

175 files changed

+4973
-759
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.4 (Unreleased)
3+
## 1.0.0-beta.1 (2022-07-22)
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-07. 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-07. 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.3</version>
35+
<version>1.0.0-beta.4</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 370 additions & 207 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-07.</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: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import com.azure.resourcemanager.securityinsights.implementation.OperationsImpl;
5050
import com.azure.resourcemanager.securityinsights.implementation.ProductSettingsImpl;
5151
import com.azure.resourcemanager.securityinsights.implementation.SecurityInsightsBuilder;
52+
import com.azure.resourcemanager.securityinsights.implementation.SecurityMLAnalyticsSettingsImpl;
5253
import com.azure.resourcemanager.securityinsights.implementation.SentinelOnboardingStatesImpl;
5354
import com.azure.resourcemanager.securityinsights.implementation.SourceControlsImpl;
5455
import com.azure.resourcemanager.securityinsights.implementation.SourceControlsOperationsImpl;
@@ -81,6 +82,7 @@
8182
import com.azure.resourcemanager.securityinsights.models.OfficeConsents;
8283
import com.azure.resourcemanager.securityinsights.models.Operations;
8384
import com.azure.resourcemanager.securityinsights.models.ProductSettings;
85+
import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettings;
8486
import com.azure.resourcemanager.securityinsights.models.SentinelOnboardingStates;
8587
import com.azure.resourcemanager.securityinsights.models.SourceControls;
8688
import com.azure.resourcemanager.securityinsights.models.SourceControlsOperations;
@@ -143,6 +145,8 @@ public final class SecurityInsightsManager {
143145

144146
private SentinelOnboardingStates sentinelOnboardingStates;
145147

148+
private SecurityMLAnalyticsSettings securityMLAnalyticsSettings;
149+
146150
private ProductSettings productSettings;
147151

148152
private SourceControls sourceControls;
@@ -330,7 +334,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
330334
.append("-")
331335
.append("com.azure.resourcemanager.securityinsights")
332336
.append("/")
333-
.append("1.0.0-beta.3");
337+
.append("1.0.0-beta.1");
334338
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
335339
userAgentBuilder
336340
.append(" (")
@@ -640,6 +644,19 @@ public SentinelOnboardingStates sentinelOnboardingStates() {
640644
return sentinelOnboardingStates;
641645
}
642646

647+
/**
648+
* Gets the resource collection API of SecurityMLAnalyticsSettings.
649+
*
650+
* @return Resource collection API of SecurityMLAnalyticsSettings.
651+
*/
652+
public SecurityMLAnalyticsSettings securityMLAnalyticsSettings() {
653+
if (this.securityMLAnalyticsSettings == null) {
654+
this.securityMLAnalyticsSettings =
655+
new SecurityMLAnalyticsSettingsImpl(clientObject.getSecurityMLAnalyticsSettings(), this);
656+
}
657+
return securityMLAnalyticsSettings;
658+
}
659+
643660
/**
644661
* Gets the resource collection API of ProductSettings.
645662
*

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.Constant80;
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, Constant80 kind, Context context);
4545

4646
/**
4747
* Gets an entity query.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ public interface SecurityInsights {
191191
*/
192192
SentinelOnboardingStatesClient getSentinelOnboardingStates();
193193

194+
/**
195+
* Gets the SecurityMLAnalyticsSettingsClient object to access its operations.
196+
*
197+
* @return the SecurityMLAnalyticsSettingsClient object.
198+
*/
199+
SecurityMLAnalyticsSettingsClient getSecurityMLAnalyticsSettings();
200+
194201
/**
195202
* Gets the ProductSettingsClient object to access its operations.
196203
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.util.Context;
12+
import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner;
13+
14+
/** An instance of this class provides access to all the operations defined in SecurityMLAnalyticsSettingsClient. */
15+
public interface SecurityMLAnalyticsSettingsClient {
16+
/**
17+
* Gets all Security ML Analytics Settings.
18+
*
19+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
20+
* @param workspaceName The name of the workspace.
21+
* @throws IllegalArgumentException thrown if parameters fail the validation.
22+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
23+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24+
* @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
25+
*/
26+
@ServiceMethod(returns = ReturnType.COLLECTION)
27+
PagedIterable<SecurityMLAnalyticsSettingInner> list(String resourceGroupName, String workspaceName);
28+
29+
/**
30+
* Gets all Security ML Analytics Settings.
31+
*
32+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
33+
* @param workspaceName The name of the workspace.
34+
* @param context The context to associate with this operation.
35+
* @throws IllegalArgumentException thrown if parameters fail the validation.
36+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
37+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38+
* @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}.
39+
*/
40+
@ServiceMethod(returns = ReturnType.COLLECTION)
41+
PagedIterable<SecurityMLAnalyticsSettingInner> list(
42+
String resourceGroupName, String workspaceName, Context context);
43+
44+
/**
45+
* Gets the Security ML Analytics Settings.
46+
*
47+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
48+
* @param workspaceName The name of the workspace.
49+
* @param settingsResourceName Security ML Analytics Settings resource name.
50+
* @throws IllegalArgumentException thrown if parameters fail the validation.
51+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
52+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
53+
* @return the Security ML Analytics Settings.
54+
*/
55+
@ServiceMethod(returns = ReturnType.SINGLE)
56+
SecurityMLAnalyticsSettingInner get(String resourceGroupName, String workspaceName, String settingsResourceName);
57+
58+
/**
59+
* Gets the Security ML Analytics Settings.
60+
*
61+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
62+
* @param workspaceName The name of the workspace.
63+
* @param settingsResourceName Security ML Analytics Settings resource name.
64+
* @param context The context to associate with this operation.
65+
* @throws IllegalArgumentException thrown if parameters fail the validation.
66+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
67+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
68+
* @return the Security ML Analytics Settings along with {@link Response}.
69+
*/
70+
@ServiceMethod(returns = ReturnType.SINGLE)
71+
Response<SecurityMLAnalyticsSettingInner> getWithResponse(
72+
String resourceGroupName, String workspaceName, String settingsResourceName, Context context);
73+
74+
/**
75+
* Creates or updates the Security ML Analytics Settings.
76+
*
77+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
78+
* @param workspaceName The name of the workspace.
79+
* @param settingsResourceName Security ML Analytics Settings resource name.
80+
* @param securityMLAnalyticsSetting The security ML Analytics setting.
81+
* @throws IllegalArgumentException thrown if parameters fail the validation.
82+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
83+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
84+
* @return security ML Analytics Setting.
85+
*/
86+
@ServiceMethod(returns = ReturnType.SINGLE)
87+
SecurityMLAnalyticsSettingInner createOrUpdate(
88+
String resourceGroupName,
89+
String workspaceName,
90+
String settingsResourceName,
91+
SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting);
92+
93+
/**
94+
* Creates or updates the Security ML Analytics Settings.
95+
*
96+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
97+
* @param workspaceName The name of the workspace.
98+
* @param settingsResourceName Security ML Analytics Settings resource name.
99+
* @param securityMLAnalyticsSetting The security ML Analytics setting.
100+
* @param context The context to associate with this operation.
101+
* @throws IllegalArgumentException thrown if parameters fail the validation.
102+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
103+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
104+
* @return security ML Analytics Setting along with {@link Response}.
105+
*/
106+
@ServiceMethod(returns = ReturnType.SINGLE)
107+
Response<SecurityMLAnalyticsSettingInner> createOrUpdateWithResponse(
108+
String resourceGroupName,
109+
String workspaceName,
110+
String settingsResourceName,
111+
SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting,
112+
Context context);
113+
114+
/**
115+
* Delete the Security ML Analytics Settings.
116+
*
117+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
118+
* @param workspaceName The name of the workspace.
119+
* @param settingsResourceName Security ML Analytics Settings resource name.
120+
* @throws IllegalArgumentException thrown if parameters fail the validation.
121+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
122+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
123+
*/
124+
@ServiceMethod(returns = ReturnType.SINGLE)
125+
void delete(String resourceGroupName, String workspaceName, String settingsResourceName);
126+
127+
/**
128+
* Delete the Security ML Analytics Settings.
129+
*
130+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
131+
* @param workspaceName The name of the workspace.
132+
* @param settingsResourceName Security ML Analytics Settings resource name.
133+
* @param context The context to associate with this operation.
134+
* @throws IllegalArgumentException thrown if parameters fail the validation.
135+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
136+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
137+
* @return the {@link Response}.
138+
*/
139+
@ServiceMethod(returns = ReturnType.SINGLE)
140+
Response<Void> deleteWithResponse(
141+
String resourceGroupName, String workspaceName, String settingsResourceName, Context context);
142+
}

0 commit comments

Comments
 (0)