Class: SDM::ManagedSecretLog

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

ManagedSecretLog contains details about action performed against a managed secret

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id: nil, action: nil, created_at: nil, debug: nil, id: nil, managed_secret_id: nil, secret_engine_id: nil) ⇒ ManagedSecretLog

Returns a new instance of ManagedSecretLog.



8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
# File 'lib/models/porcelain.rb', line 8797

def initialize(
  account_id: nil,
  action: nil,
  created_at: nil,
  debug: nil,
  id: nil,
  managed_secret_id: nil,
  secret_engine_id: nil
)
  @account_id =  == nil ? "" : 
  @action = action == nil ? "" : action
  @created_at = created_at == nil ? nil : created_at
  @debug = debug == nil ? "" : debug
  @id = id == nil ? "" : id
  @managed_secret_id = managed_secret_id == nil ? "" : managed_secret_id
  @secret_engine_id = secret_engine_id == nil ? "" : secret_engine_id
end

Instance Attribute Details

#account_idObject

An ID of the account the action was performed by.



8783
8784
8785
# File 'lib/models/porcelain.rb', line 8783

def 
  @account_id
end

#actionObject

The action performed by the account against the managed secret.



8785
8786
8787
# File 'lib/models/porcelain.rb', line 8785

def action
  @action
end

#created_atObject

Timestamp of when action was performed.



8787
8788
8789
# File 'lib/models/porcelain.rb', line 8787

def created_at
  @created_at
end

#debugObject

Any debug logs associated with the action.



8789
8790
8791
# File 'lib/models/porcelain.rb', line 8789

def debug
  @debug
end

#idObject

Unique identifier of the Managed Secret Log.



8791
8792
8793
# File 'lib/models/porcelain.rb', line 8791

def id
  @id
end

#managed_secret_idObject

An ID of the Managed Secret the action was performed against.



8793
8794
8795
# File 'lib/models/porcelain.rb', line 8793

def managed_secret_id
  @managed_secret_id
end

#secret_engine_idObject

An ID of the Secret Engine linked with the Managed Secret.



8795
8796
8797
# File 'lib/models/porcelain.rb', line 8795

def secret_engine_id
  @secret_engine_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8815
8816
8817
8818
8819
8820
8821
# File 'lib/models/porcelain.rb', line 8815

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end