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.



10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
# File 'lib/models/porcelain.rb', line 10717

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.



10703
10704
10705
# File 'lib/models/porcelain.rb', line 10703

def 
  @account_id
end

#actionObject

The action performed by the account against the managed secret.



10705
10706
10707
# File 'lib/models/porcelain.rb', line 10705

def action
  @action
end

#created_atObject

Timestamp of when action was performed.



10707
10708
10709
# File 'lib/models/porcelain.rb', line 10707

def created_at
  @created_at
end

#debugObject

Any debug logs associated with the action.



10709
10710
10711
# File 'lib/models/porcelain.rb', line 10709

def debug
  @debug
end

#idObject

Unique identifier of the Managed Secret Log.



10711
10712
10713
# File 'lib/models/porcelain.rb', line 10711

def id
  @id
end

#managed_secret_idObject

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



10713
10714
10715
# File 'lib/models/porcelain.rb', line 10713

def managed_secret_id
  @managed_secret_id
end

#secret_engine_idObject

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



10715
10716
10717
# File 'lib/models/porcelain.rb', line 10715

def secret_engine_id
  @secret_engine_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10735
10736
10737
10738
10739
10740
10741
# File 'lib/models/porcelain.rb', line 10735

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