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.
8573 8574 8575 8576 8577 8578 8579 |
# File 'lib/models/porcelain.rb', line 8573 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
8569 8570 8571 |
# File 'lib/models/porcelain.rb', line 8569 def password_policy @password_policy end |
#rotation_policy ⇒ Object
Rotation policy for a managed secret
8571 8572 8573 |
# File 'lib/models/porcelain.rb', line 8571 def rotation_policy @rotation_policy end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8581 8582 8583 8584 8585 8586 8587 |
# File 'lib/models/porcelain.rb', line 8581 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 |