Class OpenApiManagedAuthDetails

java.lang.Object
com.azure.ai.agents.persistent.models.OpenApiAuthDetails
com.azure.ai.agents.persistent.models.OpenApiManagedAuthDetails
All Implemented Interfaces:
com.azure.json.JsonSerializable<OpenApiAuthDetails>

public final class OpenApiManagedAuthDetails extends OpenApiAuthDetails
Security details for OpenApi managed_identity authentication.
  • Constructor Details

    • OpenApiManagedAuthDetails

      public OpenApiManagedAuthDetails(OpenApiManagedSecurityScheme securityScheme)
      Creates an instance of OpenApiManagedAuthDetails class.
      Parameters:
      securityScheme - the securityScheme value to set.
  • Method Details

    • getType

      public OpenApiAuthType getType()
      Get the type property: The type of authentication, must be anonymous/connection/managed_identity.
      Overrides:
      getType in class OpenApiAuthDetails
      Returns:
      the type value.
    • getSecurityScheme

      public OpenApiManagedSecurityScheme getSecurityScheme()
      Get the securityScheme property: Connection auth security details.
      Returns:
      the securityScheme value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<OpenApiAuthDetails>
      Overrides:
      toJson in class OpenApiAuthDetails
      Throws:
      IOException
    • fromJson

      public static OpenApiManagedAuthDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of OpenApiManagedAuthDetails from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of OpenApiManagedAuthDetails 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 OpenApiManagedAuthDetails.