Interface SchedulesClient
public interface SchedulesClient
An instance of this class provides access to all the operations defined in SchedulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,
ScheduleInner> beginCreateOrUpdate
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body) Creates or updates a Schedule.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,
ScheduleInner> beginCreateOrUpdate
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body, Integer top, com.azure.core.util.Context context) Creates or updates a Schedule.beginDelete
(String resourceGroupName, String projectName, String poolName, String scheduleName) Deletes a Scheduled.beginDelete
(String resourceGroupName, String projectName, String poolName, String scheduleName, Integer top, com.azure.core.util.Context context) Deletes a Scheduled.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,
ScheduleInner> beginUpdate
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body) Partially updates a Scheduled.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,
ScheduleInner> beginUpdate
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body, Integer top, com.azure.core.util.Context context) Partially updates a Scheduled.createOrUpdate
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body) Creates or updates a Schedule.createOrUpdate
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body, Integer top, com.azure.core.util.Context context) Creates or updates a Schedule.void
Deletes a Scheduled.void
delete
(String resourceGroupName, String projectName, String poolName, String scheduleName, Integer top, com.azure.core.util.Context context) Deletes a Scheduled.Gets a schedule resource.com.azure.core.http.rest.Response<ScheduleInner>
getWithResponse
(String resourceGroupName, String projectName, String poolName, String scheduleName, Integer top, com.azure.core.util.Context context) Gets a schedule resource.com.azure.core.http.rest.PagedIterable<ScheduleInner>
listByPool
(String resourceGroupName, String projectName, String poolName) Lists schedules for a pool.com.azure.core.http.rest.PagedIterable<ScheduleInner>
listByPool
(String resourceGroupName, String projectName, String poolName, Integer top, com.azure.core.util.Context context) Lists schedules for a pool.update
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body) Partially updates a Scheduled.update
(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body, Integer top, com.azure.core.util.Context context) Partially updates a Scheduled.
-
Method Details
-
listByPool
com.azure.core.http.rest.PagedIterable<ScheduleInner> listByPool(String resourceGroupName, String projectName, String poolName) Lists schedules for a pool.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.- Returns:
- result of the schedule list 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.
-
listByPool
com.azure.core.http.rest.PagedIterable<ScheduleInner> listByPool(String resourceGroupName, String projectName, String poolName, Integer top, com.azure.core.util.Context context) Lists schedules for a pool.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- result of the schedule list 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.
-
getWithResponse
com.azure.core.http.rest.Response<ScheduleInner> getWithResponse(String resourceGroupName, String projectName, String poolName, String scheduleName, Integer top, com.azure.core.util.Context context) Gets a schedule resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- a schedule resource 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.
-
get
ScheduleInner get(String resourceGroupName, String projectName, String poolName, String scheduleName) Gets a schedule resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.- Returns:
- a schedule 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,ScheduleInner> beginCreateOrUpdate(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body) Creates or updates a Schedule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.- Returns:
- the
SyncPoller
for polling of represents a Schedule to execute a task. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,ScheduleInner> beginCreateOrUpdate(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body, Integer top, com.azure.core.util.Context context) Creates or updates a Schedule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of represents a Schedule to execute a task. - 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.
-
createOrUpdate
ScheduleInner createOrUpdate(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body) Creates or updates a Schedule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.- Returns:
- represents a Schedule to execute a task.
- 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.
-
createOrUpdate
ScheduleInner createOrUpdate(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleInner body, Integer top, com.azure.core.util.Context context) Creates or updates a Schedule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- represents a Schedule to execute a task.
- 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,ScheduleInner> beginUpdate(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body) Partially updates a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.- Returns:
- the
SyncPoller
for polling of represents a Schedule to execute a task. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ScheduleInner>,ScheduleInner> beginUpdate(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body, Integer top, com.azure.core.util.Context context) Partially updates a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of represents a Schedule to execute a task. - 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.
-
update
ScheduleInner update(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body) Partially updates a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.- Returns:
- represents a Schedule to execute a task.
- 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.
-
update
ScheduleInner update(String resourceGroupName, String projectName, String poolName, String scheduleName, ScheduleUpdate body, Integer top, com.azure.core.util.Context context) Partially updates a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.body
- Represents a scheduled task.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- represents a Schedule to execute a task.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName, String poolName, String scheduleName) Deletes a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String projectName, String poolName, String scheduleName, Integer top, com.azure.core.util.Context context) Deletes a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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
Deletes a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.- 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
void delete(String resourceGroupName, String projectName, String poolName, String scheduleName, Integer top, com.azure.core.util.Context context) Deletes a Scheduled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.projectName
- The name of the project.poolName
- Name of the pool.scheduleName
- The name of the schedule that uniquely identifies it.top
- The maximum number of resources to return from the operation. Example: '$top=10'.context
- The context to associate with this operation.- 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.
-