Interface SchedulesClient
public interface SchedulesClient
An instance of this class provides access to all the operations defined in SchedulesClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginDelete
(String resourceGroupName, String labName, String scheduleName) Deletes a schedule resource.beginDelete
(String resourceGroupName, String labName, String scheduleName, com.azure.core.util.Context context) Deletes a schedule resource.createOrUpdate
(String resourceGroupName, String labName, String scheduleName, ScheduleInner body) Create or update a lab schedule.com.azure.core.http.rest.Response<ScheduleInner>
createOrUpdateWithResponse
(String resourceGroupName, String labName, String scheduleName, ScheduleInner body, com.azure.core.util.Context context) Create or update a lab schedule.void
Deletes a schedule resource.void
delete
(String resourceGroupName, String labName, String scheduleName, com.azure.core.util.Context context) Deletes a schedule resource.Get a lab Schedule.com.azure.core.http.rest.Response<ScheduleInner>
getWithResponse
(String resourceGroupName, String labName, String scheduleName, com.azure.core.util.Context context) Get a lab Schedule.com.azure.core.http.rest.PagedIterable<ScheduleInner>
Get all schedules for a lab.com.azure.core.http.rest.PagedIterable<ScheduleInner>
listByLab
(String resourceGroupName, String labName, String filter, com.azure.core.util.Context context) Get all schedules for a lab.update
(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body) Update a lab schedule.com.azure.core.http.rest.Response<ScheduleInner>
updateWithResponse
(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body, com.azure.core.util.Context context) Update a lab schedule.
-
Method Details
-
listByLab
com.azure.core.http.rest.PagedIterable<ScheduleInner> listByLab(String resourceGroupName, String labName) Get all schedules for a lab.Returns a list of all schedules for a lab.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.- Returns:
- paged list of schedules 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.
-
listByLab
com.azure.core.http.rest.PagedIterable<ScheduleInner> listByLab(String resourceGroupName, String labName, String filter, com.azure.core.util.Context context) Get all schedules for a lab.Returns a list of all schedules for a lab.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.filter
- The filter to apply to the operation.context
- The context to associate with this operation.- Returns:
- paged list of schedules 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 lab Schedule.Returns the properties of a lab Schedule.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.- Returns:
- schedule for automatically turning virtual machines in a lab on and off at specified times.
- 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 labName, String scheduleName, com.azure.core.util.Context context) Get a lab Schedule.Returns the properties of a lab Schedule.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.context
- The context to associate with this operation.- Returns:
- schedule for automatically turning virtual machines in a lab on and off at specified times 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.
-
createOrUpdate
ScheduleInner createOrUpdate(String resourceGroupName, String labName, String scheduleName, ScheduleInner body) Create or update a lab schedule.Operation to create or update a lab schedule.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.body
- The request body.- Returns:
- schedule for automatically turning virtual machines in a lab on and off at specified times.
- 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ScheduleInner> createOrUpdateWithResponse(String resourceGroupName, String labName, String scheduleName, ScheduleInner body, com.azure.core.util.Context context) Create or update a lab schedule.Operation to create or update a lab schedule.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.body
- The request body.context
- The context to associate with this operation.- Returns:
- schedule for automatically turning virtual machines in a lab on and off at specified times 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.
-
update
ScheduleInner update(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body) Update a lab schedule.Operation to update a lab schedule.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.body
- The request body.- Returns:
- schedule for automatically turning virtual machines in a lab on and off at specified times.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<ScheduleInner> updateWithResponse(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body, com.azure.core.util.Context context) Update a lab schedule.Operation to update a lab schedule.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.body
- The request body.context
- The context to associate with this operation.- Returns:
- schedule for automatically turning virtual machines in a lab on and off at specified times 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String scheduleName) Deletes a schedule resource.Operation to delete a schedule resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.- 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 labName, String scheduleName, com.azure.core.util.Context context) Deletes a schedule resource.Operation to delete a schedule resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.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 schedule resource.Operation to delete a schedule resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.- 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 labName, String scheduleName, com.azure.core.util.Context context) Deletes a schedule resource.Operation to delete a schedule resource.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.labName
- The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.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.
-