Class: SDM::ManagedSecretGetResponse
- Inherits:
-
Object
- Object
- SDM::ManagedSecretGetResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ManagedSecretGetResponse contains information about requested Managed Secret
Instance Attribute Summary collapse
-
#managed_secret ⇒ Object
The requested Managed Secret.
-
#meta ⇒ Object
Reserved for future use.
-
#rate_limit ⇒ Object
Rate limit information.
Instance Method Summary collapse
-
#initialize(managed_secret: nil, meta: nil, rate_limit: nil) ⇒ ManagedSecretGetResponse
constructor
A new instance of ManagedSecretGetResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(managed_secret: nil, meta: nil, rate_limit: nil) ⇒ ManagedSecretGetResponse
Returns a new instance of ManagedSecretGetResponse.
8390 8391 8392 8393 8394 8395 8396 8397 8398 |
# File 'lib/models/porcelain.rb', line 8390 def initialize( managed_secret: nil, meta: nil, rate_limit: nil ) @managed_secret = managed_secret == nil ? nil : managed_secret = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#managed_secret ⇒ Object
The requested Managed Secret.
8384 8385 8386 |
# File 'lib/models/porcelain.rb', line 8384 def managed_secret @managed_secret end |
#meta ⇒ Object
Reserved for future use.
8386 8387 8388 |
# File 'lib/models/porcelain.rb', line 8386 def end |
#rate_limit ⇒ Object
Rate limit information.
8388 8389 8390 |
# File 'lib/models/porcelain.rb', line 8388 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8400 8401 8402 8403 8404 8405 8406 |
# File 'lib/models/porcelain.rb', line 8400 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 |