Share via


SchedulesClient Interface

public interface SchedulesClient

An instance of this class provides access to all the operations defined in SchedulesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String scheduleName)

Deletes a schedule resource.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String scheduleName, Context context)

Deletes a schedule resource.

abstract ScheduleInner createOrUpdate(String resourceGroupName, String labName, String scheduleName, ScheduleInner body)

Create or update a lab schedule.

abstract Response<ScheduleInner> createOrUpdateWithResponse(String resourceGroupName, String labName, String scheduleName, ScheduleInner body, Context context)

Create or update a lab schedule.

abstract void delete(String resourceGroupName, String labName, String scheduleName)

Deletes a schedule resource.

abstract void delete(String resourceGroupName, String labName, String scheduleName, Context context)

Deletes a schedule resource.

abstract ScheduleInner get(String resourceGroupName, String labName, String scheduleName)

Get a lab Schedule.

abstract Response<ScheduleInner> getWithResponse(String resourceGroupName, String labName, String scheduleName, Context context)

Get a lab Schedule.

abstract PagedIterable<ScheduleInner> listByLab(String resourceGroupName, String labName)

Get all schedules for a lab.

abstract PagedIterable<ScheduleInner> listByLab(String resourceGroupName, String labName, String filter, Context context)

Get all schedules for a lab.

abstract ScheduleInner update(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body)

Update a lab schedule.

abstract Response<ScheduleInner> updateWithResponse(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body, Context context)

Update a lab schedule.

Method Details

beginDelete

public abstract SyncPoller<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<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String scheduleName, 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<T,U> for polling of long-running operation.

createOrUpdate

public abstract 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.

createOrUpdateWithResponse

public abstract Response<ScheduleInner> createOrUpdateWithResponse(String resourceGroupName, String labName, String scheduleName, ScheduleInner body, 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<T>.

delete

public abstract void delete(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.

delete

public abstract void delete(String resourceGroupName, String labName, String scheduleName, 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.

get

public abstract ScheduleInner get(String resourceGroupName, String labName, String scheduleName)

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.

getWithResponse

public abstract Response<ScheduleInner> getWithResponse(String resourceGroupName, String labName, String scheduleName, 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<T>.

listByLab

public abstract 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<T>.

listByLab

public abstract PagedIterable<ScheduleInner> listByLab(String resourceGroupName, String labName, String filter, 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<T>.

update

public abstract 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.

updateWithResponse

public abstract Response<ScheduleInner> updateWithResponse(String resourceGroupName, String labName, String scheduleName, ScheduleUpdate body, 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<T>.

Applies to