Class ManagedOnlineDeployment
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.EndpointDeploymentPropertiesBase
-
- com.azure.resourcemanager.machinelearning.models.OnlineDeploymentDetails
-
- com.azure.resourcemanager.machinelearning.models.ManagedOnlineDeployment
-
public final class ManagedOnlineDeployment extends OnlineDeploymentDetails
Properties specific to a ManagedOnlineDeployment.
-
-
Constructor Summary
Constructors Constructor Description ManagedOnlineDeployment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
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 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
withPrivateNetworkConnection(Boolean privateNetworkConnection)
Set the privateNetworkConnection property: If true, enable private network connection.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 class com.azure.resourcemanager.machinelearning.models.OnlineDeploymentDetails
appInsightsEnabled, egressPublicNetworkAccess, instanceType, livenessProbe, model, modelMountPath, privateNetworkConnection, provisioningState, readinessProbe, requestSettings, scaleSettings
-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.EndpointDeploymentPropertiesBase
codeConfiguration, description, environmentId, environmentVariables, properties
-
-
-
-
Method Detail
-
withAppInsightsEnabled
public ManagedOnlineDeployment withAppInsightsEnabled(Boolean appInsightsEnabled)
Set the appInsightsEnabled property: If true, enables Application Insights logging.- Overrides:
withAppInsightsEnabled
in classOnlineDeploymentDetails
- Parameters:
appInsightsEnabled
- the appInsightsEnabled value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
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:
withEgressPublicNetworkAccess
in classOnlineDeploymentDetails
- Parameters:
egressPublicNetworkAccess
- the egressPublicNetworkAccess value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
withInstanceType
public ManagedOnlineDeployment withInstanceType(String instanceType)
Set the instanceType property: Compute instance type.- Overrides:
withInstanceType
in classOnlineDeploymentDetails
- Parameters:
instanceType
- the instanceType value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
withLivenessProbe
public ManagedOnlineDeployment withLivenessProbe(ProbeSettings livenessProbe)
Set the livenessProbe property: Liveness probe monitors the health of the container regularly.- Overrides:
withLivenessProbe
in classOnlineDeploymentDetails
- Parameters:
livenessProbe
- the livenessProbe value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
withModel
public ManagedOnlineDeployment withModel(String model)
Set the model property: The URI path to the model.- Overrides:
withModel
in classOnlineDeploymentDetails
- Parameters:
model
- the model value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
withModelMountPath
public ManagedOnlineDeployment withModelMountPath(String modelMountPath)
Set the modelMountPath property: The path to mount the model in custom container.- Overrides:
withModelMountPath
in classOnlineDeploymentDetails
- Parameters:
modelMountPath
- the modelMountPath value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
withPrivateNetworkConnection
public ManagedOnlineDeployment withPrivateNetworkConnection(Boolean privateNetworkConnection)
Set the privateNetworkConnection property: If true, enable private network connection. DEPRECATED for future API versions. Use EgressPublicNetworkAccess.- Overrides:
withPrivateNetworkConnection
in classOnlineDeploymentDetails
- Parameters:
privateNetworkConnection
- the privateNetworkConnection value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
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:
withReadinessProbe
in classOnlineDeploymentDetails
- Parameters:
readinessProbe
- the readinessProbe value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
withRequestSettings
public ManagedOnlineDeployment withRequestSettings(OnlineRequestSettings requestSettings)
Set the requestSettings property: Request settings for the deployment.- Overrides:
withRequestSettings
in classOnlineDeploymentDetails
- Parameters:
requestSettings
- the requestSettings value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
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:
withScaleSettings
in classOnlineDeploymentDetails
- Parameters:
scaleSettings
- the scaleSettings value to set.- Returns:
- the OnlineDeploymentDetails object itself.
-
withCodeConfiguration
public ManagedOnlineDeployment withCodeConfiguration(CodeConfiguration codeConfiguration)
Set the codeConfiguration property: Code configuration for the endpoint deployment.- Overrides:
withCodeConfiguration
in classOnlineDeploymentDetails
- Parameters:
codeConfiguration
- the codeConfiguration value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withDescription
public ManagedOnlineDeployment withDescription(String description)
Set the description property: Description of the endpoint deployment.- Overrides:
withDescription
in classOnlineDeploymentDetails
- Parameters:
description
- the description value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withEnvironmentId
public ManagedOnlineDeployment withEnvironmentId(String environmentId)
Set the environmentId property: ARM resource ID of the environment specification for the endpoint deployment.- Overrides:
withEnvironmentId
in classOnlineDeploymentDetails
- Parameters:
environmentId
- the environmentId value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withEnvironmentVariables
public ManagedOnlineDeployment withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environmentVariables property: Environment variables configuration for the deployment.- Overrides:
withEnvironmentVariables
in classOnlineDeploymentDetails
- Parameters:
environmentVariables
- the environmentVariables value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withProperties
public ManagedOnlineDeployment withProperties(Map<String,String> properties)
Set the properties property: Property dictionary. Properties can be added, but not removed or altered.- Overrides:
withProperties
in classOnlineDeploymentDetails
- Parameters:
properties
- the properties value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classOnlineDeploymentDetails
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-