Skip to content

Commit 34ba595

Browse files
author
SDKAuto
committed
CodeGen from PR 23227 in Azure/azure-rest-api-specs
Merge b6a9304dcaa773c5169313c3735ba3d430c3ab20 into 09119c0cca116b1d8b69552bb63d697628f0e5f6
1 parent 2ee7893 commit 34ba595

File tree

566 files changed

+1181
-25957
lines changed

Some content is hidden

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

566 files changed

+1181
-25957
lines changed

sdk/security/azure-resourcemanager-security/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.5 (Unreleased)
3+
## 1.0.0-beta.1 (2023-03-23)
4+
5+
- 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).
46

57
### Features Added
68

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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-security</artifactId>
35-
<version>1.0.0-beta.4</version>
35+
<version>1.0.0-beta.5</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/security/azure-resourcemanager-security/SAMPLE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4974,7 +4974,7 @@ import java.util.Map;
49744974
/** Samples for SecurityConnectors CreateOrUpdate. */
49754975
public final class SecurityConnectorsCreateOrUpdateSamples {
49764976
/*
4977-
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08-01-preview/examples/SecurityConnectors/PutSecurityConnector_example.json
4977+
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03-01-preview/examples/SecurityConnectors/PutSecurityConnector_example.json
49784978
*/
49794979
/**
49804980
* Sample code: Create or update a security connector.
@@ -5020,7 +5020,7 @@ public final class SecurityConnectorsCreateOrUpdateSamples {
50205020
/** Samples for SecurityConnectors Delete. */
50215021
public final class SecurityConnectorsDeleteSamples {
50225022
/*
5023-
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08-01-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json
5023+
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03-01-preview/examples/SecurityConnectors/DeleteSecurityConnector_example.json
50245024
*/
50255025
/**
50265026
* Sample code: Delete a security connector.
@@ -5041,7 +5041,7 @@ public final class SecurityConnectorsDeleteSamples {
50415041
/** Samples for SecurityConnectors GetByResourceGroup. */
50425042
public final class SecurityConnectorsGetByResourceGroupSamples {
50435043
/*
5044-
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08-01-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json
5044+
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03-01-preview/examples/SecurityConnectors/GetSecurityConnectorSingleResource_example.json
50455045
*/
50465046
/**
50475047
* Sample code: Retrieve a security connector.
@@ -5063,7 +5063,7 @@ public final class SecurityConnectorsGetByResourceGroupSamples {
50635063
/** Samples for SecurityConnectors List. */
50645064
public final class SecurityConnectorsListSamples {
50655065
/*
5066-
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08-01-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json
5066+
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03-01-preview/examples/SecurityConnectors/GetSecurityConnectorsSubscription_example.json
50675067
*/
50685068
/**
50695069
* Sample code: List all security connectors of a specified subscription.
@@ -5083,7 +5083,7 @@ public final class SecurityConnectorsListSamples {
50835083
/** Samples for SecurityConnectors ListByResourceGroup. */
50845084
public final class SecurityConnectorsListByResourceGroupSamples {
50855085
/*
5086-
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08-01-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json
5086+
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03-01-preview/examples/SecurityConnectors/GetSecurityConnectorsResourceGroup_example.json
50875087
*/
50885088
/**
50895089
* Sample code: List all security connectors of a specified resource group.
@@ -5112,7 +5112,7 @@ import java.util.Map;
51125112
/** Samples for SecurityConnectors Update. */
51135113
public final class SecurityConnectorsUpdateSamples {
51145114
/*
5115-
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2022-08-01-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json
5115+
* x-ms-original-file: specification/security/resource-manager/Microsoft.Security/preview/2023-03-01-preview/examples/SecurityConnectors/PatchSecurityConnector_example.json
51165116
*/
51175117
/**
51185118
* Sample code: Update a security connector.

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ public final class SecurityManager {
244244

245245
private SoftwareInventories softwareInventories;
246246

247-
private SecurityConnectors securityConnectors;
248-
249247
private GovernanceRules governanceRules;
250248

251249
private GovernanceAssignments governanceAssignments;
@@ -274,6 +272,8 @@ public final class SecurityManager {
274272

275273
private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;
276274

275+
private SecurityConnectors securityConnectors;
276+
277277
private final SecurityCenter clientObject;
278278

279279
private SecurityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -439,7 +439,7 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
439439
.append("-")
440440
.append("com.azure.resourcemanager.security")
441441
.append("/")
442-
.append("1.0.0-beta.4");
442+
.append("1.0.0-beta.1");
443443
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
444444
userAgentBuilder
445445
.append(" (")
@@ -1058,18 +1058,6 @@ public SoftwareInventories softwareInventories() {
10581058
return softwareInventories;
10591059
}
10601060

1061-
/**
1062-
* Gets the resource collection API of SecurityConnectors. It manages SecurityConnector.
1063-
*
1064-
* @return Resource collection API of SecurityConnectors.
1065-
*/
1066-
public SecurityConnectors securityConnectors() {
1067-
if (this.securityConnectors == null) {
1068-
this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
1069-
}
1070-
return securityConnectors;
1071-
}
1072-
10731061
/**
10741062
* Gets the resource collection API of GovernanceRules. It manages GovernanceRule.
10751063
*
@@ -1249,6 +1237,18 @@ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselin
12491237
return sqlVulnerabilityAssessmentBaselineRules;
12501238
}
12511239

1240+
/**
1241+
* Gets the resource collection API of SecurityConnectors. It manages SecurityConnector.
1242+
*
1243+
* @return Resource collection API of SecurityConnectors.
1244+
*/
1245+
public SecurityConnectors securityConnectors() {
1246+
if (this.securityConnectors == null) {
1247+
this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
1248+
}
1249+
return securityConnectors;
1250+
}
1251+
12521252
/**
12531253
* @return Wrapped service client SecurityCenter providing direct access to the underlying auto-generated API
12541254
* implementation, based on Azure REST API.

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityCenter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,6 @@ public interface SecurityCenter {
352352
*/
353353
SoftwareInventoriesClient getSoftwareInventories();
354354

355-
/**
356-
* Gets the SecurityConnectorsClient object to access its operations.
357-
*
358-
* @return the SecurityConnectorsClient object.
359-
*/
360-
SecurityConnectorsClient getSecurityConnectors();
361-
362355
/**
363356
* Gets the GovernanceRulesClient object to access its operations.
364357
*
@@ -456,4 +449,11 @@ public interface SecurityCenter {
456449
* @return the SqlVulnerabilityAssessmentBaselineRulesClient object.
457450
*/
458451
SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessmentBaselineRules();
452+
453+
/**
454+
* Gets the SecurityConnectorsClient object to access its operations.
455+
*
456+
* @return the SecurityConnectorsClient object.
457+
*/
458+
SecurityConnectorsClient getSecurityConnectors();
459459
}

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityCenterImpl.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -695,18 +695,6 @@ public SoftwareInventoriesClient getSoftwareInventories() {
695695
return this.softwareInventories;
696696
}
697697

698-
/** The SecurityConnectorsClient object to access its operations. */
699-
private final SecurityConnectorsClient securityConnectors;
700-
701-
/**
702-
* Gets the SecurityConnectorsClient object to access its operations.
703-
*
704-
* @return the SecurityConnectorsClient object.
705-
*/
706-
public SecurityConnectorsClient getSecurityConnectors() {
707-
return this.securityConnectors;
708-
}
709-
710698
/** The GovernanceRulesClient object to access its operations. */
711699
private final GovernanceRulesClient governanceRules;
712700

@@ -875,6 +863,18 @@ public SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessme
875863
return this.sqlVulnerabilityAssessmentBaselineRules;
876864
}
877865

866+
/** The SecurityConnectorsClient object to access its operations. */
867+
private final SecurityConnectorsClient securityConnectors;
868+
869+
/**
870+
* Gets the SecurityConnectorsClient object to access its operations.
871+
*
872+
* @return the SecurityConnectorsClient object.
873+
*/
874+
public SecurityConnectorsClient getSecurityConnectors() {
875+
return this.securityConnectors;
876+
}
877+
878878
/**
879879
* Initializes an instance of SecurityCenter client.
880880
*
@@ -944,7 +944,6 @@ public SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessme
944944
this.settings = new SettingsClientImpl(this);
945945
this.ingestionSettings = new IngestionSettingsClientImpl(this);
946946
this.softwareInventories = new SoftwareInventoriesClientImpl(this);
947-
this.securityConnectors = new SecurityConnectorsClientImpl(this);
948947
this.governanceRules = new GovernanceRulesClientImpl(this);
949948
this.governanceAssignments = new GovernanceAssignmentsClientImpl(this);
950949
this.applications = new ApplicationsClientImpl(this);
@@ -959,6 +958,7 @@ public SqlVulnerabilityAssessmentBaselineRulesClient getSqlVulnerabilityAssessme
959958
this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansClientImpl(this);
960959
this.sqlVulnerabilityAssessmentScanResults = new SqlVulnerabilityAssessmentScanResultsClientImpl(this);
961960
this.sqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesClientImpl(this);
961+
this.securityConnectors = new SecurityConnectorsClientImpl(this);
962962
}
963963

964964
/**

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/SecurityConnectorsClientImpl.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private Mono<PagedResponse<SecurityConnectorInner>> listSinglePageAsync() {
186186
new IllegalArgumentException(
187187
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
188188
}
189-
final String apiVersion = "2022-08-01-preview";
189+
final String apiVersion = "2023-03-01-preview";
190190
final String accept = "application/json";
191191
return FluxUtil
192192
.withContext(
@@ -230,7 +230,7 @@ private Mono<PagedResponse<SecurityConnectorInner>> listSinglePageAsync(Context
230230
new IllegalArgumentException(
231231
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
232232
}
233-
final String apiVersion = "2022-08-01-preview";
233+
final String apiVersion = "2023-03-01-preview";
234234
final String accept = "application/json";
235235
context = this.client.mergeContext(context);
236236
return service
@@ -333,7 +333,7 @@ private Mono<PagedResponse<SecurityConnectorInner>> listByResourceGroupSinglePag
333333
return Mono
334334
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
335335
}
336-
final String apiVersion = "2022-08-01-preview";
336+
final String apiVersion = "2023-03-01-preview";
337337
final String accept = "application/json";
338338
return FluxUtil
339339
.withContext(
@@ -390,7 +390,7 @@ private Mono<PagedResponse<SecurityConnectorInner>> listByResourceGroupSinglePag
390390
return Mono
391391
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
392392
}
393-
final String apiVersion = "2022-08-01-preview";
393+
final String apiVersion = "2023-03-01-preview";
394394
final String accept = "application/json";
395395
context = this.client.mergeContext(context);
396396
return service
@@ -516,7 +516,7 @@ private Mono<Response<SecurityConnectorInner>> getByResourceGroupWithResponseAsy
516516
return Mono
517517
.error(new IllegalArgumentException("Parameter securityConnectorName is required and cannot be null."));
518518
}
519-
final String apiVersion = "2022-08-01-preview";
519+
final String apiVersion = "2023-03-01-preview";
520520
final String accept = "application/json";
521521
return FluxUtil
522522
.withContext(
@@ -568,7 +568,7 @@ private Mono<Response<SecurityConnectorInner>> getByResourceGroupWithResponseAsy
568568
return Mono
569569
.error(new IllegalArgumentException("Parameter securityConnectorName is required and cannot be null."));
570570
}
571-
final String apiVersion = "2022-08-01-preview";
571+
final String apiVersion = "2023-03-01-preview";
572572
final String accept = "application/json";
573573
context = this.client.mergeContext(context);
574574
return service
@@ -676,7 +676,7 @@ private Mono<Response<SecurityConnectorInner>> createOrUpdateWithResponseAsync(
676676
} else {
677677
securityConnector.validate();
678678
}
679-
final String apiVersion = "2022-08-01-preview";
679+
final String apiVersion = "2023-03-01-preview";
680680
final String accept = "application/json";
681681
return FluxUtil
682682
.withContext(
@@ -740,7 +740,7 @@ private Mono<Response<SecurityConnectorInner>> createOrUpdateWithResponseAsync(
740740
} else {
741741
securityConnector.validate();
742742
}
743-
final String apiVersion = "2022-08-01-preview";
743+
final String apiVersion = "2023-03-01-preview";
744744
final String accept = "application/json";
745745
context = this.client.mergeContext(context);
746746
return service
@@ -860,7 +860,7 @@ private Mono<Response<SecurityConnectorInner>> updateWithResponseAsync(
860860
} else {
861861
securityConnector.validate();
862862
}
863-
final String apiVersion = "2022-08-01-preview";
863+
final String apiVersion = "2023-03-01-preview";
864864
final String accept = "application/json";
865865
return FluxUtil
866866
.withContext(
@@ -923,7 +923,7 @@ private Mono<Response<SecurityConnectorInner>> updateWithResponseAsync(
923923
} else {
924924
securityConnector.validate();
925925
}
926-
final String apiVersion = "2022-08-01-preview";
926+
final String apiVersion = "2023-03-01-preview";
927927
final String accept = "application/json";
928928
context = this.client.mergeContext(context);
929929
return service
@@ -1030,7 +1030,7 @@ private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, S
10301030
return Mono
10311031
.error(new IllegalArgumentException("Parameter securityConnectorName is required and cannot be null."));
10321032
}
1033-
final String apiVersion = "2022-08-01-preview";
1033+
final String apiVersion = "2023-03-01-preview";
10341034
final String accept = "application/json";
10351035
return FluxUtil
10361036
.withContext(
@@ -1082,7 +1082,7 @@ private Mono<Response<Void>> deleteWithResponseAsync(
10821082
return Mono
10831083
.error(new IllegalArgumentException("Parameter securityConnectorName is required and cannot be null."));
10841084
}
1085-
final String apiVersion = "2022-08-01-preview";
1085+
final String apiVersion = "2023-03-01-preview";
10861086
final String accept = "application/json";
10871087
context = this.client.mergeContext(context);
10881088
return service

sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/AwsEnvironmentData.java

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
import com.fasterxml.jackson.annotation.JsonProperty;
99
import com.fasterxml.jackson.annotation.JsonTypeInfo;
1010
import com.fasterxml.jackson.annotation.JsonTypeName;
11+
import java.util.List;
1112

12-
/** The aws connector environment data. */
13+
/** The AWS connector environment data. */
1314
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "environmentType")
1415
@JsonTypeName("AwsAccount")
1516
@Fluent
@@ -20,6 +21,18 @@ public final class AwsEnvironmentData extends EnvironmentData {
2021
@JsonProperty(value = "organizationalData")
2122
private AwsOrganizationalData organizationalData;
2223

24+
/*
25+
* list of regions to scan
26+
*/
27+
@JsonProperty(value = "regions")
28+
private List<String> regions;
29+
30+
/*
31+
* The AWS account name
32+
*/
33+
@JsonProperty(value = "accountName", access = JsonProperty.Access.WRITE_ONLY)
34+
private String accountName;
35+
2336
/** Creates an instance of AwsEnvironmentData class. */
2437
public AwsEnvironmentData() {
2538
}
@@ -44,6 +57,35 @@ public AwsEnvironmentData withOrganizationalData(AwsOrganizationalData organizat
4457
return this;
4558
}
4659

60+
/**
61+
* Get the regions property: list of regions to scan.
62+
*
63+
* @return the regions value.
64+
*/
65+
public List<String> regions() {
66+
return this.regions;
67+
}
68+
69+
/**
70+
* Set the regions property: list of regions to scan.
71+
*
72+
* @param regions the regions value to set.
73+
* @return the AwsEnvironmentData object itself.
74+
*/
75+
public AwsEnvironmentData withRegions(List<String> regions) {
76+
this.regions = regions;
77+
return this;
78+
}
79+
80+
/**
81+
* Get the accountName property: The AWS account name.
82+
*
83+
* @return the accountName value.
84+
*/
85+
public String accountName() {
86+
return this.accountName;
87+
}
88+
4789
/**
4890
* Validates the instance.
4991
*

0 commit comments

Comments
 (0)