Class OnlineDeploymentProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.models.EndpointDeploymentPropertiesBase
com.azure.resourcemanager.machinelearning.models.OnlineDeploymentProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointDeploymentPropertiesBase>
- Direct Known Subclasses:
KubernetesOnlineDeployment,ManagedOnlineDeployment
The OnlineDeploymentProperties model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OnlineDeploymentProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appInsightsEnabled property: If true, enables Application Insights logging.Get the dataCollector property: The mdc configuration, we disable mdc when it's null.Get the egressPublicNetworkAccess property: If Enabled, allow egress public network access.Get the endpointComputeType property: [Required] The compute type of the endpoint.static OnlineDeploymentPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OnlineDeploymentProperties from the JsonReader.Get the instanceType property: Compute instance type.Get the livenessProbe property: Liveness probe monitors the health of the container regularly.model()Get the model property: The URI path to the model.Get the modelMountPath property: The path to mount the model in custom container.Get the provisioningState property: Provisioning state for the endpoint deployment.Get the readinessProbe property: Readiness probe validates if the container is ready to serve traffic.Get the requestSettings property: Request settings for the deployment.Get the scaleSettings property: Scale settings for the deployment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAppInsightsEnabled(Boolean appInsightsEnabled) Set the appInsightsEnabled property: If true, enables Application Insights logging.withCodeConfiguration(CodeConfiguration codeConfiguration) Set the codeConfiguration property: Code configuration for the endpoint deployment.withDataCollector(DataCollector dataCollector) Set the dataCollector property: The mdc configuration, we disable mdc when it's null.withDescription(String description) Set the description property: Description of the endpoint deployment.withEgressPublicNetworkAccess(EgressPublicNetworkAccessType egressPublicNetworkAccess) Set the egressPublicNetworkAccess property: If Enabled, allow egress public network access.withEnvironmentId(String environmentId) Set the environmentId property: ARM resource ID or AssetId of the environment specification for the endpoint deployment.withEnvironmentVariables(Map<String, String> environmentVariables) Set the environmentVariables property: Environment variables configuration for the deployment.withInstanceType(String instanceType) Set the instanceType property: Compute instance type.withLivenessProbe(ProbeSettings livenessProbe) Set the livenessProbe property: Liveness probe monitors the health of the container regularly.Set the model property: The URI path to the model.withModelMountPath(String modelMountPath) Set the modelMountPath property: The path to mount the model in custom container.withProperties(Map<String, String> properties) Set the properties property: Property dictionary.withReadinessProbe(ProbeSettings readinessProbe) Set the readinessProbe property: Readiness probe validates if the container is ready to serve traffic.withRequestSettings(OnlineRequestSettings requestSettings) Set the requestSettings property: Request settings for the deployment.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, propertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OnlineDeploymentProperties
public OnlineDeploymentProperties()Creates an instance of OnlineDeploymentProperties class.
-
-
Method Details
-
endpointComputeType
Get the endpointComputeType property: [Required] The compute type of the endpoint.- Returns:
- the endpointComputeType value.
-
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
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 OnlineDeploymentProperties object itself.
-
requestSettings
Get the requestSettings property: Request settings for the deployment.- Returns:
- the requestSettings value.
-
withRequestSettings
Set the requestSettings property: Request settings for the deployment.- Parameters:
requestSettings- the requestSettings value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
modelMountPath
Get the modelMountPath property: The path to mount the model in custom container.- Returns:
- the modelMountPath value.
-
withModelMountPath
Set the modelMountPath property: The path to mount the model in custom container.- Parameters:
modelMountPath- the modelMountPath value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
appInsightsEnabled
Get the appInsightsEnabled property: If true, enables Application Insights logging.- Returns:
- the appInsightsEnabled value.
-
withAppInsightsEnabled
Set the appInsightsEnabled property: If true, enables Application Insights logging.- Parameters:
appInsightsEnabled- the appInsightsEnabled value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
livenessProbe
Get the livenessProbe property: Liveness probe monitors the health of the container regularly.- Returns:
- the livenessProbe value.
-
withLivenessProbe
Set the livenessProbe property: Liveness probe monitors the health of the container regularly.- Parameters:
livenessProbe- the livenessProbe value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
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
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 OnlineDeploymentProperties object itself.
-
provisioningState
Get the provisioningState property: Provisioning state for the endpoint deployment.- Returns:
- the provisioningState value.
-
instanceType
Get the instanceType property: Compute instance type.- Returns:
- the instanceType value.
-
withInstanceType
Set the instanceType property: Compute instance type.- Parameters:
instanceType- the instanceType value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
model
Get the model property: The URI path to the model.- Returns:
- the model value.
-
withModel
Set the model property: The URI path to the model.- Parameters:
model- the model value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
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 OnlineDeploymentProperties 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 OnlineDeploymentProperties object itself.
-
dataCollector
Get the dataCollector property: The mdc configuration, we disable mdc when it's null.- Returns:
- the dataCollector value.
-
withDataCollector
Set the dataCollector property: The mdc configuration, we disable mdc when it's null.- Parameters:
dataCollector- the dataCollector value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withDescription
Set the description property: Description of the endpoint deployment.- Overrides:
withDescriptionin classEndpointDeploymentPropertiesBase- Parameters:
description- the description value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withProperties
Set the properties property: Property dictionary. Properties can be added, but not removed or altered.- Overrides:
withPropertiesin classEndpointDeploymentPropertiesBase- Parameters:
properties- the properties value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withCodeConfiguration
Set the codeConfiguration property: Code configuration for the endpoint deployment.- Overrides:
withCodeConfigurationin classEndpointDeploymentPropertiesBase- Parameters:
codeConfiguration- the codeConfiguration value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withEnvironmentId
Set the environmentId property: ARM resource ID or AssetId of the environment specification for the endpoint deployment.- Overrides:
withEnvironmentIdin classEndpointDeploymentPropertiesBase- Parameters:
environmentId- the environmentId value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
withEnvironmentVariables
Set the environmentVariables property: Environment variables configuration for the deployment.- Overrides:
withEnvironmentVariablesin classEndpointDeploymentPropertiesBase- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classEndpointDeploymentPropertiesBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointDeploymentPropertiesBase>- Overrides:
toJsonin classEndpointDeploymentPropertiesBase- Throws:
IOException
-
fromJson
public static OnlineDeploymentProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OnlineDeploymentProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OnlineDeploymentProperties 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 OnlineDeploymentProperties.
-