Share via


@azure/arm-computeschedule package

Classes

ComputeScheduleClient

Interfaces

CancelOccurrenceRequest

The request to cancel an occurrence.

CancelOperationsRequest

This is the request to cancel running operations in scheduled actions using the operation ids

CancelOperationsResponse

This is the response from a cancel operations request

ComputeScheduleClientOptionalParams

Optional parameters for the client.

CreateResourceOperationResponse

The response from a create request

DeallocateResourceOperationResponse

The response from a deallocate request

DelayRequest

Request to ask for a delay in an occurrence, delay should be set to client local time eg (ACST) 2025-05-30T22:03:00+09:30, (PST) 2025-05-30T06:35:00-07:00

DeleteResourceOperationResponse

The response from a delete request

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Common error response for all Azure Resource Manager APIs to return error details for failed operations.

ExecuteCreateRequest

The ExecuteCreateRequest request for create operations

ExecuteDeallocateRequest

The ExecuteDeallocateRequest request for executeDeallocate operations

ExecuteDeleteRequest

The ExecuteDeleteRequest for delete VM operation

ExecuteHibernateRequest

The ExecuteHibernateRequest request for executeHibernate operations

ExecuteStartRequest

The ExecuteStartRequest request for executeStart operations

ExecutionParameters

Extra details needed to run the user's request

ExtensionResource

The base extension resource.

GetOperationErrorsRequest

This is the request to get errors per vm operations

GetOperationErrorsResponse

This is the response from a get operations errors request

GetOperationStatusRequest

This is the request to get operation status using operationids

GetOperationStatusResponse

This is the response from a get operations status request

HibernateResourceOperationResponse

The response from a Hibernate request

NotificationProperties

The information about notifications to be send to about upcoming operations.

Occurrence

Concrete proxy resource types can be created by aliasing this type using a specific property type.

OccurrenceExtensionListOccurrenceByVmsOptionalParams

Optional parameters.

OccurrenceExtensionOperations

Interface representing a OccurrenceExtension operations.

OccurrenceExtensionProperties

The properties of the occurrence extension

OccurrenceExtensionResource

The scheduled action extension

OccurrenceProperties

Properties for an occurrence

OccurrenceResource

Represents an scheduled action resource metadata.

OccurrenceResultSummary

The summarized provisioning result of an occurrence

OccurrencesCancelOptionalParams

Optional parameters.

OccurrencesDelayOptionalParams

Optional parameters.

OccurrencesGetOptionalParams

Optional parameters.

OccurrencesListByScheduledActionOptionalParams

Optional parameters.

OccurrencesListResourcesOptionalParams

Optional parameters.

OccurrencesOperations

Interface representing a Occurrences operations.

Operation

Details of a REST API operation, returned from the Resource Provider Operations API

OperationDisplay

Localized display information for and operation.

OperationErrorDetails

This defines a list of operation errors associated with a unique operationId

OperationErrorsResult

This is the first level of operation errors from the request when clients get errors per vm operation

OperationsListOptionalParams

Optional parameters.

OperationsOperations

Interface representing a Operations operations.

PageSettings

Options for the byPage method

PagedAsyncIterableIterator

An interface that allows async iterable iteration both to completion and by page.

ProxyResource

The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

RecurringActionsResourceOperationResult

The response from scheduled action resource requests, which contains the status of each resource

Resource

Common fields that are returned in the response for all Azure Resource Manager resources

ResourceAttachRequest

Request model to attach a list of scheduled action resources.

ResourceDetachRequest

Request model to detach a list of scheduled action resources.

ResourceOperation

High level response from an operation on a resource

ResourceOperationDetails

The details of a response from an operation on a resource

ResourceOperationError

These describe errors that occur at the resource level

ResourcePatchRequest

Request model perform a resource operation in a list of resources

ResourceProvisionPayload

Resource creation data model

ResourceResultSummary

The status of the resources

ResourceStatus

The status of a resource after a resource level operation was performed

Resources

The resources needed for the user request

RestorePollerOptions
RetryPolicy

The retry policy for the user request

Schedule

The schedule details for the user request

ScheduledAction

The scheduled action resource

ScheduledActionExtensionListByVmsOptionalParams

Optional parameters.

ScheduledActionExtensionOperations

Interface representing a ScheduledActionExtension operations.

ScheduledActionProperties

Scheduled action properties

ScheduledActionResource

Represents an scheduled action resource metadata.

ScheduledActionResourceCreate

Represents an scheduled action resource metadata.

ScheduledActionResources

The scheduled action extension

ScheduledActionUpdate

The type used for update operations of the ScheduledAction.

ScheduledActionUpdateProperties

The updatable properties of the ScheduledAction.

