Skip to content

Commit

Permalink
CodeGen from PR 16549 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 0b9dedab4de7e652db1944e36bf5f482e7eb9a91 into 99171fc262cf5a72d939a5273406c24f745836d3
  • Loading branch information
SDKAuto committed Oct 26, 2021
1 parent c3d8867 commit 48bfc81
Show file tree
Hide file tree
Showing 593 changed files with 27,449 additions and 21,606 deletions.
3 changes: 2 additions & 1 deletion sdk/security/azure-resourcemanager-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-10-26)

- 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).

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

Expand Down
2 changes: 1 addition & 1 deletion sdk/security/azure-resourcemanager-security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-security</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
5,711 changes: 5,463 additions & 248 deletions sdk/security/azure-resourcemanager-security/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,20 @@
import com.azure.resourcemanager.security.implementation.ComplianceResultsImpl;
import com.azure.resourcemanager.security.implementation.CompliancesImpl;
import com.azure.resourcemanager.security.implementation.ConnectorsImpl;
import com.azure.resourcemanager.security.implementation.CustomAssessmentAutomationsImpl;
import com.azure.resourcemanager.security.implementation.CustomEntityStoreAssignmentsImpl;
import com.azure.resourcemanager.security.implementation.DeviceSecurityGroupsImpl;
import com.azure.resourcemanager.security.implementation.DevicesForHubsImpl;
import com.azure.resourcemanager.security.implementation.DevicesForSubscriptionsImpl;
import com.azure.resourcemanager.security.implementation.DevicesImpl;
import com.azure.resourcemanager.security.implementation.DiscoveredSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.ExternalSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.InformationProtectionPoliciesImpl;
import com.azure.resourcemanager.security.implementation.IngestionSettingsImpl;
import com.azure.resourcemanager.security.implementation.IotAlertTypesImpl;
import com.azure.resourcemanager.security.implementation.IotAlertsImpl;
import com.azure.resourcemanager.security.implementation.IotDefenderSettingsImpl;
import com.azure.resourcemanager.security.implementation.IotRecommendationTypesImpl;
import com.azure.resourcemanager.security.implementation.IotRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionAnalyticsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsAggregatedAlertsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.IotSensorsImpl;
import com.azure.resourcemanager.security.implementation.IotSitesImpl;
import com.azure.resourcemanager.security.implementation.JitNetworkAccessPoliciesImpl;
import com.azure.resourcemanager.security.implementation.LocationsImpl;
import com.azure.resourcemanager.security.implementation.OnPremiseIotSensorsImpl;
import com.azure.resourcemanager.security.implementation.MdeOnboardingsImpl;
import com.azure.resourcemanager.security.implementation.OperationsImpl;
import com.azure.resourcemanager.security.implementation.PricingsImpl;
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceAssessmentsImpl;
Expand All @@ -65,6 +57,7 @@
import com.azure.resourcemanager.security.implementation.SecureScoreControlsImpl;
import com.azure.resourcemanager.security.implementation.SecureScoresImpl;
import com.azure.resourcemanager.security.implementation.SecurityCenterBuilder;
import com.azure.resourcemanager.security.implementation.SecurityConnectorsImpl;
import com.azure.resourcemanager.security.implementation.SecurityContactsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsReferenceDatasImpl;
Expand All @@ -91,28 +84,20 @@
import com.azure.resourcemanager.security.models.ComplianceResults;
import com.azure.resourcemanager.security.models.Compliances;
import com.azure.resourcemanager.security.models.Connectors;
import com.azure.resourcemanager.security.models.CustomAssessmentAutomations;
import com.azure.resourcemanager.security.models.CustomEntityStoreAssignments;
import com.azure.resourcemanager.security.models.DeviceSecurityGroups;
import com.azure.resourcemanager.security.models.Devices;
import com.azure.resourcemanager.security.models.DevicesForHubs;
import com.azure.resourcemanager.security.models.DevicesForSubscriptions;
import com.azure.resourcemanager.security.models.DiscoveredSecuritySolutions;
import com.azure.resourcemanager.security.models.ExternalSecuritySolutions;
import com.azure.resourcemanager.security.models.InformationProtectionPolicies;
import com.azure.resourcemanager.security.models.IngestionSettings;
import com.azure.resourcemanager.security.models.IotAlertTypes;
import com.azure.resourcemanager.security.models.IotAlerts;
import com.azure.resourcemanager.security.models.IotDefenderSettings;
import com.azure.resourcemanager.security.models.IotRecommendationTypes;
import com.azure.resourcemanager.security.models.IotRecommendations;
import com.azure.resourcemanager.security.models.IotSecuritySolutionAnalytics;
import com.azure.resourcemanager.security.models.IotSecuritySolutions;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsAggregatedAlerts;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsRecommendations;
import com.azure.resourcemanager.security.models.IotSensors;
import com.azure.resourcemanager.security.models.IotSites;
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicies;
import com.azure.resourcemanager.security.models.Locations;
import com.azure.resourcemanager.security.models.OnPremiseIotSensors;
import com.azure.resourcemanager.security.models.MdeOnboardings;
import com.azure.resourcemanager.security.models.Operations;
import com.azure.resourcemanager.security.models.Pricings;
import com.azure.resourcemanager.security.models.RegulatoryComplianceAssessments;
Expand All @@ -121,6 +106,7 @@
import com.azure.resourcemanager.security.models.SecureScoreControlDefinitions;
import com.azure.resourcemanager.security.models.SecureScoreControls;
import com.azure.resourcemanager.security.models.SecureScores;
import com.azure.resourcemanager.security.models.SecurityConnectors;
import com.azure.resourcemanager.security.models.SecurityContacts;
import com.azure.resourcemanager.security.models.SecuritySolutions;
import com.azure.resourcemanager.security.models.SecuritySolutionsReferenceDatas;
Expand All @@ -142,6 +128,12 @@

