ManagedOnlineDeployment Class

public final class ManagedOnlineDeployment
extends OnlineDeploymentProperties

Properties specific to a ManagedOnlineDeployment.

Constructor Summary

Constructor Description
ManagedOnlineDeployment()

Creates an instance of ManagedOnlineDeployment class.

Method Summary

Modifier and Type Method and Description
EndpointComputeType endpointComputeType()

Get the endpointComputeType property: [Required] The compute type of the endpoint.

static ManagedOnlineDeployment fromJson(JsonReader jsonReader)

Reads an instance of ManagedOnlineDeployment from the JsonReader.

DeploymentProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the endpoint deployment.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedOnlineDeployment withAppInsightsEnabled(Boolean appInsightsEnabled)

Set the appInsightsEnabled property: If true, enables Application Insights logging.

ManagedOnlineDeployment withCodeConfiguration(CodeConfiguration codeConfiguration)

Set the codeConfiguration property: Code configuration for the endpoint deployment.

ManagedOnlineDeployment withDataCollector(DataCollector dataCollector)

Set the dataCollector property: The mdc configuration, we disable mdc when it's null.

ManagedOnlineDeployment withDescription(String description)

Set the description property: Description of the endpoint deployment.

ManagedOnlineDeployment withEgressPublicNetworkAccess(EgressPublicNetworkAccessType egressPublicNetworkAccess)

Set the egressPublicNetworkAccess property: If Enabled, allow egress public network access.

ManagedOnlineDeployment withEnvironmentId(String environmentId)

Set the environmentId property: ARM resource ID or AssetId of the environment specification for the endpoint deployment.

ManagedOnlineDeployment withEnvironmentVariables(Map<String,String> environmentVariables)

Set the environmentVariables property: Environment variables configuration for the deployment.

ManagedOnlineDeployment withInstanceType(String instanceType)

Set the instanceType property: Compute instance type.

ManagedOnlineDeployment withLivenessProbe(ProbeSettings livenessProbe)

Set the livenessProbe property: Liveness probe monitors the health of the container regularly.

ManagedOnlineDeployment withModel(String model)

Set the model property: The URI path to the model.

ManagedOnlineDeployment withModelMountPath(String modelMountPath)

Set the modelMountPath property: The path to mount the model in custom container.

ManagedOnlineDeployment withProperties(Map<String,String> properties)

Set the properties property: Property dictionary.

ManagedOnlineDeployment withReadinessProbe(ProbeSettings readinessProbe)

Set the readinessProbe property: Readiness probe validates if the container is ready to serve traffic.

ManagedOnlineDeployment withRequestSettings(OnlineRequestSettings requestSettings)

Set the requestSettings property: Request settings for the deployment.

ManagedOnlineDeployment withScaleSettings(OnlineScaleSettings scaleSettings)

Set the scaleSettings property: Scale settings for the deployment.

Methods inherited from EndpointDeploymentPropertiesBase

Methods inherited from OnlineDeploymentProperties

Methods inherited from java.lang.Object

Constructor Details

ManagedOnlineDeployment

public ManagedOnlineDeployment()

Creates an instance of ManagedOnlineDeployment class.

Method Details

endpointComputeType

public EndpointComputeType endpointComputeType()

Get the endpointComputeType property: [Required] The compute type of the endpoint.

Overrides:

ManagedOnlineDeployment.endpointComputeType()

Returns:

the endpointComputeType value.

fromJson

public static ManagedOnlineDeployment fromJson(JsonReader jsonReader)

Reads an instance of ManagedOnlineDeployment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedOnlineDeployment if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagedOnlineDeployment.

provisioningState

public DeploymentProvisioningState provisioningState()

Get the provisioningState property: Provisioning state for the endpoint deployment.

Overrides:

ManagedOnlineDeployment.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedOnlineDeployment.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

ManagedOnlineDeployment.validate()

withAppInsightsEnabled

public ManagedOnlineDeployment withAppInsightsEnabled(Boolean appInsightsEnabled)

Set the appInsightsEnabled property: If true, enables Application Insights logging.

Overrides:

ManagedOnlineDeployment.withAppInsightsEnabled(Boolean appInsightsEnabled)

Parameters:

appInsightsEnabled

withCodeConfiguration

