Class: Infisical::Models::SecretMetadata

Inherits:
Struct
  • Object
show all
Defined in:
lib/infisical/models/secret.rb

Overview

A key/value metadata entry attached to a secret.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#keyString

Returns metadata key.

Returns:

  • (String)

    metadata key



12
13
14
15
16
17
# File 'lib/infisical/models/secret.rb', line 12

SecretMetadata = Struct.new(:key, :value, keyword_init: true) do
  # @api private
  def self.from_api(data)
    new(key: data["key"], value: data["value"])
  end
end

#valueString

Returns metadata value.

Returns:

  • (String)

    metadata value



12
13
14
15
16
17
# File 'lib/infisical/models/secret.rb', line 12

SecretMetadata = Struct.new(:key, :value, keyword_init: true) do
  # @api private
  def self.from_api(data)
    new(key: data["key"], value: data["value"])
  end
end

Class Method Details

.from_api(data) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/infisical/models/secret.rb', line 14

def self.from_api(data)
  new(key: data["key"], value: data["value"])
end