Skip to content

Commit b049b10

Browse files
author
SDKAuto
committed
CodeGen from PR 16433 in Azure/azure-rest-api-specs
Merge 194d2f1d8cdd6f10905102c0199e6c5b504db919 into e81093786c17f18d3bf322970a48cb0bf6967dd5
1 parent b2baa1b commit b049b10

File tree

562 files changed

+23187
-21668
lines changed

Some content is hidden

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

562 files changed

+23187
-21668
lines changed

sdk/security/azure-resourcemanager-security/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2021-10-21)
44

5+
- Azure Resource Manager Security client library for Java. This package contains Microsoft Azure SDK for Security Management SDK. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56

67
## 1.0.0-beta.1 (2021-07-14)
78

sdk/security/azure-resourcemanager-security/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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-security</artifactId>
35-
<version>1.0.0-beta.1</version>
35+
<version>1.0.0-beta.2</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 5258 additions & 248 deletions
Large diffs are not rendered by default.

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java

Lines changed: 38 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -34,28 +34,20 @@
3434
import com.azure.resourcemanager.security.implementation.ComplianceResultsImpl;
3535
import com.azure.resourcemanager.security.implementation.CompliancesImpl;
3636
import com.azure.resourcemanager.security.implementation.ConnectorsImpl;
37+
import com.azure.resourcemanager.security.implementation.CustomAssessmentAutomationsImpl;
38+
import com.azure.resourcemanager.security.implementation.CustomEntityStoreAssignmentsImpl;
3739
import com.azure.resourcemanager.security.implementation.DeviceSecurityGroupsImpl;
38-
import com.azure.resourcemanager.security.implementation.DevicesForHubsImpl;
39-
import com.azure.resourcemanager.security.implementation.DevicesForSubscriptionsImpl;
40-
import com.azure.resourcemanager.security.implementation.DevicesImpl;
4140
import com.azure.resourcemanager.security.implementation.DiscoveredSecuritySolutionsImpl;
4241
import com.azure.resourcemanager.security.implementation.ExternalSecuritySolutionsImpl;
4342
import com.azure.resourcemanager.security.implementation.InformationProtectionPoliciesImpl;
4443
import com.azure.resourcemanager.security.implementation.IngestionSettingsImpl;
45-
import com.azure.resourcemanager.security.implementation.IotAlertTypesImpl;
46-
import com.azure.resourcemanager.security.implementation.IotAlertsImpl;
47-
import com.azure.resourcemanager.security.implementation.IotDefenderSettingsImpl;
48-
import com.azure.resourcemanager.security.implementation.IotRecommendationTypesImpl;
49-
import com.azure.resourcemanager.security.implementation.IotRecommendationsImpl;
5044
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionAnalyticsImpl;
5145
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsAggregatedAlertsImpl;
5246
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsRecommendationsImpl;
5347
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsImpl;
54-
import com.azure.resourcemanager.security.implementation.IotSensorsImpl;
55-
import com.azure.resourcemanager.security.implementation.IotSitesImpl;
5648
import com.azure.resourcemanager.security.implementation.JitNetworkAccessPoliciesImpl;
5749
import com.azure.resourcemanager.security.implementation.LocationsImpl;
58-
import com.azure.resourcemanager.security.implementation.OnPremiseIotSensorsImpl;
50+
import com.azure.resourcemanager.security.implementation.MdeOnboardingsImpl;
5951
import com.azure.resourcemanager.security.implementation.OperationsImpl;
6052
import com.azure.resourcemanager.security.implementation.PricingsImpl;
6153
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceAssessmentsImpl;
@@ -91,28 +83,20 @@
9183
import com.azure.resourcemanager.security.models.ComplianceResults;
9284
import com.azure.resourcemanager.security.models.Compliances;
9385
import com.azure.resourcemanager.security.models.Connectors;
86+
import com.azure.resourcemanager.security.models.CustomAssessmentAutomations;
87+
import com.azure.resourcemanager.security.models.CustomEntityStoreAssignments;
9488
import com.azure.resourcemanager.security.models.DeviceSecurityGroups;
95-
import com.azure.resourcemanager.security.models.Devices;
96-
import com.azure.resourcemanager.security.models.DevicesForHubs;
97-
import com.azure.resourcemanager.security.models.DevicesForSubscriptions;
9889
import com.azure.resourcemanager.security.models.DiscoveredSecuritySolutions;
9990
import com.azure.resourcemanager.security.models.ExternalSecuritySolutions;
10091
import com.azure.resourcemanager.security.models.InformationProtectionPolicies;
10192
import com.azure.resourcemanager.security.models.IngestionSettings;
102-
import com.azure.resourcemanager.security.models.IotAlertTypes;
103-
import com.azure.resourcemanager.security.models.IotAlerts;
104-
import com.azure.resourcemanager.security.models.IotDefenderSettings;
105-
import com.azure.resourcemanager.security.models.IotRecommendationTypes;
106-
import com.azure.resourcemanager.security.models.IotRecommendations;
10793
import com.azure.resourcemanager.security.models.IotSecuritySolutionAnalytics;
10894
import com.azure.resourcemanager.security.models.IotSecuritySolutions;
10995
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsAggregatedAlerts;
11096
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsRecommendations;
111-
import com.azure.resourcemanager.security.models.IotSensors;
112-
import com.azure.resourcemanager.security.models.IotSites;
11397
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicies;
11498
import com.azure.resourcemanager.security.models.Locations;
115-
import com.azure.resourcemanager.security.models.OnPremiseIotSensors;
99+
import com.azure.resourcemanager.security.models.MdeOnboardings;
116100
import com.azure.resourcemanager.security.models.Operations;
117101
import com.azure.resourcemanager.security.models.Pricings;
118102
import com.azure.resourcemanager.security.models.RegulatoryComplianceAssessments;
@@ -142,6 +126,12 @@
142126

143127
/** Entry point to SecurityManager. API spec for Microsoft.Security (Azure Security Center) resource provider. */
144128
public final class SecurityManager {
129+
private MdeOnboardings mdeOnboardings;
130+
131+
private CustomAssessmentAutomations customAssessmentAutomations;
132+
133+
private CustomEntityStoreAssignments customEntityStoreAssignments;
134+
145135
private ComplianceResults complianceResults;
146136

147137
private Pricings pricings;
@@ -224,28 +214,6 @@ public final class SecurityManager {
224214

225215
private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
226216

227-
private IotDefenderSettings iotDefenderSettings;
228-
229-
private IotSensors iotSensors;
230-
231-
private DevicesForSubscriptions devicesForSubscriptions;
232-
233-
private DevicesForHubs devicesForHubs;
234-
235-
private Devices devices;
236-
237-
private OnPremiseIotSensors onPremiseIotSensors;
238-
239-
private IotSites iotSites;
240-
241-
private IotAlerts iotAlerts;
242-
243-
private IotAlertTypes iotAlertTypes;
244-
245-
private IotRecommendations iotRecommendations;
246-
247-
private IotRecommendationTypes iotRecommendationTypes;
248-
249217
private Alerts alerts;
250218

251219
private Settings settings;
@@ -429,6 +397,32 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
429397
}
430398
}
431399

