WebApiVectorizerParameters Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. WebApiVectorizerParameters
- com.
Implements
public final class WebApiVectorizerParameters
implements JsonSerializable<WebApiVectorizerParameters>
Specifies the properties for connecting to a user-defined vectorizer.
Constructor Summary
| Constructor | Description |
|---|---|
| WebApiVectorizerParameters() |
Creates an instance of Web |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Web |
fromJson(JsonReader jsonReader)
Reads an instance of Web |
|
Search |
getAuthIdentity()
Get the auth |
| String |
getAuthResourceId()
Get the auth |
| Map<String,String> |
getHttpHeaders()
Get the http |
| String |
getHttpMethod()
Get the http |
| Duration |
getTimeout()
Get the timeout property: The desired timeout for the request. |
| String |
getUrl()
Get the url property: The URI of the Web API providing the vectorizer. |
|
Web |
setAuthIdentity(SearchIndexerDataIdentity authIdentity)
Set the auth |
|
Web |
setAuthResourceId(String authResourceId)
Set the auth |
|
Web |
setHttpHeaders(Map<String,String> httpHeaders)
Set the http |
|
Web |
setHttpMethod(String httpMethod)
Set the http |
|
Web |
setTimeout(Duration timeout)
Set the timeout property: The desired timeout for the request. |
|
Web |
setUrl(String url)
Set the url property: The URI of the Web API providing the vectorizer. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
WebApiVectorizerParameters
public WebApiVectorizerParameters()
Creates an instance of WebApiVectorizerParameters class.
Method Details
fromJson
public static WebApiVectorizerParameters fromJson(JsonReader jsonReader)
Reads an instance of WebApiVectorizerParameters from the JsonReader.
Parameters:
Returns:
Throws:
getAuthIdentity
public SearchIndexerDataIdentity getAuthIdentity()
Get the authIdentity property: The user-assigned managed identity used for outbound connections. If an authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared.
Returns:
getAuthResourceId
public String getAuthResourceId()
Get the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function or some other application that provides the transformations. This value should be the application ID created for the function or app when it was registered with Azure Active Directory. When specified, the vectorization connects to the function or app using a managed ID (either system or user-assigned) of the search service and the access token of the function or app, using this value as the resource id for creating the scope of the access token.
Returns:
getHttpHeaders
public Map<String,String> getHttpHeaders()
Get the httpHeaders property: The headers required to make the HTTP request.
Returns:
getHttpMethod
public String getHttpMethod()
Get the httpMethod property: The method for the HTTP request.
Returns:
getTimeout
public Duration getTimeout()
Get the timeout property: The desired timeout for the request. Default is 30 seconds.
Returns:
getUrl
public String getUrl()
Get the url property: The URI of the Web API providing the vectorizer.
Returns:
setAuthIdentity
public WebApiVectorizerParameters setAuthIdentity(SearchIndexerDataIdentity authIdentity)
Set the authIdentity property: The user-assigned managed identity used for outbound connections. If an authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared.
Parameters:
Returns:
setAuthResourceId
public WebApiVectorizerParameters setAuthResourceId(String authResourceId)
Set the authResourceId property: Applies to custom endpoints that connect to external code in an Azure function or some other application that provides the transformations. This value should be the application ID created for the function or app when it was registered with Azure Active Directory. When specified, the vectorization connects to the function or app using a managed ID (either system or user-assigned) of the search service and the access token of the function or app, using this value as the resource id for creating the scope of the access token.
Parameters:
Returns:
setHttpHeaders
public WebApiVectorizerParameters setHttpHeaders(Map<String,String> httpHeaders)
Set the httpHeaders property: The headers required to make the HTTP request.
Parameters:
Returns:
setHttpMethod
public WebApiVectorizerParameters setHttpMethod(String httpMethod)
Set the httpMethod property: The method for the HTTP request.
Parameters:
Returns:
setTimeout
public WebApiVectorizerParameters setTimeout(Duration timeout)
Set the timeout property: The desired timeout for the request. Default is 30 seconds.
Parameters:
Returns:
setUrl
public WebApiVectorizerParameters setUrl(String url)
Set the url property: The URI of the Web API providing the vectorizer.
Parameters:
Returns: