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.
11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 |
# File 'lib/models/porcelain.rb', line 11044 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
11036 11037 11038 |
# File 'lib/models/porcelain.rb', line 11036 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
11038 11039 11040 |
# File 'lib/models/porcelain.rb', line 11038 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
11040 11041 11042 |
# File 'lib/models/porcelain.rb', line 11040 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
11042 11043 11044 |
# File 'lib/models/porcelain.rb', line 11042 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11056 11057 11058 11059 11060 11061 11062 |
# File 'lib/models/porcelain.rb', line 11056 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 |