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.
8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 |
# File 'lib/models/porcelain.rb', line 8695 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
8687 8688 8689 |
# File 'lib/models/porcelain.rb', line 8687 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
8689 8690 8691 |
# File 'lib/models/porcelain.rb', line 8689 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
8691 8692 8693 |
# File 'lib/models/porcelain.rb', line 8691 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
8693 8694 8695 |
# File 'lib/models/porcelain.rb', line 8693 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8707 8708 8709 8710 8711 8712 8713 |
# File 'lib/models/porcelain.rb', line 8707 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 |