diff --git a/sdk/security/azure-resourcemanager-security/CHANGELOG.md b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
index 0dc7d3440584..79044df349e9 100644
--- a/sdk/security/azure-resourcemanager-security/CHANGELOG.md
+++ b/sdk/security/azure-resourcemanager-security/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 1.0.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-11-03)
+
+- 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).
### Features Added
diff --git a/sdk/security/azure-resourcemanager-security/README.md b/sdk/security/azure-resourcemanager-security/README.md
index 5049f5e61582..10dfaf1d157d 100644
--- a/sdk/security/azure-resourcemanager-security/README.md
+++ b/sdk/security/azure-resourcemanager-security/README.md
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-security
- 1.0.0-beta.2
+ 1.0.0-beta.3
```
[//]: # ({x-version-update-end})
diff --git a/sdk/security/azure-resourcemanager-security/SAMPLE.md b/sdk/security/azure-resourcemanager-security/SAMPLE.md
index 77eb0eef3a20..b02598010e68 100644
--- a/sdk/security/azure-resourcemanager-security/SAMPLE.md
+++ b/sdk/security/azure-resourcemanager-security/SAMPLE.md
@@ -396,7 +396,7 @@ public final class AdaptiveApplicationControlsDeleteSamples {
*/
public static void deleteAnApplicationControlMachineGroup(
com.azure.resourcemanager.security.SecurityManager manager) {
- manager.adaptiveApplicationControls().deleteWithResponse("centralus", "GROUP1", Context.NONE);
+ manager.adaptiveApplicationControls().deleteByResourceGroupWithResponse("centralus", "GROUP1", Context.NONE);
}
}
```
@@ -1485,7 +1485,7 @@ public final class AssessmentsDeleteSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.assessments()
- .deleteWithResponse(
+ .deleteByResourceGroupWithResponse(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachineScaleSets/vmss2",
"8bb8be0a-6010-4789-812f-e4d661c4ed0e",
Context.NONE);
@@ -1985,7 +1985,7 @@ public final class AutomationsDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteASecurityAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.automations().deleteWithResponse("myRg", "myAutomationName", Context.NONE);
+ manager.automations().deleteByResourceGroupWithResponse("myRg", "myAutomationName", Context.NONE);
}
}
```
@@ -2270,7 +2270,32 @@ public final class ConnectorsCreateOrUpdateSamples {
.withPrivateKeyId("6efg587hra2568as34d22326b044cc20dc2af")
.withPrivateKey(
"-----BEGIN PRIVATE KEY-----\n"
- + "FAKE_PRIVATE_KEY_PLACEHOLDER"
+ + "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCpxYHcLzcDZ6/Q\n"
+ + "AeQZnQXM5GTb3p09Xsbjo2T2F61b6I7FZiQXBrbw3Zf0CUCkkqTTpD5xifl82yQ6\n"
+ + "89V7SAe8hxI7esAcVDhm/aJMqzVjHLISAU2L3li1sn0jjY2oYtndwN6bRivP8O6t\n"
+ + "9F+W6E0zMlbCxtpZEHLbb6WxlJJrwEQ0MPH2yOCwZUQi6NHksAtEzX2nNKJNyUC7\n"
+ + "QyBVHHMm34H2bmZwsuQp3y2otpcJ9tJnVmYfC3k/w4x2L+DIK7JnQP/C1wQqu2du\n"
+ + "c0w6sydF6RhLoHButrVdYRJTdfK4k03SsSTyMqZ+f7LNnKw3xenzw1VmEpk8mvoQ\n"
+ + "t08tCBOrAgMBAAECggEAByzz6iyMtLYjNjV+QJ7kad6VbL2iA8AHxANZ9xTVHPdd\n"
+ + "YXaJu/dqsA+NpqDlfI8+LDva782XH/HbPCqmMUnAGfXTjXQIvqnIoIHD5F2wKfpC\n"
+ + "hIRNlMXXFgbvRxtqi11yO+80+XcjzuwuCmgzyhsTeEB+bkkdXXpWgHPdmv3emnM6\n"
+ + "MQM9Zgrug0UndPmiUwKOcJSU4PlmlTpHEV4vA6JfA4bvphy9m1jxO5qWeah5yym2\n"
+ + "6FP5BRIDF98kFrDnSXJjajwgLCQ+MypFQXyax6XkxDxuKXbng1bv7eZDjqazIChk\n"
+ + "m0y14X0s0jnWc+AX8vfeSf7d+EsGdVinEwR1aAawEQKBgQDqDB0qxcIQ1oI1Kww8\n"
+ + "9vXefTiuWsf47F+fJ/DIOEbiRfE8IdCgmOABvcqJIoxW/DFMBEdLCcx73Km7pOmd\n"
+ + "Kg1ddScnaO8cOj2v/Ub+fAqVrA4ki4ViYP0A7/Nogga3Jr/x3ey5bitrIfFImteS\n"
+ + "CgBHBzZvoQpvO4lB2tKVgo2P9wKBgQC5sgTEq4sasRGSAY6lIoJno0I8w28a/16D\n"
+ + "es60XQeY1ger8uTGwlT02v/u/arDUmRLPClpujXq6gK29KvtRCHy7JkpGbqW2bZs\n"
+ + "PFKKWR7Tk3XPKYyjv94AIi5/xoFeDhS4lpAvy3Z5tQhYS6wqWKvT6yZQ3kM+Hfxs\n"
+ + "pHgvu3mU7QKBgQC9/E1k3hj1cBtMK4CIsHPPQljTd4+iacYJPPPAo6YuoVX8WPqw\n"
+ + "ksgrwbN59Fh1d8xQh5yTtgWOegYx8uFMGcm1lpbM7+pBQKm4hWGuzGQPMRZd5f/F\n"
+ + "ZzOZIi61I+9tlv/yxxIVR+/ozCm/pSneO04UWi9/F/uPZYW6tnWAtfRR6wKBgGsZ\n"
+ + "8MQaCK4JaI/klAhMghgSQnbXZXKVzUZaA3Rln6cX8u7KtgapOOTMlwaZie8Dy1LV\n"
+ + "TTFstAJcm9o3/h1nyYjZy3C4JTUyNpPwqs6enjf7edxVI4eidwFutZD+xcigqHTa\n"
+ + "aikW2atSrZB3fMIjyF7+5meH+hKOqvNiXOty3qn1AoGAZuVxYQy5FVq3YZxzr3Aa\n"
+ + "Am0ShoXTF6QYIbsaUiUGoa/NlHcw9V/lj4AqBRbxbaYMD+hz2J/od9cb268eJKY8\n"
+ + "3b6MvaUqdNhNnWodJXLhgtmGEHDKmTppz2JSTx/tVzCfhFdcOC79StZvcKLhtoFQ\n"
+ + "+/3lEw6NCIXzm5E4+dtJG4k=\n"
+ "-----END PRIVATE KEY-----\n")
.withClientEmail("asc-135@asc-project-1234.iam.gserviceaccount.com")
.withClientId("105889053725632919854")
@@ -2461,7 +2486,7 @@ public final class CustomAssessmentAutomationsDeleteSamples {
public static void deleteACustomAssessmentAutomation(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.customAssessmentAutomations()
- .deleteWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
+ .deleteByResourceGroupWithResponse("TestResourceGroup", "MyCustomAssessmentAutomation", Context.NONE);
}
}
```
@@ -2575,7 +2600,8 @@ public final class CustomEntityStoreAssignmentsDeleteSamples {
public static void deleteACustomEntityStoreAssignment(com.azure.resourcemanager.security.SecurityManager manager) {
manager
.customEntityStoreAssignments()
- .deleteWithResponse("TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
+ .deleteByResourceGroupWithResponse(
+ "TestResourceGroup", "33e7cc6e-a139-4723-a0e5-76993aee0771", Context.NONE);
}
}
```
@@ -2703,7 +2729,7 @@ public final class DeviceSecurityGroupsDeleteSamples {
com.azure.resourcemanager.security.SecurityManager manager) {
manager
.deviceSecurityGroups()
- .deleteWithResponse(
+ .deleteByResourceGroupWithResponse(
"subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Devices/iotHubs/sampleiothub",
"samplesecuritygroup",
Context.NONE);
@@ -3562,7 +3588,7 @@ public final class IotSecuritySolutionDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteAnIoTSecuritySolution(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.iotSecuritySolutions().deleteWithResponse("MyGroup", "default", Context.NONE);
+ manager.iotSecuritySolutions().deleteByResourceGroupWithResponse("MyGroup", "default", Context.NONE);
}
}
```
@@ -4923,7 +4949,7 @@ public final class SecurityConnectorsDeleteSamples {
* @param manager Entry point to SecurityManager.
*/
public static void deleteASecurityConnector(com.azure.resourcemanager.security.SecurityManager manager) {
- manager.securityConnectors().deleteWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
+ manager.securityConnectors().deleteByResourceGroupWithResponse("myRg", "mySecurityConnectorName", Context.NONE);
}
}
```
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
index ab0806810776..e3b473420ea6 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/SecurityManager.java
@@ -439,7 +439,7 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
.append("-")
.append("com.azure.resourcemanager.security")
.append("/")
- .append("1.0.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java
index 720c79b2ac3f..26e579af6d38 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveApplicationControlsClient.java
@@ -13,16 +13,6 @@
/** An instance of this class provides access to all the operations defined in AdaptiveApplicationControlsClient. */
public interface AdaptiveApplicationControlsClient {
- /**
- * Gets a list of application control machine groups for the subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of application control machine groups for the subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AdaptiveApplicationControlGroupsInner list();
-
/**
* Gets a list of application control machine groups for the subscription.
*
@@ -39,18 +29,14 @@ Response listWithResponse(
Boolean includePathRecommendations, Boolean summary, Context context);
/**
- * Gets an application control VM/server group.
+ * Gets a list of application control machine groups for the subscription.
*
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param groupName Name of an application control machine group.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an application control VM/server group.
+ * @return a list of application control machine groups for the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName);
+ AdaptiveApplicationControlGroupsInner list();
/**
* Gets an application control VM/server group.
@@ -69,20 +55,18 @@ Response getWithResponse(
String ascLocation, String groupName, Context context);
/**
- * Update an application control machine group.
+ * Gets an application control VM/server group.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param groupName Name of an application control machine group.
- * @param body The body parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return an application control VM/server group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AdaptiveApplicationControlGroupInner put(
- String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body);
+ AdaptiveApplicationControlGroupInner get(String ascLocation, String groupName);
/**
* Update an application control machine group.
@@ -102,17 +86,20 @@ Response putWithResponse(
String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body, Context context);
/**
- * Delete an application control machine group.
+ * Update an application control machine group.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param groupName Name of an application control machine group.
+ * @param body The body parameter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String ascLocation, String groupName);
+ AdaptiveApplicationControlGroupInner put(
+ String ascLocation, String groupName, AdaptiveApplicationControlGroupInner body);
/**
* Delete an application control machine group.
@@ -128,4 +115,17 @@ Response putWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String ascLocation, String groupName, Context context);
+
+ /**
+ * Delete an application control machine group.
+ *
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param groupName Name of an application control machine group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String ascLocation, String groupName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java
index 57d481e23e34..9a39539b447e 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdaptiveNetworkHardeningsClient.java
@@ -62,18 +62,20 @@ PagedIterable listByExtendedResource(
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
* @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single Adaptive Network Hardening resource.
+ * @return a single Adaptive Network Hardening resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AdaptiveNetworkHardeningInner get(
+ Response getWithResponse(
String resourceGroupName,
String resourceNamespace,
String resourceType,
String resourceName,
- String adaptiveNetworkHardeningResourceName);
+ String adaptiveNetworkHardeningResourceName,
+ Context context);
/**
* Gets a single Adaptive Network Hardening resource.
@@ -84,20 +86,18 @@ AdaptiveNetworkHardeningInner get(
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
* @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single Adaptive Network Hardening resource along with {@link Response}.
+ * @return a single Adaptive Network Hardening resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ AdaptiveNetworkHardeningInner get(
String resourceGroupName,
String resourceNamespace,
String resourceType,
String resourceName,
- String adaptiveNetworkHardeningResourceName,
- Context context);
+ String adaptiveNetworkHardeningResourceName);
/**
* Enforces the given rules on the NSG(s) listed in the request.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java
index be005c45f468..df0146bcab8f 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AdvancedThreatProtectionsClient.java
@@ -16,53 +16,53 @@ public interface AdvancedThreatProtectionsClient {
* Gets the Advanced Threat Protection settings for the specified resource.
*
* @param resourceId The identifier of the resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Advanced Threat Protection settings for the specified resource.
+ * @return the Advanced Threat Protection settings for the specified resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionSettingInner get(String resourceId);
+ Response getWithResponse(String resourceId, Context context);
/**
* Gets the Advanced Threat Protection settings for the specified resource.
*
* @param resourceId The identifier of the resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Advanced Threat Protection settings for the specified resource along with {@link Response}.
+ * @return the Advanced Threat Protection settings for the specified resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, Context context);
+ AdvancedThreatProtectionSettingInner get(String resourceId);
/**
* Creates or updates the Advanced Threat Protection settings on a specified resource.
*
* @param resourceId The identifier of the resource.
* @param advancedThreatProtectionSetting Advanced Threat Protection Settings.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Advanced Threat Protection resource.
+ * @return the Advanced Threat Protection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AdvancedThreatProtectionSettingInner create(
- String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting);
+ Response createWithResponse(
+ String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context);
/**
* Creates or updates the Advanced Threat Protection settings on a specified resource.
*
* @param resourceId The identifier of the resource.
* @param advancedThreatProtectionSetting Advanced Threat Protection Settings.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Advanced Threat Protection resource along with {@link Response}.
+ * @return the Advanced Threat Protection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context);
+ AdvancedThreatProtectionSettingInner create(
+ String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
index 8ec11098cb0e..6a8b01d63a82 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsClient.java
@@ -124,20 +124,6 @@ public interface AlertsClient {
PagedIterable listResourceGroupLevelByRegion(
String ascLocation, String resourceGroupName, Context context);
- /**
- * Get an alert that is associated with a subscription.
- *
- * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
- * locations.
- * @param alertName Name of the alert object.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an alert that is associated with a subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AlertInner getSubscriptionLevel(String ascLocation, String alertName);
-
/**
* Get an alert that is associated with a subscription.
*
@@ -154,20 +140,18 @@ PagedIterable listResourceGroupLevelByRegion(
Response getSubscriptionLevelWithResponse(String ascLocation, String alertName, Context context);
/**
- * Get an alert that is associated a resource group or a resource in a resource group.
+ * Get an alert that is associated with a subscription.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an alert that is associated a resource group or a resource in a resource group.
+ * @return an alert that is associated with a subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName);
+ AlertInner getSubscriptionLevel(String ascLocation, String alertName);
/**
* Get an alert that is associated a resource group or a resource in a resource group.
@@ -189,17 +173,20 @@ Response getResourceGroupLevelWithResponse(
String resourceGroupName, String ascLocation, String alertName, Context context);
/**
- * Update the alert's state.
+ * Get an alert that is associated a resource group or a resource in a resource group.
*
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an alert that is associated a resource group or a resource in a resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName);
+ AlertInner getResourceGroupLevel(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -228,7 +215,7 @@ Response updateSubscriptionLevelStateToDismissWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToDismiss(String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -257,7 +244,7 @@ Response updateSubscriptionLevelStateToResolveWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToResolve(String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -286,7 +273,7 @@ Response updateSubscriptionLevelStateToActivateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToActivate(String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -307,8 +294,6 @@ Response updateSubscriptionLevelStateToInProgressWithResponse(
/**
* Update the alert's state.
*
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param alertName Name of the alert object.
@@ -317,7 +302,7 @@ Response updateSubscriptionLevelStateToInProgressWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName);
+ void updateSubscriptionLevelStateToInProgress(String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -350,7 +335,7 @@ Response updateResourceGroupLevelStateToResolveWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName);
+ void updateResourceGroupLevelStateToResolve(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -383,7 +368,7 @@ Response updateResourceGroupLevelStateToDismissWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName);
+ void updateResourceGroupLevelStateToDismiss(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -416,7 +401,7 @@ Response updateResourceGroupLevelStateToActivateWithResponse(
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName);
+ void updateResourceGroupLevelStateToActivate(String resourceGroupName, String ascLocation, String alertName);
/**
* Update the alert's state.
@@ -436,6 +421,21 @@ Response updateResourceGroupLevelStateToActivateWithResponse(
Response updateResourceGroupLevelStateToInProgressWithResponse(
String resourceGroupName, String ascLocation, String alertName, Context context);
+ /**
+ * Update the alert's state.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
+ * locations.
+ * @param alertName Name of the alert object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateResourceGroupLevelStateToInProgress(String resourceGroupName, String ascLocation, String alertName);
+
/**
* Simulate security alerts.
*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java
index 5ac06107ec55..64f7db01f3ce 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AlertsSuppressionRulesClient.java
@@ -40,78 +40,78 @@ public interface AlertsSuppressionRulesClient {
* Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
*
* @param alertsSuppressionRuleName The unique name of the suppression alert rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
+ * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertsSuppressionRuleInner get(String alertsSuppressionRuleName);
+ Response getWithResponse(String alertsSuppressionRuleName, Context context);
/**
* Get dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
*
* @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription along with {@link
- * Response}.
+ * @return dismiss rule, with name: {alertsSuppressionRuleName}, for the given subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String alertsSuppressionRuleName, Context context);
+ AlertsSuppressionRuleInner get(String alertsSuppressionRuleName);
/**
* Update existing rule or create new rule if it doesn't exist.
*
* @param alertsSuppressionRuleName The unique name of the suppression alert rule.
* @param alertsSuppressionRule Suppression rule object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes the suppression rule.
+ * @return describes the suppression rule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AlertsSuppressionRuleInner update(
- String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule);
+ Response updateWithResponse(
+ String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, Context context);
/**
* Update existing rule or create new rule if it doesn't exist.
*
* @param alertsSuppressionRuleName The unique name of the suppression alert rule.
* @param alertsSuppressionRule Suppression rule object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes the suppression rule along with {@link Response}.
+ * @return describes the suppression rule.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule, Context context);
+ AlertsSuppressionRuleInner update(
+ String alertsSuppressionRuleName, AlertsSuppressionRuleInner alertsSuppressionRule);
/**
* Delete dismiss alert rule for this subscription.
*
* @param alertsSuppressionRuleName The unique name of the suppression alert rule.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String alertsSuppressionRuleName);
+ Response deleteWithResponse(String alertsSuppressionRuleName, Context context);
/**
* Delete dismiss alert rule for this subscription.
*
* @param alertsSuppressionRuleName The unique name of the suppression alert rule.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String alertsSuppressionRuleName, Context context);
+ void delete(String alertsSuppressionRuleName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java
index b3d217b64efb..021776947464 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AllowedConnectionsClient.java
@@ -76,14 +76,16 @@ public interface AllowedConnectionsClient {
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param connectionType The type of allowed connections (Internal, External).
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of all possible traffic between resources for the subscription and location, based on connection
- * type.
+ * type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AllowedConnectionsResourceInner get(String resourceGroupName, String ascLocation, ConnectionType connectionType);
+ Response getWithResponse(
+ String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context);
/**
* Gets the list of all possible traffic between resources for the subscription and location, based on connection
@@ -94,14 +96,12 @@ public interface AllowedConnectionsClient {
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param connectionType The type of allowed connections (Internal, External).
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the list of all possible traffic between resources for the subscription and location, based on connection
- * type along with {@link Response}.
+ * type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String ascLocation, ConnectionType connectionType, Context context);
+ AllowedConnectionsResourceInner get(String resourceGroupName, String ascLocation, ConnectionType connectionType);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
index 8ad231303db7..1454ded26234 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ApplicationOperationsClient.java
@@ -16,76 +16,76 @@ public interface ApplicationOperationsClient {
* Get a specific application for the requested scope by applicationId.
*
* @param applicationId The security Application key - unique key for the standard application.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific application for the requested scope by applicationId.
+ * @return a specific application for the requested scope by applicationId along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String applicationId);
+ Response getWithResponse(String applicationId, Context context);
/**
* Get a specific application for the requested scope by applicationId.
*
* @param applicationId The security Application key - unique key for the standard application.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific application for the requested scope by applicationId along with {@link Response}.
+ * @return a specific application for the requested scope by applicationId.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String applicationId, Context context);
+ ApplicationInner get(String applicationId);
/**
* Creates or update a security application on the given subscription.
*
* @param applicationId The security Application key - unique key for the standard application.
* @param application Application over a subscription scope.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security Application over a given scope.
+ * @return security Application over a given scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner createOrUpdate(String applicationId, ApplicationInner application);
+ Response createOrUpdateWithResponse(
+ String applicationId, ApplicationInner application, Context context);
/**
* Creates or update a security application on the given subscription.
*
* @param applicationId The security Application key - unique key for the standard application.
* @param application Application over a subscription scope.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security Application over a given scope along with {@link Response}.
+ * @return security Application over a given scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String applicationId, ApplicationInner application, Context context);
+ ApplicationInner createOrUpdate(String applicationId, ApplicationInner application);
/**
* Delete an Application over a given scope.
*
* @param applicationId The security Application key - unique key for the standard application.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String applicationId);
+ Response deleteWithResponse(String applicationId, Context context);
/**
* Delete an Application over a given scope.
*
* @param applicationId The security Application key - unique key for the standard application.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String applicationId, Context context);
+ void delete(String applicationId);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
index 4df089f9e4e8..ea903c0cc61a 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsClient.java
@@ -49,29 +49,29 @@ public interface AssessmentsClient {
*
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param expand OData expand. Optional.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a security assessment on your scanned resource.
+ * @return a security assessment on your scanned resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentResponseInner get(String resourceId, String assessmentName);
+ Response getWithResponse(
+ String resourceId, String assessmentName, ExpandEnum expand, Context context);
/**
* Get a security assessment on your scanned resource.
*
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param expand OData expand. Optional.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a security assessment on your scanned resource along with {@link Response}.
+ * @return a security assessment on your scanned resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceId, String assessmentName, ExpandEnum expand, Context context);
+ SecurityAssessmentResponseInner get(String resourceId, String assessmentName);
/**
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -80,14 +80,15 @@ Response getWithResponse(
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assessment Calculated assessment on a pre-defined assessment metadata.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment on a resource - response format.
+ * @return security assessment on a resource - response format along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentResponseInner createOrUpdate(
- String resourceId, String assessmentName, SecurityAssessment assessment);
+ Response createOrUpdateWithResponse(
+ String resourceId, String assessmentName, SecurityAssessment assessment, Context context);
/**
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -96,15 +97,14 @@ SecurityAssessmentResponseInner createOrUpdate(
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assessment Calculated assessment on a pre-defined assessment metadata.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment on a resource - response format along with {@link Response}.
+ * @return security assessment on a resource - response format.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceId, String assessmentName, SecurityAssessment assessment, Context context);
+ SecurityAssessmentResponseInner createOrUpdate(
+ String resourceId, String assessmentName, SecurityAssessment assessment);
/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -112,12 +112,14 @@ Response createOrUpdateWithResponse(
*
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceId, String assessmentName);
+ Response deleteWithResponse(String resourceId, String assessmentName, Context context);
/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
@@ -125,12 +127,10 @@ Response createOrUpdateWithResponse(
*
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceId, String assessmentName, Context context);
+ void delete(String resourceId, String assessmentName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
index 99d65486e61f..d2d08e0c5684 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AssessmentsMetadatasClient.java
@@ -39,26 +39,26 @@ public interface AssessmentsMetadatasClient {
* Get metadata information on an assessment type.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata information on an assessment type.
+ * @return metadata information on an assessment type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);
+ Response getWithResponse(String assessmentMetadataName, Context context);
/**
* Get metadata information on an assessment type.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata information on an assessment type along with {@link Response}.
+ * @return metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String assessmentMetadataName, Context context);
+ SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);
/**
* Get metadata information on all assessment types in a specific subscription.
@@ -88,80 +88,80 @@ public interface AssessmentsMetadatasClient {
* Get metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata information on an assessment type in a specific subscription.
+ * @return metadata information on an assessment type in a specific subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);
+ Response getInSubscriptionWithResponse(
+ String assessmentMetadataName, Context context);
/**
* Get metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return metadata information on an assessment type in a specific subscription along with {@link Response}.
+ * @return metadata information on an assessment type in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getInSubscriptionWithResponse(
- String assessmentMetadataName, Context context);
+ SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);
/**
* Create metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
* @param assessmentMetadata AssessmentMetadata object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment metadata response.
+ * @return security assessment metadata response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityAssessmentMetadataResponseInner createInSubscription(
- String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata);
+ Response createInSubscriptionWithResponse(
+ String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);
/**
* Create metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
* @param assessmentMetadata AssessmentMetadata object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security assessment metadata response along with {@link Response}.
+ * @return security assessment metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createInSubscriptionWithResponse(
- String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);
+ SecurityAssessmentMetadataResponseInner createInSubscription(
+ String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata);
/**
* Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
* assessments of that type in that subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteInSubscription(String assessmentMetadataName);
+ Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context);
/**
* Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
* assessments of that type in that subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context);
+ void deleteInSubscription(String assessmentMetadataName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java
index 20fc64c0b756..7d93098d7d09 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutoProvisioningSettingsClient.java
@@ -39,52 +39,52 @@ public interface AutoProvisioningSettingsClient {
* Details of a specific setting.
*
* @param settingName Auto provisioning setting key.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return auto provisioning setting.
+ * @return auto provisioning setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutoProvisioningSettingInner get(String settingName);
+ Response getWithResponse(String settingName, Context context);
/**
* Details of a specific setting.
*
* @param settingName Auto provisioning setting key.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return auto provisioning setting along with {@link Response}.
+ * @return auto provisioning setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String settingName, Context context);
+ AutoProvisioningSettingInner get(String settingName);
/**
* Details of a specific setting.
*
* @param settingName Auto provisioning setting key.
* @param setting Auto provisioning setting key.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return auto provisioning setting.
+ * @return auto provisioning setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutoProvisioningSettingInner create(String settingName, AutoProvisioningSettingInner setting);
+ Response createWithResponse(
+ String settingName, AutoProvisioningSettingInner setting, Context context);
/**
* Details of a specific setting.
*
* @param settingName Auto provisioning setting key.
* @param setting Auto provisioning setting key.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return auto provisioning setting along with {@link Response}.
+ * @return auto provisioning setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String settingName, AutoProvisioningSettingInner setting, Context context);
+ AutoProvisioningSettingInner create(String settingName, AutoProvisioningSettingInner setting);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java
index 3dc571ab2398..cfbcb6c5613d 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/AutomationsClient.java
@@ -73,13 +73,15 @@ public interface AutomationsClient {
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param automationName The security automation name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the security automation resource.
+ * @return the security automation resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutomationInner getByResourceGroup(String resourceGroupName, String automationName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String automationName, Context context);
/**
* Retrieves information about the model of a security automation.
@@ -87,15 +89,13 @@ public interface AutomationsClient {
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param automationName The security automation name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the security automation resource along with {@link Response}.
+ * @return the security automation resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String automationName, Context context);
+ AutomationInner getByResourceGroup(String resourceGroupName, String automationName);
/**
* Creates or updates a security automation. If a security automation is already created and a subsequent request is
@@ -105,13 +105,15 @@ Response getByResourceGroupWithResponse(
* insensitive.
* @param automationName The security automation name.
* @param automation The security automation resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the security automation resource.
+ * @return the security automation resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String automationName, AutomationInner automation, Context context);
/**
* Creates or updates a security automation. If a security automation is already created and a subsequent request is
@@ -121,15 +123,13 @@ Response getByResourceGroupWithResponse(
* insensitive.
* @param automationName The security automation name.
* @param automation The security automation resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the security automation resource along with {@link Response}.
+ * @return the security automation resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String automationName, AutomationInner automation, Context context);
+ AutomationInner createOrUpdate(String resourceGroupName, String automationName, AutomationInner automation);
/**
* Deletes a security automation.
@@ -137,12 +137,14 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param automationName The security automation name.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String automationName);
+ Response deleteWithResponse(String resourceGroupName, String automationName, Context context);
/**
* Deletes a security automation.
@@ -150,14 +152,12 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param automationName The security automation name.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String automationName, Context context);
+ void delete(String resourceGroupName, String automationName);
/**
* Validates the security automation model before create or update. Any validation errors are returned to the
@@ -167,14 +167,15 @@ Response createOrUpdateWithResponse(
* insensitive.
* @param automationName The security automation name.
* @param automation The security automation resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the security automation model state property bag.
+ * @return the security automation model state property bag along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AutomationValidationStatusInner validate(
- String resourceGroupName, String automationName, AutomationInner automation);
+ Response validateWithResponse(
+ String resourceGroupName, String automationName, AutomationInner automation, Context context);
/**
* Validates the security automation model before create or update. Any validation errors are returned to the
@@ -184,13 +185,12 @@ AutomationValidationStatusInner validate(
* insensitive.
* @param automationName The security automation name.
* @param automation The security automation resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the security automation model state property bag along with {@link Response}.
+ * @return the security automation model state property bag.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response validateWithResponse(
- String resourceGroupName, String automationName, AutomationInner automation, Context context);
+ AutomationValidationStatusInner validate(
+ String resourceGroupName, String automationName, AutomationInner automation);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java
index f818008c0fc1..834cf0990b35 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ComplianceResultsClient.java
@@ -45,25 +45,25 @@ public interface ComplianceResultsClient {
*
* @param resourceId The identifier of the resource.
* @param complianceResultName name of the desired assessment compliance result.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a compliance result.
+ * @return a compliance result along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComplianceResultInner get(String resourceId, String complianceResultName);
+ Response getWithResponse(String resourceId, String complianceResultName, Context context);
/**
* Security Compliance Result.
*
* @param resourceId The identifier of the resource.
* @param complianceResultName name of the desired assessment compliance result.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a compliance result along with {@link Response}.
+ * @return a compliance result.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceId, String complianceResultName, Context context);
+ ComplianceResultInner get(String resourceId, String complianceResultName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
index caf2bc4ee26a..7914ab6d4293 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CompliancesClient.java
@@ -46,13 +46,14 @@ public interface CompliancesClient {
* @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @param complianceName name of the Compliance.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return compliance of a scope.
+ * @return compliance of a scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ComplianceInner get(String scope, String complianceName);
+ Response getWithResponse(String scope, String complianceName, Context context);
/**
* Details of a specific Compliance.
@@ -60,12 +61,11 @@ public interface CompliancesClient {
* @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @param complianceName name of the Compliance.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return compliance of a scope along with {@link Response}.
+ * @return compliance of a scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String scope, String complianceName, Context context);
+ ComplianceInner get(String scope, String complianceName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java
index 79ba0649f2bf..fc3073c4ec5a 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ConnectorsClient.java
@@ -41,26 +41,26 @@ public interface ConnectorsClient {
* Details of a specific cloud account connector.
*
* @param connectorName Name of the cloud account connector.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the connector setting.
+ * @return the connector setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConnectorSettingInner get(String connectorName);
+ Response getWithResponse(String connectorName, Context context);
/**
* Details of a specific cloud account connector.
*
* @param connectorName Name of the cloud account connector.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the connector setting along with {@link Response}.
+ * @return the connector setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String connectorName, Context context);
+ ConnectorSettingInner get(String connectorName);
/**
* Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, use either
@@ -68,13 +68,15 @@ public interface ConnectorsClient {
*
* @param connectorName Name of the cloud account connector.
* @param connectorSetting Settings for the cloud account connector.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the connector setting.
+ * @return the connector setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSettingInner connectorSetting);
+ Response createOrUpdateWithResponse(
+ String connectorName, ConnectorSettingInner connectorSetting, Context context);
/**
* Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, use either
@@ -82,37 +84,35 @@ public interface ConnectorsClient {
*
* @param connectorName Name of the cloud account connector.
* @param connectorSetting Settings for the cloud account connector.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the connector setting along with {@link Response}.
+ * @return the connector setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String connectorName, ConnectorSettingInner connectorSetting, Context context);
+ ConnectorSettingInner createOrUpdate(String connectorName, ConnectorSettingInner connectorSetting);
/**
* Delete a cloud account connector from a subscription.
*
* @param connectorName Name of the cloud account connector.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String connectorName);
+ Response deleteWithResponse(String connectorName, Context context);
/**
* Delete a cloud account connector from a subscription.
*
* @param connectorName Name of the cloud account connector.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String connectorName, Context context);
+ void delete(String connectorName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
index 6ec47893cf49..cdd6a0b7a94f 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomAssessmentAutomationsClient.java
@@ -22,13 +22,16 @@ public interface CustomAssessmentAutomationsClient {
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single custom assessment automation by name for the provided subscription and resource group.
+ * @return a single custom assessment automation by name for the provided subscription and resource group along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CustomAssessmentAutomationInner getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String customAssessmentAutomationName, Context context);
/**
* Gets a custom assessment automation
@@ -38,16 +41,13 @@ public interface CustomAssessmentAutomationsClient {
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customAssessmentAutomationName Name of the Custom Assessment Automation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single custom assessment automation by name for the provided subscription and resource group along with
- * {@link Response}.
+ * @return a single custom assessment automation by name for the provided subscription and resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String customAssessmentAutomationName, Context context);
+ CustomAssessmentAutomationInner getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName);
/**
* Creates a custom assessment automation
@@ -59,16 +59,18 @@ Response getByResourceGroupWithResponse(
* insensitive.
* @param customAssessmentAutomationName Name of the Custom Assessment Automation.
* @param customAssessmentAutomationBody Custom Assessment Automation body.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return custom Assessment Automation.
+ * @return custom Assessment Automation along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CustomAssessmentAutomationInner create(
+ Response createWithResponse(
String resourceGroupName,
String customAssessmentAutomationName,
- CustomAssessmentAutomationRequest customAssessmentAutomationBody);
+ CustomAssessmentAutomationRequest customAssessmentAutomationBody,
+ Context context);
/**
* Creates a custom assessment automation
@@ -80,18 +82,16 @@ CustomAssessmentAutomationInner create(
* insensitive.
* @param customAssessmentAutomationName Name of the Custom Assessment Automation.
* @param customAssessmentAutomationBody Custom Assessment Automation body.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return custom Assessment Automation along with {@link Response}.
+ * @return custom Assessment Automation.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
+ CustomAssessmentAutomationInner create(
String resourceGroupName,
String customAssessmentAutomationName,
- CustomAssessmentAutomationRequest customAssessmentAutomationBody,
- Context context);
+ CustomAssessmentAutomationRequest customAssessmentAutomationBody);
/**
* Deletes a custom assessment automation
@@ -101,12 +101,14 @@ Response createWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customAssessmentAutomationName Name of the Custom Assessment Automation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String customAssessmentAutomationName);
+ Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context);
/**
* Deletes a custom assessment automation
@@ -116,14 +118,12 @@ Response createWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customAssessmentAutomationName Name of the Custom Assessment Automation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String customAssessmentAutomationName, Context context);
+ void delete(String resourceGroupName, String customAssessmentAutomationName);
/**
* List custom assessment automations in a subscription and a resource group
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
index eb45aec5f750..5f7d062043ad 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/CustomEntityStoreAssignmentsClient.java
@@ -22,14 +22,16 @@ public interface CustomEntityStoreAssignmentsClient {
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single custom entity store assignment by name for the provided subscription and resource group.
+ * @return a single custom entity store assignment by name for the provided subscription and resource group along
+ * with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CustomEntityStoreAssignmentInner getByResourceGroup(
- String resourceGroupName, String customEntityStoreAssignmentName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String customEntityStoreAssignmentName, Context context);
/**
* Gets a custom entity store assignment
@@ -39,16 +41,14 @@ CustomEntityStoreAssignmentInner getByResourceGroup(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single custom entity store assignment by name for the provided subscription and resource group along
- * with {@link Response}.
+ * @return a single custom entity store assignment by name for the provided subscription and resource group.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String customEntityStoreAssignmentName, Context context);
+ CustomEntityStoreAssignmentInner getByResourceGroup(
+ String resourceGroupName, String customEntityStoreAssignmentName);
/**
* Creates a custom entity store assignment
@@ -59,16 +59,18 @@ Response getByResourceGroupWithResponse(
* insensitive.
* @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
* @param customEntityStoreAssignmentRequestBody Custom entity store assignment body.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return custom entity store assignment.
+ * @return custom entity store assignment along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CustomEntityStoreAssignmentInner create(
+ Response createWithResponse(
String resourceGroupName,
String customEntityStoreAssignmentName,
- CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody);
+ CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody,
+ Context context);
/**
* Creates a custom entity store assignment
@@ -79,18 +81,16 @@ CustomEntityStoreAssignmentInner create(
* insensitive.
* @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
* @param customEntityStoreAssignmentRequestBody Custom entity store assignment body.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return custom entity store assignment along with {@link Response}.
+ * @return custom entity store assignment.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
+ CustomEntityStoreAssignmentInner create(
String resourceGroupName,
String customEntityStoreAssignmentName,
- CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody,
- Context context);
+ CustomEntityStoreAssignmentRequest customEntityStoreAssignmentRequestBody);
/**
* Deleted a custom entity store assignment
@@ -100,12 +100,15 @@ Response createWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String customEntityStoreAssignmentName);
+ Response deleteWithResponse(
+ String resourceGroupName, String customEntityStoreAssignmentName, Context context);
/**
* Deleted a custom entity store assignment
@@ -115,15 +118,12 @@ Response createWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param customEntityStoreAssignmentName Name of the custom entity store assignment. Generated name is GUID.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String customEntityStoreAssignmentName, Context context);
+ void delete(String resourceGroupName, String customEntityStoreAssignmentName);
/**
* List custom entity store assignments in a subscription and a resource group
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java
index 655b153a06d7..e03cd1b990c0 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DeviceSecurityGroupsClient.java
@@ -38,20 +38,6 @@ public interface DeviceSecurityGroupsClient {
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceId, Context context);
- /**
- * Use this method to get the device security group for the specified IoT Hub resource.
- *
- * @param resourceId The identifier of the resource.
- * @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
- * group is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the device security group resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGroupName);
-
/**
* Use this method to get the device security group for the specified IoT Hub resource.
*
@@ -69,20 +55,18 @@ Response getWithResponse(
String resourceId, String deviceSecurityGroupName, Context context);
/**
- * Use this method to creates or updates the device security group on a specified IoT Hub resource.
+ * Use this method to get the device security group for the specified IoT Hub resource.
*
* @param resourceId The identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
- * @param deviceSecurityGroup Security group object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the device security group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DeviceSecurityGroupInner createOrUpdate(
- String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup);
+ DeviceSecurityGroupInner get(String resourceId, String deviceSecurityGroupName);
/**
* Use this method to creates or updates the device security group on a specified IoT Hub resource.
@@ -105,17 +89,20 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * User this method to deletes the device security group.
+ * Use this method to creates or updates the device security group on a specified IoT Hub resource.
*
* @param resourceId The identifier of the resource.
* @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
* group is case insensitive.
+ * @param deviceSecurityGroup Security group object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the device security group resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceId, String deviceSecurityGroupName);
+ DeviceSecurityGroupInner createOrUpdate(
+ String resourceId, String deviceSecurityGroupName, DeviceSecurityGroupInner deviceSecurityGroup);
/**
* User this method to deletes the device security group.
@@ -131,4 +118,17 @@ Response createOrUpdateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceId, String deviceSecurityGroupName, Context context);
+
+ /**
+ * User this method to deletes the device security group.
+ *
+ * @param resourceId The identifier of the resource.
+ * @param deviceSecurityGroupName The name of the device security group. Note that the name of the device security
+ * group is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceId, String deviceSecurityGroupName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java
index 89dd8c7ddaf7..692eeaf708cc 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/DiscoveredSecuritySolutionsClient.java
@@ -74,14 +74,15 @@ public interface DiscoveredSecuritySolutionsClient {
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param discoveredSecuritySolutionName Name of a discovered security solution.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific discovered Security Solution.
+ * @return a specific discovered Security Solution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DiscoveredSecuritySolutionInner get(
- String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName);
+ Response getWithResponse(
+ String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context);
/**
* Gets a specific discovered Security Solution.
@@ -91,13 +92,12 @@ DiscoveredSecuritySolutionInner get(
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param discoveredSecuritySolutionName Name of a discovered security solution.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific discovered Security Solution along with {@link Response}.
+ * @return a specific discovered Security Solution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName, Context context);
+ DiscoveredSecuritySolutionInner get(
+ String resourceGroupName, String ascLocation, String discoveredSecuritySolutionName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java
index af4fd44d0880..ace625003ab6 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ExternalSecuritySolutionsClient.java
@@ -74,14 +74,15 @@ public interface ExternalSecuritySolutionsClient {
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param externalSecuritySolutionsName Name of an external security solution.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific external Security Solution.
+ * @return a specific external Security Solution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ExternalSecuritySolutionInner get(
- String resourceGroupName, String ascLocation, String externalSecuritySolutionsName);
+ Response getWithResponse(
+ String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context);
/**
* Gets a specific external Security Solution.
@@ -91,13 +92,12 @@ ExternalSecuritySolutionInner get(
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param externalSecuritySolutionsName Name of an external security solution.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific external Security Solution along with {@link Response}.
+ * @return a specific external Security Solution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String ascLocation, String externalSecuritySolutionsName, Context context);
+ ExternalSecuritySolutionInner get(
+ String resourceGroupName, String ascLocation, String externalSecuritySolutionsName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
index 4803aa06cf7c..611311e8ef0b 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceAssignmentsClient.java
@@ -52,13 +52,15 @@ public interface GovernanceAssignmentsClient {
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assignmentKey The security governance assignment key - the assessment key of the required governance
* assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific governanceAssignment for the requested scope by AssignmentKey.
+ * @return a specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey);
+ Response getWithResponse(
+ String scope, String assessmentName, String assignmentKey, Context context);
/**
* Get a specific governanceAssignment for the requested scope by AssignmentKey.
@@ -68,15 +70,13 @@ public interface GovernanceAssignmentsClient {
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assignmentKey The security governance assignment key - the assessment key of the required governance
* assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific governanceAssignment for the requested scope by AssignmentKey along with {@link Response}.
+ * @return a specific governanceAssignment for the requested scope by AssignmentKey.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String scope, String assessmentName, String assignmentKey, Context context);
+ GovernanceAssignmentInner get(String scope, String assessmentName, String assignmentKey);
/**
* Creates or update a security GovernanceAssignment on the given subscription.
@@ -87,14 +87,19 @@ Response getWithResponse(
* @param assignmentKey The security governance assignment key - the assessment key of the required governance
* assignment.
* @param governanceAssignment GovernanceAssignment over a subscription scope.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security GovernanceAssignment over a given scope.
+ * @return security GovernanceAssignment over a given scope along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceAssignmentInner createOrUpdate(
- String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment);
+ Response createOrUpdateWithResponse(
+ String scope,
+ String assessmentName,
+ String assignmentKey,
+ GovernanceAssignmentInner governanceAssignment,
+ Context context);
/**
* Creates or update a security GovernanceAssignment on the given subscription.
@@ -105,19 +110,14 @@ GovernanceAssignmentInner createOrUpdate(
* @param assignmentKey The security governance assignment key - the assessment key of the required governance
* assignment.
* @param governanceAssignment GovernanceAssignment over a subscription scope.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security GovernanceAssignment over a given scope along with {@link Response}.
+ * @return security GovernanceAssignment over a given scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String scope,
- String assessmentName,
- String assignmentKey,
- GovernanceAssignmentInner governanceAssignment,
- Context context);
+ GovernanceAssignmentInner createOrUpdate(
+ String scope, String assessmentName, String assignmentKey, GovernanceAssignmentInner governanceAssignment);
/**
* Delete a GovernanceAssignment over a given scope.
@@ -127,12 +127,14 @@ Response createOrUpdateWithResponse(
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assignmentKey The security governance assignment key - the assessment key of the required governance
* assignment.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String scope, String assessmentName, String assignmentKey);
+ Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context);
/**
* Delete a GovernanceAssignment over a given scope.
@@ -142,12 +144,10 @@ Response createOrUpdateWithResponse(
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @param assignmentKey The security governance assignment key - the assessment key of the required governance
* assignment.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String scope, String assessmentName, String assignmentKey, Context context);
+ void delete(String scope, String assessmentName, String assignmentKey);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java
index 1349ed21eaaa..e178e1f24eaf 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/GovernanceRulesOperationsClient.java
@@ -15,18 +15,6 @@
/** An instance of this class provides access to all the operations defined in GovernanceRulesOperationsClient. */
public interface GovernanceRulesOperationsClient {
- /**
- * Get a specific governanceRule for the requested scope by ruleId.
- *
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific governanceRule for the requested scope by ruleId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner get(String ruleId);
-
/**
* Get a specific governanceRule for the requested scope by ruleId.
*
@@ -41,17 +29,16 @@ public interface GovernanceRulesOperationsClient {
Response getWithResponse(String ruleId, Context context);
/**
- * Creates or update a security GovernanceRule on the given subscription.
+ * Get a specific governanceRule for the requested scope by ruleId.
*
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param governanceRule GovernanceRule over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security GovernanceRule over a given scope.
+ * @return a specific governanceRule for the requested scope by ruleId.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule);
+ GovernanceRuleInner get(String ruleId);
/**
* Creates or update a security GovernanceRule on the given subscription.
@@ -69,15 +56,17 @@ Response createOrUpdateWithResponse(
String ruleId, GovernanceRuleInner governanceRule, Context context);
/**
- * Delete a GovernanceRule over a given scope.
+ * Creates or update a security GovernanceRule on the given subscription.
*
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
+ * @param governanceRule GovernanceRule over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security GovernanceRule over a given scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String ruleId);
+ GovernanceRuleInner createOrUpdate(String ruleId, GovernanceRuleInner governanceRule);
/**
* Delete a GovernanceRule over a given scope.
@@ -93,45 +82,42 @@ Response createOrUpdateWithResponse(
Response deleteWithResponse(String ruleId, Context context);
/**
- * Execute a security GovernanceRule on the given subscription.
+ * Delete a GovernanceRule over a given scope.
*
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRuleIdExecuteSingleSubscription(
- String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String ruleId);
/**
* Execute a security GovernanceRule on the given subscription.
*
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRuleIdExecuteSingleSubscription(
- String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
+ SyncPoller, Void> beginRuleIdExecuteSingleSubscription(String ruleId);
/**
* Execute a security GovernanceRule on the given subscription.
*
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
* @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void ruleIdExecuteSingleSubscription(String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginRuleIdExecuteSingleSubscription(
+ String ruleId, ExecuteGovernanceRuleParams executeGovernanceRuleParams, Context context);
/**
* Execute a security GovernanceRule on the given subscription.
@@ -165,7 +151,6 @@ void ruleIdExecuteSingleSubscription(
* insensitive.
* @param securityConnectorName The security connector name.
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -173,10 +158,7 @@ void ruleIdExecuteSingleSubscription(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector(
- String resourceGroupName,
- String securityConnectorName,
- String ruleId,
- ExecuteGovernanceRuleParams executeGovernanceRuleParams);
+ String resourceGroupName, String securityConnectorName, String ruleId);
/**
* Execute a security GovernanceRule on the given security connector.
@@ -200,25 +182,6 @@ SyncPoller, Void> beginRuleIdExecuteSingleSecurityConnector(
ExecuteGovernanceRuleParams executeGovernanceRuleParams,
Context context);
- /**
- * Execute a security GovernanceRule on the given security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param executeGovernanceRuleParams GovernanceRule over a subscription scope.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void ruleIdExecuteSingleSecurityConnector(
- String resourceGroupName,
- String securityConnectorName,
- String ruleId,
- ExecuteGovernanceRuleParams executeGovernanceRuleParams);
-
/**
* Execute a security GovernanceRule on the given security connector.
*
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
index 330110c0857a..a43e048fb2fa 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/InformationProtectionPoliciesClient.java
@@ -20,13 +20,15 @@ public interface InformationProtectionPoliciesClient {
* @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @param informationProtectionPolicyName Name of the information protection policy.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information protection policy.
+ * @return information protection policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InformationProtectionPolicyInner get(String scope, InformationProtectionPolicyName informationProtectionPolicyName);
+ Response getWithResponse(
+ String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context);
/**
* Details of the information protection policy.
@@ -34,15 +36,13 @@ public interface InformationProtectionPoliciesClient {
* @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @param informationProtectionPolicyName Name of the information protection policy.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information protection policy along with {@link Response}.
+ * @return information protection policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String scope, InformationProtectionPolicyName informationProtectionPolicyName, Context context);
+ InformationProtectionPolicyInner get(String scope, InformationProtectionPolicyName informationProtectionPolicyName);
/**
* Details of the information protection policy.
@@ -51,16 +51,18 @@ Response getWithResponse(
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @param informationProtectionPolicyName Name of the information protection policy.
* @param informationProtectionPolicy Information protection policy.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information protection policy.
+ * @return information protection policy along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- InformationProtectionPolicyInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String scope,
InformationProtectionPolicyName informationProtectionPolicyName,
- InformationProtectionPolicyInner informationProtectionPolicy);
+ InformationProtectionPolicyInner informationProtectionPolicy,
+ Context context);
/**
* Details of the information protection policy.
@@ -69,18 +71,16 @@ InformationProtectionPolicyInner createOrUpdate(
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @param informationProtectionPolicyName Name of the information protection policy.
* @param informationProtectionPolicy Information protection policy.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return information protection policy along with {@link Response}.
+ * @return information protection policy.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ InformationProtectionPolicyInner createOrUpdate(
String scope,
InformationProtectionPolicyName informationProtectionPolicyName,
- InformationProtectionPolicyInner informationProtectionPolicy,
- Context context);
+ InformationProtectionPolicyInner informationProtectionPolicy);
/**
* Information protection policies of a specific management group.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java
index 8c9a31992fbf..c0765e68586c 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IngestionSettingsClient.java
@@ -37,18 +37,6 @@ public interface IngestionSettingsClient {
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
- /**
- * Settings for ingesting security data and logs to correlate with resources associated with the subscription.
- *
- * @param ingestionSettingName Name of the ingestion setting.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return configures how to correlate scan data and logs with resources associated with the subscription.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IngestionSettingInner get(String ingestionSettingName);
-
/**
* Settings for ingesting security data and logs to correlate with resources associated with the subscription.
*
@@ -64,17 +52,16 @@ public interface IngestionSettingsClient {
Response getWithResponse(String ingestionSettingName, Context context);
/**
- * Create setting for ingesting security data and logs to correlate with resources associated with the subscription.
+ * Settings for ingesting security data and logs to correlate with resources associated with the subscription.
*
* @param ingestionSettingName Name of the ingestion setting.
- * @param ingestionSetting Ingestion setting object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return configures how to correlate scan data and logs with resources associated with the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IngestionSettingInner create(String ingestionSettingName, IngestionSettingInner ingestionSetting);
+ IngestionSettingInner get(String ingestionSettingName);
/**
* Create setting for ingesting security data and logs to correlate with resources associated with the subscription.
@@ -93,15 +80,17 @@ Response createWithResponse(
String ingestionSettingName, IngestionSettingInner ingestionSetting, Context context);
/**
- * Deletes the ingestion settings for this subscription.
+ * Create setting for ingesting security data and logs to correlate with resources associated with the subscription.
*
* @param ingestionSettingName Name of the ingestion setting.
+ * @param ingestionSetting Ingestion setting object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return configures how to correlate scan data and logs with resources associated with the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String ingestionSettingName);
+ IngestionSettingInner create(String ingestionSettingName, IngestionSettingInner ingestionSetting);
/**
* Deletes the ingestion settings for this subscription.
@@ -117,16 +106,15 @@ Response createWithResponse(
Response deleteWithResponse(String ingestionSettingName, Context context);
/**
- * Returns the token that is used for correlating ingested telemetry with the resources in the subscription.
+ * Deletes the ingestion settings for this subscription.
*
* @param ingestionSettingName Name of the ingestion setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return configures how to correlate scan data and logs with resources associated with the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IngestionSettingTokenInner listTokens(String ingestionSettingName);
+ void delete(String ingestionSettingName);
/**
* Returns the token that is used for correlating ingested telemetry with the resources in the subscription.
@@ -143,16 +131,16 @@ Response createWithResponse(
Response listTokensWithResponse(String ingestionSettingName, Context context);
/**
- * Connection strings for ingesting security scan logs and data.
+ * Returns the token that is used for correlating ingested telemetry with the resources in the subscription.
*
* @param ingestionSettingName Name of the ingestion setting.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return connection string for ingesting security data and logs.
+ * @return configures how to correlate scan data and logs with resources associated with the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConnectionStringsInner listConnectionStrings(String ingestionSettingName);
+ IngestionSettingTokenInner listTokens(String ingestionSettingName);
/**
* Connection strings for ingesting security scan logs and data.
@@ -166,4 +154,16 @@ Response createWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listConnectionStringsWithResponse(String ingestionSettingName, Context context);
+
+ /**
+ * Connection strings for ingesting security scan logs and data.
+ *
+ * @param ingestionSettingName Name of the ingestion setting.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return connection string for ingesting security data and logs.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConnectionStringsInner listConnectionStrings(String ingestionSettingName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java
index 6510a19b5292..25a019f2f016 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionAnalyticsClient.java
@@ -19,13 +19,15 @@ public interface IotSecuritySolutionAnalyticsClient {
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param solutionName The name of the IoT Security solution.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Security analytics of your IoT Security solution.
+ * @return list of Security analytics of your IoT Security solution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName);
+ Response listWithResponse(
+ String resourceGroupName, String solutionName, Context context);
/**
* Use this method to get IoT security Analytics metrics in an array.
@@ -33,15 +35,13 @@ public interface IotSecuritySolutionAnalyticsClient {
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param solutionName The name of the IoT Security solution.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of Security analytics of your IoT Security solution along with {@link Response}.
+ * @return list of Security analytics of your IoT Security solution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(
- String resourceGroupName, String solutionName, Context context);
+ IoTSecuritySolutionAnalyticsModelListInner list(String resourceGroupName, String solutionName);
/**
* Use this method to get IoT Security Analytics metrics.
@@ -49,13 +49,15 @@ Response listWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param solutionName The name of the IoT Security solution.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security analytics of your IoT Security solution.
+ * @return security analytics of your IoT Security solution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, String solutionName);
+ Response getWithResponse(
+ String resourceGroupName, String solutionName, Context context);
/**
* Use this method to get IoT Security Analytics metrics.
@@ -63,13 +65,11 @@ Response listWithResponse(
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param solutionName The name of the IoT Security solution.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security analytics of your IoT Security solution along with {@link Response}.
+ * @return security analytics of your IoT Security solution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String solutionName, Context context);
+ IoTSecuritySolutionAnalyticsModelInner get(String resourceGroupName, String solutionName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java
index 8c099ffa5375..1ea68d2ece5c 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsAggregatedAlertsClient.java
@@ -55,13 +55,15 @@ PagedIterable list(
* insensitive.
* @param solutionName The name of the IoT Security solution.
* @param aggregatedAlertName Identifier of the aggregated alert.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security Solution Aggregated Alert information.
+ * @return security Solution Aggregated Alert information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecurityAggregatedAlertInner get(String resourceGroupName, String solutionName, String aggregatedAlertName);
+ Response getWithResponse(
+ String resourceGroupName, String solutionName, String aggregatedAlertName, Context context);
/**
* Use this method to get a single the aggregated alert of yours IoT Security solution. This aggregation is
@@ -71,15 +73,13 @@ PagedIterable list(
* insensitive.
* @param solutionName The name of the IoT Security solution.
* @param aggregatedAlertName Identifier of the aggregated alert.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security Solution Aggregated Alert information along with {@link Response}.
+ * @return security Solution Aggregated Alert information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String solutionName, String aggregatedAlertName, Context context);
+ IoTSecurityAggregatedAlertInner get(String resourceGroupName, String solutionName, String aggregatedAlertName);
/**
* Use this method to dismiss an aggregated IoT Security Solution Alert.
@@ -88,12 +88,15 @@ Response getWithResponse(
* insensitive.
* @param solutionName The name of the IoT Security solution.
* @param aggregatedAlertName Identifier of the aggregated alert.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName);
+ Response dismissWithResponse(
+ String resourceGroupName, String solutionName, String aggregatedAlertName, Context context);
/**
* Use this method to dismiss an aggregated IoT Security Solution Alert.
@@ -102,13 +105,10 @@ Response getWithResponse(
* insensitive.
* @param solutionName The name of the IoT Security solution.
* @param aggregatedAlertName Identifier of the aggregated alert.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response dismissWithResponse(
- String resourceGroupName, String solutionName, String aggregatedAlertName, Context context);
+ void dismiss(String resourceGroupName, String solutionName, String aggregatedAlertName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java
index bc4e6c392338..1e534a2b033e 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsAnalyticsRecommendationsClient.java
@@ -24,14 +24,15 @@ public interface IotSecuritySolutionsAnalyticsRecommendationsClient {
* insensitive.
* @param solutionName The name of the IoT Security solution.
* @param aggregatedRecommendationName Name of the recommendation aggregated for this query.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Security solution recommendation information.
+ * @return ioT Security solution recommendation information along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecurityAggregatedRecommendationInner get(
- String resourceGroupName, String solutionName, String aggregatedRecommendationName);
+ Response getWithResponse(
+ String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context);
/**
* Use this method to get the aggregated security analytics recommendation of yours IoT Security solution. This
@@ -41,15 +42,14 @@ IoTSecurityAggregatedRecommendationInner get(
* insensitive.
* @param solutionName The name of the IoT Security solution.
* @param aggregatedRecommendationName Name of the recommendation aggregated for this query.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Security solution recommendation information along with {@link Response}.
+ * @return ioT Security solution recommendation information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String solutionName, String aggregatedRecommendationName, Context context);
+ IoTSecurityAggregatedRecommendationInner get(
+ String resourceGroupName, String solutionName, String aggregatedRecommendationName);
/**
* Use this method to get the list of aggregated security analytics recommendations of yours IoT Security solution.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java
index 47cc6aaef08f..140ffd6f2f62 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/IotSecuritySolutionsClient.java
@@ -66,20 +66,6 @@ public interface IotSecuritySolutionsClient {
PagedIterable listByResourceGroup(
String resourceGroupName, String filter, Context context);
- /**
- * User this method to get details of a specific IoT Security solution based on solution name.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param solutionName The name of the IoT Security solution.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return ioT Security solution configuration and resource information.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecuritySolutionModelInner getByResourceGroup(String resourceGroupName, String solutionName);
-
/**
* User this method to get details of a specific IoT Security solution based on solution name.
*
@@ -97,20 +83,18 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String solutionName, Context context);
/**
- * Use this method to create or update yours IoT Security solution.
+ * User this method to get details of a specific IoT Security solution based on solution name.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param solutionName The name of the IoT Security solution.
- * @param iotSecuritySolutionData The security solution data.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return ioT Security solution configuration and resource information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecuritySolutionModelInner createOrUpdate(
- String resourceGroupName, String solutionName, IoTSecuritySolutionModelInner iotSecuritySolutionData);
+ IoTSecuritySolutionModelInner getByResourceGroup(String resourceGroupName, String solutionName);
/**
* Use this method to create or update yours IoT Security solution.
@@ -133,21 +117,20 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Use this method to update existing IoT Security solution tags or user defined resources. To update other fields
- * use the CreateOrUpdate method.
+ * Use this method to create or update yours IoT Security solution.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param solutionName The name of the IoT Security solution.
- * @param updateIotSecuritySolutionData The security solution data.
+ * @param iotSecuritySolutionData The security solution data.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return ioT Security solution configuration and resource information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- IoTSecuritySolutionModelInner update(
- String resourceGroupName, String solutionName, UpdateIotSecuritySolutionData updateIotSecuritySolutionData);
+ IoTSecuritySolutionModelInner createOrUpdate(
+ String resourceGroupName, String solutionName, IoTSecuritySolutionModelInner iotSecuritySolutionData);
/**
* Use this method to update existing IoT Security solution tags or user defined resources. To update other fields
@@ -171,17 +154,21 @@ Response updateWithResponse(
Context context);
/**
- * Use this method to delete yours IoT Security solution.
+ * Use this method to update existing IoT Security solution tags or user defined resources. To update other fields
+ * use the CreateOrUpdate method.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param solutionName The name of the IoT Security solution.
+ * @param updateIotSecuritySolutionData The security solution data.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return ioT Security solution configuration and resource information.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String solutionName);
+ IoTSecuritySolutionModelInner update(
+ String resourceGroupName, String solutionName, UpdateIotSecuritySolutionData updateIotSecuritySolutionData);
/**
* Use this method to delete yours IoT Security solution.
@@ -197,4 +184,17 @@ Response updateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String solutionName, Context context);
+
+ /**
+ * Use this method to delete yours IoT Security solution.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param solutionName The name of the IoT Security solution.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String solutionName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java
index 8cfaff49d8c2..3170b606a0ed 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/JitNetworkAccessPoliciesClient.java
@@ -132,13 +132,15 @@ PagedIterable listByResourceGroupAndRegion(
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JitNetworkAccessPolicyInner get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName);
+ Response getWithResponse(
+ String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context);
/**
* Policies for protecting resources using Just-in-Time access control for the subscription, location.
@@ -148,15 +150,13 @@ PagedIterable listByResourceGroupAndRegion(
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context);
+ JitNetworkAccessPolicyInner get(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName);
/**
* Create a policy for protecting resources using Just-in-Time access control.
@@ -167,17 +167,19 @@ Response getWithResponse(
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
* @param body The body parameter.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JitNetworkAccessPolicyInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String resourceGroupName,
String ascLocation,
String jitNetworkAccessPolicyName,
- JitNetworkAccessPolicyInner body);
+ JitNetworkAccessPolicyInner body,
+ Context context);
/**
* Create a policy for protecting resources using Just-in-Time access control.
@@ -188,19 +190,17 @@ JitNetworkAccessPolicyInner createOrUpdate(
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
* @param body The body parameter.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ JitNetworkAccessPolicyInner createOrUpdate(
String resourceGroupName,
String ascLocation,
String jitNetworkAccessPolicyName,
- JitNetworkAccessPolicyInner body,
- Context context);
+ JitNetworkAccessPolicyInner body);
/**
* Delete a Just-in-Time access control policy.
@@ -210,12 +210,15 @@ Response createOrUpdateWithResponse(
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName);
+ Response deleteWithResponse(
+ String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context);
/**
* Delete a Just-in-Time access control policy.
@@ -225,15 +228,12 @@ Response createOrUpdateWithResponse(
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName, Context context);
+ void delete(String resourceGroupName, String ascLocation, String jitNetworkAccessPolicyName);
/**
* Initiate a JIT access from a specific Just-in-Time policy configuration.
@@ -244,17 +244,19 @@ Response deleteWithResponse(
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
* @param body The body parameter.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- JitNetworkAccessRequestInner initiate(
+ Response initiateWithResponse(
String resourceGroupName,
String ascLocation,
String jitNetworkAccessPolicyName,
- JitNetworkAccessPolicyInitiateRequest body);
+ JitNetworkAccessPolicyInitiateRequest body,
+ Context context);
/**
* Initiate a JIT access from a specific Just-in-Time policy configuration.
@@ -265,17 +267,15 @@ JitNetworkAccessRequestInner initiate(
* locations.
* @param jitNetworkAccessPolicyName Name of a Just-in-Time access configuration policy.
* @param body The body parameter.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response initiateWithResponse(
+ JitNetworkAccessRequestInner initiate(
String resourceGroupName,
String ascLocation,
String jitNetworkAccessPolicyName,
- JitNetworkAccessPolicyInitiateRequest body,
- Context context);
+ JitNetworkAccessPolicyInitiateRequest body);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java
index e7bb6fe5268f..9215df998226 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/LocationsClient.java
@@ -44,25 +44,25 @@ public interface LocationsClient {
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the ASC location of the subscription is in the "name" field.
+ * @return the ASC location of the subscription is in the "name" field along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- AscLocationInner get(String ascLocation);
+ Response getWithResponse(String ascLocation, Context context);
/**
* Details of a specific location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the ASC location of the subscription is in the "name" field along with {@link Response}.
+ * @return the ASC location of the subscription is in the "name" field.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String ascLocation, Context context);
+ AscLocationInner get(String ascLocation);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
index dd967b001c2e..f1a31c9a245a 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/MdeOnboardingsClient.java
@@ -13,16 +13,6 @@
/** An instance of this class provides access to all the operations defined in MdeOnboardingsClient. */
public interface MdeOnboardingsClient {
- /**
- * The configuration or data needed to onboard the machine to MDE.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of all MDE onboarding data resources.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MdeOnboardingDataListInner list();
-
/**
* The configuration or data needed to onboard the machine to MDE.
*
@@ -36,14 +26,14 @@ public interface MdeOnboardingsClient {
Response listWithResponse(Context context);
/**
- * The default configuration or data needed to onboard the machine to MDE.
+ * The configuration or data needed to onboard the machine to MDE.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the resource of the configuration or data needed to onboard the machine to MDE.
+ * @return list of all MDE onboarding data resources.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MdeOnboardingDataInner get();
+ MdeOnboardingDataListInner list();
/**
* The default configuration or data needed to onboard the machine to MDE.
@@ -57,4 +47,14 @@ public interface MdeOnboardingsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(Context context);
+
+ /**
+ * The default configuration or data needed to onboard the machine to MDE.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the resource of the configuration or data needed to onboard the machine to MDE.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MdeOnboardingDataInner get();
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java
index 510edc4d0869..7179613a2b17 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/PricingsClient.java
@@ -16,77 +16,77 @@ public interface PricingsClient {
/**
* Lists Microsoft Defender for Cloud pricing configurations in the subscription.
*
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of pricing configurations response.
+ * @return list of pricing configurations response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PricingListInner list();
+ Response listWithResponse(Context context);
/**
* Lists Microsoft Defender for Cloud pricing configurations in the subscription.
*
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of pricing configurations response along with {@link Response}.
+ * @return list of pricing configurations response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
+ PricingListInner list();
/**
* Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
*
* @param pricingName name of the pricing configuration.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription.
+ * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PricingInner get(String pricingName);
+ Response getWithResponse(String pricingName, Context context);
/**
* Gets a provided Microsoft Defender for Cloud pricing configuration in the subscription.
*
* @param pricingName name of the pricing configuration.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription along with {@link
- * Response}.
+ * @return a provided Microsoft Defender for Cloud pricing configuration in the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String pricingName, Context context);
+ PricingInner get(String pricingName);
/**
* Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
*
* @param pricingName name of the pricing configuration.
* @param pricing Pricing object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier
- * available with a trial period.
+ * available with a trial period along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PricingInner update(String pricingName, PricingInner pricing);
+ Response updateWithResponse(String pricingName, PricingInner pricing, Context context);
/**
* Updates a provided Microsoft Defender for Cloud pricing configuration in the subscription.
*
* @param pricingName name of the pricing configuration.
* @param pricing Pricing object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard, with the standard tier
- * available with a trial period along with {@link Response}.
+ * available with a trial period.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String pricingName, PricingInner pricing, Context context);
+ PricingInner update(String pricingName, PricingInner pricing);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java
index 76eab2ac3280..fb3daa044da5 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceAssessmentsClient.java
@@ -52,16 +52,18 @@ PagedIterable list(
* @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
* @param regulatoryComplianceControlName Name of the regulatory compliance control object.
* @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return regulatory compliance assessment details and state.
+ * @return regulatory compliance assessment details and state along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RegulatoryComplianceAssessmentInner get(
+ Response getWithResponse(
String regulatoryComplianceStandardName,
String regulatoryComplianceControlName,
- String regulatoryComplianceAssessmentName);
+ String regulatoryComplianceAssessmentName,
+ Context context);
/**
* Supported regulatory compliance details and state for selected assessment.
@@ -69,16 +71,14 @@ RegulatoryComplianceAssessmentInner get(
* @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
* @param regulatoryComplianceControlName Name of the regulatory compliance control object.
* @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return regulatory compliance assessment details and state along with {@link Response}.
+ * @return regulatory compliance assessment details and state.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ RegulatoryComplianceAssessmentInner get(
String regulatoryComplianceStandardName,
String regulatoryComplianceControlName,
- String regulatoryComplianceAssessmentName,
- Context context);
+ String regulatoryComplianceAssessmentName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java
index 3722f0bd2c5b..d7f732d0cdb6 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceControlsClient.java
@@ -45,27 +45,27 @@ PagedIterable list(
*
* @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
* @param regulatoryComplianceControlName Name of the regulatory compliance control object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return regulatory compliance control details and state.
+ * @return regulatory compliance control details and state along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RegulatoryComplianceControlInner get(
- String regulatoryComplianceStandardName, String regulatoryComplianceControlName);
+ Response getWithResponse(
+ String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context);
/**
* Selected regulatory compliance control details and state.
*
* @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
* @param regulatoryComplianceControlName Name of the regulatory compliance control object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return regulatory compliance control details and state along with {@link Response}.
+ * @return regulatory compliance control details and state.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String regulatoryComplianceStandardName, String regulatoryComplianceControlName, Context context);
+ RegulatoryComplianceControlInner get(
+ String regulatoryComplianceStandardName, String regulatoryComplianceControlName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java
index e3f34b0e10b7..8bb55a3a903c 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/RegulatoryComplianceStandardsClient.java
@@ -40,25 +40,25 @@ public interface RegulatoryComplianceStandardsClient {
* Supported regulatory compliance details state for selected standard.
*
* @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return regulatory compliance standard details and state.
+ * @return regulatory compliance standard details and state along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RegulatoryComplianceStandardInner get(String regulatoryComplianceStandardName);
+ Response getWithResponse(
+ String regulatoryComplianceStandardName, Context context);
/**
* Supported regulatory compliance details state for selected standard.
*
* @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return regulatory compliance standard details and state along with {@link Response}.
+ * @return regulatory compliance standard details and state.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String regulatoryComplianceStandardName, Context context);
+ RegulatoryComplianceStandardInner get(String regulatoryComplianceStandardName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java
index b101e8c1fe43..777ef62405f0 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecureScoresClient.java
@@ -41,13 +41,15 @@ public interface SecureScoresClient {
*
* @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample
* request below.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope.
+ * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecureScoreItemInner get(String secureScoreName);
+ Response getWithResponse(String secureScoreName, Context context);
/**
* Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope. For the ASC
@@ -55,13 +57,11 @@ public interface SecureScoresClient {
*
* @param secureScoreName The initiative name. For the ASC Default initiative, use 'ascScore' as in the sample
* request below.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope along with
- * {@link Response}.
+ * @return secure score for a specific Microsoft Defender for Cloud initiative within your current scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String secureScoreName, Context context);
+ SecureScoreItemInner get(String secureScoreName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java
index 340a08892400..019e8eefacc0 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorApplicationOperationsClient.java
@@ -15,21 +15,6 @@
* SecurityConnectorApplicationOperationsClient.
*/
public interface SecurityConnectorApplicationOperationsClient {
- /**
- * Get a specific application for the requested scope by applicationId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param applicationId The security Application key - unique key for the standard application.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific application for the requested scope by applicationId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner get(String resourceGroupName, String securityConnectorName, String applicationId);
-
/**
* Get a specific application for the requested scope by applicationId.
*
@@ -48,21 +33,19 @@ Response getWithResponse(
String resourceGroupName, String securityConnectorName, String applicationId, Context context);
/**
- * Creates or update a security Application on the given security connector.
+ * Get a specific application for the requested scope by applicationId.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param securityConnectorName The security connector name.
* @param applicationId The security Application key - unique key for the standard application.
- * @param application Application over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security Application over a given scope.
+ * @return a specific application for the requested scope by applicationId.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ApplicationInner createOrUpdate(
- String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application);
+ ApplicationInner get(String resourceGroupName, String securityConnectorName, String applicationId);
/**
* Creates or update a security Application on the given security connector.
@@ -87,18 +70,21 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete an Application over a given scope.
+ * Creates or update a security Application on the given security connector.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param securityConnectorName The security connector name.
* @param applicationId The security Application key - unique key for the standard application.
+ * @param application Application over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security Application over a given scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String securityConnectorName, String applicationId);
+ ApplicationInner createOrUpdate(
+ String resourceGroupName, String securityConnectorName, String applicationId, ApplicationInner application);
/**
* Delete an Application over a given scope.
@@ -116,4 +102,18 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
String resourceGroupName, String securityConnectorName, String applicationId, Context context);
+
+ /**
+ * Delete an Application over a given scope.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param applicationId The security Application key - unique key for the standard application.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String securityConnectorName, String applicationId);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java
index 4113042a2155..f2963ac0d584 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorGovernanceRulesOperationsClient.java
@@ -15,21 +15,6 @@
* SecurityConnectorGovernanceRulesOperationsClient.
*/
public interface SecurityConnectorGovernanceRulesOperationsClient {
- /**
- * Get a specific governanceRule for the requested scope by ruleId.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific governanceRule for the requested scope by ruleId.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner get(String resourceGroupName, String securityConnectorName, String ruleId);
-
/**
* Get a specific governanceRule for the requested scope by ruleId.
*
@@ -48,21 +33,19 @@ Response getWithResponse(
String resourceGroupName, String securityConnectorName, String ruleId, Context context);
/**
- * Creates or update a security GovernanceRule on the given security connector.
+ * Get a specific governanceRule for the requested scope by ruleId.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param securityConnectorName The security connector name.
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
- * @param governanceRule GovernanceRule over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return security GovernanceRule over a given scope.
+ * @return a specific governanceRule for the requested scope by ruleId.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GovernanceRuleInner createOrUpdate(
- String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule);
+ GovernanceRuleInner get(String resourceGroupName, String securityConnectorName, String ruleId);
/**
* Creates or update a security GovernanceRule on the given security connector.
@@ -87,18 +70,21 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete a GovernanceRule over a given scope.
+ * Creates or update a security GovernanceRule on the given security connector.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param securityConnectorName The security connector name.
* @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
+ * @param governanceRule GovernanceRule over a subscription scope.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return security GovernanceRule over a given scope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String securityConnectorName, String ruleId);
+ GovernanceRuleInner createOrUpdate(
+ String resourceGroupName, String securityConnectorName, String ruleId, GovernanceRuleInner governanceRule);
/**
* Delete a GovernanceRule over a given scope.
@@ -116,4 +102,18 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
String resourceGroupName, String securityConnectorName, String ruleId, Context context);
+
+ /**
+ * Delete a GovernanceRule over a given scope.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @param ruleId The security GovernanceRule key - unique key for the standard GovernanceRule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String securityConnectorName, String ruleId);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java
index a1af013c3690..a1a51a3fcf9c 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityConnectorsClient.java
@@ -66,20 +66,6 @@ public interface SecurityConnectorsClient {
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
- /**
- * Retrieves details of a specific security connector.
- *
- * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
- * insensitive.
- * @param securityConnectorName The security connector name.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the security connector resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SecurityConnectorInner getByResourceGroup(String resourceGroupName, String securityConnectorName);
-
/**
* Retrieves details of a specific security connector.
*
@@ -97,21 +83,18 @@ Response getByResourceGroupWithResponse(
String resourceGroupName, String securityConnectorName, Context context);
/**
- * Creates or updates a security connector. If a security connector is already created and a subsequent request is
- * issued for the same security connector id, then it will be updated.
+ * Retrieves details of a specific security connector.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param securityConnectorName The security connector name.
- * @param securityConnector The security connector resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the security connector resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityConnectorInner createOrUpdate(
- String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector);
+ SecurityConnectorInner getByResourceGroup(String resourceGroupName, String securityConnectorName);
/**
* Creates or updates a security connector. If a security connector is already created and a subsequent request is
@@ -135,7 +118,8 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Updates a security connector.
+ * Creates or updates a security connector. If a security connector is already created and a subsequent request is
+ * issued for the same security connector id, then it will be updated.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
@@ -147,7 +131,7 @@ Response createOrUpdateWithResponse(
* @return the security connector resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityConnectorInner update(
+ SecurityConnectorInner createOrUpdate(
String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector);
/**
@@ -171,17 +155,20 @@ Response updateWithResponse(
Context context);
/**
- * Deletes a security connector.
+ * Updates a security connector.
*
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case
* insensitive.
* @param securityConnectorName The security connector name.
+ * @param securityConnector The security connector resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the security connector resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String securityConnectorName);
+ SecurityConnectorInner update(
+ String resourceGroupName, String securityConnectorName, SecurityConnectorInner securityConnector);
/**
* Deletes a security connector.
@@ -197,4 +184,17 @@ Response updateWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String securityConnectorName, Context context);
+
+ /**
+ * Deletes a security connector.
+ *
+ * @param resourceGroupName The name of the resource group within the user's subscription. The name is case
+ * insensitive.
+ * @param securityConnectorName The security connector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String securityConnectorName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java
index ff2839762224..ab1c6851f948 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecurityContactsClient.java
@@ -39,77 +39,77 @@ public interface SecurityContactsClient {
* Get Default Security contact configurations for the subscription.
*
* @param securityContactName Name of the security contact object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return default Security contact configurations for the subscription.
+ * @return default Security contact configurations for the subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityContactInner get(String securityContactName);
+ Response getWithResponse(String securityContactName, Context context);
/**
* Get Default Security contact configurations for the subscription.
*
* @param securityContactName Name of the security contact object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return default Security contact configurations for the subscription along with {@link Response}.
+ * @return default Security contact configurations for the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String securityContactName, Context context);
+ SecurityContactInner get(String securityContactName);
/**
* Create security contact configurations for the subscription.
*
* @param securityContactName Name of the security contact object.
* @param securityContact Security contact object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud.
+ * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud along with
+ * {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecurityContactInner create(String securityContactName, SecurityContactInner securityContact);
+ Response createWithResponse(
+ String securityContactName, SecurityContactInner securityContact, Context context);
/**
* Create security contact configurations for the subscription.
*
* @param securityContactName Name of the security contact object.
* @param securityContact Security contact object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud along with
- * {@link Response}.
+ * @return contact details and configurations for notifications coming from Microsoft Defender for Cloud.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String securityContactName, SecurityContactInner securityContact, Context context);
+ SecurityContactInner create(String securityContactName, SecurityContactInner securityContact);
/**
* Delete security contact configurations for the subscription.
*
* @param securityContactName Name of the security contact object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String securityContactName);
+ Response deleteWithResponse(String securityContactName, Context context);
/**
* Delete security contact configurations for the subscription.
*
* @param securityContactName Name of the security contact object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String securityContactName, Context context);
+ void delete(String securityContactName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java
index f4ee9f9cb5fa..172a35c22dd1 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsClient.java
@@ -43,13 +43,15 @@ public interface SecuritySolutionsClient {
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param securitySolutionName Name of security solution.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific Security Solution.
+ * @return a specific Security Solution along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecuritySolutionInner get(String resourceGroupName, String ascLocation, String securitySolutionName);
+ Response getWithResponse(
+ String resourceGroupName, String ascLocation, String securitySolutionName, Context context);
/**
* Gets a specific Security Solution.
@@ -59,13 +61,11 @@ public interface SecuritySolutionsClient {
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
* @param securitySolutionName Name of security solution.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a specific Security Solution along with {@link Response}.
+ * @return a specific Security Solution.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String ascLocation, String securitySolutionName, Context context);
+ SecuritySolutionInner get(String resourceGroupName, String ascLocation, String securitySolutionName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java
index 5b138c13e69e..2e07125883e6 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SecuritySolutionsReferenceDatasClient.java
@@ -15,49 +15,49 @@ public interface SecuritySolutionsReferenceDatasClient {
/**
* Gets a list of all supported Security Solutions for the subscription.
*
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all supported Security Solutions for the subscription.
+ * @return a list of all supported Security Solutions for the subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecuritySolutionsReferenceDataListInner list();
+ Response listWithResponse(Context context);
/**
* Gets a list of all supported Security Solutions for the subscription.
*
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of all supported Security Solutions for the subscription along with {@link Response}.
+ * @return a list of all supported Security Solutions for the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(Context context);
+ SecuritySolutionsReferenceDataListInner list();
/**
* Gets list of all supported Security Solutions for subscription and location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of all supported Security Solutions for subscription and location.
+ * @return list of all supported Security Solutions for subscription and location along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SecuritySolutionsReferenceDataListInner listByHomeRegion(String ascLocation);
+ Response listByHomeRegionWithResponse(String ascLocation, Context context);
/**
* Gets list of all supported Security Solutions for subscription and location.
*
* @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from Get
* locations.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of all supported Security Solutions for subscription and location along with {@link Response}.
+ * @return list of all supported Security Solutions for subscription and location.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listByHomeRegionWithResponse(String ascLocation, Context context);
+ SecuritySolutionsReferenceDataListInner listByHomeRegion(String ascLocation);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java
index 3341b7c2f91b..26e9c4152c35 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/ServerVulnerabilityAssessmentsClient.java
@@ -23,14 +23,16 @@ public interface ServerVulnerabilityAssessmentsClient {
* @param resourceNamespace The Namespace of the resource.
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server vulnerability assessment onboarding statuses on a given resource.
+ * @return a list of server vulnerability assessment onboarding statuses on a given resource along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerVulnerabilityAssessmentsListInner listByExtendedResource(
- String resourceGroupName, String resourceNamespace, String resourceType, String resourceName);
+ Response listByExtendedResourceWithResponse(
+ String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context);
/**
* Gets a list of server vulnerability assessment onboarding statuses on a given resource.
@@ -40,16 +42,14 @@ ServerVulnerabilityAssessmentsListInner listByExtendedResource(
* @param resourceNamespace The Namespace of the resource.
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of server vulnerability assessment onboarding statuses on a given resource along with {@link
- * Response}.
+ * @return a list of server vulnerability assessment onboarding statuses on a given resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listByExtendedResourceWithResponse(
- String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context);
+ ServerVulnerabilityAssessmentsListInner listByExtendedResource(
+ String resourceGroupName, String resourceNamespace, String resourceType, String resourceName);
/**
* Gets a server vulnerability assessment onboarding statuses on a given resource.
@@ -59,14 +59,15 @@ Response listByExtendedResourceWithResp
* @param resourceNamespace The Namespace of the resource.
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server vulnerability assessment onboarding statuses on a given resource.
+ * @return a server vulnerability assessment onboarding statuses on a given resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerVulnerabilityAssessmentInner get(
- String resourceGroupName, String resourceNamespace, String resourceType, String resourceName);
+ Response getWithResponse(
+ String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context);
/**
* Gets a server vulnerability assessment onboarding statuses on a given resource.
@@ -76,15 +77,14 @@ ServerVulnerabilityAssessmentInner get(
* @param resourceNamespace The Namespace of the resource.
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a server vulnerability assessment onboarding statuses on a given resource along with {@link Response}.
+ * @return a server vulnerability assessment onboarding statuses on a given resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context);
+ ServerVulnerabilityAssessmentInner get(
+ String resourceGroupName, String resourceNamespace, String resourceType, String resourceName);
/**
* Creating a server vulnerability assessment on a resource, which will onboard a resource for having a
@@ -95,14 +95,15 @@ Response getWithResponse(
* @param resourceNamespace The Namespace of the resource.
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes the server vulnerability assessment details on a resource.
+ * @return describes the server vulnerability assessment details on a resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ServerVulnerabilityAssessmentInner createOrUpdate(
- String resourceGroupName, String resourceNamespace, String resourceType, String resourceName);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context);
/**
* Creating a server vulnerability assessment on a resource, which will onboard a resource for having a
@@ -113,15 +114,14 @@ ServerVulnerabilityAssessmentInner createOrUpdate(
* @param resourceNamespace The Namespace of the resource.
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes the server vulnerability assessment details on a resource along with {@link Response}.
+ * @return describes the server vulnerability assessment details on a resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, Context context);
+ ServerVulnerabilityAssessmentInner createOrUpdate(
+ String resourceGroupName, String resourceNamespace, String resourceType, String resourceName);
/**
* Removing server vulnerability assessment from a resource.
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java
index 8037354bfe77..1d2ca46fd4b9 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SettingsClient.java
@@ -40,51 +40,51 @@ public interface SettingsClient {
* Settings of different configurations in Microsoft Defender for Cloud.
*
* @param settingName The name of the setting.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the kind of the security setting.
+ * @return the kind of the security setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SettingInner get(SettingName settingName);
+ Response getWithResponse(SettingName settingName, Context context);
/**
* Settings of different configurations in Microsoft Defender for Cloud.
*
* @param settingName The name of the setting.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the kind of the security setting along with {@link Response}.
+ * @return the kind of the security setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(SettingName settingName, Context context);
+ SettingInner get(SettingName settingName);
/**
* updating settings about different configurations in Microsoft Defender for Cloud.
*
* @param settingName The name of the setting.
* @param setting Setting object.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the kind of the security setting.
+ * @return the kind of the security setting along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SettingInner update(SettingName settingName, SettingInner setting);
+ Response updateWithResponse(SettingName settingName, SettingInner setting, Context context);
/**
* updating settings about different configurations in Microsoft Defender for Cloud.
*
* @param settingName The name of the setting.
* @param setting Setting object.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the kind of the security setting along with {@link Response}.
+ * @return the kind of the security setting.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(SettingName settingName, SettingInner setting, Context context);
+ SettingInner update(SettingName settingName, SettingInner setting);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java
index 115eb0600202..68430027e194 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SoftwareInventoriesClient.java
@@ -81,18 +81,20 @@ PagedIterable listByExtendedResource(
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
* @param softwareName Name of the installed software.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single software data of the virtual machine.
+ * @return a single software data of the virtual machine along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- SoftwareInner get(
+ Response getWithResponse(
String resourceGroupName,
String resourceNamespace,
String resourceType,
String resourceName,
- String softwareName);
+ String softwareName,
+ Context context);
/**
* Gets a single software data of the virtual machine.
@@ -103,18 +105,16 @@ SoftwareInner get(
* @param resourceType The type of the resource.
* @param resourceName Name of the resource.
* @param softwareName Name of the installed software.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a single software data of the virtual machine along with {@link Response}.
+ * @return a single software data of the virtual machine.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
+ SoftwareInner get(
String resourceGroupName,
String resourceNamespace,
String resourceType,
String resourceName,
- String softwareName,
- Context context);
+ String softwareName);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java
index 1c3f3bfb22e3..01e57856a5c6 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentBaselineRulesClient.java
@@ -18,20 +18,6 @@
* SqlVulnerabilityAssessmentBaselineRulesClient.
*/
public interface SqlVulnerabilityAssessmentBaselineRulesClient {
- /**
- * Creates a Baseline for a rule in a database. Will overwrite any previously existing results.
- *
- * @param ruleId The rule Id.
- * @param workspaceId The workspace Id.
- * @param resourceId The identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return rule results.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- RuleResultsInner createOrUpdate(String ruleId, String workspaceId, String resourceId);
-
/**
* Creates a Baseline for a rule in a database. Will overwrite any previously existing results.
*
@@ -50,7 +36,7 @@ Response createOrUpdateWithResponse(
String ruleId, String workspaceId, String resourceId, RuleResultsInput body, Context context);
/**
- * Gets the results for a given rule in the Baseline.
+ * Creates a Baseline for a rule in a database. Will overwrite any previously existing results.
*
* @param ruleId The rule Id.
* @param workspaceId The workspace Id.
@@ -58,10 +44,10 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the results for a given rule in the Baseline.
+ * @return rule results.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RuleResultsInner get(String ruleId, String workspaceId, String resourceId);
+ RuleResultsInner createOrUpdate(String ruleId, String workspaceId, String resourceId);
/**
* Gets the results for a given rule in the Baseline.
@@ -79,7 +65,7 @@ Response createOrUpdateWithResponse(
Response getWithResponse(String ruleId, String workspaceId, String resourceId, Context context);
/**
- * Deletes a rule from the Baseline of a given database.
+ * Gets the results for a given rule in the Baseline.
*
* @param ruleId The rule Id.
* @param workspaceId The workspace Id.
@@ -87,9 +73,10 @@ Response createOrUpdateWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the results for a given rule in the Baseline.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String ruleId, String workspaceId, String resourceId);
+ RuleResultsInner get(String ruleId, String workspaceId, String resourceId);
/**
* Deletes a rule from the Baseline of a given database.
@@ -107,17 +94,17 @@ Response createOrUpdateWithResponse(
Response deleteWithResponse(String ruleId, String workspaceId, String resourceId, Context context);
/**
- * Gets the results for all rules in the Baseline.
+ * Deletes a rule from the Baseline of a given database.
*
+ * @param ruleId The rule Id.
* @param workspaceId The workspace Id.
* @param resourceId The identifier of the resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the results for all rules in the Baseline.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RulesResultsInner list(String workspaceId, String resourceId);
+ void delete(String ruleId, String workspaceId, String resourceId);
/**
* Gets the results for all rules in the Baseline.
@@ -134,17 +121,17 @@ Response createOrUpdateWithResponse(
Response listWithResponse(String workspaceId, String resourceId, Context context);
/**
- * Add a list of baseline rules. Will overwrite any previously existing results (for all rules).
+ * Gets the results for all rules in the Baseline.
*
* @param workspaceId The workspace Id.
* @param resourceId The identifier of the resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of rules results.
+ * @return the results for all rules in the Baseline.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- RulesResultsInner add(String workspaceId, String resourceId);
+ RulesResultsInner list(String workspaceId, String resourceId);
/**
* Add a list of baseline rules. Will overwrite any previously existing results (for all rules).
@@ -161,4 +148,17 @@ Response createOrUpdateWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
Response addWithResponse(
String workspaceId, String resourceId, RulesResultsInput body, Context context);
+
+ /**
+ * Add a list of baseline rules. Will overwrite any previously existing results (for all rules).
+ *
+ * @param workspaceId The workspace Id.
+ * @param resourceId The identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of rules results.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RulesResultsInner add(String workspaceId, String resourceId);
}
diff --git a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java
index 06108659d114..9ab7d96a286f 100644
--- a/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java
+++ b/sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/fluent/SqlVulnerabilityAssessmentScanResultsClient.java
@@ -23,13 +23,15 @@ public interface SqlVulnerabilityAssessmentScanResultsClient {
* @param scanResultId The rule Id of the results.
* @param workspaceId The workspace Id.
* @param resourceId The identifier of the resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the scan results of a single rule in a scan record.
+ * @return the scan results of a single rule in a scan record along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ScanResultInner get(String scanId, String scanResultId, String workspaceId, String resourceId);
+ Response getWithResponse(
+ String scanId, String scanResultId, String workspaceId, String resourceId, Context context);
/**
* Gets the scan results of a single rule in a scan record.
@@ -38,15 +40,13 @@ public interface SqlVulnerabilityAssessmentScanResultsClient {
* @param scanResultId The rule Id of the results.
* @param workspaceId The workspace Id.
* @param resourceId The identifier of the resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the scan results of a single rule in a scan record along with {@link Response}.
+ * @return the scan results of a single rule in a scan record.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response