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.
8226 8227 8228 8229 8230 8231 8232 8233 8234 |
# File 'lib/models/porcelain.rb', line 8226 def initialize( managed_secret: nil, meta: nil, rate_limit: nil ) @managed_secret = managed_secret == nil ? nil : managed_secret @meta = == nil ? nil : @rate_limit = rate_limit == nil ? nil : rate_limit end |
Instance Attribute Details
#managed_secret ⇒ Object
The requested Managed Secret.
8220 8221 8222 |
# File 'lib/models/porcelain.rb', line 8220 def managed_secret @managed_secret end |
#meta ⇒ Object
Reserved for future use.
8222 8223 8224 |
# File 'lib/models/porcelain.rb', line 8222 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
8224 8225 8226 |
# File 'lib/models/porcelain.rb', line 8224 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8236 8237 8238 8239 8240 8241 8242 |
# File 'lib/models/porcelain.rb', line 8236 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 |