com.azure.resourcemanager.security.fluent.AssessmentsMetadatasClient Maven / Gradle / Ivy
// 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.SecurityAssessmentMetadataResponseInner;
/**
* An instance of this class provides access to all the operations defined in AssessmentsMetadatasClient.
*/
public interface AssessmentsMetadatasClient {
/**
* Get metadata information on all assessment types.
*
* @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 metadata information on all assessment types as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Get metadata information on all assessment types.
*
* @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 metadata information on all assessment types as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
/**
* Get metadata information on an assessment type.
*
* @param assessmentMetadataName 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 metadata information on an assessment type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String assessmentMetadataName, Context context);
/**
* Get metadata information on an assessment type.
*
* @param assessmentMetadataName 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 metadata information on an assessment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentMetadataResponseInner get(String assessmentMetadataName);
/**
* Get metadata information on all assessment types in a specific 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 metadata information on all assessment types in a specific subscription as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listBySubscription();
/**
* Get metadata information on all assessment types in a specific subscription.
*
* @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 metadata information on all assessment types in a specific subscription as paginated response with
* {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listBySubscription(Context context);
/**
* Get metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName 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 metadata information on an assessment type in a specific subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getInSubscriptionWithResponse(String assessmentMetadataName,
Context context);
/**
* Get metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName 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 metadata information on an assessment type in a specific subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentMetadataResponseInner getInSubscription(String assessmentMetadataName);
/**
* Create metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
* @param assessmentMetadata AssessmentMetadata object.
* @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 metadata response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createInSubscriptionWithResponse(String assessmentMetadataName,
SecurityAssessmentMetadataResponseInner assessmentMetadata, Context context);
/**
* Create metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
* @param assessmentMetadata AssessmentMetadata object.
* @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 metadata response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SecurityAssessmentMetadataResponseInner createInSubscription(String assessmentMetadataName,
SecurityAssessmentMetadataResponseInner assessmentMetadata);
/**
* Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
* assessments of that type in that subscription.
*
* @param assessmentMetadataName 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 deleteInSubscriptionWithResponse(String assessmentMetadataName, Context context);
/**
* Delete metadata information on an assessment type in a specific subscription, will cause the deletion of all the
* assessments of that type in that subscription.
*
* @param assessmentMetadataName 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 deleteInSubscription(String assessmentMetadataName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy