EnvironmentVariable

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

Bases: object

The environment variables for the Hosted Application

Attributes:

TYPE_PLAINTEXT

A constant which can be used with the type property of a EnvironmentVariable.

TYPE_VAULT

A constant which can be used with the type property of a EnvironmentVariable.

name

[Required] Gets the name of this EnvironmentVariable.

type

[Required] Gets the type of this EnvironmentVariable.

value

[Required] Gets the value of this EnvironmentVariable.

Methods:

__init__(**kwargs)

Initializes a new EnvironmentVariable object with values from keyword arguments.

TYPE_PLAINTEXT = 'PLAINTEXT'

A constant which can be used with the type property of a EnvironmentVariable. This constant has a value of “PLAINTEXT”

TYPE_VAULT = 'VAULT'

A constant which can be used with the type property of a EnvironmentVariable. This constant has a value of “VAULT”

__init__(**kwargs)

Initializes a new EnvironmentVariable object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • name (str) – The value to assign to the name property of this EnvironmentVariable.

  • type (str) – The value to assign to the type property of this EnvironmentVariable. Allowed values for this property are: “PLAINTEXT”, “VAULT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • value (object) – The value to assign to the value property of this EnvironmentVariable.

property name

[Required] Gets the name of this EnvironmentVariable. Name of the environment variable.

Returns

The name of this EnvironmentVariable.

Return type

str

property type

[Required] Gets the type of this EnvironmentVariable. Type of the environment variable (PLAINTEXT or HASHED, no default value).

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

Returns

The type of this EnvironmentVariable.

Return type

str

property value

[Required] Gets the value of this EnvironmentVariable. Value of the environment variable.

Returns

The value of this EnvironmentVariable.

Return type

object