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.



9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
# File 'lib/models/porcelain.rb', line 9728

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.



9714
9715
9716
# File 'lib/models/porcelain.rb', line 9714

def 
  @account_id
end

#actionObject

The action performed by the account against the managed secret.



9716
9717
9718
# File 'lib/models/porcelain.rb', line 9716

def action
  @action
end

#created_atObject

Timestamp of when action was performed.



9718
9719
9720
# File 'lib/models/porcelain.rb', line 9718

def created_at
  @created_at
end

#debugObject

Any debug logs associated with the action.



9720
9721
9722
# File 'lib/models/porcelain.rb', line 9720

def debug
  @debug
end

#idObject

Unique identifier of the Managed Secret Log.



9722
9723
9724
# File 'lib/models/porcelain.rb', line 9722

def id
  @id
end

#managed_secret_idObject

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



9724
9725
9726
# File 'lib/models/porcelain.rb', line 9724

def managed_secret_id
  @managed_secret_id
end

#secret_engine_idObject

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



9726
9727
9728
# File 'lib/models/porcelain.rb', line 9726

def secret_engine_id
  @secret_engine_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



9746
9747
9748
9749
9750
9751
9752
# File 'lib/models/porcelain.rb', line 9746

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