Skip to content

Commit 12cfff3

Browse files
author
SDKAuto
committed
CodeGen from PR 21206 in Azure/azure-rest-api-specs
Merge 2ae26a0bd520295cca9591b8549856f5c6f45181 into 21426cf85836ec17aaa4f20f58324a8666925e34
1 parent a40f362 commit 12cfff3

File tree

591 files changed

+4754
-3391
lines changed

Some content is hidden

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

591 files changed

+4754
-3391
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.3 (Unreleased)
3+
## 1.0.0-beta.1 (2022-10-26)
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.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public final class AdaptiveApplicationControlsDeleteSamples {
396396
*/
397397
public static void deleteAnApplicationControlMachineGroup(
398398
com.azure.resourcemanager.security.SecurityManager manager) {
399-
manager.adaptiveApplicationControls().deleteWithResponse("centralus", "GROUP1", Context.NONE);
399+
manager.adaptiveApplicationControls().deleteByResourceGroupWithResponse("centralus", "GROUP1", Context.NONE);
400400
}
401401
}
402402
```
@@ -1485,7 +1485,7 @@ public final class AssessmentsDeleteSamples {
14851485
com.azure.resourcemanager.security.SecurityManager manager) {
14861486
manager
14871487
.assessments()
1488-
.deleteWithResponse(
1488+
.deleteByResourceGroupWithResponse(
14891489
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
14901490
"8bb8be0a-6010-4789-812f-e4d661c4ed0e",
14911491
Context.NONE);
@@ -1985,7 +1985,7 @@ public final class AutomationsDeleteSamples {
19851985
* @param manager Entry point to SecurityManager.
19861986
*/
19871987
public static void deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
1988-
manager.automations().deleteWithResponse("myRg", "myAutomationName", Context.NONE);
1988+
manager.automations().deleteByResourceGroupWithResponse("myRg", "myAutomationName", Context.NONE);
19891989
}
19901990
}
19911991
```
@@ -2486,7 +2486,7 @@ public final class CustomAssessmentAutomationsDeleteSamples {
24862486
public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
24872487
manager
24882488
.customAssessmentAutomations()
2489-
.deleteWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
2489+
.deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
24902490
}
24912491
}
24922492
```
@@ -2600,7 +2600,8 @@ public final class CustomEntityStoreAssignmentsDeleteSamples {
26002600
public static void deleteACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
26012601
manager
26022602
.customEntityStoreAssignments()
2603-
.deleteWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
2603+
.deleteByResourceGroupWithResponse(
2604+
"TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
26042605
}
26052606
}
26062607
```
@@ -2728,7 +2729,7 @@ public final class DeviceSecurityGroupsDeleteSamples {
27282729
com.azure.resourcemanager.security.SecurityManager manager) {
27292730
manager
27302731
.deviceSecurityGroups()
2731-
.deleteWithResponse(
2732+
.deleteByResourceGroupWithResponse(
27322733
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
27332734
"samplesecuritygroup",
27342735
Context.NONE);
@@ -3587,7 +3588,7 @@ public final class IotSecuritySolutionDeleteSamples {
35873588
* @param manager Entry point to SecurityManager.
35883589
*/
35893590
public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
3590-
manager.iotSecuritySolutions().deleteWithResponse("MyGroup", "default", Context.NONE);
3591+
manager.iotSecuritySolutions().deleteByResourceGroupWithResponse("MyGroup", "default", Context.NONE);
35913592
}
35923593
}
35933594
```
@@ -4948,7 +4949,7 @@ public final class SecurityConnectorsDeleteSamples {
49484949
* @param manager Entry point to SecurityManager.
49494950
*/
49504951
public static void deleteASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
4951-
manager.securityConnectors().deleteWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
4952+
manager.securityConnectors().deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
49524953
}
49534954
}
49544955
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.2");
442+
.append("1.0.0-beta.1");
443443
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
444444
userAgentBuilder
445445
.append(" (")

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

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@
1313

1414
/** An instance of this class provides access to all the operations defined in AdaptiveApplicationControlsClient. */
1515
public interface AdaptiveApplicationControlsClient {
16-
/**
17-
* Gets a list of application control machine groups for the subscription.
18-
*
19-
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
20-
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
21-
* @return a list of application control machine groups for the subscription.
22-
*/
23-
@ServiceMethod(returns = ReturnType.SINGLE)
24-
AdaptiveApplicationControlGroupsInner list();
25-
2616
/**
2717
* Gets a list of application control machine groups for the subscription.
2818
*
@@ -39,18 +29,14 @@ Response<AdaptiveApplicationControlGroupsInner> listWithResponse(
3929
Boolean includePathRecommendations, Boolean summary, Context context);
4030

4131
/**
42-
* Gets an application control VM/server group.
32+
* Gets a list of application control machine groups for the subscription.
4333
*
44-
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
45-
* locations.
46-
* @param groupName Name of an application control machine group.
47-
* @throws IllegalArgumentException thrown if parameters fail the validation.
4834
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4935
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
50-
* @return an application control VM/server group.
36+
* @return a list of application control machine groups for the subscription.
5137
*/
5238
@ServiceMethod(returns = ReturnType.SINGLE)
53-
AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName);
39+
AdaptiveApplicationControlGroupsInner list();
5440

5541
/**
5642
* Gets an application control VM/server group.
@@ -69,20 +55,18 @@ Response<AdaptiveApplicationControlGroupInner> getWithResponse(
6955
String ascLocation, String groupName, Context context);
7056

7157
/**
72-
* Update an application control machine group.
58+
* Gets an application control VM/server group.
7359
*
7460
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
7561
* locations.
7662
* @param groupName Name of an application control machine group.
77-
* @param body The body parameter.
7863
* @throws IllegalArgumentException thrown if parameters fail the validation.
7964
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8065
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
81-
* @return the response.
66+
* @return an application control VM/server group.
8267
*/
8368
@ServiceMethod(returns = ReturnType.SINGLE)
84-
AdaptiveApplicationControlGroupInner put(
85-
String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body);
69+
AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName);
8670

8771
/**
8872
* Update an application control machine group.
@@ -102,17 +86,20 @@ Response<AdaptiveApplicationControlGroupInner> putWithResponse(
10286
String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body, Context context);
10387

10488
/**
105-
* Delete an application control machine group.
89+
* Update an application control machine group.
10690
*
10791
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
10892
* locations.
10993
* @param groupName Name of an application control machine group.
94+
* @param body The body parameter.
11095
* @throws IllegalArgumentException thrown if parameters fail the validation.
11196
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
11297
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
98+
* @return the response.
11399
*/
114100
@ServiceMethod(returns = ReturnType.SINGLE)
115-
void delete(String ascLocation, String groupName);
101+
AdaptiveApplicationControlGroupInner put(
102+
String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body);
116103

117104
/**
118105
* Delete an application control machine group.
@@ -128,4 +115,17 @@ Response<AdaptiveApplicationControlGroupInner> putWithResponse(
128115
*/
129116
@ServiceMethod(returns = ReturnType.SINGLE)
130117
Response<Void> deleteWithResponse(String ascLocation, String groupName, Context context);
118+
119+
/**
120+
* Delete an application control machine group.
121+
*
122+
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
123+
* locations.
124+
* @param groupName Name of an application control machine group.
125+
* @throws IllegalArgumentException thrown if parameters fail the validation.
126+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
127+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
128+
*/
129+
@ServiceMethod(returns = ReturnType.SINGLE)
130+
void delete(String ascLocation, String groupName);
131131
}

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,20 @@ PagedIterable<AdaptiveNetworkHardeningInner> listByExtendedResource(
6262
* @param resourceType The type of the resource.
6363
* @param resourceName Name of the resource.
6464
* @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource.
65+
* @param context The context to associate with this operation.
6566
* @throws IllegalArgumentException thrown if parameters fail the validation.
6667
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6768
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
68-
* @return a single Adaptive Network Hardening resource.
69+
* @return a single Adaptive Network Hardening resource along with {@link Response}.
6970
*/
7071
@ServiceMethod(returns = ReturnType.SINGLE)
71-
AdaptiveNetworkHardeningInner get(
72+
Response<AdaptiveNetworkHardeningInner> getWithResponse(
7273
String resourceGroupName,
7374
String resourceNamespace,
7475
String resourceType,
7576
String resourceName,
76-
String adaptiveNetworkHardeningResourceName);
77+
String adaptiveNetworkHardeningResourceName,
78+
Context context);
7779

7880
/**
7981
* Gets a single Adaptive Network Hardening resource.
@@ -84,20 +86,18 @@ AdaptiveNetworkHardeningInner get(
8486
* @param resourceType The type of the resource.
8587
* @param resourceName Name of the resource.
8688
* @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource.
87-
* @param context The context to associate with this operation.
8889
* @throws IllegalArgumentException thrown if parameters fail the validation.
8990
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9091
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
91-
* @return a single Adaptive Network Hardening resource along with {@link Response}.
92+
* @return a single Adaptive Network Hardening resource.
9293
*/
9394
@ServiceMethod(returns = ReturnType.SINGLE)
94-
Response<AdaptiveNetworkHardeningInner> getWithResponse(
95+
AdaptiveNetworkHardeningInner get(
9596
String resourceGroupName,
9697
String resourceNamespace,
9798
String resourceType,
9899
String resourceName,
99-
String adaptiveNetworkHardeningResourceName,
100-
Context context);
100+
String adaptiveNetworkHardeningResourceName);
101101

102102
/**
103103
* Enforces the given rules on the NSG(s) listed in the request.

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,53 +16,53 @@ public interface AdvancedThreatProtectionsClient {
1616
* Gets the Advanced Threat Protection settings for the specified resource.
1717
*
1818
* @param resourceId The identifier of the resource.
19+
* @param context The context to associate with this operation.
1920
* @throws IllegalArgumentException thrown if parameters fail the validation.
2021
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
2122
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
22-
* @return the Advanced Threat Protection settings for the specified resource.
23+
* @return the Advanced Threat Protection settings for the specified resource along with {@link Response}.
2324
*/
2425
@ServiceMethod(returns = ReturnType.SINGLE)
25-
AdvancedThreatProtectionSettingInner get(String resourceId);
26+
Response<AdvancedThreatProtectionSettingInner> getWithResponse(String resourceId, Context context);
2627

2728
/**
2829
* Gets the Advanced Threat Protection settings for the specified resource.
2930
*
3031
* @param resourceId The identifier of the resource.
31-
* @param context The context to associate with this operation.
3232
* @throws IllegalArgumentException thrown if parameters fail the validation.
3333
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3434
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
35-
* @return the Advanced Threat Protection settings for the specified resource along with {@link Response}.
35+
* @return the Advanced Threat Protection settings for the specified resource.
3636
*/
3737
@ServiceMethod(returns = ReturnType.SINGLE)
38-
Response<AdvancedThreatProtectionSettingInner> getWithResponse(String resourceId, Context context);
38+
AdvancedThreatProtectionSettingInner get(String resourceId);
3939

4040
/**
4141
* Creates or updates the Advanced Threat Protection settings on a specified resource.
4242
*
4343
* @param resourceId The identifier of the resource.
4444
* @param advancedThreatProtectionSetting Advanced Threat Protection Settings.
45+
* @param context The context to associate with this operation.
4546
* @throws IllegalArgumentException thrown if parameters fail the validation.
4647
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
4748
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
48-
* @return the Advanced Threat Protection resource.
49+
* @return the Advanced Threat Protection resource along with {@link Response}.
4950
*/
5051
@ServiceMethod(returns = ReturnType.SINGLE)
51-
AdvancedThreatProtectionSettingInner create(
52-
String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting);
52+
Response<AdvancedThreatProtectionSettingInner> createWithResponse(
53+
String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context);
5354

5455
/**
5556
* Creates or updates the Advanced Threat Protection settings on a specified resource.
5657
*
5758
* @param resourceId The identifier of the resource.
5859
* @param advancedThreatProtectionSetting Advanced Threat Protection Settings.
59-
* @param context The context to associate with this operation.
6060
* @throws IllegalArgumentException thrown if parameters fail the validation.
6161
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6262
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
63-
* @return the Advanced Threat Protection resource along with {@link Response}.
63+
* @return the Advanced Threat Protection resource.
6464
*/
6565
@ServiceMethod(returns = ReturnType.SINGLE)
66-
Response<AdvancedThreatProtectionSettingInner> createWithResponse(
67-
String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context);
66+
AdvancedThreatProtectionSettingInner create(
67+
String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting);
6868
}

0 commit comments

Comments
 (0)