Interface SecurityContacts
public interface SecurityContacts
Resource collection API of SecurityContacts.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new SecurityContact resource.void
Delete security contact configurations for the subscription.void
deleteById
(String id) Delete security contact configurations for the subscription.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete security contact configurations for the subscription.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String securityContactName, com.azure.core.util.Context context) Delete security contact configurations for the subscription.Get Default Security contact configurations for the subscription.Get Default Security contact configurations for the subscription.com.azure.core.http.rest.Response<SecurityContact>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get Default Security contact configurations for the subscription.com.azure.core.http.rest.Response<SecurityContact>
getWithResponse
(String securityContactName, com.azure.core.util.Context context) Get Default Security contact configurations for the subscription.com.azure.core.http.rest.PagedIterable<SecurityContact>
list()
List all security contact configurations for the subscription.com.azure.core.http.rest.PagedIterable<SecurityContact>
list
(com.azure.core.util.Context context) List all security contact configurations for the subscription.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SecurityContact> list()List all security contact configurations for the subscription.- Returns:
- list of security contacts response 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
List all security contact configurations for the subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of security contacts response 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 Default Security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.- Returns:
- default Security contact configurations for the 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.
-
getWithResponse
com.azure.core.http.rest.Response<SecurityContact> getWithResponse(String securityContactName, com.azure.core.util.Context context) Get Default Security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.context
- The context to associate with this operation.- Returns:
- default Security contact configurations for the 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.
-
delete
Delete security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.- 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 securityContactName, com.azure.core.util.Context context) Delete security contact configurations for the subscription.- Parameters:
securityContactName
- Name of the security contact object.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 Default Security contact configurations for the subscription.- Parameters:
id
- the resource ID.- Returns:
- default Security contact configurations for the 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<SecurityContact> getByIdWithResponse(String id, com.azure.core.util.Context context) Get Default Security contact configurations for the subscription.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- default Security contact configurations for the 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.
-
deleteById
Delete security contact configurations for the 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete security contact configurations for the 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 SecurityContact resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SecurityContact definition.
-