Interface GovernanceAssignments
public interface GovernanceAssignments
Resource collection API of GovernanceAssignments.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new GovernanceAssignment resource.void
Delete a GovernanceAssignment over a given scope.void
deleteById
(String id) Delete a GovernanceAssignment over a given scope.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a GovernanceAssignment over a given scope.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String scope, String assessmentName, String assignmentKey, com.azure.core.util.Context context) Delete a GovernanceAssignment over a given scope.Get a specific governanceAssignment for the requested scope by AssignmentKey.Get a specific governanceAssignment for the requested scope by AssignmentKey.com.azure.core.http.rest.Response<GovernanceAssignment>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a specific governanceAssignment for the requested scope by AssignmentKey.com.azure.core.http.rest.Response<GovernanceAssignment>
getWithResponse
(String scope, String assessmentName, String assignmentKey, com.azure.core.util.Context context) Get a specific governanceAssignment for the requested scope by AssignmentKey.com.azure.core.http.rest.PagedIterable<GovernanceAssignment>
Get security governanceAssignments on all your resources inside a scope.com.azure.core.http.rest.PagedIterable<GovernanceAssignment>
Get security governanceAssignments on all your resources inside a scope.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<GovernanceAssignment> list(String scope, String assessmentName) Get security governanceAssignments on all your resources inside a scope.- Parameters:
scope
- Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).assessmentName
- The Assessment Key - Unique key for the assessment type.- Returns:
- security governanceAssignments on all your resources inside a scope 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.
-
list
com.azure.core.http.rest.PagedIterable<GovernanceAssignment> list(String scope, String assessmentName, com.azure.core.util.Context context) Get security governanceAssignments on all your resources inside a scope.- Parameters:
scope
- Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).assessmentName
- The Assessment Key - Unique key for the assessment type.context
- The context to associate with this operation.- Returns:
- security governanceAssignments on all your resources inside a scope 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 a specific governanceAssignment for the requested scope by AssignmentKey.- Parameters:
scope
- Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).assessmentName
- The Assessment Key - Unique key for the assessment type.assignmentKey
- The security governance assignment key - the assessment key of the required governance assignment.- Returns:
- a specific governanceAssignment for the requested scope by AssignmentKey.
- 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<GovernanceAssignment> getWithResponse(String scope, String assessmentName, String assignmentKey, com.azure.core.util.Context context) Get a specific governanceAssignment for the requested scope by AssignmentKey.- Parameters:
scope
- Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).assessmentName
- The Assessment Key - Unique key for the assessment type.assignmentKey
- The security governance assignment key - the assessment key of the required governance assignment.context
- The context to associate with this operation.- Returns:
- a specific governanceAssignment for the requested scope by AssignmentKey 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.
-
delete
Delete a GovernanceAssignment over a given scope.- Parameters:
scope
- Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).assessmentName
- The Assessment Key - Unique key for the assessment type.assignmentKey
- The security governance assignment key - the assessment key of the required governance assignment.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String scope, String assessmentName, String assignmentKey, com.azure.core.util.Context context) Delete a GovernanceAssignment over a given scope.- Parameters:
scope
- Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).assessmentName
- The Assessment Key - Unique key for the assessment type.assignmentKey
- The security governance assignment key - the assessment key of the required governance assignment.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.
-
getById
Get a specific governanceAssignment for the requested scope by AssignmentKey.- Parameters:
id
- the resource ID.- Returns:
- a specific governanceAssignment for the requested scope by AssignmentKey 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<GovernanceAssignment> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a specific governanceAssignment for the requested scope by AssignmentKey.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a specific governanceAssignment for the requested scope by AssignmentKey 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
Delete a GovernanceAssignment over a given 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) Delete a GovernanceAssignment over a given 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 GovernanceAssignment resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new GovernanceAssignment definition.
-