Class OnlineEndpointProperties
java.lang.Object
com.azure.resourcemanager.machinelearning.fluent.models.EndpointPropertiesBaseInner
com.azure.resourcemanager.machinelearning.models.OnlineEndpointProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EndpointPropertiesBaseInner>
Online endpoint configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OnlineEndpointProperties class. -
Method Summary
Modifier and TypeMethodDescriptioncompute()Get the compute property: ARM resource ID of the compute if it exists.static OnlineEndpointPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OnlineEndpointProperties from the JsonReader.Get the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring.Get the provisioningState property: Provisioning state for the endpoint.Get the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.Get the scoringUri property: Endpoint URI.Get the swaggerUri property: Endpoint Swagger URI.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) traffic()Get the traffic property: Percentage of traffic from endpoint to divert to each deployment.voidvalidate()Validates the instance.withAuthMode(EndpointAuthMode authMode) Set the authMode property: [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication.withCompute(String compute) Set the compute property: ARM resource ID of the compute if it exists.withDescription(String description) Set the description property: Description of the inference endpoint.Set the keys property: EndpointAuthKeys to set initially on an Endpoint.withMirrorTraffic(Map<String, Integer> mirrorTraffic) Set the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring.withProperties(Map<String, String> properties) Set the properties property: Property dictionary.withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) Set the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.withTraffic(Map<String, Integer> traffic) Set the traffic property: Percentage of traffic from endpoint to divert to each deployment.Methods inherited from class com.azure.resourcemanager.machinelearning.fluent.models.EndpointPropertiesBaseInner
authMode, description, keys, 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
-
OnlineEndpointProperties
public OnlineEndpointProperties()Creates an instance of OnlineEndpointProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Provisioning state for the endpoint.- Returns:
- the provisioningState value.
-
compute
Get the compute property: ARM resource ID of the compute if it exists. optional.- Returns:
- the compute value.
-
withCompute
Set the compute property: ARM resource ID of the compute if it exists. optional.- Parameters:
compute- the compute value to set.- Returns:
- the OnlineEndpointProperties object itself.
-
publicNetworkAccess
Get the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
public OnlineEndpointProperties withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) Set the publicNetworkAccess property: Set to "Enabled" for endpoints that should allow public access when Private Link is enabled.- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the OnlineEndpointProperties object itself.
-
traffic
Get the traffic property: Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100.- Returns:
- the traffic value.
-
withTraffic
Set the traffic property: Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100.- Parameters:
traffic- the traffic value to set.- Returns:
- the OnlineEndpointProperties object itself.
-
mirrorTraffic
Get the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50.- Returns:
- the mirrorTraffic value.
-
withMirrorTraffic
Set the mirrorTraffic property: Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50.- Parameters:
mirrorTraffic- the mirrorTraffic value to set.- Returns:
- the OnlineEndpointProperties object itself.
-
scoringUri
Get the scoringUri property: Endpoint URI.- Overrides:
scoringUriin classEndpointPropertiesBaseInner- Returns:
- the scoringUri value.
-
swaggerUri
Get the swaggerUri property: Endpoint Swagger URI.- Overrides:
swaggerUriin classEndpointPropertiesBaseInner- Returns:
- the swaggerUri value.
-
withDescription
Set the description property: Description of the inference endpoint.- Overrides:
withDescriptionin classEndpointPropertiesBaseInner- Parameters:
description- the description value to set.- Returns:
- the EndpointPropertiesBaseInner object itself.
-
withProperties
Set the properties property: Property dictionary. Properties can be added, but not removed or altered.- Overrides:
withPropertiesin classEndpointPropertiesBaseInner- Parameters:
properties- the properties value to set.- Returns:
- the EndpointPropertiesBaseInner object itself.
-
withAuthMode
Set the authMode property: [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does.- Overrides:
withAuthModein classEndpointPropertiesBaseInner- Parameters:
authMode- the authMode value to set.- Returns:
- the EndpointPropertiesBaseInner object itself.
-
withKeys
Set the keys property: EndpointAuthKeys to set initially on an Endpoint. This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API.- Overrides:
withKeysin classEndpointPropertiesBaseInner- Parameters:
keys- the keys value to set.- Returns:
- the EndpointPropertiesBaseInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classEndpointPropertiesBaseInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<EndpointPropertiesBaseInner>- Overrides:
toJsonin classEndpointPropertiesBaseInner- Throws:
IOException
-
fromJson
public static OnlineEndpointProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OnlineEndpointProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OnlineEndpointProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OnlineEndpointProperties.
-