共用方式為


ArmStorageCacheModelFactory.StorageCacheUpgradeStatus Method

Definition

Initializes a new instance of StorageCacheUpgradeStatus.

public static Azure.ResourceManager.StorageCache.Models.StorageCacheUpgradeStatus StorageCacheUpgradeStatus (string currentFirmwareVersion = default, Azure.ResourceManager.StorageCache.Models.StorageCacheFirmwareStatusType? firmwareUpdateStatus = default, DateTimeOffset? firmwareUpdateDeadline = default, DateTimeOffset? lastFirmwareUpdate = default, string pendingFirmwareVersion = default);
static member StorageCacheUpgradeStatus : string * Nullable<Azure.ResourceManager.StorageCache.Models.StorageCacheFirmwareStatusType> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.StorageCache.Models.StorageCacheUpgradeStatus
Public Shared Function StorageCacheUpgradeStatus (Optional currentFirmwareVersion As String = Nothing, Optional firmwareUpdateStatus As Nullable(Of StorageCacheFirmwareStatusType) = Nothing, Optional firmwareUpdateDeadline As Nullable(Of DateTimeOffset) = Nothing, Optional lastFirmwareUpdate As Nullable(Of DateTimeOffset) = Nothing, Optional pendingFirmwareVersion As String = Nothing) As StorageCacheUpgradeStatus

Parameters

currentFirmwareVersion
String

Version string of the firmware currently installed on this cache.

firmwareUpdateStatus
Nullable<StorageCacheFirmwareStatusType>

True if there is a firmware update ready to install on this cache. The firmware will automatically be installed after firmwareUpdateDeadline if not triggered earlier via the upgrade operation.

firmwareUpdateDeadline
Nullable<DateTimeOffset>

Time at which the pending firmware update will automatically be installed on the cache.

lastFirmwareUpdate
Nullable<DateTimeOffset>

Time of the last successful firmware update.

pendingFirmwareVersion
String

When firmwareUpdateAvailable is true, this field holds the version string for the update.

Returns

A new StorageCacheUpgradeStatus instance for mocking.

Applies to