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.
11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 |
# File 'lib/models/porcelain.rb', line 11117 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
11109 11110 11111 |
# File 'lib/models/porcelain.rb', line 11109 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
11111 11112 11113 |
# File 'lib/models/porcelain.rb', line 11111 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
11113 11114 11115 |
# File 'lib/models/porcelain.rb', line 11113 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
11115 11116 11117 |
# File 'lib/models/porcelain.rb', line 11115 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11129 11130 11131 11132 11133 11134 11135 |
# File 'lib/models/porcelain.rb', line 11129 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 |