com.azure.resourcemanager.security.fluent.AssessmentsClient 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.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentResponseInner;
import com.azure.resourcemanager.security.models.ExpandEnum;
import com.azure.resourcemanager.security.models.SecurityAssessment;
/**
* An instance of this class provides access to all the operations defined in AssessmentsClient.
*/
public interface AssessmentsClient {
/**
* Get security assessments on all your scanned resources inside a scope.
*
* @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @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 assessments on all your scanned resources inside a scope as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope);
/**
* Get security assessments on all your scanned resources inside a scope.
*
* @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or
* management group (/providers/Microsoft.Management/managementGroups/mgName).
* @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 assessments on all your scanned resources inside a scope as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String scope, 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}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
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.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentResponseInner get(String resourceId, String assessmentName);
/**
* Create a security assessment on your resource. An assessment metadata that describes this assessment must be
* predefined with the same name before inserting the assessment result.
*
* @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}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
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
* predefined with the same name before inserting the assessment result.
*
* @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.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentResponseInner createOrUpdate(String resourceId, String assessmentName,
SecurityAssessment assessment);
/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
* predefined with the same name before inserting the assessment result.
*
* @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);
/**
* Delete a security assessment on your resource. An assessment metadata that describes this assessment must be
* predefined with the same name before inserting the assessment result.
*
* @param resourceId The identifier of the resource.
* @param assessmentName The Assessment Key - Unique key for the assessment type.
* @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 assessmentName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy