Skip to content

Commit

Permalink
CodeGen from PR 21206 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 2ae26a0bd520295cca9591b8549856f5c6f45181 into 21426cf85836ec17aaa4f20f58324a8666925e34
  • Loading branch information
SDKAuto committed Oct 26, 2022
1 parent a40f362 commit 12cfff3
Show file tree
Hide file tree
Showing 591 changed files with 4,754 additions and 3,391 deletions.
4 changes: 3 additions & 1 deletion sdk/security/azure-resourcemanager-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.3 (Unreleased)
## 1.0.0-beta.1 (2022-10-26)

- 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

Expand Down
2 changes: 1 addition & 1 deletion sdk/security/azure-resourcemanager-security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-security</artifactId>
<version>1.0.0-beta.2</version>
<version>1.0.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
17 changes: 9 additions & 8 deletions sdk/security/azure-resourcemanager-security/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
```
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
}
```
Expand Down Expand Up @@ -2486,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);
}
}
```
Expand Down Expand Up @@ -2600,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);
}
}
```
Expand Down Expand Up @@ -2728,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);
Expand Down Expand Up @@ -3587,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);
}
}
```
Expand Down Expand Up @@ -4948,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);
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -39,18 +29,14 @@ Response<AdaptiveApplicationControlGroupsInner> 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.
Expand All @@ -69,20 +55,18 @@ Response<AdaptiveApplicationControlGroupInner> 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.
Expand All @@ -102,17 +86,20 @@ Response<AdaptiveApplicationControlGroupInner> 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.
Expand All @@ -128,4 +115,17 @@ Response<AdaptiveApplicationControlGroupInner> putWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> 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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,20 @@ PagedIterable<AdaptiveNetworkHardeningInner> 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<AdaptiveNetworkHardeningInner> getWithResponse(
String resourceGroupName,
String resourceNamespace,
String resourceType,
String resourceName,
String adaptiveNetworkHardeningResourceName);
String adaptiveNetworkHardeningResourceName,
Context context);

/**
* Gets a single Adaptive Network Hardening resource.
Expand All @@ -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<AdaptiveNetworkHardeningInner> 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<AdvancedThreatProtectionSettingInner> 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<AdvancedThreatProtectionSettingInner> 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<AdvancedThreatProtectionSettingInner> 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<AdvancedThreatProtectionSettingInner> createWithResponse(
String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting, Context context);
AdvancedThreatProtectionSettingInner create(
String resourceId, AdvancedThreatProtectionSettingInner advancedThreatProtectionSetting);
}
Loading

0 comments on commit 12cfff3

Please sign in to comment.