你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmMachineLearningModelFactory.MachineLearningOnlineEndpointProperties 方法

定义

初始化 MachineLearningOnlineEndpointProperties 的新实例。

public static Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties (Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode authMode = default, string description = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys keys = default, System.Collections.Generic.IDictionary<string,string> properties = default, Uri scoringUri = default, Uri swaggerUri = default, string compute = default, System.Collections.Generic.IDictionary<string,int> mirrorTraffic = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState? provisioningState = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType? publicNetworkAccess = default, System.Collections.Generic.IDictionary<string,int> traffic = default);
static member MachineLearningOnlineEndpointProperties : Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthMode * string * Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointAuthKeys * System.Collections.Generic.IDictionary<string, string> * Uri * Uri * string * System.Collections.Generic.IDictionary<string, int> * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningEndpointProvisioningState> * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningPublicNetworkAccessType> * System.Collections.Generic.IDictionary<string, int> -> Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineEndpointProperties
Public Shared Function MachineLearningOnlineEndpointProperties (Optional authMode As MachineLearningEndpointAuthMode = Nothing, Optional description As String = Nothing, Optional keys As MachineLearningEndpointAuthKeys = Nothing, Optional properties As IDictionary(Of String, String) = Nothing, Optional scoringUri As Uri = Nothing, Optional swaggerUri As Uri = Nothing, Optional compute As String = Nothing, Optional mirrorTraffic As IDictionary(Of String, Integer) = Nothing, Optional provisioningState As Nullable(Of MachineLearningEndpointProvisioningState) = Nothing, Optional publicNetworkAccess As Nullable(Of MachineLearningPublicNetworkAccessType) = Nothing, Optional traffic As IDictionary(Of String, Integer) = Nothing) As MachineLearningOnlineEndpointProperties

参数

authMode
MachineLearningEndpointAuthMode

[必需]使用“密钥”进行基于密钥的身份验证,使用“AMLToken”进行基于 Azure 机器学习令牌的身份验证。 “密钥”不会过期,但“AMLToken”会过期。

description
String

推理终结点的说明。

keys
MachineLearningEndpointAuthKeys

EndpointAuthKeys 最初在终结点上设置。 此属性将始终返回为 null。 必须使用 ListKeys API 检索 AuthKey 值。

properties
IDictionary<String,String>

属性字典。 可以添加属性,但不能删除或更改属性。

scoringUri
Uri

终结点 URI。

swaggerUri
Uri

终结点 Swagger URI。

compute
String

计算的 ARM 资源 ID(如果存在)。 可选

mirrorTraffic
IDictionary<String,Int32>

要镜像到每个部署的流量百分比,而不使用返回的评分。 流量值需要求和到最大 50。

provisioningState
Nullable<MachineLearningEndpointProvisioningState>

终结点的预配状态。

publicNetworkAccess
Nullable<MachineLearningPublicNetworkAccessType>

对于启用专用链接时应允许公共访问的终结点,设置为“已启用”。

traffic
IDictionary<String,Int32>

从终结点转移到每个部署的流量百分比。 流量值的总和需是 100。

返回

用于模拟的新 MachineLearningOnlineEndpointProperties 实例。

适用于