AzureMachineLearningParameters Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. AzureMachineLearningParameters
- com.
Implements
public final class AzureMachineLearningParameters
implements JsonSerializable<AzureMachineLearningParameters>
Specifies the properties for connecting to an AML vectorizer.
Constructor Summary
| Constructor | Description |
|---|---|
| AzureMachineLearningParameters(String scoringUrl) |
Creates an instance of Azure |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
| String |
getAuthenticationKey()
Get the authentication |
|
AIFoundry |
getModelName()
Get the model |
| String |
getRegion()
Get the region property: (Optional for token authentication). |
| String |
getResourceId()
Get the resource |
| String |
getScoringUrl()
Get the scoring |
| Duration |
getTimeout()
Get the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call. |
|
Azure |
setAuthenticationKey(String authenticationKey)
Set the authentication |
|
Azure |
setModelName(AIFoundryModelCatalogName modelName)
Set the model |
|
Azure |
setRegion(String region)
Set the region property: (Optional for token authentication). |
|
Azure |
setResourceId(String resourceId)
Set the resource |
|
Azure |
setTimeout(Duration timeout)
Set the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AzureMachineLearningParameters
public AzureMachineLearningParameters(String scoringUrl)
Creates an instance of AzureMachineLearningParameters class.
Parameters:
Method Details
fromJson
public static AzureMachineLearningParameters fromJson(JsonReader jsonReader)
Reads an instance of AzureMachineLearningParameters from the JsonReader.
Parameters:
Returns:
Throws:
getAuthenticationKey
public String getAuthenticationKey()
Get the authenticationKey property: (Required for key authentication) The key for the AML service.
Returns:
getModelName
public AIFoundryModelCatalogName getModelName()
Get the modelName property: The name of the embedding model from the Azure AI Foundry Catalog that is deployed at the provided endpoint.
Returns:
getRegion
public String getRegion()
Get the region property: (Optional for token authentication). The region the AML service is deployed in.
Returns:
getResourceId
public String getResourceId()
Get the resourceId property: (Required for token authentication). The Azure Resource Manager resource ID of the AML service. It should be in the format subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.MachineLearningServices/workspaces/{workspace-name}/services/{service_name}.
Returns:
getScoringUrl
public String getScoringUrl()
Get the scoringUrl property: (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent. Only the https URI scheme is allowed.
Returns:
getTimeout
public Duration getTimeout()
Get the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.
Returns:
setAuthenticationKey
public AzureMachineLearningParameters setAuthenticationKey(String authenticationKey)
Set the authenticationKey property: (Required for key authentication) The key for the AML service.
Parameters:
Returns:
setModelName
public AzureMachineLearningParameters setModelName(AIFoundryModelCatalogName modelName)
Set the modelName property: The name of the embedding model from the Azure AI Foundry Catalog that is deployed at the provided endpoint.
Parameters:
Returns:
setRegion
public AzureMachineLearningParameters setRegion(String region)
Set the region property: (Optional for token authentication). The region the AML service is deployed in.
Parameters:
Returns:
setResourceId
public AzureMachineLearningParameters setResourceId(String resourceId)
Set the resourceId property: (Required for token authentication). The Azure Resource Manager resource ID of the AML service. It should be in the format subscriptions/{guid}/resourceGroups/{resource-group-name}/Microsoft.MachineLearningServices/workspaces/{workspace-name}/services/{service_name}.
Parameters:
Returns:
setTimeout
public AzureMachineLearningParameters setTimeout(Duration timeout)
Set the timeout property: (Optional) When specified, indicates the timeout for the http client making the API call.
Parameters:
Returns: