Secret
Section titled “Secret”Initialize secret from DTO
Constructors
Section titled “Constructors”new Secret()
Section titled “new Secret()”def initialize(secret_dto)Initialize secret from DTO
The plaintext value is write-only and is never returned by the API, so it is not exposed here.
Parameters:
secret_dtoDaytonaApiClient:Secret -
Returns:
Secret- a new instance of Secret
Methods
Section titled “Methods”def id()Returns:
String
name()
Section titled “name()”def name()Returns:
String
description()
Section titled “description()”def description()Returns:
String, nil
placeholder()
Section titled “placeholder()”def placeholder()Returns:
String- Opaque placeholder token injected as the env var value in Sandboxes. The placeholder is resolved to the real plaintext value only for the secret’s allowed hosts.
hosts()
Section titled “hosts()”def hosts()Returns:
Array\<String\>- Allowed hosts this secret may be sent to. Accepts exact hostnames and +*.+ wildcards (no ports).
created_at()
Section titled “created_at()”def created_at()Returns:
String
updated_at()
Section titled “updated_at()”def updated_at()Returns:
String