DataPlaneAuthOptions Class
- java.
lang. Object - com.
azure. resourcemanager. search. models. DataPlaneAuthOptions
- com.
Implements
public final class DataPlaneAuthOptions
implements JsonSerializable<DataPlaneAuthOptions>
Defines the options for how the search service authenticates a data plane request. This cannot be set if 'disableLocalAuth' is set to true.
Constructor Summary
Constructor | Description |
---|---|
DataPlaneAuthOptions() |
Creates an instance of Data |
Method Summary
Modifier and Type | Method and Description |
---|---|
Data |
aadOrApiKey()
Get the aad |
Object |
apiKeyOnly()
Get the api |
static
Data |
fromJson(JsonReader jsonReader)
Reads an instance of Data |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Data |
withAadOrApiKey(DataPlaneAadOrApiKeyAuthOption aadOrApiKey)
Set the aad |
Data |
withApiKeyOnly(Object apiKeyOnly)
Set the api |
Methods inherited from java.lang.Object
Constructor Details
DataPlaneAuthOptions
public DataPlaneAuthOptions()
Creates an instance of DataPlaneAuthOptions class.
Method Details
aadOrApiKey
public DataPlaneAadOrApiKeyAuthOption aadOrApiKey()
Get the aadOrApiKey property: Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.
Returns:
apiKeyOnly
public Object apiKeyOnly()
Get the apiKeyOnly property: Indicates that only the API key can be used for authentication.
Returns:
fromJson
public static DataPlaneAuthOptions fromJson(JsonReader jsonReader)
Reads an instance of DataPlaneAuthOptions from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withAadOrApiKey
public DataPlaneAuthOptions withAadOrApiKey(DataPlaneAadOrApiKeyAuthOption aadOrApiKey)
Set the aadOrApiKey property: Indicates that either the API key or an access token from a Microsoft Entra ID tenant can be used for authentication.
Parameters:
Returns:
withApiKeyOnly
public DataPlaneAuthOptions withApiKeyOnly(Object apiKeyOnly)
Set the apiKeyOnly property: Indicates that only the API key can be used for authentication.
Parameters:
Returns:
Applies to
Azure SDK for Java