400+
/** @return Resource collection API of MdeOnboardings. */
401+
public MdeOnboardings mdeOnboardings() {
402+
if (this.mdeOnboardings == null) {
403+
this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
404+
}
405+
return mdeOnboardings;
406+
}
407+
408+
/** @return Resource collection API of CustomAssessmentAutomations. */
409+
public CustomAssessmentAutomations customAssessmentAutomations() {
410+
if (this.customAssessmentAutomations == null) {
411+
this.customAssessmentAutomations =
412+
new CustomAssessmentAutomationsImpl(clientObject.getCustomAssessmentAutomations(), this);
413+
}
414+
return customAssessmentAutomations;
415+
}
416+
417+
/** @return Resource collection API of CustomEntityStoreAssignments. */
418+
public CustomEntityStoreAssignments customEntityStoreAssignments() {
419+
if (this.customEntityStoreAssignments == null) {
420+
this.customEntityStoreAssignments =
421+
new CustomEntityStoreAssignmentsImpl(clientObject.getCustomEntityStoreAssignments(), this);
422+
}
423+
return customEntityStoreAssignments;
424+
}
425+
432426
/** @return Resource collection API of ComplianceResults. */
433427
public ComplianceResults complianceResults() {
434428
if (this.complianceResults == null) {
@@ -782,96 +776,6 @@ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselin
782776
return sqlVulnerabilityAssessmentBaselineRules;
783777
}
784778

785-
/** @return Resource collection API of IotDefenderSettings. */
786-
public IotDefenderSettings iotDefenderSettings() {
787-
if (this.iotDefenderSettings == null) {
788-
this.iotDefenderSettings = new IotDefenderSettingsImpl(clientObject.getIotDefenderSettings(), this);
789-
}
790-
return iotDefenderSettings;
791-
}
792-
793-
/** @return Resource collection API of IotSensors. */
794-
public IotSensors iotSensors() {
795-
if (this.iotSensors == null) {
796-
this.iotSensors = new IotSensorsImpl(clientObject.getIotSensors(), this);
797-
}
798-
return iotSensors;
799-
}
800-
801-
/** @return Resource collection API of DevicesForSubscriptions. */
802-
public DevicesForSubscriptions devicesForSubscriptions() {
803-
if (this.devicesForSubscriptions == null) {
804-
this.devicesForSubscriptions =
805-
new DevicesForSubscriptionsImpl(clientObject.getDevicesForSubscriptions(), this);
806-
}
807-
return devicesForSubscriptions;
808-
}
809-
810-
/** @return Resource collection API of DevicesForHubs. */
811-
public DevicesForHubs devicesForHubs() {
812-
if (this.devicesForHubs == null) {
813-
this.devicesForHubs = new DevicesForHubsImpl(clientObject.getDevicesForHubs(), this);
814-
}
815-
return devicesForHubs;
816-
}
817-
818-
/** @return Resource collection API of Devices. */
819-
public Devices devices() {
820-
if (this.devices == null) {
821-
this.devices = new DevicesImpl(clientObject.getDevices(), this);
822-
}
823-
return devices;
824-
}
825-
826-
/** @return Resource collection API of OnPremiseIotSensors. */
827-
public OnPremiseIotSensors onPremiseIotSensors() {
828-
if (this.onPremiseIotSensors == null) {
829-
this.onPremiseIotSensors = new OnPremiseIotSensorsImpl(clientObject.getOnPremiseIotSensors(), this);
830-
}
831-
return onPremiseIotSensors;
832-
}
833-
834-
/** @return Resource collection API of IotSites. */
835-
public IotSites iotSites() {
836-
if (this.iotSites == null) {
837-
this.iotSites = new IotSitesImpl(clientObject.getIotSites(), this);
838-
}
839-
return iotSites;
840-
}
841-
842-
/** @return Resource collection API of IotAlerts. */
843-
public IotAlerts iotAlerts() {
844-
if (this.iotAlerts == null) {
845-
this.iotAlerts = new IotAlertsImpl(clientObject.getIotAlerts(), this);
846-
}
847-
return iotAlerts;
848-
}
849-
850-
/** @return Resource collection API of IotAlertTypes. */
851-
public IotAlertTypes iotAlertTypes() {
852-
if (this.iotAlertTypes == null) {
853-
this.iotAlertTypes = new IotAlertTypesImpl(clientObject.getIotAlertTypes(), this);
854-
}
855-
return iotAlertTypes;
856-
}
857-
858-
/** @return Resource collection API of IotRecommendations. */
859-
public IotRecommendations iotRecommendations() {
860-
if (this.iotRecommendations == null) {
861-
this.iotRecommendations = new IotRecommendationsImpl(clientObject.getIotRecommendations(), this);
862-
}
863-
return iotRecommendations;
864-
}
865-
866-
/** @return Resource collection API of IotRecommendationTypes. */
867-
public IotRecommendationTypes iotRecommendationTypes() {
868-
if (this.iotRecommendationTypes == null) {
869-
this.iotRecommendationTypes =
870-
new IotRecommendationTypesImpl(clientObject.getIotRecommendationTypes(), this);
871-
}
872-
return iotRecommendationTypes;
873-
}
874-
875779
/** @return Resource collection API of Alerts. */
876780
public Alerts alerts() {
877781
if (this.alerts == null) {

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Response<AdaptiveNetworkHardeningInner> getWithResponse(
112112
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
113113
* @return the completion.
114114
*/
115-
@ServiceMethod(returns = ReturnType.SINGLE)
115+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
116116
SyncPoller<PollResult<Void>, Void> beginEnforce(
117117
String resourceGroupName,
118118
String resourceNamespace,
@@ -137,7 +137,7 @@ SyncPoller<PollResult<Void>, Void> beginEnforce(
137137
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
138138
* @return the completion.
139139
*/
140-
@ServiceMethod(returns = ReturnType.SINGLE)
140+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
141141
SyncPoller<PollResult<Void>, Void> beginEnforce(
142142
String resourceGroupName,
143143
String resourceNamespace,

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ Response<Void> updateResourceGroupLevelStateToActivateWithResponse(
384384
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
385385
* @return the completion.
386386
*/
387-
@ServiceMethod(returns = ReturnType.SINGLE)
387+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
388388
SyncPoller<PollResult<Void>, Void> beginSimulate(
389389
String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody);
390390

@@ -400,7 +400,7 @@ SyncPoller<PollResult<Void>, Void> beginSimulate(
400400
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
401401
* @return the completion.
402402
*/
403-
@ServiceMethod(returns = ReturnType.SINGLE)
403+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
404404
SyncPoller<PollResult<Void>, Void> beginSimulate(
405405
String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody, Context context);
406406

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
import com.azure.core.http.rest.PagedIterable;
1010
import com.azure.core.http.rest.Response;
1111
import com.azure.core.util.Context;
12-
import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentInner;
12+
import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentResponseInner;
1313
import com.azure.resourcemanager.security.models.ExpandEnum;
14+
import com.azure.resourcemanager.security.models.SecurityAssessment;
1415

1516
/** An instance of this class provides access to all the operations defined in AssessmentsClient. */
1617
public interface AssessmentsClient {
@@ -25,7 +26,7 @@ public interface AssessmentsClient {
2526
* @return security assessments on all your scanned resources inside a scope.
2627
*/
2728
@ServiceMethod(returns = ReturnType.COLLECTION)
28-
PagedIterable<SecurityAssessmentInner> list(String scope);
29+
PagedIterable<SecurityAssessmentResponseInner> list(String scope);
2930

3031
/**
3132
* Get security assessments on all your scanned resources inside a scope.
@@ -39,7 +40,7 @@ public interface AssessmentsClient {
3940
* @return security assessments on all your scanned resources inside a scope.
4041
*/
4142
@ServiceMethod(returns = ReturnType.COLLECTION)
42-
PagedIterable<SecurityAssessmentInner> list(String scope, Context context);
43+
PagedIterable<SecurityAssessmentResponseInner> list(String scope, Context context);
4344

4445
/**
4546
* Get a security assessment on your scanned resource.
@@ -52,7 +53,7 @@ public interface AssessmentsClient {
5253
* @return a security assessment on your scanned resource.
5354
*/
5455
@ServiceMethod(returns = ReturnType.SINGLE)
55-
SecurityAssessmentInner get(String resourceId, String assessmentName);
56+
SecurityAssessmentResponseInner get(String resourceId, String assessmentName);
5657

5758
/**
5859
* Get a security assessment on your scanned resource.
@@ -67,7 +68,7 @@ public interface AssessmentsClient {
6768
* @return a security assessment on your scanned resource.
6869
*/
6970
@ServiceMethod(returns = ReturnType.SINGLE)
70-
Response<SecurityAssessmentInner> getWithResponse(
71+
Response<SecurityAssessmentResponseInner> getWithResponse(
7172
String resourceId, String assessmentName, ExpandEnum expand, Context context);
7273

7374
/**
@@ -80,11 +81,11 @@ Response<SecurityAssessmentInner> getWithResponse(
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 security assessment on a resource.
84+
* @return security assessment on a resource - response format.
8485
*/
8586
@ServiceMethod(returns = ReturnType.SINGLE)
86-
SecurityAssessmentInner createOrUpdate(
87-
String resourceId, String assessmentName, SecurityAssessmentInner assessment);
87+
SecurityAssessmentResponseInner createOrUpdate(
88+
String resourceId, String assessmentName, SecurityAssessment assessment);
8889

8990
/**
9091
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -97,11 +98,11 @@ SecurityAssessmentInner createOrUpdate(
9798
* @throws IllegalArgumentException thrown if parameters fail the validation.
9899
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
99100
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
100-
* @return security assessment on a resource.
101+
* @return security assessment on a resource - response format.
101102
*/
102103
@ServiceMethod(returns = ReturnType.SINGLE)
103-
Response<SecurityAssessmentInner> createOrUpdateWithResponse(
104-
String resourceId, String assessmentName, SecurityAssessmentInner assessment, Context context);
104+
Response<SecurityAssessmentResponseInner> createOrUpdateWithResponse(
105+
String resourceId, String assessmentName, SecurityAssessment assessment, Context context);
105106

106107
/**
107108
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be

0 commit comments

Comments
 (0)