Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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-08-19)

- 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
3 changes: 1 addition & 2 deletions 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 Expand Up @@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/security/azure-resourcemanager-security/SAMPLE.md)


## Troubleshooting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,16 @@
import com.azure.resourcemanager.security.implementation.CompliancesImpl;
import com.azure.resourcemanager.security.implementation.ConnectorsImpl;
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.OperationsImpl;
import com.azure.resourcemanager.security.implementation.PricingsImpl;
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceAssessmentsImpl;
Expand Down Expand Up @@ -92,27 +81,16 @@
import com.azure.resourcemanager.security.models.Compliances;
import com.azure.resourcemanager.security.models.Connectors;
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.Operations;
import com.azure.resourcemanager.security.models.Pricings;
import com.azure.resourcemanager.security.models.RegulatoryComplianceAssessments;
Expand Down Expand Up @@ -224,28 +202,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 Down Expand Up @@ -782,96 +738,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
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentInner;
import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentResponseInner;
import com.azure.resourcemanager.security.models.ExpandEnum;
import com.azure.resourcemanager.security.models.SecurityAssessment;

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

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

/**
* Get a security assessment on your scanned resource.
Expand All @@ -52,7 +53,7 @@ public interface AssessmentsClient {
* @return a security assessment on your scanned resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentInner get(String resourceId, String assessmentName);
SecurityAssessmentResponseInner get(String resourceId, String assessmentName);

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

/**
Expand All @@ -80,11 +81,11 @@ Response<SecurityAssessmentInner> getWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return security assessment on a resource.
* @return security assessment on a resource - response format.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentInner createOrUpdate(
String resourceId, String assessmentName, SecurityAssessmentInner assessment);
SecurityAssessmentResponseInner createOrUpdate(
String resourceId, String assessmentName, SecurityAssessment assessment);

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

/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataInner;
import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataResponseInner;

/** An instance of this class provides access to all the operations defined in AssessmentsMetadatasClient. */
public interface AssessmentsMetadatasClient {
Expand All @@ -21,7 +21,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SecurityAssessmentMetadataInner> list();
PagedIterable<SecurityAssessmentMetadataResponseInner> list();

/**
* Get metadata information on all assessment types.
Expand All @@ -33,7 +33,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SecurityAssessmentMetadataInner> list(Context context);
PagedIterable<SecurityAssessmentMetadataResponseInner> list(Context context);

/**
* Get metadata information on an assessment type.
Expand All @@ -45,7 +45,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentMetadataInner get(String assessmentMetadataName);
SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);

/**
* Get metadata information on an assessment type.
Expand All @@ -58,7 +58,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SecurityAssessmentMetadataInner> getWithResponse(String assessmentMetadataName, Context context);
Response<SecurityAssessmentMetadataResponseInner> getWithResponse(String assessmentMetadataName, Context context);

/**
* Get metadata information on all assessment types in a specific subscription.
Expand All @@ -68,7 +68,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SecurityAssessmentMetadataInner> listBySubscription();
PagedIterable<SecurityAssessmentMetadataResponseInner> listBySubscription();

/**
* Get metadata information on all assessment types in a specific subscription.
Expand All @@ -80,7 +80,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on all assessment types in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<SecurityAssessmentMetadataInner> listBySubscription(Context context);
PagedIterable<SecurityAssessmentMetadataResponseInner> listBySubscription(Context context);

/**
* Get metadata information on an assessment type in a specific subscription.
Expand All @@ -92,7 +92,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentMetadataInner getInSubscription(String assessmentMetadataName);
SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);

/**
* Get metadata information on an assessment type in a specific subscription.
Expand All @@ -105,7 +105,7 @@ public interface AssessmentsMetadatasClient {
* @return metadata information on an assessment type in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SecurityAssessmentMetadataInner> getInSubscriptionWithResponse(
Response<SecurityAssessmentMetadataResponseInner> getInSubscriptionWithResponse(
String assessmentMetadataName, Context context);

/**
Expand All @@ -116,11 +116,11 @@ Response<SecurityAssessmentMetadataInner> getInSubscriptionWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return security assessment metadata.
* @return security assessment metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentMetadataInner createInSubscription(
String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata);
SecurityAssessmentMetadataResponseInner createInSubscription(
String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata);

/**
* Create metadata information on an assessment type in a specific subscription.
Expand All @@ -131,11 +131,11 @@ SecurityAssessmentMetadataInner createInSubscription(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return security assessment metadata.
* @return security assessment metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SecurityAssessmentMetadataInner> createInSubscriptionWithResponse(
String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata, Context context);
Response<SecurityAssessmentMetadataResponseInner> createInSubscriptionWithResponse(
String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);

/**
* Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
Expand Down
Loading