Class: SDM::VaultAWSEC2Store
- Inherits:
-
Object
- Object
- SDM::VaultAWSEC2Store
- Defined in:
- lib/models/porcelain.rb
Overview
VaultAWSEC2Store is currently unstable, and its API may change, or it may be removed, without a major version bump.
Instance Attribute Summary collapse
-
#id ⇒ Object
Unique identifier of the SecretStore.
-
#name ⇒ Object
Unique human-readable name of the SecretStore.
-
#namespace ⇒ Object
The namespace to make requests within.
-
#server_address ⇒ Object
The URL of the Vault to target.
-
#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) ⇒ VaultAWSEC2Store
constructor
A new instance of VaultAWSEC2Store.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultAWSEC2Store
Returns a new instance of VaultAWSEC2Store.
11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 |
# File 'lib/models/porcelain.rb', line 11019 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.
11009 11010 11011 |
# File 'lib/models/porcelain.rb', line 11009 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
11011 11012 11013 |
# File 'lib/models/porcelain.rb', line 11011 def name @name end |
#namespace ⇒ Object
The namespace to make requests within
11013 11014 11015 |
# File 'lib/models/porcelain.rb', line 11013 def namespace @namespace end |
#server_address ⇒ Object
The URL of the Vault to target
11015 11016 11017 |
# File 'lib/models/porcelain.rb', line 11015 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
11017 11018 11019 |
# File 'lib/models/porcelain.rb', line 11017 def @tags end |
Instance Method Details
#to_json(options = {}) ⇒ Object
11033 11034 11035 11036 11037 11038 11039 |
# File 'lib/models/porcelain.rb', line 11033 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 |