Class: SDM::ManagedSecretValidateResponse
- Inherits:
-
Object
- Object
- SDM::ManagedSecretValidateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ManagedSecretValidateResponse contains validity of requested Managed Secret
Instance Attribute Summary collapse
-
#invalid_info ⇒ Object
Information about why secret is invalid.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
-
#valid ⇒ Object
Whether the secret is valid.
Instance Method Summary collapse
-
#initialize(invalid_info: nil, meta: nil, rate_limit: nil, valid: nil) ⇒ ManagedSecretValidateResponse
constructor
A new instance of ManagedSecretValidateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(invalid_info: nil, meta: nil, rate_limit: nil, valid: nil) ⇒ ManagedSecretValidateResponse
Returns a new instance of ManagedSecretValidateResponse.
9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 |
# File 'lib/models/porcelain.rb', line 9119 def initialize( invalid_info: nil, meta: nil, rate_limit: nil, valid: nil ) @invalid_info = invalid_info == nil ? "" : invalid_info @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit @valid = valid == nil ? false : valid end |
Instance Attribute Details
#invalid_info ⇒ Object
Information about why secret is invalid
9111 9112 9113 |
# File 'lib/models/porcelain.rb', line 9111 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
9113 9114 9115 |
# File 'lib/models/porcelain.rb', line 9113 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
9115 9116 9117 |
# File 'lib/models/porcelain.rb', line 9115 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
9117 9118 9119 |
# File 'lib/models/porcelain.rb', line 9117 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
9131 9132 9133 9134 9135 9136 9137 |
# File 'lib/models/porcelain.rb', line 9131 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 |