Class: SDM::ManagedSecretCreateResponse
- Inherits:
-
Object
- Object
- SDM::ManagedSecretCreateResponse
- Defined in:
- lib/models/porcelain.rb
Overview
ManagedSecretCreateResponse contains information about a Managed Secret after successful creation.
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) ⇒ ManagedSecretCreateResponse
constructor
A new instance of ManagedSecretCreateResponse.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(managed_secret: nil, meta: nil, rate_limit: nil) ⇒ ManagedSecretCreateResponse
Returns a new instance of ManagedSecretCreateResponse.
8291 8292 8293 8294 8295 8296 8297 8298 8299 |
# File 'lib/models/porcelain.rb', line 8291 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.
8285 8286 8287 |
# File 'lib/models/porcelain.rb', line 8285 def managed_secret @managed_secret end |
#meta ⇒ Object
Reserved for future use.
8287 8288 8289 |
# File 'lib/models/porcelain.rb', line 8287 def @meta end |
#rate_limit ⇒ Object
Rate limit information.
8289 8290 8291 |
# File 'lib/models/porcelain.rb', line 8289 def rate_limit @rate_limit end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8301 8302 8303 8304 8305 8306 8307 |
# File 'lib/models/porcelain.rb', line 8301 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 |