Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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-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

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
44 changes: 35 additions & 9 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 @@ -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"
+ "MQM9Zgrug0UndPmiUwKOcJSU4PlmlTpHEV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tVzCfhFdcOC79StZvcKLhtoFQ\n"
+ "+/3lEw6NCIXzm5E4+dtJG4k=\n"
+ "-----END PRIVATE KEY-----\n")
.withClientEmail("[email protected]")
.withClientId("105889053725632919854")
Expand Down Expand Up @@ -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);
}
}
```
Expand Down Expand Up @@ -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);
}
}
```
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
}
```
Expand Down Expand Up @@ -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);
}
}
```
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
Loading