Skip to content
View as Markdown

Initialize secret from DTO

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_dto DaytonaApiClient:Secret -

Returns:

  • Secret - a new instance of Secret
def id()

Returns:

  • String
def name()

Returns:

  • String
def description()

Returns:

  • String, nil
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.
def hosts()

Returns:

  • Array\<String\> - Allowed hosts this secret may be sent to. Accepts exact hostnames and +*.+ wildcards (no ports).
def created_at()

Returns:

  • String
def updated_at()

Returns:

  • String