tabsdata.EnvironmentSecret#

class EnvironmentSecret(environment_variable_name: str)[source]#

Bases: Secret

Secrets class representing a secret obtained from an environment variable in

the server.

environment_variable_name#

Name of the environment variable from which we will obtain the secret value.

Type:

str

to_dict() dict[source]#

Convert the EnvironmentSecret object to a dictionary.

secret_value() str#

Get the secret value.

__init__(environment_variable_name: str)[source]#

Initialize the EnvironmentSecret object.

Parameters:
  • environment_variable_name (str) – Name of the environment variable from which

  • value. (we will obtain the secret)

Methods

__init__(environment_variable_name)

Initialize the EnvironmentSecret object.