Interface MaintenanceConfigurations
public interface MaintenanceConfigurations
Resource collection API of MaintenanceConfigurations.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new MaintenanceConfiguration resource.deleteById
(String id) Delete Configuration record.com.azure.core.http.rest.Response<MaintenanceConfiguration>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete Configuration record.deleteByResourceGroup
(String resourceGroupName, String resourceName) Delete Configuration record.com.azure.core.http.rest.Response<MaintenanceConfiguration>
deleteByResourceGroupWithResponse
(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Delete Configuration record.Get Configuration record.com.azure.core.http.rest.Response<MaintenanceConfiguration>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get Configuration record.getByResourceGroup
(String resourceGroupName, String resourceName) Get Configuration record.com.azure.core.http.rest.Response<MaintenanceConfiguration>
getByResourceGroupWithResponse
(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Get Configuration record.com.azure.core.http.rest.PagedIterable<MaintenanceConfiguration>
list()
Get Configuration records within a subscription.com.azure.core.http.rest.PagedIterable<MaintenanceConfiguration>
list
(com.azure.core.util.Context context) Get Configuration records within a subscription.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<MaintenanceConfiguration> getByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Get Configuration record.- Parameters:
resourceGroupName
- Resource Group Name.resourceName
- Maintenance Configuration Name.context
- The context to associate with this operation.- Returns:
- configuration record 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
Get Configuration record.- Parameters:
resourceGroupName
- Resource Group Name.resourceName
- Maintenance Configuration Name.- Returns:
- configuration record.
- 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<MaintenanceConfiguration> deleteByResourceGroupWithResponse(String resourceGroupName, String resourceName, com.azure.core.util.Context context) Delete Configuration record.- Parameters:
resourceGroupName
- Resource Group Name.resourceName
- Maintenance Configuration Name.context
- The context to associate with this operation.- Returns:
- maintenance configuration record 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.
-
deleteByResourceGroup
Delete Configuration record.- Parameters:
resourceGroupName
- Resource Group Name.resourceName
- Maintenance Configuration Name.- Returns:
- maintenance configuration record 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.
-
list
com.azure.core.http.rest.PagedIterable<MaintenanceConfiguration> list()Get Configuration records within a subscription.- Returns:
- configuration records within a 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<MaintenanceConfiguration> list(com.azure.core.util.Context context) Get Configuration records within a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- configuration records within a 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.
-
getById
Get Configuration record.- Parameters:
id
- the resource ID.- Returns:
- configuration record 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<MaintenanceConfiguration> getByIdWithResponse(String id, com.azure.core.util.Context context) Get Configuration record.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- configuration record 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 Configuration record.- Parameters:
id
- the resource ID.- Returns:
- maintenance configuration record 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<MaintenanceConfiguration> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete Configuration record.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- maintenance configuration record 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.
-
define
Begins definition for a new MaintenanceConfiguration resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new MaintenanceConfiguration definition.
-