Interface AssessmentsMetadatas
public interface AssessmentsMetadatas
Resource collection API of AssessmentsMetadatas.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new SecurityAssessmentMetadataResponse resource.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.void
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>
deleteInSubscriptionByIdWithResponse
(String id, 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.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.Get metadata information on an assessment type in a specific subscription.com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponse>
getInSubscriptionByIdWithResponse
(String id, com.azure.core.util.Context context) Get metadata information on an assessment type in a specific subscription.com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponse>
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<SecurityAssessmentMetadataResponse>
getWithResponse
(String assessmentMetadataName, com.azure.core.util.Context context) Get metadata information on an assessment type.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponse>
list()
Get metadata information on all assessment types.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponse>
list
(com.azure.core.util.Context context) Get metadata information on all assessment types.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponse>
Get metadata information on all assessment types in a specific subscription.com.azure.core.http.rest.PagedIterable<SecurityAssessmentMetadataResponse>
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<SecurityAssessmentMetadataResponse> 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<SecurityAssessmentMetadataResponse> 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<SecurityAssessmentMetadataResponse> 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<SecurityAssessmentMetadataResponse> 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<SecurityAssessmentMetadataResponse> 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<SecurityAssessmentMetadataResponse> 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.
-
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.
-
getInSubscriptionById
Get metadata information on an assessment type in a specific subscription.- Parameters:
id
- the resource ID.- 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.
-
getInSubscriptionByIdWithResponse
com.azure.core.http.rest.Response<SecurityAssessmentMetadataResponse> getInSubscriptionByIdWithResponse(String id, com.azure.core.util.Context context) Get metadata information on an assessment type in a specific subscription.- Parameters:
id
- the resource ID.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.
-
deleteInSubscriptionById
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:
id
- the resource ID.- 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.
-
deleteInSubscriptionByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteInSubscriptionByIdWithResponse(String id, 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:
id
- the resource ID.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.
-
define
Begins definition for a new SecurityAssessmentMetadataResponse resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SecurityAssessmentMetadataResponse definition.
-