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.
10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 |
# File 'lib/models/porcelain.rb', line 10053 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
10045 10046 10047 |
# File 'lib/models/porcelain.rb', line 10045 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
10047 10048 10049 |
# File 'lib/models/porcelain.rb', line 10047 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
10049 10050 10051 |
# File 'lib/models/porcelain.rb', line 10049 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
10051 10052 10053 |
# File 'lib/models/porcelain.rb', line 10051 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10065 10066 10067 10068 10069 10070 10071 |
# File 'lib/models/porcelain.rb', line 10065 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 |