Skip to content

Commit 1adcf19

Browse files
author
SDKAuto
committed
CodeGen from PR 18330 in Azure/azure-rest-api-specs
Merge 48885bd8f8d05cc66363772d3a50f2afcabb8e10 into c104edf0f93bef19cc9d156053c2cf1358e22934
1 parent d11781d commit 1adcf19

File tree

654 files changed

+11277
-5827
lines changed

Some content is hidden

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

654 files changed

+11277
-5827
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-22)
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: 974 additions & 276 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: 75 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ public final class SecurityInsightsManager {
107107

108108
private AutomationRules automationRules;
109109

110+
private Incidents incidents;
111+
110112
private Bookmarks bookmarks;
111113

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

118120
private DomainWhois domainWhois;
119121

120-
private EntityQueries entityQueries;
121-
122122
private Entities entities;
123123

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

128128
private EntityRelations entityRelations;
129129

130-
private Incidents incidents;
130+
private EntityQueries entityQueries;
131+
132+
private EntityQueryTemplates entityQueryTemplates;
131133

132134
private IncidentComments incidentComments;
133135

134136
private IncidentRelations incidentRelations;
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) {
@@ -201,7 +201,7 @@ public static Configurable configure() {
201201

202202
/** The Configurable allowing configurations to be set. */
203203
public static final class Configurable {
204-
private final ClientLogger logger = new ClientLogger(Configurable.class);
204+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
205205

206206
private HttpClient httpClient;
207207
private HttpLogOptions httpLogOptions;
@@ -275,9 +275,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
275275
* @return the configurable object itself.
276276
*/
277277
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
278-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
278+
this.defaultPollInterval =
279+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
279280
if (this.defaultPollInterval.isNegative()) {
280-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
281+
throw LOGGER
282+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
281283
}
282284
return this;
283285
}
@@ -383,6 +385,14 @@ public AutomationRules automationRules() {
383385
return automationRules;
384386
}
385387

388+
/** @return Resource collection API of Incidents. */
389+
public Incidents incidents() {
390+
if (this.incidents == null) {
391+
this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
392+
}
393+
return incidents;
394+
}
395+
386396
/** @return Resource collection API of Bookmarks. */
387397
public Bookmarks bookmarks() {
388398
if (this.bookmarks == null) {
@@ -423,14 +433,6 @@ public DomainWhois domainWhois() {
423433
return domainWhois;
424434
}
425435

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-
434436
/** @return Resource collection API of Entities. */
435437
public Entities entities() {
436438
if (this.entities == null) {
@@ -463,12 +465,20 @@ public EntityRelations entityRelations() {
463465
return entityRelations;
464466
}
465467

466-
/** @return Resource collection API of Incidents. */
467-
public Incidents incidents() {
468-
if (this.incidents == null) {
469-
this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
468+
/** @return Resource collection API of EntityQueries. */
469+
public EntityQueries entityQueries() {
470+
if (this.entityQueries == null) {
471+
this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
470472
}
471-
return incidents;
473+
return entityQueries;
474+
}
475+
476+
/** @return Resource collection API of EntityQueryTemplates. */
477+
public EntityQueryTemplates entityQueryTemplates() {
478+
if (this.entityQueryTemplates == null) {
479+
this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
480+
}
481+
return entityQueryTemplates;
472482
}
473483

474484
/** @return Resource collection API of IncidentComments. */
@@ -495,6 +505,14 @@ public Metadatas metadatas() {
495505
return metadatas;
496506
}
497507

508+
/** @return Resource collection API of OfficeConsents. */
509+
public OfficeConsents officeConsents() {
510+
if (this.officeConsents == null) {
511+
this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
512+
}
513+
return officeConsents;
514+
}
515+
498516
/** @return Resource collection API of SentinelOnboardingStates. */
499517
public SentinelOnboardingStates sentinelOnboardingStates() {
500518
if (this.sentinelOnboardingStates == null) {
@@ -529,6 +547,34 @@ public SourceControlsOperations sourceControlsOperations() {
529547
return sourceControlsOperations;
530548
}
531549

550+
/** @return Resource collection API of ThreatIntelligenceIndicators. */
551+
public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
552+
if (this.threatIntelligenceIndicators == null) {
553+
this.threatIntelligenceIndicators =
554+
new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
555+
}
556+
return threatIntelligenceIndicators;
557+
}
558+
559+
/** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
560+
public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
561+
if (this.threatIntelligenceIndicatorsOperations == null) {
562+
this.threatIntelligenceIndicatorsOperations =
563+
new ThreatIntelligenceIndicatorsOperationsImpl(
564+
clientObject.getThreatIntelligenceIndicatorsOperations(), this);
565+
}
566+
return threatIntelligenceIndicatorsOperations;
567+
}
568+
569+
/** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
570+
public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
571+
if (this.threatIntelligenceIndicatorMetrics == null) {
572+
this.threatIntelligenceIndicatorMetrics =
573+
new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
574+
}
575+
return threatIntelligenceIndicatorMetrics;
576+
}
577+
532578
/** @return Resource collection API of Watchlists. */
533579
public Watchlists watchlists() {
534580
if (this.watchlists == null) {
@@ -563,34 +609,6 @@ public DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirements
563609
return dataConnectorsCheckRequirementsOperations;
564610
}
565611

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-
594612
/** @return Resource collection API of Operations. */
595613
public Operations operations() {
596614
if (this.operations == null) {
@@ -599,22 +617,6 @@ public Operations operations() {
599617
return operations;
600618
}
601619

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-
618620
/**
619621
* @return Wrapped service client SecurityInsights providing direct access to the underlying auto-generated API
620622
* 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)