public interface GlobalSchedules
Modifier and Type | Method and Description |
---|---|
Schedule.DefinitionStages.Blank |
define(String name)
Begins definition for a new Schedule resource.
|
void |
deleteById(String id)
Delete schedule.
|
com.azure.core.http.rest.Response<Void> |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Delete schedule.
|
void |
deleteByResourceGroup(String resourceGroupName,
String name)
Delete schedule.
|
com.azure.core.http.rest.Response<Void> |
deleteWithResponse(String resourceGroupName,
String name,
com.azure.core.util.Context context)
Delete schedule.
|
void |
execute(String resourceGroupName,
String name)
Execute a schedule.
|
void |
execute(String resourceGroupName,
String name,
com.azure.core.util.Context context)
Execute a schedule.
|
Schedule |
getById(String id)
Get schedule.
|
com.azure.core.http.rest.Response<Schedule> |
getByIdWithResponse(String id,
String expand,
com.azure.core.util.Context context)
Get schedule.
|
Schedule |
getByResourceGroup(String resourceGroupName,
String name)
Get schedule.
|
com.azure.core.http.rest.Response<Schedule> |
getByResourceGroupWithResponse(String resourceGroupName,
String name,
String expand,
com.azure.core.util.Context context)
Get schedule.
|
com.azure.core.http.rest.PagedIterable<Schedule> |
list()
List schedules in a subscription.
|
com.azure.core.http.rest.PagedIterable<Schedule> |
list(String expand,
String filter,
Integer top,
String orderby,
com.azure.core.util.Context context)
List schedules in a subscription.
|
com.azure.core.http.rest.PagedIterable<Schedule> |
listByResourceGroup(String resourceGroupName)
List schedules in a resource group.
|
com.azure.core.http.rest.PagedIterable<Schedule> |
listByResourceGroup(String resourceGroupName,
String expand,
String filter,
Integer top,
String orderby,
com.azure.core.util.Context context)
List schedules in a resource group.
|
void |
retarget(String resourceGroupName,
String name,
RetargetScheduleProperties retargetScheduleProperties)
Updates a schedule's target resource Id.
|
void |
retarget(String resourceGroupName,
String name,
RetargetScheduleProperties retargetScheduleProperties,
com.azure.core.util.Context context)
Updates a schedule's target resource Id.
|
com.azure.core.http.rest.PagedIterable<Schedule> list()
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.com.azure.core.http.rest.PagedIterable<Schedule> list(String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
expand
- Specify the $expand query. Example: 'properties($select=status)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.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.com.azure.core.http.rest.PagedIterable<Schedule> listByResourceGroup(String resourceGroupName)
resourceGroupName
- The name of the resource group.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.com.azure.core.http.rest.PagedIterable<Schedule> listByResourceGroup(String resourceGroupName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.expand
- Specify the $expand query. Example: 'properties($select=status)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.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.Schedule getByResourceGroup(String resourceGroupName, String name)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.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.com.azure.core.http.rest.Response<Schedule> getByResourceGroupWithResponse(String resourceGroupName, String name, String expand, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.expand
- Specify the $expand query. Example: 'properties($select=status)'.context
- The context to associate with this operation.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.void deleteByResourceGroup(String resourceGroupName, String name)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.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.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.context
- The context to associate with this operation.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.void execute(String resourceGroupName, String name)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.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.void execute(String resourceGroupName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.context
- The context to associate with this operation.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.void retarget(String resourceGroupName, String name, RetargetScheduleProperties retargetScheduleProperties)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.retargetScheduleProperties
- Properties for retargeting a virtual machine schedule.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.void retarget(String resourceGroupName, String name, RetargetScheduleProperties retargetScheduleProperties, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the schedule.retargetScheduleProperties
- Properties for retargeting a virtual machine schedule.context
- The context to associate with this operation.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.Schedule getById(String id)
id
- the resource ID.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.com.azure.core.http.rest.Response<Schedule> getByIdWithResponse(String id, String expand, com.azure.core.util.Context context)
id
- the resource ID.expand
- Specify the $expand query. Example: 'properties($select=status)'.context
- The context to associate with this operation.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.void deleteById(String id)
id
- the resource ID.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.com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.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.Schedule.DefinitionStages.Blank define(String name)
name
- resource name.Copyright © 2021 Microsoft Corporation. All rights reserved.