Interface AdaptiveNetworkHardeningsClient
public interface AdaptiveNetworkHardeningsClient
An instance of this class provides access to all the operations defined in AdaptiveNetworkHardeningsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginEnforce
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body) Enforces the given rules on the NSG(s) listed in the request.beginEnforce
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body, com.azure.core.util.Context context) Enforces the given rules on the NSG(s) listed in the request.void
enforce
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body) Enforces the given rules on the NSG(s) listed in the request.void
enforce
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body, com.azure.core.util.Context context) Enforces the given rules on the NSG(s) listed in the request.get
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName) Gets a single Adaptive Network Hardening resource.com.azure.core.http.rest.Response<AdaptiveNetworkHardeningInner>
getWithResponse
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, com.azure.core.util.Context context) Gets a single Adaptive Network Hardening resource.com.azure.core.http.rest.PagedIterable<AdaptiveNetworkHardeningInner>
listByExtendedResource
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) Gets a list of Adaptive Network Hardenings resources in scope of an extended resource.com.azure.core.http.rest.PagedIterable<AdaptiveNetworkHardeningInner>
listByExtendedResource
(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, com.azure.core.util.Context context) Gets a list of Adaptive Network Hardenings resources in scope of an extended resource.
-
Method Details
-
listByExtendedResource
com.azure.core.http.rest.PagedIterable<AdaptiveNetworkHardeningInner> listByExtendedResource(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName) Gets a list of Adaptive Network Hardenings resources in scope of an extended resource.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.- Returns:
- a list of Adaptive Network Hardenings resources in scope of an extended resource as paginated response
with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByExtendedResource
com.azure.core.http.rest.PagedIterable<AdaptiveNetworkHardeningInner> listByExtendedResource(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, com.azure.core.util.Context context) Gets a list of Adaptive Network Hardenings resources in scope of an extended resource.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.context
- The context to associate with this operation.- Returns:
- a list of Adaptive Network Hardenings resources in scope of an extended resource as paginated response
with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
AdaptiveNetworkHardeningInner get(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName) Gets a single Adaptive Network Hardening resource.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.adaptiveNetworkHardeningResourceName
- The name of the Adaptive Network Hardening resource.- Returns:
- a single Adaptive Network Hardening resource.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<AdaptiveNetworkHardeningInner> getWithResponse(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, com.azure.core.util.Context context) Gets a single Adaptive Network Hardening resource.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.adaptiveNetworkHardeningResourceName
- The name of the Adaptive Network Hardening resource.context
- The context to associate with this operation.- Returns:
- a single Adaptive Network Hardening resource along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginEnforce
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginEnforce(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body) Enforces the given rules on the NSG(s) listed in the request.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.adaptiveNetworkHardeningResourceName
- The name of the Adaptive Network Hardening resource.body
- The body parameter.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginEnforce
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginEnforce(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body, com.azure.core.util.Context context) Enforces the given rules on the NSG(s) listed in the request.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.adaptiveNetworkHardeningResourceName
- The name of the Adaptive Network Hardening resource.body
- The body parameter.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
enforce
void enforce(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body) Enforces the given rules on the NSG(s) listed in the request.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.adaptiveNetworkHardeningResourceName
- The name of the Adaptive Network Hardening resource.body
- The body parameter.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
enforce
void enforce(String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body, com.azure.core.util.Context context) Enforces the given rules on the NSG(s) listed in the request.- Parameters:
resourceGroupName
- The name of the resource group within the user's subscription. The name is case insensitive.resourceNamespace
- The Namespace of the resource.resourceType
- The type of the resource.resourceName
- Name of the resource.adaptiveNetworkHardeningResourceName
- The name of the Adaptive Network Hardening resource.body
- The body parameter.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-