Class: SDM::ManagedSecretLog
- Inherits:
-
Object
- Object
- SDM::ManagedSecretLog
- Defined in:
- lib/models/porcelain.rb
Overview
ManagedSecretLog contains details about action performed against a managed secret
Instance Attribute Summary collapse
-
#account_id ⇒ Object
An ID of the account the action was performed by.
-
#action ⇒ Object
The action performed by the account against the managed secret.
-
#created_at ⇒ Object
Timestamp of when action was performed.
-
#debug ⇒ Object
Any debug logs associated with the action.
-
#id ⇒ Object
Unique identifier of the Managed Secret Log.
-
#managed_secret_id ⇒ Object
An ID of the Managed Secret the action was performed against.
-
#secret_engine_id ⇒ Object
An ID of the Secret Engine linked with the Managed Secret.
Instance Method Summary collapse
-
#initialize(account_id: nil, action: nil, created_at: nil, debug: nil, id: nil, managed_secret_id: nil, secret_engine_id: nil) ⇒ ManagedSecretLog
constructor
A new instance of ManagedSecretLog.
- #to_json(options = {}) ⇒ Object
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.
9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 |
# File 'lib/models/porcelain.rb', line 9815 def initialize( account_id: nil, action: nil, created_at: nil, debug: nil, id: nil, managed_secret_id: nil, secret_engine_id: nil ) @account_id = account_id == nil ? "" : account_id @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_id ⇒ Object
An ID of the account the action was performed by.
9801 9802 9803 |
# File 'lib/models/porcelain.rb', line 9801 def account_id @account_id end |
#action ⇒ Object
The action performed by the account against the managed secret.
9803 9804 9805 |
# File 'lib/models/porcelain.rb', line 9803 def action @action end |
#created_at ⇒ Object
Timestamp of when action was performed.
9805 9806 9807 |
# File 'lib/models/porcelain.rb', line 9805 def created_at @created_at end |
#debug ⇒ Object
Any debug logs associated with the action.
9807 9808 9809 |
# File 'lib/models/porcelain.rb', line 9807 def debug @debug end |
#id ⇒ Object
Unique identifier of the Managed Secret Log.
9809 9810 9811 |
# File 'lib/models/porcelain.rb', line 9809 def id @id end |
#managed_secret_id ⇒ Object
An ID of the Managed Secret the action was performed against.
9811 9812 9813 |
# File 'lib/models/porcelain.rb', line 9811 def managed_secret_id @managed_secret_id end |
#secret_engine_id ⇒ Object
An ID of the Secret Engine linked with the Managed Secret.
9813 9814 9815 |
# File 'lib/models/porcelain.rb', line 9813 def secret_engine_id @secret_engine_id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
9833 9834 9835 9836 9837 9838 9839 |
# File 'lib/models/porcelain.rb', line 9833 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |