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