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.



10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
# File 'lib/models/porcelain.rb', line 10212

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.



10198
10199
10200
# File 'lib/models/porcelain.rb', line 10198

def 
  @account_id
end

#actionObject

The action performed by the account against the managed secret.



10200
10201
10202
# File 'lib/models/porcelain.rb', line 10200

def action
  @action
end

#created_atObject

Timestamp of when action was performed.



10202
10203
10204
# File 'lib/models/porcelain.rb', line 10202

def created_at
  @created_at
end

#debugObject

Any debug logs associated with the action.



10204
10205
10206
# File 'lib/models/porcelain.rb', line 10204

def debug
  @debug
end

#idObject

Unique identifier of the Managed Secret Log.



10206
10207
10208
# File 'lib/models/porcelain.rb', line 10206

def id
  @id
end

#managed_secret_idObject

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



10208
10209
10210
# File 'lib/models/porcelain.rb', line 10208

def managed_secret_id
  @managed_secret_id
end

#secret_engine_idObject

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



10210
10211
10212
# File 'lib/models/porcelain.rb', line 10210

def secret_engine_id
  @secret_engine_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10230
10231
10232
10233
10234
10235
10236
# File 'lib/models/porcelain.rb', line 10230

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