Class OpenApiManagedSecurityScheme
java.lang.Object
com.azure.ai.agents.persistent.models.OpenApiManagedSecurityScheme
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenApiManagedSecurityScheme>
public final class OpenApiManagedSecurityScheme
extends Object
implements com.azure.json.JsonSerializable<OpenApiManagedSecurityScheme>
Security scheme for OpenApi managed_identity authentication.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenApiManagedSecurityScheme(String audience) Creates an instance of OpenApiManagedSecurityScheme class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenApiManagedSecuritySchemefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OpenApiManagedSecurityScheme from the JsonReader.Get the audience property: Authentication scope for managed_identity auth type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods 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
-
OpenApiManagedSecurityScheme
Creates an instance of OpenApiManagedSecurityScheme class.- Parameters:
audience- the audience value to set.
-
-
Method Details
-
getAudience
Get the audience property: Authentication scope for managed_identity auth type.- Returns:
- the audience value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OpenApiManagedSecurityScheme>- Throws:
IOException
-
fromJson
public static OpenApiManagedSecurityScheme fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OpenApiManagedSecurityScheme from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OpenApiManagedSecurityScheme 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 OpenApiManagedSecurityScheme.
-