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.



8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
# File 'lib/models/porcelain.rb', line 8304

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.



8290
8291
8292
# File 'lib/models/porcelain.rb', line 8290

def 
  @account_id
end

#actionObject

The action performed by the account against the managed secret.



8292
8293
8294
# File 'lib/models/porcelain.rb', line 8292

def action
  @action
end

#created_atObject

Timestamp of when action was performed.



8294
8295
8296
# File 'lib/models/porcelain.rb', line 8294

def created_at
  @created_at
end

#debugObject

Any debug logs associated with the action.



8296
8297
8298
# File 'lib/models/porcelain.rb', line 8296

def debug
  @debug
end

#idObject

Unique identifier of the Managed Secret Log.



8298
8299
8300
# File 'lib/models/porcelain.rb', line 8298

def id
  @id
end

#managed_secret_idObject

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



8300
8301
8302
# File 'lib/models/porcelain.rb', line 8300

def managed_secret_id
  @managed_secret_id
end

#secret_engine_idObject

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



8302
8303
8304
# File 'lib/models/porcelain.rb', line 8302

def secret_engine_id
  @secret_engine_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8322
8323
8324
8325
8326
8327
8328
# File 'lib/models/porcelain.rb', line 8322

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