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.
11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 |
# File 'lib/models/porcelain.rb', line 11418 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
11410 11411 11412 |
# File 'lib/models/porcelain.rb', line 11410 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
11412 11413 11414 |
# File 'lib/models/porcelain.rb', line 11412 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
11414 11415 11416 |
# File 'lib/models/porcelain.rb', line 11414 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
11416 11417 11418 |
# File 'lib/models/porcelain.rb', line 11416 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11430 11431 11432 11433 11434 11435 11436 |
# File 'lib/models/porcelain.rb', line 11430 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 |