ArmComputeScheduleModelFactory.OccurrenceDetails Method

Definition

Represents an scheduled action resource metadata.

public static Azure.ResourceManager.ComputeSchedule.Models.OccurrenceDetails OccurrenceDetails(string name = default, Azure.Core.ResourceIdentifier id = default, string type = default, Azure.Core.ResourceIdentifier resourceId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ComputeSchedule.Models.NotificationSettings> notificationSettings = default, DateTimeOffset scheduledOn = default, Azure.ResourceManager.ComputeSchedule.Models.OccurrenceResourceProvisioningState? provisioningState = default, Azure.ResponseError errorDetails = default);
static member OccurrenceDetails : string * Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.ComputeSchedule.Models.NotificationSettings> * DateTimeOffset * Nullable<Azure.ResourceManager.ComputeSchedule.Models.OccurrenceResourceProvisioningState> * Azure.ResponseError -> Azure.ResourceManager.ComputeSchedule.Models.OccurrenceDetails
Public Shared Function OccurrenceDetails (Optional name As String = Nothing, Optional id As ResourceIdentifier = Nothing, Optional type As String = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional notificationSettings As IEnumerable(Of NotificationSettings) = Nothing, Optional scheduledOn As DateTimeOffset = Nothing, Optional provisioningState As Nullable(Of OccurrenceResourceProvisioningState) = Nothing, Optional errorDetails As ResponseError = Nothing) As OccurrenceDetails

Parameters

name
String

The name of the resource.

id
ResourceIdentifier

The compute RP resource id of the resource in the scheduled actions scope. .

type
String

The type of resource.

resourceId
ResourceIdentifier

The ARM Id of the resource. "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}"

notificationSettings
IEnumerable<NotificationSettings>

The desired notification settings for the specified resource.

scheduledOn
DateTimeOffset

The time the occurrence is scheduled for the resource.

provisioningState
Nullable<OccurrenceResourceProvisioningState>

The current state of the resource.

errorDetails
ResponseError

Error details for the resource. Only populated if resource is in failed state.

Returns

A new OccurrenceDetails instance for mocking.

Applies to