SandboxCredentialInjectionRule

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

Bases: object

Base type for a credential injection rule. The ruleType selects the concrete rule schema and its required properties. Only HTTP_HEADER is currently supported.

Attributes

RULE_TYPE_HTTP_HEADER A constant which can be used with the rule_type property of a SandboxCredentialInjectionRule.
rule_type [Required] Gets the rule_type of this SandboxCredentialInjectionRule.

Methods

__init__(**kwargs) Initializes a new SandboxCredentialInjectionRule 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'

A constant which can be used with the rule_type property of a SandboxCredentialInjectionRule. This constant has a value of “HTTP_HEADER”

__init__(**kwargs)

Initializes a new SandboxCredentialInjectionRule object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 SandboxCredentialInjectionRule. 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’.
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.

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