Interface JobSchedules
public interface JobSchedules
Resource collection API of JobSchedules.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new JobSchedule resource.void
Delete the job schedule identified by job schedule name.void
deleteById
(String id) Delete the job schedule identified by job schedule name.com.azure.core.http.rest.Response<Void>
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete the job schedule identified by job schedule name.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String automationAccountName, UUID jobScheduleId, com.azure.core.util.Context context) Delete the job schedule identified by job schedule name.Retrieve the job schedule identified by job schedule name.Retrieve the job schedule identified by job schedule name.com.azure.core.http.rest.Response<JobSchedule>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Retrieve the job schedule identified by job schedule name.com.azure.core.http.rest.Response<JobSchedule>
getWithResponse
(String resourceGroupName, String automationAccountName, UUID jobScheduleId, com.azure.core.util.Context context) Retrieve the job schedule identified by job schedule name.com.azure.core.http.rest.PagedIterable<JobSchedule>
listByAutomationAccount
(String resourceGroupName, String automationAccountName) Retrieve a list of job schedules.com.azure.core.http.rest.PagedIterable<JobSchedule>
listByAutomationAccount
(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context) Retrieve a list of job schedules.
-
Method Details
-
delete
Delete the job schedule identified by job schedule name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobScheduleId
- The job schedule name.- 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 resourceGroupName, String automationAccountName, UUID jobScheduleId, com.azure.core.util.Context context) Delete the job schedule identified by job schedule name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobScheduleId
- The job schedule name.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.
-
get
Retrieve the job schedule identified by job schedule name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobScheduleId
- The job schedule name.- Returns:
- definition of the job schedule.
- 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<JobSchedule> getWithResponse(String resourceGroupName, String automationAccountName, UUID jobScheduleId, com.azure.core.util.Context context) Retrieve the job schedule identified by job schedule name.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.jobScheduleId
- The job schedule name.context
- The context to associate with this operation.- Returns:
- definition of the job schedule 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<JobSchedule> listByAutomationAccount(String resourceGroupName, String automationAccountName) Retrieve a list of job schedules.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.- Returns:
- the response model for the list job schedule operation 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.
-
listByAutomationAccount
com.azure.core.http.rest.PagedIterable<JobSchedule> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter, com.azure.core.util.Context context) Retrieve a list of job schedules.- Parameters:
resourceGroupName
- Name of an Azure Resource group.automationAccountName
- The name of the automation account.filter
- The filter to apply on the operation.context
- The context to associate with this operation.- Returns:
- the response model for the list job schedule operation 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
Retrieve the job schedule identified by job schedule name.- Parameters:
id
- the resource ID.- Returns:
- definition of the job schedule 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<JobSchedule> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieve the job schedule identified by job schedule name.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- definition of the job schedule 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 the job schedule identified by job schedule name.- 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 the job schedule identified by job schedule name.- 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 JobSchedule resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new JobSchedule definition.
-