Interface AssessmentsMetadatasClient
public interface AssessmentsMetadatasClient
An instance of this class provides access to all the operations defined in AssessmentsMetadatasClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateInSubscription
(String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata) Create metadata information on an assessment type in a specific subscription.com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponseInner>
createInSubscriptionWithResponse
(String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, com.azure.core.util.Context context) Create metadata information on an assessment type in a specific subscription.void
deleteInSubscription
(String assessmentMetadataName) 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.com.azure.core.http.rest.Response<Void>
deleteInSubscriptionWithResponse
(String assessmentMetadataName, com.azure.core.util.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.Get metadata information on an assessment type.getInSubscription
(String assessmentMetadataName) Get metadata information on an assessment type in a specific subscription.com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponseInner>
getInSubscriptionWithResponse
(String assessmentMetadataName, com.azure.core.util.Context context) Get metadata information on an assessment type in a specific subscription.com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponseInner>
getWithResponse
(String assessmentMetadataName, com.azure.core.util.Context context) Get metadata information on an assessment type.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner>
list()
Get metadata information on all assessment types.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner>
list
(com.azure.core.util.Context context) Get metadata information on all assessment types.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner>
Get metadata information on all assessment types in a specific subscription.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner>
listBySubscription
(com.azure.core.util.Context context) Get metadata information on all assessment types in a specific subscription.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner> list()Get metadata information on all assessment types.- Returns:
- metadata information on all assessment types as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner> list(com.azure.core.util.Context context) Get metadata information on all assessment types.- Parameters:
context
- The context to associate with this operation.- Returns:
- metadata information on all assessment types 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
Get metadata information on an assessment type.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.- Returns:
- metadata information on an assessment type.
- 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<SecurityAssessmentMetadataResponseInner> getWithResponse(String assessmentMetadataName, com.azure.core.util.Context context) Get metadata information on an assessment type.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.context
- The context to associate with this operation.- Returns:
- metadata information on an assessment type 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.
-
listBySubscription
com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner> listBySubscription()Get metadata information on all assessment types in a specific subscription.- Returns:
- metadata information on all assessment types in a specific subscription as paginated response with
PagedIterable
. - Throws:
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.
-
listBySubscription
com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponseInner> listBySubscription(com.azure.core.util.Context context) Get metadata information on all assessment types in a specific subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- metadata information on all assessment types in a specific subscription 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.
-
getInSubscription
Get metadata information on an assessment type in a specific subscription.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.- Returns:
- metadata information on an assessment type in a specific subscription.
- 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.
-
getInSubscriptionWithResponse
com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponseInner> getInSubscriptionWithResponse(String assessmentMetadataName, com.azure.core.util.Context context) Get metadata information on an assessment type in a specific subscription.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.context
- The context to associate with this operation.- Returns:
- metadata information on an assessment type in a specific subscription 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.
-
createInSubscription
SecurityAssessmentMetadataResponseInner createInSubscription(String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata) Create metadata information on an assessment type in a specific subscription.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.assessmentMetadata
- AssessmentMetadata object.- Returns:
- security assessment metadata 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.
-
createInSubscriptionWithResponse
com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponseInner> createInSubscriptionWithResponse(String assessmentMetadataName, SecurityAssessmentMetadataResponseInner assessmentMetadata, com.azure.core.util.Context context) Create metadata information on an assessment type in a specific subscription.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.assessmentMetadata
- AssessmentMetadata object.context
- The context to associate with this operation.- Returns:
- security assessment metadata response 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.
-
deleteInSubscription
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.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.- 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.
-
deleteInSubscriptionWithResponse
com.azure.core.http.rest.Response<Void> deleteInSubscriptionWithResponse(String assessmentMetadataName, com.azure.core.util.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.- Parameters:
assessmentMetadataName
- The Assessment Key - Unique key for the assessment type.context
- The context to associate with this operation.- Returns:
- the
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.
-