Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR azure-resourcemanager-security] New API version to Microsoft.Security 2021-11-01 #22962

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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/security/azure-resourcemanager-security/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
## 1.0.0-beta.1 (2021-07-14)

- 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 change: 0 additions & 1 deletion sdk/security/azure-resourcemanager-security/README.md
Original file line number Diff line number Diff line change
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 @@ -6,11 +6,11 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.AdaptiveApplicationControlIssueSummary;
import com.azure.resourcemanager.security.models.ConfigurationStatus;
import com.azure.resourcemanager.security.models.EnforcementMode;
import com.azure.resourcemanager.security.models.Location;
import com.azure.resourcemanager.security.models.PathRecommendation;
import com.azure.resourcemanager.security.models.ProtectionMode;
import com.azure.resourcemanager.security.models.RecommendationStatus;
Expand All @@ -23,7 +23,7 @@
/** The AdaptiveApplicationControlGroup model. */
@JsonFlatten
@Fluent
public class AdaptiveApplicationControlGroupInner extends ProxyResource {
public class AdaptiveApplicationControlGroupInner extends Location {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AdaptiveApplicationControlGroupInner.class);

/*
Expand Down Expand Up @@ -76,12 +76,6 @@ public class AdaptiveApplicationControlGroupInner extends ProxyResource {
@JsonProperty(value = "properties.pathRecommendations")
private List<PathRecommendation> pathRecommendations;

/*
* Location where the resource is stored
*/
@JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
private String location;

/**
* Get the enforcementMode property: The application control policy enforcement/protection mode of the machine
* group.
Expand Down Expand Up @@ -202,21 +196,14 @@ public AdaptiveApplicationControlGroupInner withPathRecommendations(List<PathRec
return this;
}

/**
* Get the location property: Location where the resource is stored.
*
* @return the location value.
*/
public String location() {
return this.location;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
if (protectionMode() != null) {
protectionMode().validate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import com.azure.core.annotation.Immutable;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.ConnectableResource;
import com.azure.resourcemanager.security.models.Location;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
Expand All @@ -17,7 +17,7 @@
/** The resource whose properties describes the allowed traffic between Azure resources. */
@JsonFlatten
@Immutable
public class AllowedConnectionsResourceInner extends ProxyResource {
public class AllowedConnectionsResourceInner extends Location {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AllowedConnectionsResourceInner.class);

/*
Expand All @@ -32,12 +32,6 @@ public class AllowedConnectionsResourceInner extends ProxyResource {
@JsonProperty(value = "properties.connectableResources", access = JsonProperty.Access.WRITE_ONLY)
private List<ConnectableResource> connectableResources;

/*
* Location where the resource is stored
*/
@JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
private String location;

/**
* Get the calculatedDateTime property: The UTC time on which the allowed connections resource was calculated.
*
Expand All @@ -56,21 +50,14 @@ public List<ConnectableResource> connectableResources() {
return this.connectableResources;
}

/**
* Get the location property: Location where the resource is stored.
*
* @return the location value.
*/
public String location() {
return this.location;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
if (connectableResources() != null) {
connectableResources().forEach(e -> e.validate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.Location;
import com.azure.resourcemanager.security.models.SecurityFamily;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The DiscoveredSecuritySolution model. */
@JsonFlatten
@Fluent
public class DiscoveredSecuritySolutionInner extends ProxyResource {
public class DiscoveredSecuritySolutionInner extends Location {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DiscoveredSecuritySolutionInner.class);

/*
Expand All @@ -42,12 +42,6 @@ public class DiscoveredSecuritySolutionInner extends ProxyResource {
@JsonProperty(value = "properties.sku", required = true)
private String sku;

/*
* Location where the resource is stored
*/
@JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
private String location;

/**
* Get the securityFamily property: The security family of the discovered solution.
*
Expand Down Expand Up @@ -128,21 +122,14 @@ public DiscoveredSecuritySolutionInner withSku(String sku) {
return this;
}

/**
* Get the location property: Location where the resource is stored.
*
* @return the location value.
*/
public String location() {
return this.location;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
if (securityFamily() == null) {
throw logger
.logExceptionAsError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
package com.azure.resourcemanager.security.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.AadExternalSecuritySolution;
import com.azure.resourcemanager.security.models.AtaExternalSecuritySolution;
import com.azure.resourcemanager.security.models.CefExternalSecuritySolution;
import com.azure.resourcemanager.security.models.Location;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
Expand All @@ -32,29 +31,16 @@
@JsonSubTypes.Type(name = "AAD", value = AadExternalSecuritySolution.class)
})
@Immutable
public class ExternalSecuritySolutionInner extends ProxyResource {
public class ExternalSecuritySolutionInner extends Location {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ExternalSecuritySolutionInner.class);

/*
* Location where the resource is stored
*/
@JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
private String location;

/**
* Get the location property: Location where the resource is stored.
*
* @return the location value.
*/
public String location() {
return this.location;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.IoTSecurityAggregatedAlertPropertiesTopDevicesListItem;
import com.azure.resourcemanager.security.models.ReportedSeverity;
import com.azure.resourcemanager.security.models.TagsResource;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.LocalDate;
Expand All @@ -19,7 +19,7 @@
/** Security Solution Aggregated Alert information. */
@JsonFlatten
@Fluent
public class IoTSecurityAggregatedAlertInner extends ProxyResource {
public class IoTSecurityAggregatedAlertInner extends TagsResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(IoTSecurityAggregatedAlertInner.class);

/*
Expand Down Expand Up @@ -101,12 +101,6 @@ public class IoTSecurityAggregatedAlertInner extends ProxyResource {
@JsonProperty(value = "properties.topDevicesList", access = JsonProperty.Access.WRITE_ONLY)
private List<IoTSecurityAggregatedAlertPropertiesTopDevicesListItem> topDevicesList;

/*
* Resource tags
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Get the alertType property: Name of the alert type.
*
Expand Down Expand Up @@ -225,23 +219,10 @@ public List<IoTSecurityAggregatedAlertPropertiesTopDevicesListItem> topDevicesLi
return this.topDevicesList;
}

/**
* Get the tags property: Resource tags.
*
* @return the tags value.
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set the tags property: Resource tags.
*
* @param tags the tags value to set.
* @return the IoTSecurityAggregatedAlertInner object itself.
*/
/** {@inheritDoc} */
@Override
public IoTSecurityAggregatedAlertInner withTags(Map<String, String> tags) {
this.tags = tags;
super.withTags(tags);
return this;
}

Expand All @@ -250,7 +231,9 @@ public IoTSecurityAggregatedAlertInner withTags(Map<String, String> tags) {
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
if (topDevicesList() != null) {
topDevicesList().forEach(e -> e.validate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.security.models.ReportedSeverity;
import com.azure.resourcemanager.security.models.TagsResource;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;

/** IoT Security solution recommendation information. */
@JsonFlatten
@Fluent
public class IoTSecurityAggregatedRecommendationInner extends ProxyResource {
public class IoTSecurityAggregatedRecommendationInner extends TagsResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(IoTSecurityAggregatedRecommendationInner.class);

/*
Expand Down Expand Up @@ -79,12 +79,6 @@ public class IoTSecurityAggregatedRecommendationInner extends ProxyResource {
@JsonProperty(value = "properties.logAnalyticsQuery", access = JsonProperty.Access.WRITE_ONLY)
private String logAnalyticsQuery;

/*
* Resource tags
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Get the recommendationName property: Name of the recommendation.
*
Expand Down Expand Up @@ -186,23 +180,10 @@ public String logAnalyticsQuery() {
return this.logAnalyticsQuery;
}

/**
* Get the tags property: Resource tags.
*
* @return the tags value.
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set the tags property: Resource tags.
*
* @param tags the tags value to set.
* @return the IoTSecurityAggregatedRecommendationInner object itself.
*/
/** {@inheritDoc} */
@Override
public IoTSecurityAggregatedRecommendationInner withTags(Map<String, String> tags) {
this.tags = tags;
super.withTags(tags);
return this;
}

Expand All @@ -211,6 +192,8 @@ public IoTSecurityAggregatedRecommendationInner withTags(Map<String, String> tag
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}
Loading