Class: SDM::VaultAppRoleStore
- Inherits:
-
Object
- Object
- SDM::VaultAppRoleStore
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#server_address ⇒ Object
Returns the value of attribute server_address.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultAppRoleStore
constructor
A new instance of VaultAppRoleStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultAppRoleStore
Returns a new instance of VaultAppRoleStore.
8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 |
# File 'lib/models/porcelain.rb', line 8326 def initialize( id: nil, name: nil, namespace: nil, server_address: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @namespace = namespace == nil ? "" : namespace @server_address = server_address == nil ? "" : server_address @tags = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
8316 8317 8318 |
# File 'lib/models/porcelain.rb', line 8316 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
8318 8319 8320 |
# File 'lib/models/porcelain.rb', line 8318 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
8320 8321 8322 |
# File 'lib/models/porcelain.rb', line 8320 def namespace @namespace end |
#server_address ⇒ Object
Returns the value of attribute server_address.
8322 8323 8324 |
# File 'lib/models/porcelain.rb', line 8322 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
8324 8325 8326 |
# File 'lib/models/porcelain.rb', line 8324 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
8340 8341 8342 8343 8344 8345 8346 |
# File 'lib/models/porcelain.rb', line 8340 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 |