ScheduledActionsAttachResourcesOptionalParams

Optional parameters.

ScheduledActionsCancelNextOccurrenceOptionalParams

Optional parameters.

ScheduledActionsCreateOrUpdateOptionalParams

Optional parameters.

ScheduledActionsDeleteOptionalParams

Optional parameters.

ScheduledActionsDetachResourcesOptionalParams

Optional parameters.

ScheduledActionsDisableOptionalParams

Optional parameters.

ScheduledActionsEnableOptionalParams

Optional parameters.

ScheduledActionsGetOptionalParams

Optional parameters.

ScheduledActionsListByResourceGroupOptionalParams

Optional parameters.

ScheduledActionsListBySubscriptionOptionalParams

Optional parameters.

ScheduledActionsListResourcesOptionalParams

Optional parameters.

ScheduledActionsOperations

Interface representing a ScheduledActions operations.

ScheduledActionsPatchResourcesOptionalParams

Optional parameters.

ScheduledActionsSchedule

Specify the schedule in which the scheduled action is supposed to follow

ScheduledActionsTriggerManualOccurrenceOptionalParams

Optional parameters.

ScheduledActionsUpdateOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesCancelOperationsOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesExecuteCreateOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesExecuteDeallocateOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesExecuteDeleteOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesExecuteHibernateOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesExecuteStartOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesGetOperationErrorsOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesGetOperationStatusOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesSubmitDeallocateOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesSubmitHibernateOptionalParams

Optional parameters.

ScheduledActionsVirtualMachinesSubmitStartOptionalParams

Optional parameters.

StartResourceOperationResponse

The response from a start request

SubmitDeallocateRequest

The deallocate request for resources

SubmitHibernateRequest

This is the request for hibernate

SubmitStartRequest

This is the request for start

SystemData

Metadata pertaining to creation and last modification of the resource.

TrackedResource

The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

Type Aliases

ActionType

Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
KnownActionType can be used interchangeably with ActionType, this enum contains the known values that the service supports.

Known values supported by the service

Internal: Actions are for internal-only APIs.

AzureSupportedClouds

The supported values for cloud setting as a string literal type

ContinuablePage

An interface that describes a page of results.

CreatedByType

The kind of entity that created the resource.
KnownCreatedByType can be used interchangeably with CreatedByType, this enum contains the known values that the service supports.

Known values supported by the service

User: The entity was created by a user.
Application: The entity was created by an application.
ManagedIdentity: The entity was created by a managed identity.
Key: The entity was created by a key.

DeadlineType

The types of deadlines supported by ScheduledActions
KnownDeadlineType can be used interchangeably with DeadlineType, this enum contains the known values that the service supports.

Known values supported by the service

Unknown: Default value of Unknown.
InitiateAt: Initiate the operation at the given deadline.
CompleteBy: Complete the operation by the given deadline.

Language

The notification languages currently supported
KnownLanguage can be used interchangeably with Language, this enum contains the known values that the service supports.

Known values supported by the service

en-us: American english language

Month

Representation of the months available selection in a gregorian calendar
KnownMonth can be used interchangeably with Month, this enum contains the known values that the service supports.

Known values supported by the service

January: The January month.
February: The February month.
March: The March month.
April: The April month.
May: The May month.
June: The June month.
July: The July month.
August: The August month.
September: The September month.
October: The October month.
November: The November month.
December: The December month.
All: All months

NotificationType

The type of notification supported
KnownNotificationType can be used interchangeably with NotificationType, this enum contains the known values that the service supports.

Known values supported by the service

Email: Notify through e-mail

OccurrenceState

The state the occurrence is at a given time
KnownOccurrenceState can be used interchangeably with OccurrenceState, this enum contains the known values that the service supports.

Known values supported by the service

Created: The occurrence was created
Rescheduling: The occurrence is being rescheduled
Scheduled: The occurrence has been scheduled
Succeeded: The occurrence has successfully ran
Failed: The occurrence has failed during its scheduling
Cancelling: The occurrence is going through cancellation
Canceled: The occurrence has been canceled

OperationState

Values that define the states of operations in Scheduled Actions
KnownOperationState can be used interchangeably with OperationState, this enum contains the known values that the service supports.

Known values supported by the service

Unknown: The default value for the operation state enum
PendingScheduling: Operations that are pending scheduling
Scheduled: Operations that have been scheduled
PendingExecution: Operations that are waiting to be executed
Executing: Operations that are in the process of being executed
Succeeded: Operations that suceeded
Failed: Operations that have failed
Cancelled: Operations that have been Cancelled by the user
Blocked: Operations that are blocked

OptimizationPreference

