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.
8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 |
# File 'lib/models/porcelain.rb', line 8559 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
8551 8552 8553 |
# File 'lib/models/porcelain.rb', line 8551 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
8553 8554 8555 |
# File 'lib/models/porcelain.rb', line 8553 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
8555 8556 8557 |
# File 'lib/models/porcelain.rb', line 8555 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
8557 8558 8559 |
# File 'lib/models/porcelain.rb', line 8557 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8571 8572 8573 8574 8575 8576 8577 |
# File 'lib/models/porcelain.rb', line 8571 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 |