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.
8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 |
# File 'lib/models/porcelain.rb', line 8878 def initialize( invalid_info: nil, meta: nil, rate_limit: nil, valid: nil ) @invalid_info = invalid_info == nil ? "" : invalid_info = == 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
8870 8871 8872 |
# File 'lib/models/porcelain.rb', line 8870 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
8872 8873 8874 |
# File 'lib/models/porcelain.rb', line 8872 def end |
#rate_limit ⇒ Object
Rate limit information.
8874 8875 8876 |
# File 'lib/models/porcelain.rb', line 8874 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
8876 8877 8878 |
# File 'lib/models/porcelain.rb', line 8876 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8890 8891 8892 8893 8894 8895 8896 |
# File 'lib/models/porcelain.rb', line 8890 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 |