Class KubernetesOnlineDeployment
java.lang.Object
com.azure.resourcemanager.machinelearning.models.EndpointDeploymentPropertiesBase
com.azure.resourcemanager.machinelearning.models.OnlineDeploymentProperties
com.azure.resourcemanager.machinelearning.models.KubernetesOnlineDeployment
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointDeploymentPropertiesBase>
Properties specific to a KubernetesOnlineDeployment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KubernetesOnlineDeployment class. -
Method Summary
Modifier and TypeMethodDescriptionGet the containerResourceRequirements property: The resource requirements for the container (cpu and memory).Get the endpointComputeType property: [Required] The compute type of the endpoint.static KubernetesOnlineDeploymentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KubernetesOnlineDeployment from the JsonReader.Get the provisioningState property: Provisioning state for the endpoint 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.withContainerResourceRequirements(ContainerResourceRequirements containerResourceRequirements) Set the containerResourceRequirements property: The resource requirements for the container (cpu and memory).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.OnlineDeploymentProperties
appInsightsEnabled, dataCollector, egressPublicNetworkAccess, instanceType, livenessProbe, model, modelMountPath, readinessProbe, requestSettings, scaleSettingsMethods 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
-
KubernetesOnlineDeployment
public KubernetesOnlineDeployment()Creates an instance of KubernetesOnlineDeployment class.
-
-
Method Details
-
endpointComputeType
Get the endpointComputeType property: [Required] The compute type of the endpoint.- Overrides:
endpointComputeTypein classOnlineDeploymentProperties- Returns:
- the endpointComputeType value.
-
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.
-
provisioningState
Get the provisioningState property: Provisioning state for the endpoint deployment.- Overrides:
provisioningStatein classOnlineDeploymentProperties- Returns:
- the provisioningState 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.- Overrides:
withScaleSettingsin classOnlineDeploymentProperties- Parameters:
scaleSettings- the scaleSettings value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withRequestSettings
Set the requestSettings property: Request settings for the deployment.- Overrides:
withRequestSettingsin classOnlineDeploymentProperties- Parameters:
requestSettings- the requestSettings value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withModelMountPath
Set the modelMountPath property: The path to mount the model in custom container.- Overrides:
withModelMountPathin classOnlineDeploymentProperties- Parameters:
modelMountPath- the modelMountPath value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withAppInsightsEnabled
Set the appInsightsEnabled property: If true, enables Application Insights logging.- Overrides:
withAppInsightsEnabledin classOnlineDeploymentProperties- Parameters:
appInsightsEnabled- the appInsightsEnabled value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withLivenessProbe
Set the livenessProbe property: Liveness probe monitors the health of the container regularly.- Overrides:
withLivenessProbein classOnlineDeploymentProperties- Parameters:
livenessProbe- the livenessProbe value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
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.- Overrides:
withReadinessProbein classOnlineDeploymentProperties- Parameters:
readinessProbe- the readinessProbe value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withInstanceType
Set the instanceType property: Compute instance type.- Overrides:
withInstanceTypein classOnlineDeploymentProperties- Parameters:
instanceType- the instanceType value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withModel
Set the model property: The URI path to the model.- Overrides:
withModelin classOnlineDeploymentProperties- Parameters:
model- the model value to set.- Returns:
- the OnlineDeploymentProperties 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:
withEgressPublicNetworkAccessin classOnlineDeploymentProperties- Parameters:
egressPublicNetworkAccess- the egressPublicNetworkAccess value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withDataCollector
Set the dataCollector property: The mdc configuration, we disable mdc when it's null.- Overrides:
withDataCollectorin classOnlineDeploymentProperties- Parameters:
dataCollector- the dataCollector value to set.- Returns:
- the OnlineDeploymentProperties object itself.
-
withDescription
Set the description property: Description of the endpoint deployment.- Overrides:
withDescriptionin classOnlineDeploymentProperties- 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 classOnlineDeploymentProperties- 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 classOnlineDeploymentProperties- 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 classOnlineDeploymentProperties- 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 classOnlineDeploymentProperties- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the EndpointDeploymentPropertiesBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classOnlineDeploymentProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointDeploymentPropertiesBase>- Overrides:
toJsonin classOnlineDeploymentProperties- Throws:
IOException
-
fromJson
public static KubernetesOnlineDeployment fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KubernetesOnlineDeployment from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KubernetesOnlineDeployment 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 KubernetesOnlineDeployment.
-