共用方式為


ArmMaintenanceModelFactory.MaintenanceUpdate Method

Definition

Initializes a new instance of MaintenanceUpdate.

public static Azure.ResourceManager.Maintenance.Models.MaintenanceUpdate MaintenanceUpdate (Azure.ResourceManager.Maintenance.Models.MaintenanceScope? maintenanceScope = default, Azure.ResourceManager.Maintenance.Models.MaintenanceImpactType? impactType = default, Azure.ResourceManager.Maintenance.Models.MaintenanceUpdateStatus? status = default, int? impactDurationInSec = default, DateTimeOffset? notBefore = default, Azure.Core.ResourceIdentifier resourceId = default);
static member MaintenanceUpdate : Nullable<Azure.ResourceManager.Maintenance.Models.MaintenanceScope> * Nullable<Azure.ResourceManager.Maintenance.Models.MaintenanceImpactType> * Nullable<Azure.ResourceManager.Maintenance.Models.MaintenanceUpdateStatus> * Nullable<int> * Nullable<DateTimeOffset> * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Maintenance.Models.MaintenanceUpdate
Public Shared Function MaintenanceUpdate (Optional maintenanceScope As Nullable(Of MaintenanceScope) = Nothing, Optional impactType As Nullable(Of MaintenanceImpactType) = Nothing, Optional status As Nullable(Of MaintenanceUpdateStatus) = Nothing, Optional impactDurationInSec As Nullable(Of Integer) = Nothing, Optional notBefore As Nullable(Of DateTimeOffset) = Nothing, Optional resourceId As ResourceIdentifier = Nothing) As MaintenanceUpdate

Parameters

maintenanceScope
Nullable<MaintenanceScope>

The impact area.

impactType
Nullable<MaintenanceImpactType>

The impact type.

status
Nullable<MaintenanceUpdateStatus>

The status.

impactDurationInSec
Nullable<Int32>

Duration of impact in seconds.

notBefore
Nullable<DateTimeOffset>

Time when Azure will start force updates if not self-updated by customer before this time.

resourceId
ResourceIdentifier

The resourceId.

Returns

A new MaintenanceUpdate instance for mocking.

Applies to