Skip to content

Commit

Permalink
CodeGen from PR 17924 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Dev securityinsights microsoft.security insights 2021 10 01 (Azure#17924)

* Adds base for updating Microsoft.SecurityInsights from version stable/2021-04-01 to version 2021-10-01

* Updates readme

* Updates API version in new specs and examples

* Add AlertRules to microsoft.security insights 2021 10 01 (Azure#15657)

* Adds base for updating Microsoft.SecurityInsight's AlertRules from version stable/2020-01-01 to version 2021-10-01

* Updates API version in AlertRules specs and examples

* Use common types in AlertRules.json and remove redundant SecurityInsights

* Add AlertRules to readme

* Copy action examples for alert rules

* Add type:object where missing

* Align CloudError with rest of the resources in this version

* Update readme

Co-authored-by: Anat Gilenson <[email protected]>

* Use newest common types to align with rest of Azure (Azure#16130)

* Use newest common types to align with rest of Azure

* Use ErrorResponse instead of CloudError in operations

Co-authored-by: Anat Gilenson <[email protected]>

* Add AlertRules Stable version to 2021-10-01 (Azure#16268)

* Add AlertRules Stable version to 2021-10-01

* Fix missing alignment in common types

* prettier fixes

* move tactics and severity to common

* fix common types file extension

* more prettier fixes

* Add template version field

* prettier

* added version to required fields

* dummy change to trigger checks again

* Add onboarding states to new stable version (Azure#16290)

* Add onboarding states to new stable version

* Update readme.md

* cr fix - remove unused params

* Add missing resources 2021 10 01 (Azure#16666)

* Add missing resources and examples from 2020-01-01

* Update version in added resources and examples

* Use existing common types

* Remove unnesessary SecurityInsights.json

* Update readme

* Use sentinel common types in Incidents and Watchlist

* Extract and common IncidentInfo and IncidentSeverity

* Extract EntityTypes

* Correct double allOf in EntityTypes

* update readme

* Remove eventGroupingSettings and entityMappings from GetAlertRuleTemplateById example.

* rename operations.json

Co-authored-by: Anat Gilenson <[email protected]>

* Fix analytics templates model (Azure#16689)

* add missing properties to scheduled template

* prettier fixes

* restore templates example after merge

* fix templates example after merge and run prettier

* Use CloudError instead of ErrorResponse to align with preview versions and our back-end. (Azure#17472)

* Automation - Stable Version (Azure#17491)

* First

* readMe

* cloudError

* CloudError

* schema

* prettier

* Fix

* test

* fix identifier

* fix description

* fix lable

* fix lable

* ownerInfo

* Fix

* types

* conditionMaxLength

Co-authored-by: Roy Reinhorn <[email protected]>

* Done (Azure#17728)

Co-authored-by: Roy Reinhorn <[email protected]>

* Correct 2021 10 01 (Azure#17830)

* Remove OperationalInsightsResourceProvider parameter in ThreatIntelligence

* Remove OperationalInsightProviderParameter from Watchlist

* Align stable operation names with preview

* Add missing disciminator property in ThreatIntelligence

* Done (Azure#17844)

Co-authored-by: Roy Reinhorn <[email protected]>

* Align enum names with preview (Azure#17831)

* Fix 2021 10 01 validation errors (Azure#17937)

* Add x-ms-identifiers to all arrays

* Add operations_list example

* Add x-ms-identifier in all arrays

* Run prettier

* Fix spelling error

* Add isDataAction to operation schema (Azure#18018)

Co-authored-by: Anat Gilenson <[email protected]>
Co-authored-by: laithhisham <[email protected]>
Co-authored-by: royrein <[email protected]>
Co-authored-by: Roy Reinhorn <[email protected]>
Co-authored-by: Arthur Ning <[email protected]>
  • Loading branch information
6 people committed Feb 28, 2022
1 parent 89d3c3c commit 5d49e3d
Show file tree
Hide file tree
Showing 257 changed files with 5,942 additions and 1,967 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2022-02-28)

- 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-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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-2021-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-securityinsights</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
1,050 changes: 808 additions & 242 deletions sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for SecurityInsights Management</name>
<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-2021-09.</description>
<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-2021-10.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public final class SecurityInsightsManager {

private AutomationRules automationRules;

private Incidents incidents;

private Bookmarks bookmarks;

private BookmarkRelations bookmarkRelations;
Expand All @@ -117,8 +119,6 @@ public final class SecurityInsightsManager {

private DomainWhois domainWhois;

private EntityQueries entityQueries;

private Entities entities;

private EntitiesGetTimelines entitiesGetTimelines;
Expand All @@ -127,14 +127,18 @@ public final class SecurityInsightsManager {

private EntityRelations entityRelations;

private Incidents incidents;
private EntityQueries entityQueries;

private EntityQueryTemplates entityQueryTemplates;

private IncidentComments incidentComments;

private IncidentRelations incidentRelations;

private Metadatas metadatas;

private OfficeConsents officeConsents;

private SentinelOnboardingStates sentinelOnboardingStates;

private ProductSettings productSettings;
Expand All @@ -143,6 +147,12 @@ public final class SecurityInsightsManager {

private SourceControlsOperations sourceControlsOperations;

private ThreatIntelligenceIndicators threatIntelligenceIndicators;

private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;

private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;

private Watchlists watchlists;

private WatchlistItems watchlistItems;
Expand All @@ -151,18 +161,8 @@ public final class SecurityInsightsManager {

private DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirementsOperations;

private ThreatIntelligenceIndicators threatIntelligenceIndicators;

private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;

private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;

private Operations operations;

private OfficeConsents officeConsents;

private EntityQueryTemplates entityQueryTemplates;

private final SecurityInsights clientObject;

private SecurityInsightsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -383,6 +383,14 @@ public AutomationRules automationRules() {
return automationRules;
}

/** @return Resource collection API of Incidents. */
public Incidents incidents() {
if (this.incidents == null) {
this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
}
return incidents;
}

/** @return Resource collection API of Bookmarks. */
public Bookmarks bookmarks() {
if (this.bookmarks == null) {
Expand Down Expand Up @@ -423,14 +431,6 @@ public DomainWhois domainWhois() {
return domainWhois;
}

/** @return Resource collection API of EntityQueries. */
public EntityQueries entityQueries() {
if (this.entityQueries == null) {
this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
}
return entityQueries;
}

/** @return Resource collection API of Entities. */
public Entities entities() {
if (this.entities == null) {
Expand Down Expand Up @@ -463,12 +463,20 @@ public EntityRelations entityRelations() {
return entityRelations;
}

/** @return Resource collection API of Incidents. */
public Incidents incidents() {
if (this.incidents == null) {
this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
/** @return Resource collection API of EntityQueries. */
public EntityQueries entityQueries() {
if (this.entityQueries == null) {
this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
}
return incidents;
return entityQueries;
}

/** @return Resource collection API of EntityQueryTemplates. */
public EntityQueryTemplates entityQueryTemplates() {
if (this.entityQueryTemplates == null) {
this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
}
return entityQueryTemplates;
}

/** @return Resource collection API of IncidentComments. */
Expand All @@ -495,6 +503,14 @@ public Metadatas metadatas() {
return metadatas;
}

/** @return Resource collection API of OfficeConsents. */
public OfficeConsents officeConsents() {
if (this.officeConsents == null) {
this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
}
return officeConsents;
}

/** @return Resource collection API of SentinelOnboardingStates. */
public SentinelOnboardingStates sentinelOnboardingStates() {
if (this.sentinelOnboardingStates == null) {
Expand Down Expand Up @@ -529,6 +545,34 @@ public SourceControlsOperations sourceControlsOperations() {
return sourceControlsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicators. */
public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
if (this.threatIntelligenceIndicators == null) {
this.threatIntelligenceIndicators =
new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
}
return threatIntelligenceIndicators;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
if (this.threatIntelligenceIndicatorsOperations == null) {
this.threatIntelligenceIndicatorsOperations =
new ThreatIntelligenceIndicatorsOperationsImpl(
clientObject.getThreatIntelligenceIndicatorsOperations(), this);
}
return threatIntelligenceIndicatorsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
if (this.threatIntelligenceIndicatorMetrics == null) {
this.threatIntelligenceIndicatorMetrics =
new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
}
return threatIntelligenceIndicatorMetrics;
}

/** @return Resource collection API of Watchlists. */
public Watchlists watchlists() {
if (this.watchlists == null) {
Expand Down Expand Up @@ -563,34 +607,6 @@ public DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirements
return dataConnectorsCheckRequirementsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicators. */
public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
if (this.threatIntelligenceIndicators == null) {
this.threatIntelligenceIndicators =
new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
}
return threatIntelligenceIndicators;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
if (this.threatIntelligenceIndicatorsOperations == null) {
this.threatIntelligenceIndicatorsOperations =
new ThreatIntelligenceIndicatorsOperationsImpl(
clientObject.getThreatIntelligenceIndicatorsOperations(), this);
}
return threatIntelligenceIndicatorsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
if (this.threatIntelligenceIndicatorMetrics == null) {
this.threatIntelligenceIndicatorMetrics =
new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
}
return threatIntelligenceIndicatorMetrics;
}

/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
Expand All @@ -599,22 +615,6 @@ public Operations operations() {
return operations;
}

/** @return Resource collection API of OfficeConsents. */
public OfficeConsents officeConsents() {
if (this.officeConsents == null) {
this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
}
return officeConsents;
}

/** @return Resource collection API of EntityQueryTemplates. */
public EntityQueryTemplates entityQueryTemplates() {
if (this.entityQueryTemplates == null) {
this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
}
return entityQueryTemplates;
}

/**
* @return Wrapped service client SecurityInsights 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 @@ -23,7 +23,7 @@ public interface ActionsClient {
* @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 all actions of alert rule.
* @return all actions of alert rule as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId);
Expand All @@ -38,7 +38,7 @@ public interface ActionsClient {
* @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 all actions of alert rule.
* @return all actions of alert rule as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ActionResponseInner> listByAlertRule(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface AlertRuleTemplatesClient {
* @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 all alert rule templates.
* @return all alert rule templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleTemplateInner> list(String resourceGroupName, String workspaceName);
Expand All @@ -35,7 +35,7 @@ public interface AlertRuleTemplatesClient {
* @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 all alert rule templates.
* @return all alert rule templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleTemplateInner> list(String resourceGroupName, String workspaceName, Context context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface AlertRulesClient {
* @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 all alert rules.
* @return all alert rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleInner> list(String resourceGroupName, String workspaceName);
Expand All @@ -35,7 +35,7 @@ public interface AlertRulesClient {
* @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 all alert rules.
* @return all alert rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleInner> list(String resourceGroupName, String workspaceName, Context context);
Expand Down
Loading

0 comments on commit 5d49e3d

Please sign in to comment.