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



8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
# File 'lib/models/porcelain.rb', line 8459

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.



8445
8446
8447
# File 'lib/models/porcelain.rb', line 8445

def 
  @account_id
end

#actionObject

The action performed by the account against the managed secret.



8447
8448
8449
# File 'lib/models/porcelain.rb', line 8447

def action
  @action
end

#created_atObject

Timestamp of when action was performed.



8449
8450
8451
# File 'lib/models/porcelain.rb', line 8449

def created_at
  @created_at
end

#debugObject

Any debug logs associated with the action.



8451
8452
8453
# File 'lib/models/porcelain.rb', line 8451

def debug
  @debug
end

#idObject

Unique identifier of the Managed Secret Log.



8453
8454
8455
# File 'lib/models/porcelain.rb', line 8453

def id
  @id
end

#managed_secret_idObject

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



8455
8456
8457
# File 'lib/models/porcelain.rb', line 8455

def managed_secret_id
  @managed_secret_id
end

#secret_engine_idObject

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



8457
8458
8459
# File 'lib/models/porcelain.rb', line 8457

def secret_engine_id
  @secret_engine_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8477
8478
8479
8480
8481
8482
8483
# File 'lib/models/porcelain.rb', line 8477

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