共用方式為


ArmMachineLearningModelFactory.ModelPackageResult Method

Definition

Initializes a new instance of ModelPackageResult.

public static Azure.ResourceManager.MachineLearning.Models.ModelPackageResult ModelPackageResult (Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource baseEnvironmentSource = default, string buildId = default, Azure.ResourceManager.MachineLearning.Models.PackageBuildState? buildState = default, System.Collections.Generic.IReadOnlyDictionary<string,string> environmentVariables = default, Azure.ResourceManager.MachineLearning.Models.InferencingServer inferencingServer = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.MachineLearning.Models.ModelPackageInput> inputs = default, Uri logUri = default, Azure.ResourceManager.MachineLearning.Models.ModelConfiguration modelConfiguration = default, System.Collections.Generic.IReadOnlyDictionary<string,string> tags = default, string targetEnvironmentId = default);
static member ModelPackageResult : Azure.ResourceManager.MachineLearning.Models.BaseEnvironmentSource * string * Nullable<Azure.ResourceManager.MachineLearning.Models.PackageBuildState> * System.Collections.Generic.IReadOnlyDictionary<string, string> * Azure.ResourceManager.MachineLearning.Models.InferencingServer * seq<Azure.ResourceManager.MachineLearning.Models.ModelPackageInput> * Uri * Azure.ResourceManager.MachineLearning.Models.ModelConfiguration * System.Collections.Generic.IReadOnlyDictionary<string, string> * string -> Azure.ResourceManager.MachineLearning.Models.ModelPackageResult
Public Shared Function ModelPackageResult (Optional baseEnvironmentSource As BaseEnvironmentSource = Nothing, Optional buildId As String = Nothing, Optional buildState As Nullable(Of PackageBuildState) = Nothing, Optional environmentVariables As IReadOnlyDictionary(Of String, String) = Nothing, Optional inferencingServer As InferencingServer = Nothing, Optional inputs As IEnumerable(Of ModelPackageInput) = Nothing, Optional logUri As Uri = Nothing, Optional modelConfiguration As ModelConfiguration = Nothing, Optional tags As IReadOnlyDictionary(Of String, String) = Nothing, Optional targetEnvironmentId As String = Nothing) As ModelPackageResult

Parameters

baseEnvironmentSource
BaseEnvironmentSource

Base environment to start with. Please note BaseEnvironmentSource is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include BaseEnvironmentType.

buildId
String

Build id of the image build operation.

buildState
Nullable<PackageBuildState>

Build state of the image build operation.

environmentVariables
IReadOnlyDictionary<String,String>

Collection of environment variables.

inferencingServer
InferencingServer

Inferencing server configurations. Please note InferencingServer is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AzureMLBatchInferencingServer, AzureMLOnlineInferencingServer, CustomInferencingServer and TritonInferencingServer.

inputs
IEnumerable<ModelPackageInput>

Collection of inputs.

logUri
Uri

Log url of the image build operation.

modelConfiguration
ModelConfiguration

Model configuration including the mount mode.

tags
IReadOnlyDictionary<String,String>

Tag dictionary. Tags can be added, removed, and updated.

targetEnvironmentId
String

Asset ID of the target environment created by package operation.

Returns

A new ModelPackageResult instance for mocking.

Applies to