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.
8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 |
# File 'lib/models/porcelain.rb', line 8944 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
8936 8937 8938 |
# File 'lib/models/porcelain.rb', line 8936 def invalid_info @invalid_info end |
#meta ⇒ Object
Reserved for future use.
8938 8939 8940 |
# File 'lib/models/porcelain.rb', line 8938 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
8940 8941 8942 |
# File 'lib/models/porcelain.rb', line 8940 def rate_limit @rate_limit end |
#valid ⇒ Object
Whether the secret is valid
8942 8943 8944 |
# File 'lib/models/porcelain.rb', line 8942 def valid @valid end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8956 8957 8958 8959 8960 8961 8962 |
# File 'lib/models/porcelain.rb', line 8956 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 |