/** Entry point to SecurityManager. API spec for Microsoft.Security (Azure Security Center) resource provider. */
public final class SecurityManager {
private MdeOnboardings mdeOnboardings;

private CustomAssessmentAutomations customAssessmentAutomations;

private CustomEntityStoreAssignments customEntityStoreAssignments;

private ComplianceResults complianceResults;

private Pricings pricings;
Expand Down Expand Up @@ -224,28 +216,6 @@ public final class SecurityManager {

private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;

private IotDefenderSettings iotDefenderSettings;

private IotSensors iotSensors;

private DevicesForSubscriptions devicesForSubscriptions;

private DevicesForHubs devicesForHubs;

private Devices devices;

private OnPremiseIotSensors onPremiseIotSensors;

private IotSites iotSites;

private IotAlerts iotAlerts;

private IotAlertTypes iotAlertTypes;

private IotRecommendations iotRecommendations;

private IotRecommendationTypes iotRecommendationTypes;

private Alerts alerts;

private Settings settings;
Expand All @@ -254,6 +224,8 @@ public final class SecurityManager {

private SoftwareInventories softwareInventories;

private SecurityConnectors securityConnectors;

private final SecurityCenter clientObject;

private SecurityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -429,6 +401,32 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
}
}

/** @return Resource collection API of MdeOnboardings. */
public MdeOnboardings mdeOnboardings() {
if (this.mdeOnboardings == null) {
this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
}
return mdeOnboardings;
}

/** @return Resource collection API of CustomAssessmentAutomations. */
public CustomAssessmentAutomations customAssessmentAutomations() {
if (this.customAssessmentAutomations == null) {
this.customAssessmentAutomations =
new CustomAssessmentAutomationsImpl(clientObject.getCustomAssessmentAutomations(), this);
}
return customAssessmentAutomations;
}

/** @return Resource collection API of CustomEntityStoreAssignments. */
public CustomEntityStoreAssignments customEntityStoreAssignments() {
if (this.customEntityStoreAssignments == null) {
this.customEntityStoreAssignments =
new CustomEntityStoreAssignmentsImpl(clientObject.getCustomEntityStoreAssignments(), this);
}
return customEntityStoreAssignments;
}

/** @return Resource collection API of ComplianceResults. */
public ComplianceResults complianceResults() {
if (this.complianceResults == null) {
Expand Down Expand Up @@ -782,96 +780,6 @@ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselin
return sqlVulnerabilityAssessmentBaselineRules;
}

/** @return Resource collection API of IotDefenderSettings. */
public IotDefenderSettings iotDefenderSettings() {
if (this.iotDefenderSettings == null) {
this.iotDefenderSettings = new IotDefenderSettingsImpl(clientObject.getIotDefenderSettings(), this);
}
return iotDefenderSettings;
}

/** @return Resource collection API of IotSensors. */
public IotSensors iotSensors() {
if (this.iotSensors == null) {
this.iotSensors = new IotSensorsImpl(clientObject.getIotSensors(), this);
}
return iotSensors;
}

/** @return Resource collection API of DevicesForSubscriptions. */
public DevicesForSubscriptions devicesForSubscriptions() {
if (this.devicesForSubscriptions == null) {
this.devicesForSubscriptions =
new DevicesForSubscriptionsImpl(clientObject.getDevicesForSubscriptions(), this);
}
return devicesForSubscriptions;
}

/** @return Resource collection API of DevicesForHubs. */
public DevicesForHubs devicesForHubs() {
if (this.devicesForHubs == null) {
this.devicesForHubs = new DevicesForHubsImpl(clientObject.getDevicesForHubs(), this);
}
return devicesForHubs;
}

/** @return Resource collection API of Devices. */
public Devices devices() {
if (this.devices == null) {
this.devices = new DevicesImpl(clientObject.getDevices(), this);
}
return devices;
}

/** @return Resource collection API of OnPremiseIotSensors. */
public OnPremiseIotSensors onPremiseIotSensors() {
if (this.onPremiseIotSensors == null) {
this.onPremiseIotSensors = new OnPremiseIotSensorsImpl(clientObject.getOnPremiseIotSensors(), this);
}
return onPremiseIotSensors;
}

/** @return Resource collection API of IotSites. */
public IotSites iotSites() {
if (this.iotSites == null) {
this.iotSites = new IotSitesImpl(clientObject.getIotSites(), this);
}
return iotSites;
}

/** @return Resource collection API of IotAlerts. */
public IotAlerts iotAlerts() {
if (this.iotAlerts == null) {
this.iotAlerts = new IotAlertsImpl(clientObject.getIotAlerts(), this);
}
return iotAlerts;
}

/** @return Resource collection API of IotAlertTypes. */
public IotAlertTypes iotAlertTypes() {
if (this.iotAlertTypes == null) {
this.iotAlertTypes = new IotAlertTypesImpl(clientObject.getIotAlertTypes(), this);
}
return iotAlertTypes;
}

/** @return Resource collection API of IotRecommendations. */
public IotRecommendations iotRecommendations() {
if (this.iotRecommendations == null) {
this.iotRecommendations = new IotRecommendationsImpl(clientObject.getIotRecommendations(), this);
}
return iotRecommendations;
}

/** @return Resource collection API of IotRecommendationTypes. */
public IotRecommendationTypes iotRecommendationTypes() {
if (this.iotRecommendationTypes == null) {
this.iotRecommendationTypes =
new IotRecommendationTypesImpl(clientObject.getIotRecommendationTypes(), this);
}
return iotRecommendationTypes;
}

/** @return Resource collection API of Alerts. */
public Alerts alerts() {
if (this.alerts == null) {
Expand Down Expand Up @@ -904,6 +812,14 @@ public SoftwareInventories softwareInventories() {
return softwareInventories;
}

/** @return Resource collection API of SecurityConnectors. */
public SecurityConnectors securityConnectors() {
if (this.securityConnectors == null) {
this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
}
return securityConnectors;
}

/**
* @return Wrapped service client SecurityCenter providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Response<AdaptiveNetworkHardeningInner> getWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginEnforce(
String resourceGroupName,
String resourceNamespace,
Expand All @@ -137,7 +137,7 @@ SyncPoller<PollResult<Void>, Void> beginEnforce(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginEnforce(
String resourceGroupName,
String resourceNamespace,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Response<Void> updateResourceGroupLevelStateToActivateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the completion.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginSimulate(
String ascLocation, AlertSimulatorRequestBody alertSimulatorRequestBody);

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

Expand Down
Loading

0 comments on commit 48bfc81

Please sign in to comment.