Class KubernetesOnlineDeployment
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.EndpointDeploymentPropertiesBase
-
- com.azure.resourcemanager.machinelearning.models.OnlineDeploymentDetails
-
- com.azure.resourcemanager.machinelearning.models.KubernetesOnlineDeployment
-
public final class KubernetesOnlineDeployment extends OnlineDeploymentDetails
Properties specific to a KubernetesOnlineDeployment.
-
-
Constructor Summary
Constructors Constructor Description KubernetesOnlineDeployment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerResourceRequirements
containerResourceRequirements()
Get the containerResourceRequirements property: The resource requirements for the container (cpu and memory).void
validate()
Validates the instance.KubernetesOnlineDeployment
withAppInsightsEnabled(Boolean appInsightsEnabled)
Set the appInsightsEnabled property: If true, enables Application Insights logging.KubernetesOnlineDeployment
withCodeConfiguration(CodeConfiguration codeConfiguration)
Set the codeConfiguration property: Code configuration for the endpoint deployment.KubernetesOnlineDeployment
withContainerResourceRequirements(ContainerResourceRequirements containerResourceRequirements)
Set the containerResourceRequirements property: The resource requirements for the container (cpu and memory).KubernetesOnlineDeployment
withDescription(String description)
Set the description property: Description of the endpoint deployment.KubernetesOnlineDeployment
withEgressPublicNetworkAccess(EgressPublicNetworkAccessType egressPublicNetworkAccess)
Set the egressPublicNetworkAccess property: If Enabled, allow egress public network access.KubernetesOnlineDeployment
withEnvironmentId(String environmentId)
Set the environmentId property: ARM resource ID of the environment specification for the endpoint deployment.KubernetesOnlineDeployment
withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environmentVariables property: Environment variables configuration for the deployment.KubernetesOnlineDeployment
withInstanceType(String instanceType)
Set the instanceType property: Compute instance type.KubernetesOnlineDeployment
withLivenessProbe(ProbeSettings livenessProbe)
Set the livenessProbe property: Liveness probe monitors the health of the container regularly.KubernetesOnlineDeployment
withModel(String model)
Set the model property: The URI path to the model.KubernetesOnlineDeployment
withModelMountPath(String modelMountPath)
Set the modelMountPath property: The path to mount the model in custom container.KubernetesOnlineDeployment
withPrivateNetworkConnection(Boolean privateNetworkConnection)
Set the privateNetworkConnection property: If true, enable private network connection.KubernetesOnlineDeployment
withProperties(Map<String,String> properties)
Set the properties property: Property dictionary.KubernetesOnlineDeployment
withReadinessProbe(ProbeSettings readinessProbe)
Set the readinessProbe property: Readiness probe validates if the container is ready to serve traffic.KubernetesOnlineDeployment
withRequestSettings(OnlineRequestSettings requestSettings)
Set the requestSettings property: Request settings for the deployment.KubernetesOnlineDeployment
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
-
containerResourceRequirements
public ContainerResourceRequirements containerResourceRequirements()
Get the containerResourceRequirements property: The resource requirements for the container (cpu and memory).- Returns:
- the containerResourceRequirements value.
-
withContainerResourceRequirements
public KubernetesOnlineDeployment withContainerResourceRequirements(ContainerResourceRequirements containerResourceRequirements)
Set the containerResourceRequirements property: The resource requirements for the container (cpu and memory).- Parameters:
containerResourceRequirements
- the containerResourceRequirements value to set.- Returns:
- the KubernetesOnlineDeployment object itself.
-
withAppInsightsEnabled
public KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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 KubernetesOnlineDeployment 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.
-
-