Class: SDM::ManagedSecretPolicy
- Inherits:
-
Object
- Object
- SDM::ManagedSecretPolicy
- Defined in:
- lib/models/porcelain.rb
Overview
ManagedSecretPolicy contains password and rotation policy for managed secret
Instance Attribute Summary collapse
-
#password_policy ⇒ Object
Password policy for a managed secret.
-
#rotation_policy ⇒ Object
Rotation policy for a managed secret.
Instance Method Summary collapse
-
#initialize(password_policy: nil, rotation_policy: nil) ⇒ ManagedSecretPolicy
constructor
A new instance of ManagedSecretPolicy.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(password_policy: nil, rotation_policy: nil) ⇒ ManagedSecretPolicy
Returns a new instance of ManagedSecretPolicy.
8666 8667 8668 8669 8670 8671 8672 |
# File 'lib/models/porcelain.rb', line 8666 def initialize( password_policy: nil, rotation_policy: nil ) @password_policy = password_policy == nil ? nil : password_policy @rotation_policy = rotation_policy == nil ? nil : rotation_policy end |
Instance Attribute Details
#password_policy ⇒ Object
Password policy for a managed secret
8662 8663 8664 |
# File 'lib/models/porcelain.rb', line 8662 def password_policy @password_policy end |
#rotation_policy ⇒ Object
Rotation policy for a managed secret
8664 8665 8666 |
# File 'lib/models/porcelain.rb', line 8664 def rotation_policy @rotation_policy end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8674 8675 8676 8677 8678 8679 8680 |
# File 'lib/models/porcelain.rb', line 8674 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 |