ArmCognitiveServicesModelFactory.ModelReplacementConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.CognitiveServices.Models.ModelReplacementConfiguration ModelReplacementConfiguration(string targetModelName = default, string targetModelVersion = default, DateTimeOffset? autoUpgradeStartOn = default, int? upgradeOnExpiryLeadTimeDays = default);
static member ModelReplacementConfiguration : string * string * Nullable<DateTimeOffset> * Nullable<int> -> Azure.ResourceManager.CognitiveServices.Models.ModelReplacementConfiguration
Public Shared Function ModelReplacementConfiguration (Optional targetModelName As String = Nothing, Optional targetModelVersion As String = Nothing, Optional autoUpgradeStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional upgradeOnExpiryLeadTimeDays As Nullable(Of Integer) = Nothing) As ModelReplacementConfiguration
Parameters
- targetModelName
- String
The name of the replacement model.
- targetModelVersion
- String
The version of the replacement model.
- autoUpgradeStartOn
- Nullable<DateTimeOffset>
The date when automatic upgrade should start. This applies to deployments with the OnceNewDefaultVersionAvailable upgrade option.
The number of days before deprecation date to trigger upgrade. This applies to deployments with the OnceCurrentVersionExpired upgrade option.
Returns
A new ModelReplacementConfiguration instance for mocking.