Interface Schedules
public interface Schedules
Resource collection API of Schedules.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Schedule resource.void
Deletes a schedule resource.void
delete
(String resourceGroupName, String labName, String scheduleName, com.azure.core.util.Context context) Deletes a schedule resource.void
deleteById
(String id) Deletes a schedule resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a schedule resource.Get a lab Schedule.Get a lab Schedule.com.azure.core.http.rest.Response<Schedule>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a lab Schedule.com.azure.core.http.rest.Response<Schedule>
getWithResponse
(String resourceGroupName, String labName, String scheduleName, com.azure.core.util.Context context) Get a lab Schedule.com.azure.core.http.rest.PagedIterable<Schedule>
Get all schedules for a lab.com.azure.core.http.rest.PagedIterable<Schedule>
listByLab
(String resourceGroupName, String labName, String filter, com.azure.core.util.Context context) Get all schedules for a lab.
-
Method Details
-
listByLab
com.azure.core.http.rest.PagedIterable<Schedule> 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<Schedule> 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<Schedule> 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.
-
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.
-
getById
Get a lab Schedule.Returns the properties of a lab Schedule.
- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<Schedule> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a lab Schedule.Returns the properties of a lab Schedule.
- Parameters:
id
- the resource ID.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.
-
deleteById
Deletes a schedule resource.Operation to delete a schedule resource.
- 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
Deletes a schedule resource.Operation to delete a schedule resource.
- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new Schedule resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new Schedule definition.
-