public ManagedOnlineDeployment withCodeConfiguration(CodeConfiguration codeConfiguration)

Set the codeConfiguration property: Code configuration for the endpoint deployment.

Overrides:

ManagedOnlineDeployment.withCodeConfiguration(CodeConfiguration codeConfiguration)

Parameters:

codeConfiguration

withDataCollector

public ManagedOnlineDeployment withDataCollector(DataCollector dataCollector)

Set the dataCollector property: The mdc configuration, we disable mdc when it's null.

Overrides:

ManagedOnlineDeployment.withDataCollector(DataCollector dataCollector)

Parameters:

dataCollector

withDescription

public ManagedOnlineDeployment withDescription(String description)

Set the description property: Description of the endpoint deployment.

Overrides:

ManagedOnlineDeployment.withDescription(String description)

Parameters:

description

withEgressPublicNetworkAccess

public ManagedOnlineDeployment withEgressPublicNetworkAccess(EgressPublicNetworkAccessType egressPublicNetworkAccess)

Set the egressPublicNetworkAccess property: If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled.

Overrides:

ManagedOnlineDeployment.withEgressPublicNetworkAccess(EgressPublicNetworkAccessType egressPublicNetworkAccess)

Parameters:

egressPublicNetworkAccess

withEnvironmentId

public ManagedOnlineDeployment withEnvironmentId(String environmentId)

Set the environmentId property: ARM resource ID or AssetId of the environment specification for the endpoint deployment.

Overrides:

ManagedOnlineDeployment.withEnvironmentId(String environmentId)

Parameters:

environmentId

withEnvironmentVariables

public ManagedOnlineDeployment withEnvironmentVariables(Map<String,String> environmentVariables)

Set the environmentVariables property: Environment variables configuration for the deployment.

Overrides:

ManagedOnlineDeployment.withEnvironmentVariables(Map<String,String> environmentVariables)

Parameters:

environmentVariables

withInstanceType

public ManagedOnlineDeployment withInstanceType(String instanceType)

Set the instanceType property: Compute instance type.

Overrides:

ManagedOnlineDeployment.withInstanceType(String instanceType)

Parameters:

instanceType

withLivenessProbe

public ManagedOnlineDeployment withLivenessProbe(ProbeSettings livenessProbe)

Set the livenessProbe property: Liveness probe monitors the health of the container regularly.

Overrides:

ManagedOnlineDeployment.withLivenessProbe(ProbeSettings livenessProbe)

Parameters:

livenessProbe

withModel

public ManagedOnlineDeployment withModel(String model)

Set the model property: The URI path to the model.

Overrides:

ManagedOnlineDeployment.withModel(String model)

Parameters:

model

withModelMountPath

public ManagedOnlineDeployment withModelMountPath(String modelMountPath)

Set the modelMountPath property: The path to mount the model in custom container.

Overrides:

ManagedOnlineDeployment.withModelMountPath(String modelMountPath)

Parameters:

modelMountPath

withProperties

public ManagedOnlineDeployment withProperties(Map<String,String> properties)

Set the properties property: Property dictionary. Properties can be added, but not removed or altered.

Overrides:

ManagedOnlineDeployment.withProperties(Map<String,String> properties)

Parameters:

properties

withReadinessProbe

public ManagedOnlineDeployment withReadinessProbe(ProbeSettings readinessProbe)

Set the readinessProbe property: Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.

Overrides:

ManagedOnlineDeployment.withReadinessProbe(ProbeSettings readinessProbe)

Parameters:

readinessProbe

withRequestSettings

public ManagedOnlineDeployment withRequestSettings(OnlineRequestSettings requestSettings)

Set the requestSettings property: Request settings for the deployment.

Overrides:

ManagedOnlineDeployment.withRequestSettings(OnlineRequestSettings requestSettings)

Parameters:

requestSettings

withScaleSettings

public ManagedOnlineDeployment withScaleSettings(OnlineScaleSettings scaleSettings)

Set the scaleSettings property: Scale settings for the deployment. If it is null or not provided, it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment and to DefaultScaleSettings for ManagedOnlineDeployment.

Overrides:

ManagedOnlineDeployment.withScaleSettings(OnlineScaleSettings scaleSettings)

Parameters:

scaleSettings

Applies to