Skip to content

Commit 5f46206

Browse files
author
SDKAuto
committed
CodeGen from PR 17931 in Azure/azure-rest-api-specs
Merge f2dd8d243e0f48d8a4fb81e25b38047d7d474d16 into 7f09862aa74e465ef4a2c971f1ea428d0baf8513
1 parent 85817f5 commit 5f46206

File tree

281 files changed

+9838
-2853
lines changed

Some content is hidden

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

281 files changed

+9838
-2853
lines changed

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

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

3-
## 1.0.0-beta.2 (Unreleased)
3+
## 1.0.0-beta.1 (2022-03-01)
4+
5+
- 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-2022-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager SecurityInsights client library for Java.
44

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

77
## We'd love to hear your feedback
88

@@ -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-securityinsights</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/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md

Lines changed: 849 additions & 253 deletions
Large diffs are not rendered by default.

sdk/securityinsights/azure-resourcemanager-securityinsights/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for SecurityInsights Management</name>
16-
<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>
16+
<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-2022-01.</description>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/SecurityInsightsManager.java

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ public final class SecurityInsightsManager {
117117

118118
private DomainWhois domainWhois;
119119

120-
private EntityQueries entityQueries;
121-
122120
private Entities entities;
123121

124122
private EntitiesGetTimelines entitiesGetTimelines;
@@ -127,6 +125,10 @@ public final class SecurityInsightsManager {
127125

128126
private EntityRelations entityRelations;
129127

128+
private EntityQueries entityQueries;
129+
130+
private EntityQueryTemplates entityQueryTemplates;
131+
130132
private Incidents incidents;
131133

132134
private IncidentComments incidentComments;
@@ -135,6 +137,8 @@ public final class SecurityInsightsManager {
135137

136138
private Metadatas metadatas;
137139

140+
private OfficeConsents officeConsents;
141+
138142
private SentinelOnboardingStates sentinelOnboardingStates;
139143

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

144148
private SourceControlsOperations sourceControlsOperations;
145149

150+
private ThreatIntelligenceIndicators threatIntelligenceIndicators;
151+
152+
private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
153+
154+
private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;
155+
146156
private Watchlists watchlists;
147157

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

152162
private DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirementsOperations;
153163

154-
private ThreatIntelligenceIndicators threatIntelligenceIndicators;
155-
156-
private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;
157-
158-
private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;
159-
160164
private Operations operations;
161165

162-
private OfficeConsents officeConsents;
163-
164-
private EntityQueryTemplates entityQueryTemplates;
165-
166166
private final SecurityInsights clientObject;
167167

168168
private SecurityInsightsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -423,14 +423,6 @@ public DomainWhois domainWhois() {
423423
return domainWhois;
424424
}
425425

426-
/** @return Resource collection API of EntityQueries. */
427-
public EntityQueries entityQueries() {
428-
if (this.entityQueries == null) {
429-
this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
430-
}
431-
return entityQueries;
432-
}
433-
434426
/** @return Resource collection API of Entities. */
435427
public Entities entities() {
436428
if (this.entities == null) {
@@ -463,6 +455,22 @@ public EntityRelations entityRelations() {
463455
return entityRelations;
464456
}
465457

458+
/** @return Resource collection API of EntityQueries. */
459+
public EntityQueries entityQueries() {
460+
if (this.entityQueries == null) {
461+
this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
462+
}
463+
return entityQueries;
464+
}
465+
466+
/** @return Resource collection API of EntityQueryTemplates. */
467+
public EntityQueryTemplates entityQueryTemplates() {
468+
if (this.entityQueryTemplates == null) {
469+
this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
470+
}
471+
return entityQueryTemplates;
472+
}
473+
466474
/** @return Resource collection API of Incidents. */
467475
public Incidents incidents() {
468476
if (this.incidents == null) {
@@ -495,6 +503,14 @@ public Metadatas metadatas() {
495503
return metadatas;
496504
}
497505

506+
/** @return Resource collection API of OfficeConsents. */
507+
public OfficeConsents officeConsents() {
508+
if (this.officeConsents == null) {
509+
this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
510+
}
511+
return officeConsents;
512+
}
513+
498514
/** @return Resource collection API of SentinelOnboardingStates. */
499515
public SentinelOnboardingStates sentinelOnboardingStates() {
500516
if (this.sentinelOnboardingStates == null) {
@@ -529,6 +545,34 @@ public SourceControlsOperations sourceControlsOperations() {
529545
return sourceControlsOperations;
530546
}
531547

548+
/** @return Resource collection API of ThreatIntelligenceIndicators. */
549+
public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
550+
if (this.threatIntelligenceIndicators == null) {
551+
this.threatIntelligenceIndicators =
552+
new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
553+
}
554+
return threatIntelligenceIndicators;
555+
}
556+
557+
/** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
558+
public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
559+
if (this.threatIntelligenceIndicatorsOperations == null) {
560+
this.threatIntelligenceIndicatorsOperations =
561+
new ThreatIntelligenceIndicatorsOperationsImpl(
562+
clientObject.getThreatIntelligenceIndicatorsOperations(), this);
563+
}
564+
return threatIntelligenceIndicatorsOperations;
565+
}
566+
567+
/** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
568+
public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
569+
if (this.threatIntelligenceIndicatorMetrics == null) {
570+
this.threatIntelligenceIndicatorMetrics =
571+
new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
572+
}
573+
return threatIntelligenceIndicatorMetrics;
574+
}
575+
532576
/** @return Resource collection API of Watchlists. */
533577
public Watchlists watchlists() {
534578
if (this.watchlists == null) {
@@ -563,34 +607,6 @@ public DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirements
563607
return dataConnectorsCheckRequirementsOperations;
564608
}
565609

566-
/** @return Resource collection API of ThreatIntelligenceIndicators. */
567-
public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
568-
if (this.threatIntelligenceIndicators == null) {
569-
this.threatIntelligenceIndicators =
570-
new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
571-
}
572-
return threatIntelligenceIndicators;
573-
}
574-
575-
/** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
576-
public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
577-
if (this.threatIntelligenceIndicatorsOperations == null) {
578-
this.threatIntelligenceIndicatorsOperations =
579-
new ThreatIntelligenceIndicatorsOperationsImpl(
580-
clientObject.getThreatIntelligenceIndicatorsOperations(), this);
581-
}
582-
return threatIntelligenceIndicatorsOperations;
583-
}
584-
585-
/** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
586-
public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
587-
if (this.threatIntelligenceIndicatorMetrics == null) {
588-
this.threatIntelligenceIndicatorMetrics =
589-
new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
590-
}
591-
return threatIntelligenceIndicatorMetrics;
592-
}
593-
594610
/** @return Resource collection API of Operations. */
595611
public Operations operations() {
596612
if (this.operations == null) {
@@ -599,22 +615,6 @@ public Operations operations() {
599615
return operations;
600616
}
601617

602-
/** @return Resource collection API of OfficeConsents. */
603-
public OfficeConsents officeConsents() {
604-
if (this.officeConsents == null) {
605-
this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
606-
}
607-
return officeConsents;
608-
}
609-
610-
/** @return Resource collection API of EntityQueryTemplates. */
611-
public EntityQueryTemplates entityQueryTemplates() {
612-
if (this.entityQueryTemplates == null) {
613-
this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
614-
}
615-
return entityQueryTemplates;
616-
}
617-
618618
/**
619619
* @return Wrapped service client SecurityInsights providing direct access to the underlying auto-generated API
620620
* implementation, based on Azure REST API.

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/ActionsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public interface ActionsClient {
2323
* @throws IllegalArgumentException thrown if parameters fail the validation.
2424
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2525
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
26-
* @return all actions of alert rule.
26+
* @return all actions of alert rule as paginated response with {@link PagedIterable}.
2727
*/
2828
@ServiceMethod(returns = ReturnType.COLLECTION)
2929
PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId);
@@ -38,7 +38,7 @@ public interface ActionsClient {
3838
* @throws IllegalArgumentException thrown if parameters fail the validation.
3939
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4040
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
41-
* @return all actions of alert rule.
41+
* @return all actions of alert rule as paginated response with {@link PagedIterable}.
4242
*/
4343
@ServiceMethod(returns = ReturnType.COLLECTION)
4444
PagedIterable<ActionResponseInner> listByAlertRule(

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRuleTemplatesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface AlertRuleTemplatesClient {
2121
* @throws IllegalArgumentException thrown if parameters fail the validation.
2222
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2323
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24-
* @return all alert rule templates.
24+
* @return all alert rule templates as paginated response with {@link PagedIterable}.
2525
*/
2626
@ServiceMethod(returns = ReturnType.COLLECTION)
2727
PagedIterable<AlertRuleTemplateInner> list(String resourceGroupName, String workspaceName);
@@ -35,7 +35,7 @@ public interface AlertRuleTemplatesClient {
3535
* @throws IllegalArgumentException thrown if parameters fail the validation.
3636
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3737
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38-
* @return all alert rule templates.
38+
* @return all alert rule templates as paginated response with {@link PagedIterable}.
3939
*/
4040
@ServiceMethod(returns = ReturnType.COLLECTION)
4141
PagedIterable<AlertRuleTemplateInner> list(String resourceGroupName, String workspaceName, Context context);

sdk/securityinsights/azure-resourcemanager-securityinsights/src/main/java/com/azure/resourcemanager/securityinsights/fluent/AlertRulesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface AlertRulesClient {
2121
* @throws IllegalArgumentException thrown if parameters fail the validation.
2222
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2323
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
24-
* @return all alert rules.
24+
* @return all alert rules as paginated response with {@link PagedIterable}.
2525
*/
2626
@ServiceMethod(returns = ReturnType.COLLECTION)
2727
PagedIterable<AlertRuleInner> list(String resourceGroupName, String workspaceName);
@@ -35,7 +35,7 @@ public interface AlertRulesClient {
3535
* @throws IllegalArgumentException thrown if parameters fail the validation.
3636
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3737
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
38-
* @return all alert rules.
38+
* @return all alert rules as paginated response with {@link PagedIterable}.
3939
*/
4040
@ServiceMethod(returns = ReturnType.COLLECTION)
4141
PagedIterable<AlertRuleInner> list(String resourceGroupName, String workspaceName, Context context);

0 commit comments

Comments
 (0)