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.
9929 9930 9931 9932 9933 9934 9935 |
# File 'lib/models/porcelain.rb', line 9929 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
9925 9926 9927 |
# File 'lib/models/porcelain.rb', line 9925 def password_policy @password_policy end |
#rotation_policy ⇒ Object
Rotation policy for a managed secret
9927 9928 9929 |
# File 'lib/models/porcelain.rb', line 9927 def rotation_policy @rotation_policy end |
Instance Method Details
#to_json(options = {}) ⇒ Object
9937 9938 9939 9940 9941 9942 9943 |
# File 'lib/models/porcelain.rb', line 9937 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 |