HttpEndpointBearerAuthScopeConfig¶
-
class
oci.generative_ai_agent.models.HttpEndpointBearerAuthScopeConfig(**kwargs)¶ Bases:
oci.generative_ai_agent.models.http_endpoint_auth_scope_config.HttpEndpointAuthScopeConfigSpecifies authentication using a Bearer token, which is injected into the Authorization header at runtime.
- If authScope = AGENT: A static token is retrieved securely from OCI Vault using the agent’s resource principal.
Attributes
HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_API_KEY_AUTH_SCOPE_CONFIGstr(object=’’) -> str HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_BASIC_AUTH_SCOPE_CONFIGstr(object=’’) -> str HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_BEARER_AUTH_SCOPE_CONFIGstr(object=’’) -> str HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_IDCS_AUTH_SCOPE_CONFIGstr(object=’’) -> str HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_NO_AUTH_SCOPE_CONFIGstr(object=’’) -> str HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_OCI_AUTH_SCOPE_CONFIGstr(object=’’) -> str http_endpoint_auth_scope_config_type[Required] Gets the http_endpoint_auth_scope_config_type of this HttpEndpointAuthScopeConfig. vault_secret_idGets the vault_secret_id of this HttpEndpointBearerAuthScopeConfig. Methods
__init__(**kwargs)Initializes a new HttpEndpointBearerAuthScopeConfig object with values from keyword arguments. get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_API_KEY_AUTH_SCOPE_CONFIG= 'HTTP_ENDPOINT_API_KEY_AUTH_SCOPE_CONFIG'¶
-
HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_BASIC_AUTH_SCOPE_CONFIG= 'HTTP_ENDPOINT_BASIC_AUTH_SCOPE_CONFIG'¶
-
HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_BEARER_AUTH_SCOPE_CONFIG= 'HTTP_ENDPOINT_BEARER_AUTH_SCOPE_CONFIG'¶
-
HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_IDCS_AUTH_SCOPE_CONFIG= 'HTTP_ENDPOINT_IDCS_AUTH_SCOPE_CONFIG'¶
-
HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_NO_AUTH_SCOPE_CONFIG= 'HTTP_ENDPOINT_NO_AUTH_SCOPE_CONFIG'¶
-
HTTP_ENDPOINT_AUTH_SCOPE_CONFIG_TYPE_HTTP_ENDPOINT_OCI_AUTH_SCOPE_CONFIG= 'HTTP_ENDPOINT_OCI_AUTH_SCOPE_CONFIG'¶
-
__init__(**kwargs)¶ Initializes a new HttpEndpointBearerAuthScopeConfig object with values from keyword arguments. The default value of the
http_endpoint_auth_scope_config_typeattribute of this class isHTTP_ENDPOINT_BEARER_AUTH_SCOPE_CONFIGand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - http_endpoint_auth_scope_config_type (str) – The value to assign to the http_endpoint_auth_scope_config_type property of this HttpEndpointBearerAuthScopeConfig. Allowed values for this property are: “HTTP_ENDPOINT_NO_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_BASIC_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_BEARER_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_API_KEY_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_IDCS_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_OCI_AUTH_SCOPE_CONFIG”
- vault_secret_id (str) – The value to assign to the vault_secret_id property of this HttpEndpointBearerAuthScopeConfig.
-
static
get_subtype(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
http_endpoint_auth_scope_config_type¶ [Required] Gets the http_endpoint_auth_scope_config_type of this HttpEndpointAuthScopeConfig. The type of authentication to be applied for this HTTP Endpoint.
Allowed values for this property are: “HTTP_ENDPOINT_NO_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_BASIC_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_BEARER_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_API_KEY_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_IDCS_AUTH_SCOPE_CONFIG”, “HTTP_ENDPOINT_OCI_AUTH_SCOPE_CONFIG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The http_endpoint_auth_scope_config_type of this HttpEndpointAuthScopeConfig. Return type: str
-
vault_secret_id¶ Gets the vault_secret_id of this HttpEndpointBearerAuthScopeConfig. The OCID of the vault secret with the bearer token. Required when authScope is AGENT.
Returns: The vault_secret_id of this HttpEndpointBearerAuthScopeConfig. Return type: str