The preferences customers can select to optimize their requests to ScheduledActions
KnownOptimizationPreference can be used interchangeably with OptimizationPreference, this enum contains the known values that the service supports.

Known values supported by the service

Cost: Optimize while considering cost savings
Availability: Optimize while considering availability of resources
CostAvailabilityBalanced: Optimize while considering a balance of cost and availability

Origin

The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
KnownOrigin can be used interchangeably with Origin, this enum contains the known values that the service supports.

Known values supported by the service

user: Indicates the operation is initiated by a user.
system: Indicates the operation is initiated by a system.
user,system: Indicates the operation is initiated by a user or system.

ProvisioningState

Provisioning state
KnownProvisioningState can be used interchangeably with ProvisioningState, this enum contains the known values that the service supports.

Known values supported by the service

Succeeded: Resource has been created.
Failed: Resource creation failed.
Canceled: Resource creation was canceled.
Deleting: Resource is being deleted.

ResourceOperationStatus

The state the resource is on after the resource operation is applied
KnownResourceOperationStatus can be used interchangeably with ResourceOperationStatus, this enum contains the known values that the service supports.

Known values supported by the service

Succeeded: The resource operation was successful
Failed: The resource operation has failed.

ResourceOperationType

The kind of operation types that can be performed on resources using ScheduledActions
KnownResourceOperationType can be used interchangeably with ResourceOperationType, this enum contains the known values that the service supports.

Known values supported by the service

Unknown: The default value for this enum type
Start: Start operations on the resources
Deallocate: Deallocate operations on the resources
Hibernate: Hibernate operations on the resources

ResourceProvisioningState

The provisioning state of a resource type.
KnownResourceProvisioningState can be used interchangeably with ResourceProvisioningState, this enum contains the known values that the service supports.

Known values supported by the service

Succeeded: Resource has been created.
Failed: Resource creation failed.
Canceled: Resource creation was canceled.

ResourceType

The type of resource being targeted
KnownResourceType can be used interchangeably with ResourceType, this enum contains the known values that the service supports.

Known values supported by the service

VirtualMachine: Resources defined are Virtual Machines
VirtualMachineScaleSet: Resources defined are Virtual Machines Scale Sets

ScheduledActionType

Specify which action user wants to be performed on the resources
KnownScheduledActionType can be used interchangeably with ScheduledActionType, this enum contains the known values that the service supports.

Known values supported by the service

Start: Perform a start action on the specified resources
Deallocate: Perform a deallocate action on the specified resources
Hibernate: Perform hibernate and deallocate on the specified resources

WeekDay

Representation of the possible selection of days in a week in a gregorian calendar
KnownWeekDay can be used interchangeably with WeekDay, this enum contains the known values that the service supports.

Known values supported by the service

Monday: Monday weekday.
Tuesday: Tuesday weekday.
Wednesday: Wednesday weekday.
Thursday: Thursday weekday.
Friday: Friday weekday.
Saturday: Saturday weekday.
Sunday: Sunday weekday.
All: All week days

Enums

AzureClouds

An enum to describe Azure Cloud.

KnownActionType

Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.

KnownCreatedByType

The kind of entity that created the resource.

KnownDeadlineType

The types of deadlines supported by ScheduledActions

KnownLanguage

The notification languages currently supported

KnownMonth

Representation of the months available selection in a gregorian calendar

KnownNotificationType

The type of notification supported

KnownOccurrenceState

The state the occurrence is at a given time

KnownOperationState

Values that define the states of operations in Scheduled Actions

KnownOptimizationPreference

The preferences customers can select to optimize their requests to ScheduledActions

KnownOrigin

The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

KnownProvisioningState

Provisioning state

KnownResourceOperationStatus

The state the resource is on after the resource operation is applied

KnownResourceOperationType

The kind of operation types that can be performed on resources using ScheduledActions

KnownResourceProvisioningState

The provisioning state of a resource type.

KnownResourceType

The type of resource being targeted

KnownScheduledActionType

Specify which action user wants to be performed on the resources

KnownVersions

ComputeSchedule API versions

KnownWeekDay

Representation of the possible selection of days in a week in a gregorian calendar

Functions

restorePoller<TResponse, TResult>(ComputeScheduleClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

Function Details

restorePoller<TResponse, TResult>(ComputeScheduleClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)

Creates a poller from the serialized state of another poller. This can be useful when you want to create pollers on a different host or a poller needs to be constructed after the original one is not in scope.

function restorePoller<TResponse, TResult>(client: ComputeScheduleClient, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>

Parameters

serializedState

string

sourceOperation

(args: any[]) => PollerLike<OperationState<TResult>, TResult>

Returns

PollerLike<OperationState<TResult>, TResult>