Interface Attestations
public interface Attestations
Resource collection API of Attestations.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateAtResource
(String resourceId, String attestationName, AttestationInner parameters) Creates or updates an attestation at resource scope.createOrUpdateAtResource
(String resourceId, String attestationName, AttestationInner parameters, com.azure.core.util.Context context) Creates or updates an attestation at resource scope.createOrUpdateAtSubscription
(String attestationName, AttestationInner parameters) Creates or updates an attestation at subscription scope.createOrUpdateAtSubscription
(String attestationName, AttestationInner parameters, com.azure.core.util.Context context) Creates or updates an attestation at subscription scope.Begins definition for a new Attestation resource.void
deleteAtResource
(String resourceId, String attestationName) Deletes an existing attestation at individual resource scope.com.azure.core.http.rest.Response<Void>
deleteAtResourceWithResponse
(String resourceId, String attestationName, com.azure.core.util.Context context) Deletes an existing attestation at individual resource scope.void
deleteAtSubscription
(String attestationName) Deletes an existing attestation at subscription scope.com.azure.core.http.rest.Response<Void>
deleteAtSubscriptionWithResponse
(String attestationName, com.azure.core.util.Context context) Deletes an existing attestation at subscription scope.void
deleteById
(String id) Deletes an existing attestation at resource group scope.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes an existing attestation at resource group scope.void
deleteByResourceGroup
(String resourceGroupName, String attestationName) Deletes an existing attestation at resource group scope.com.azure.core.http.rest.Response<Void>
deleteByResourceGroupWithResponse
(String resourceGroupName, String attestationName, com.azure.core.util.Context context) Deletes an existing attestation at resource group scope.getAtResource
(String resourceId, String attestationName) Gets an existing attestation at resource scope.com.azure.core.http.rest.Response<Attestation>
getAtResourceWithResponse
(String resourceId, String attestationName, com.azure.core.util.Context context) Gets an existing attestation at resource scope.getAtSubscription
(String attestationName) Gets an existing attestation at subscription scope.com.azure.core.http.rest.Response<Attestation>
getAtSubscriptionWithResponse
(String attestationName, com.azure.core.util.Context context) Gets an existing attestation at subscription scope.Gets an existing attestation at resource group scope.com.azure.core.http.rest.Response<Attestation>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets an existing attestation at resource group scope.getByResourceGroup
(String resourceGroupName, String attestationName) Gets an existing attestation at resource group scope.com.azure.core.http.rest.Response<Attestation>
getByResourceGroupWithResponse
(String resourceGroupName, String attestationName, com.azure.core.util.Context context) Gets an existing attestation at resource group scope.com.azure.core.http.rest.PagedIterable<Attestation>
list()
Gets all attestations for the subscription.com.azure.core.http.rest.PagedIterable<Attestation>
Gets all attestations for the subscription.com.azure.core.http.rest.PagedIterable<Attestation>
listByResourceGroup
(String resourceGroupName) Gets all attestations for the resource group.com.azure.core.http.rest.PagedIterable<Attestation>
listByResourceGroup
(String resourceGroupName, Integer top, String filter, com.azure.core.util.Context context) Gets all attestations for the resource group.com.azure.core.http.rest.PagedIterable<Attestation>
listForResource
(String resourceId) Gets all attestations for a resource.com.azure.core.http.rest.PagedIterable<Attestation>
listForResource
(String resourceId, Integer top, String filter, com.azure.core.util.Context context) Gets all attestations for a resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<Attestation> list()Gets all attestations for the subscription.- Returns:
- all attestations for the 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.
-
list
com.azure.core.http.rest.PagedIterable<Attestation> list(Integer top, String filter, com.azure.core.util.Context context) Gets all attestations for the subscription.- Parameters:
top
- Maximum number of records to return.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- all attestations for the 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.
-
createOrUpdateAtSubscription
Creates or updates an attestation at subscription scope.- Parameters:
attestationName
- The name of the attestation.parameters
- The attestation parameters.- Returns:
- an attestation resource.
- 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.
-
createOrUpdateAtSubscription
Attestation createOrUpdateAtSubscription(String attestationName, AttestationInner parameters, com.azure.core.util.Context context) Creates or updates an attestation at subscription scope.- Parameters:
attestationName
- The name of the attestation.parameters
- The attestation parameters.context
- The context to associate with this operation.- Returns:
- an attestation resource.
- 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.
-
getAtSubscriptionWithResponse
com.azure.core.http.rest.Response<Attestation> getAtSubscriptionWithResponse(String attestationName, com.azure.core.util.Context context) Gets an existing attestation at subscription scope.- Parameters:
attestationName
- The name of the attestation.context
- The context to associate with this operation.- Returns:
- an existing attestation at subscription scope 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.
-
getAtSubscription
Gets an existing attestation at subscription scope.- Parameters:
attestationName
- The name of the attestation.- Returns:
- an existing attestation at subscription scope.
- 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.
-
deleteAtSubscriptionWithResponse
com.azure.core.http.rest.Response<Void> deleteAtSubscriptionWithResponse(String attestationName, com.azure.core.util.Context context) Deletes an existing attestation at subscription scope.- Parameters:
attestationName
- The name of the attestation.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.
-
deleteAtSubscription
Deletes an existing attestation at subscription scope.- Parameters:
attestationName
- The name of the attestation.- 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.
-
listByResourceGroup
Gets all attestations for the resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- all attestations for the resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<Attestation> listByResourceGroup(String resourceGroupName, Integer top, String filter, com.azure.core.util.Context context) Gets all attestations for the resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.top
- Maximum number of records to return.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- all attestations for the resource group 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Attestation> getByResourceGroupWithResponse(String resourceGroupName, String attestationName, com.azure.core.util.Context context) Gets an existing attestation at resource group scope.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.attestationName
- The name of the attestation.context
- The context to associate with this operation.- Returns:
- an existing attestation at resource group scope 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.
-
getByResourceGroup
Gets an existing attestation at resource group scope.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.attestationName
- The name of the attestation.- Returns:
- an existing attestation at resource group scope.
- 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.
-
deleteByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String attestationName, com.azure.core.util.Context context) Deletes an existing attestation at resource group scope.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.attestationName
- The name of the attestation.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.
-
deleteByResourceGroup
Deletes an existing attestation at resource group scope.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.attestationName
- The name of the attestation.- 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.
-
listForResource
Gets all attestations for a resource.- Parameters:
resourceId
- Resource ID.- Returns:
- all attestations for a resource 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.
-
listForResource
com.azure.core.http.rest.PagedIterable<Attestation> listForResource(String resourceId, Integer top, String filter, com.azure.core.util.Context context) Gets all attestations for a resource.- Parameters:
resourceId
- Resource ID.top
- Maximum number of records to return.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- all attestations for a resource 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.
-
createOrUpdateAtResource
Attestation createOrUpdateAtResource(String resourceId, String attestationName, AttestationInner parameters) Creates or updates an attestation at resource scope.- Parameters:
resourceId
- Resource ID.attestationName
- The name of the attestation.parameters
- The attestation parameters.- Returns:
- an attestation resource.
- 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.
-
createOrUpdateAtResource
Attestation createOrUpdateAtResource(String resourceId, String attestationName, AttestationInner parameters, com.azure.core.util.Context context) Creates or updates an attestation at resource scope.- Parameters:
resourceId
- Resource ID.attestationName
- The name of the attestation.parameters
- The attestation parameters.context
- The context to associate with this operation.- Returns:
- an attestation resource.
- 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.
-
getAtResourceWithResponse
com.azure.core.http.rest.Response<Attestation> getAtResourceWithResponse(String resourceId, String attestationName, com.azure.core.util.Context context) Gets an existing attestation at resource scope.- Parameters:
resourceId
- Resource ID.attestationName
- The name of the attestation.context
- The context to associate with this operation.- Returns:
- an existing attestation at resource scope 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.
-
getAtResource
Gets an existing attestation at resource scope.- Parameters:
resourceId
- Resource ID.attestationName
- The name of the attestation.- Returns:
- an existing attestation at resource scope.
- 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.
-
deleteAtResourceWithResponse
com.azure.core.http.rest.Response<Void> deleteAtResourceWithResponse(String resourceId, String attestationName, com.azure.core.util.Context context) Deletes an existing attestation at individual resource scope.- Parameters:
resourceId
- Resource ID.attestationName
- The name of the attestation.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.
-
deleteAtResource
Deletes an existing attestation at individual resource scope.- Parameters:
resourceId
- Resource ID.attestationName
- The name of the attestation.- 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.
-
getById
Gets an existing attestation at resource group scope.- Parameters:
id
- the resource ID.- Returns:
- an existing attestation at resource group scope 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Attestation> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets an existing attestation at resource group scope.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- an existing attestation at resource group scope 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.
-
deleteById
Deletes an existing attestation at resource group scope.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes an existing attestation at resource group scope.- 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 Attestation resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Attestation definition.
-