Skip to content

Commit dc17311

Browse files
author
SDKAuto
committed
CodeGen from PR 21407 in Azure/azure-rest-api-specs
Merge 9b2e7c5e787509e720bb87d9fb8a6324a9970b10 into fa8bd476e1768f419063cba8c1d696e9f8c43511
1 parent 6e44704 commit dc17311

File tree

592 files changed

+4806
-3393
lines changed

Some content is hidden

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

592 files changed

+4806
-3393
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-11-03)
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: 35 additions & 9 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
```
@@ -2270,7 +2270,32 @@ public final class ConnectorsCreateOrUpdateSamples {
22702270
.withPrivateKeyId("6efg587hra2568as34d22326b044cc20dc2af")
22712271
.withPrivateKey(
22722272
"-----BEGIN PRIVATE KEY-----\n"
2273-
+ "FAKE_PRIVATE_KEY_PLACEHOLDER"
2273+
+ "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCpxYHcLzcDZ6/Q\n"
2274+
+ "AeQZnQXM5GTb3p09Xsbjo2T2F61b6I7FZiQXBrbw3Zf0CUCkkqTTpD5xifl82yQ6\n"
2275+
+ "89V7SAe8hxI7esAcVDhm/aJMqzVjHLISAU2L3li1sn0jjY2oYtndwN6bRivP8O6t\n"
2276+
+ "9F+W6E0zMlbCxtpZEHLbb6WxlJJrwEQ0MPH2yOCwZUQi6NHksAtEzX2nNKJNyUC7\n"
2277+
+ "QyBVHHMm34H2bmZwsuQp3y2otpcJ9tJnVmYfC3k/w4x2L+DIK7JnQP/C1wQqu2du\n"
2278+
+ "c0w6sydF6RhLoHButrVdYRJTdfK4k03SsSTyMqZ+f7LNnKw3xenzw1VmEpk8mvoQ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aCK4JaI/klAhMghgSQnbXZXKVzUZaA3Rln6cX8u7KtgapOOTMlwaZie8Dy1LV\n"
2294+
+ "TTFstAJcm9o3/h1nyYjZy3C4JTUyNpPwqs6enjf7edxVI4eidwFutZD+xcigqHTa\n"
2295+
+ "aikW2atSrZB3fMIjyF7+5meH+hKOqvNiXOty3qn1AoGAZuVxYQy5FVq3YZxzr3Aa\n"
2296+
+ "Am0ShoXTF6QYIbsaUiUGoa/NlHcw9V/lj4AqBRbxbaYMD+hz2J/od9cb268eJKY8\n"
2297+
+ "3b6MvaUqdNhNnWodJXLhgtmGEHDKmTppz2JSTx/tVzCfhFdcOC79StZvcKLhtoFQ\n"
2298+
+ "+/3lEw6NCIXzm5E4+dtJG4k=\n"
22742299
+ "-----END PRIVATE KEY-----\n")
22752300
.withClientEmail("[email protected]")
22762301
.withClientId("105889053725632919854")
@@ -2461,7 +2486,7 @@ public final class CustomAssessmentAutomationsDeleteSamples {
24612486
public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
24622487
manager
24632488
.customAssessmentAutomations()
2464-
.deleteWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
2489+
.deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
24652490
}
24662491
}
24672492
```
@@ -2575,7 +2600,8 @@ public final class CustomEntityStoreAssignmentsDeleteSamples {
25752600
public static void deleteACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
25762601
manager
25772602
.customEntityStoreAssignments()
2578-
.deleteWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
2603+
.deleteByResourceGroupWithResponse(
2604+
"TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
25792605
}
25802606
}
25812607
```
@@ -2703,7 +2729,7 @@ public final class DeviceSecurityGroupsDeleteSamples {
27032729
com.azure.resourcemanager.security.SecurityManager manager) {
27042730
manager
27052731
.deviceSecurityGroups()
2706-
.deleteWithResponse(
2732+
.deleteByResourceGroupWithResponse(
27072733
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
27082734
"samplesecuritygroup",
27092735
Context.NONE);
@@ -3562,7 +3588,7 @@ public final class IotSecuritySolutionDeleteSamples {
35623588
* @param manager Entry point to SecurityManager.
35633589
*/
35643590
public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
3565-
manager.iotSecuritySolutions().deleteWithResponse("MyGroup", "default", Context.NONE);
3591+
manager.iotSecuritySolutions().deleteByResourceGroupWithResponse("MyGroup", "default", Context.NONE);
35663592
}
35673593
}
35683594
```
@@ -4923,7 +4949,7 @@ public final class SecurityConnectorsDeleteSamples {
49234949
* @param manager Entry point to SecurityManager.
49244950
*/
49254951
public static void deleteASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
4926-
manager.securityConnectors().deleteWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
4952+
manager.securityConnectors().deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
49274953
}
49284954
}
49294955
```

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.

0 commit comments

Comments
 (0)