Interface SchedulesClient
-
public interface SchedulesClient
An instance of this class provides access to all the operations defined in SchedulesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String labName, String scheduleName)
Operation to delete a schedule resource.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)
Operation to delete a schedule resource.ScheduleInner
createOrUpdate(String resourceGroupName, String labName, String scheduleName, ScheduleInner body)
Operation to 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)
Operation to create or update a lab schedule.void
delete(String resourceGroupName, String labName, String scheduleName)
Operation to delete a schedule resource.void
delete(String resourceGroupName, String labName, String scheduleName, com.azure.core.util.Context context)
Operation to delete a schedule resource.ScheduleInner
get(String resourceGroupName, String labName, String scheduleName)
Returns the properties of a lab Schedule.com.azure.core.http.rest.Response<ScheduleInner>
getWithResponse(String resourceGroupName, String labName, String scheduleName, com.azure.core.util.Context context)
Returns the properties of a lab Schedule.com.azure.core.http.rest.PagedIterable<ScheduleInner>
listByLab(String resourceGroupName, String labName)
Returns a list of 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)
Returns a list of all schedules for a lab.ScheduleInner
update(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body)
Operation to 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)
Operation to update a lab schedule.
-
-
-
Method Detail
-
listByLab
com.azure.core.http.rest.PagedIterable<ScheduleInner> listByLab(String resourceGroupName, String labName)
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 account. Used in resource URIs.- Returns:
- paged list of schedules.
- 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)
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 account. 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.
- 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 labName, String scheduleName)
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 account. 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)
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 account. 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)
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 account. 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)
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 account. 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)
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 account. 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)
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 account. 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)
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 account. Used in resource URIs.scheduleName
- The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.- Returns:
- the
Response
on successful completion ofMono
. - 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)
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 account. 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
Response
on successful completion ofMono
. - 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)
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 account. 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)
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 account. 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.
-
-