SandboxHttpHeaderCredentialInjectionRule

class oci.generative_ai.models.SandboxHttpHeaderCredentialInjectionRule(**kwargs)

Bases: oci.generative_ai.models.sandbox_credential_injection_rule.SandboxCredentialInjectionRule

An HTTP_HEADER rule that binds one exact HTTPS host on port 443 to exactly one injected HTTP request header and one OCI Vault secret. Redirects to another host do not carry the credential. Only properties defined for this rule type are supported.

Attributes

RULE_TYPE_HTTP_HEADER str(object=’’) -> str
host [Required] Gets the host of this SandboxHttpHeaderCredentialInjectionRule.
inject_headers [Required] Gets the inject_headers of this SandboxHttpHeaderCredentialInjectionRule.
rule_type [Required] Gets the rule_type of this SandboxCredentialInjectionRule.

Methods

__init__(**kwargs) Initializes a new SandboxHttpHeaderCredentialInjectionRule 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.
RULE_TYPE_HTTP_HEADER = 'HTTP_HEADER'
__init__(**kwargs)

Initializes a new SandboxHttpHeaderCredentialInjectionRule object with values from keyword arguments. The default value of the rule_type attribute of this class is HTTP_HEADER and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • rule_type (str) – The value to assign to the rule_type property of this SandboxHttpHeaderCredentialInjectionRule. Allowed values for this property are: “HTTP_HEADER”
  • host (str) – The value to assign to the host property of this SandboxHttpHeaderCredentialInjectionRule.
  • inject_headers (list[oci.generative_ai.models.SandboxCredentialInjectionHeader]) – The value to assign to the inject_headers property of this SandboxHttpHeaderCredentialInjectionRule.
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.

host

[Required] Gets the host of this SandboxHttpHeaderCredentialInjectionRule. The normalized ASCII DNS hostname that selects the rule. This value must be the exact regional Generative AI Responses endpoint hostname for the Project’s region and realm. Do not include a scheme, path, port, wildcard, trailing dot, or IP literal. Brokerage uses HTTPS on port 443.

Returns:The host of this SandboxHttpHeaderCredentialInjectionRule.
Return type:str
inject_headers

[Required] Gets the inject_headers of this SandboxHttpHeaderCredentialInjectionRule. The single HTTP request header that the service replaces with the credential value.

Returns:The inject_headers of this SandboxHttpHeaderCredentialInjectionRule.
Return type:list[oci.generative_ai.models.SandboxCredentialInjectionHeader]
rule_type

[Required] Gets the rule_type of this SandboxCredentialInjectionRule. The credential injection mechanism that selects the rule subtype.

Allowed values for this property are: “HTTP_HEADER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The rule_type of this SandboxCredentialInjectionRule.
Return type:str