Skip to content

Commit 973fc55

Browse files
author
SDKAuto
committed
CodeGen from PR 19925 in Azure/azure-rest-api-specs
Merge 2dcedfa2ca31b9b84859b8a011b9eda846824731 into c34f3432002f53b5a8b0a0da5a975974007be152
1 parent 5244a0e commit 973fc55

File tree

259 files changed

+8486
-1053
lines changed

Some content is hidden

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

259 files changed

+8486
-1053
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-08-10)
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-08. 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-08. 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: 477 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-08.</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: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import com.azure.resourcemanager.securityinsights.implementation.EntityQueriesImpl;
4141
import com.azure.resourcemanager.securityinsights.implementation.EntityQueryTemplatesImpl;
4242
import com.azure.resourcemanager.securityinsights.implementation.EntityRelationsImpl;
43+
import com.azure.resourcemanager.securityinsights.implementation.FileImportsImpl;
4344
import com.azure.resourcemanager.securityinsights.implementation.IncidentCommentsImpl;
4445
import com.azure.resourcemanager.securityinsights.implementation.IncidentRelationsImpl;
4546
import com.azure.resourcemanager.securityinsights.implementation.IncidentsImpl;
@@ -49,6 +50,7 @@
4950
import com.azure.resourcemanager.securityinsights.implementation.OperationsImpl;
5051
import com.azure.resourcemanager.securityinsights.implementation.ProductSettingsImpl;
5152
import com.azure.resourcemanager.securityinsights.implementation.SecurityInsightsBuilder;
53+
import com.azure.resourcemanager.securityinsights.implementation.SecurityMLAnalyticsSettingsImpl;
5254
import com.azure.resourcemanager.securityinsights.implementation.SentinelOnboardingStatesImpl;
5355
import com.azure.resourcemanager.securityinsights.implementation.SourceControlsImpl;
5456
import com.azure.resourcemanager.securityinsights.implementation.SourceControlsOperationsImpl;
@@ -73,6 +75,7 @@
7375
import com.azure.resourcemanager.securityinsights.models.EntityQueries;
7476
import com.azure.resourcemanager.securityinsights.models.EntityQueryTemplates;
7577
import com.azure.resourcemanager.securityinsights.models.EntityRelations;
78+
import com.azure.resourcemanager.securityinsights.models.FileImports;
7679
import com.azure.resourcemanager.securityinsights.models.IncidentComments;
7780
import com.azure.resourcemanager.securityinsights.models.IncidentRelations;
7881
import com.azure.resourcemanager.securityinsights.models.Incidents;
@@ -81,6 +84,7 @@
8184
import com.azure.resourcemanager.securityinsights.models.OfficeConsents;
8285
import com.azure.resourcemanager.securityinsights.models.Operations;
8386
import com.azure.resourcemanager.securityinsights.models.ProductSettings;
87+
import com.azure.resourcemanager.securityinsights.models.SecurityMLAnalyticsSettings;
8488
import com.azure.resourcemanager.securityinsights.models.SentinelOnboardingStates;
8589
import com.azure.resourcemanager.securityinsights.models.SourceControls;
8690
import com.azure.resourcemanager.securityinsights.models.SourceControlsOperations;
@@ -133,6 +137,8 @@ public final class SecurityInsightsManager {
133137

134138
private EntityQueryTemplates entityQueryTemplates;
135139

140+
private FileImports fileImports;
141+
136142
private IncidentComments incidentComments;
137143

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

144150
private SentinelOnboardingStates sentinelOnboardingStates;
145151

152+
private SecurityMLAnalyticsSettings securityMLAnalyticsSettings;
153+
146154
private ProductSettings productSettings;
147155

148156
private SourceControls sourceControls;
@@ -330,7 +338,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
330338
.append("-")
331339
.append("com.azure.resourcemanager.securityinsights")
332340
.append("/")
333-
.append("1.0.0-beta.3");
341+
.append("1.0.0-beta.1");
334342
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
335343
userAgentBuilder
336344
.append(" (")
@@ -579,6 +587,18 @@ public EntityQueryTemplates entityQueryTemplates() {
579587
return entityQueryTemplates;
580588
}
581589

590+
/**
591+
* Gets the resource collection API of FileImports. It manages FileImport.
592+
*
593+
* @return Resource collection API of FileImports.
594+
*/
595+
public FileImports fileImports() {
596+
if (this.fileImports == null) {
597+
this.fileImports = new FileImportsImpl(clientObject.getFileImports(), this);
598+
}
599+
return fileImports;
600+
}
601+
582602
/**
583603
* Gets the resource collection API of IncidentComments. It manages IncidentComment.
584604
*
@@ -640,6 +660,19 @@ public SentinelOnboardingStates sentinelOnboardingStates() {
640660
return sentinelOnboardingStates;
641661
}
642662

663+
/**
664+
* Gets the resource collection API of SecurityMLAnalyticsSettings.
665+
*
666+
* @return Resource collection API of SecurityMLAnalyticsSettings.
667+
*/
668+
public SecurityMLAnalyticsSettings securityMLAnalyticsSettings() {
669+
if (this.securityMLAnalyticsSettings == null) {
670+
this.securityMLAnalyticsSettings =
671+
new SecurityMLAnalyticsSettingsImpl(clientObject.getSecurityMLAnalyticsSettings(), this);
672+
}
673+
return securityMLAnalyticsSettings;
674+
}
675+
643676
/**
644677
* Gets the resource collection API of ProductSettings.
645678
*

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

4646
/**
4747
* Gets an entity query.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
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.management.polling.PollResult;
12+
import com.azure.core.util.Context;
13+
import com.azure.core.util.polling.SyncPoller;
14+
import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner;
15+
16+
/** An instance of this class provides access to all the operations defined in FileImportsClient. */
17+
public interface FileImportsClient {
18+
/**
19+
* Gets all file imports.
20+
*
21+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
22+
* @param workspaceName The name of the workspace.
23+
* @throws IllegalArgumentException thrown if parameters fail the validation.
24+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
25+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26+
* @return all file imports as paginated response with {@link PagedIterable}.
27+
*/
28+
@ServiceMethod(returns = ReturnType.COLLECTION)
29+
PagedIterable<FileImportInner> list(String resourceGroupName, String workspaceName);
30+
31+
/**
32+
* Gets all file imports.
33+
*
34+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
35+
* @param workspaceName The name of the workspace.
36+
* @param filter Filters the results, based on a Boolean condition. Optional.
37+
* @param orderby Sorts the results. Optional.
38+
* @param top Returns only the first n results. Optional.
39+
* @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response
40+
* contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that
41+
* specifies a starting point to use for subsequent calls. Optional.
42+
* @param context The context to associate with this operation.
43+
* @throws IllegalArgumentException thrown if parameters fail the validation.
44+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
45+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
46+
* @return all file imports as paginated response with {@link PagedIterable}.
47+
*/
48+
@ServiceMethod(returns = ReturnType.COLLECTION)
49+
PagedIterable<FileImportInner> list(
50+
String resourceGroupName,
51+
String workspaceName,
52+
String filter,
53+
String orderby,
54+
Integer top,
55+
String skipToken,
56+
Context context);
57+
58+
/**
59+
* Gets a file import.
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 fileImportId File import ID.
64+
* @throws IllegalArgumentException thrown if parameters fail the validation.
65+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
66+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
67+
* @return a file import.
68+
*/
69+
@ServiceMethod(returns = ReturnType.SINGLE)
70+
FileImportInner get(String resourceGroupName, String workspaceName, String fileImportId);
71+
72+
/**
73+
* Gets a file import.
74+
*
75+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
76+
* @param workspaceName The name of the workspace.
77+
* @param fileImportId File import ID.
78+
* @param context The context to associate with this operation.
79+
* @throws IllegalArgumentException thrown if parameters fail the validation.
80+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
81+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
82+
* @return a file import along with {@link Response}.
83+
*/
84+
@ServiceMethod(returns = ReturnType.SINGLE)
85+
Response<FileImportInner> getWithResponse(
86+
String resourceGroupName, String workspaceName, String fileImportId, Context context);
87+
88+
/**
89+
* Creates the file import.
90+
*
91+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
92+
* @param workspaceName The name of the workspace.
93+
* @param fileImportId File import ID.
94+
* @param fileImport The file import.
95+
* @throws IllegalArgumentException thrown if parameters fail the validation.
96+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
97+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
98+
* @return represents a file import in Azure Security Insights.
99+
*/
100+
@ServiceMethod(returns = ReturnType.SINGLE)
101+
FileImportInner create(
102+
String resourceGroupName, String workspaceName, String fileImportId, FileImportInner fileImport);
103+
104+
/**
105+
* Creates the file import.
106+
*
107+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
108+
* @param workspaceName The name of the workspace.
109+
* @param fileImportId File import ID.
110+
* @param fileImport The file import.
111+
* @param context The context to associate with this operation.
112+
* @throws IllegalArgumentException thrown if parameters fail the validation.
113+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
114+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
115+
* @return represents a file import in Azure Security Insights along with {@link Response}.
116+
*/
117+
@ServiceMethod(returns = ReturnType.SINGLE)
118+
Response<FileImportInner> createWithResponse(
119+
String resourceGroupName,
120+
String workspaceName,
121+
String fileImportId,
122+
FileImportInner fileImport,
123+
Context context);
124+
125+
/**
126+
* Delete the file import.
127+
*
128+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
129+
* @param workspaceName The name of the workspace.
130+
* @param fileImportId File import ID.
131+
* @throws IllegalArgumentException thrown if parameters fail the validation.
132+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
133+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
134+
* @return the {@link SyncPoller} for polling of represents a file import in Azure Security Insights.
135+
*/
136+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
137+
SyncPoller<PollResult<FileImportInner>, FileImportInner> beginDelete(
138+
String resourceGroupName, String workspaceName, String fileImportId);
139+
140+
/**
141+
* Delete the file import.
142+
*
143+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
144+
* @param workspaceName The name of the workspace.
145+
* @param fileImportId File import ID.
146+
* @param context The context to associate with this operation.
147+
* @throws IllegalArgumentException thrown if parameters fail the validation.
148+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
149+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
150+
* @return the {@link SyncPoller} for polling of represents a file import in Azure Security Insights.
151+
*/
152+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
153+
SyncPoller<PollResult<FileImportInner>, FileImportInner> beginDelete(
154+
String resourceGroupName, String workspaceName, String fileImportId, Context context);
155+
156+
/**
157+
* Delete the file import.
158+
*
159+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
160+
* @param workspaceName The name of the workspace.
161+
* @param fileImportId File import ID.
162+
* @throws IllegalArgumentException thrown if parameters fail the validation.
163+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
164+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
165+
* @return represents a file import in Azure Security Insights.
166+
*/
167+
@ServiceMethod(returns = ReturnType.SINGLE)
168+
FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId);
169+
170+
/**
171+
* Delete the file import.
172+
*
173+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
174+
* @param workspaceName The name of the workspace.
175+
* @param fileImportId File import ID.
176+
* @param context The context to associate with this operation.
177+
* @throws IllegalArgumentException thrown if parameters fail the validation.
178+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
179+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
180+
* @return represents a file import in Azure Security Insights.
181+
*/
182+
@ServiceMethod(returns = ReturnType.SINGLE)
183+
FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId, Context context);
184+
}

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ public interface SecurityInsights {
156156
*/
157157
EntityQueryTemplatesClient getEntityQueryTemplates();
158158

159+
/**
160+
* Gets the FileImportsClient object to access its operations.
161+
*
162+
* @return the FileImportsClient object.
163+
*/
164+
FileImportsClient getFileImports();
165+
159166
/**
160167
* Gets the IncidentCommentsClient object to access its operations.
161168
*
@@ -191,6 +198,13 @@ public interface SecurityInsights {
191198
*/
192199
SentinelOnboardingStatesClient getSentinelOnboardingStates();
193200

201+
/**
202+
* Gets the SecurityMLAnalyticsSettingsClient object to access its operations.
203+
*
204+
* @return the SecurityMLAnalyticsSettingsClient object.
205+
*/
206+
SecurityMLAnalyticsSettingsClient getSecurityMLAnalyticsSettings();
207+
194208
/**
195209
* Gets the ProductSettingsClient object to access its operations.
196210
*

0 commit comments

Comments
 (0)