com.azure.resourcemanager.security.models.CustomRecommendations Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-security Show documentation
Show all versions of azure-resourcemanager-security Show documentation
This package contains Microsoft Azure SDK for Security Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
/**
* Resource collection API of CustomRecommendations.
*/
public interface CustomRecommendations {
/**
* Get a list of all relevant custom recommendations over a scope.
*
* @param scope The scope of the custom recommendation. Valid scopes are: management group (format:
* 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
* 'subscriptions/{subscriptionId}'), or security connector (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
* @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 relevant custom recommendations over a scope as paginated response with
* {@link PagedIterable}.
*/
PagedIterable list(String scope);
/**
* Get a list of all relevant custom recommendations over a scope.
*
* @param scope The scope of the custom recommendation. Valid scopes are: management group (format:
* 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
* 'subscriptions/{subscriptionId}'), or security connector (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
* @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 relevant custom recommendations over a scope as paginated response with
* {@link PagedIterable}.
*/
PagedIterable list(String scope, Context context);
/**
* Get a specific custom recommendation for the requested scope by customRecommendationName.
*
* @param scope The scope of the custom recommendation. Valid scopes are: management group (format:
* 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
* 'subscriptions/{subscriptionId}'), or security connector (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
* @param customRecommendationName Name of the Custom Recommendation.
* @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 custom recommendation for the requested scope by customRecommendationName along with
* {@link Response}.
*/
Response getWithResponse(String scope, String customRecommendationName, Context context);
/**
* Get a specific custom recommendation for the requested scope by customRecommendationName.
*
* @param scope The scope of the custom recommendation. Valid scopes are: management group (format:
* 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
* 'subscriptions/{subscriptionId}'), or security connector (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
* @param customRecommendationName Name of the Custom Recommendation.
* @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 custom recommendation for the requested scope by customRecommendationName.
*/
CustomRecommendation get(String scope, String customRecommendationName);
/**
* Delete a custom recommendation over a given scope.
*
* @param scope The scope of the custom recommendation. Valid scopes are: management group (format:
* 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
* 'subscriptions/{subscriptionId}'), or security connector (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
* @param customRecommendationName Name of the Custom Recommendation.
* @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}.
*/
Response deleteByResourceGroupWithResponse(String scope, String customRecommendationName, Context context);
/**
* Delete a custom recommendation over a given scope.
*
* @param scope The scope of the custom recommendation. Valid scopes are: management group (format:
* 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format:
* 'subscriptions/{subscriptionId}'), or security connector (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'.
* @param customRecommendationName Name of the Custom Recommendation.
* @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.
*/
void deleteByResourceGroup(String scope, String customRecommendationName);
/**
* Get a specific custom recommendation for the requested scope by customRecommendationName.
*
* @param id the resource ID.
* @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 custom recommendation for the requested scope by customRecommendationName along with
* {@link Response}.
*/
CustomRecommendation getById(String id);
/**
* Get a specific custom recommendation for the requested scope by customRecommendationName.
*
* @param id the resource ID.
* @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 custom recommendation for the requested scope by customRecommendationName along with
* {@link Response}.
*/
Response getByIdWithResponse(String id, Context context);
/**
* Delete a custom recommendation over a given scope.
*
* @param id the resource ID.
* @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.
*/
void deleteById(String id);
/**
* Delete a custom recommendation over a given scope.
*
* @param id the resource ID.
* @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}.
*/
Response deleteByIdWithResponse(String id, Context context);
/**
* Begins definition for a new CustomRecommendation resource.
*
* @param name resource name.
* @return the first stage of the new CustomRecommendation definition.
*/
CustomRecommendation.DefinitionStages.Blank define(String name);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy