Class: SDM::ActiveDirectoryStore
- Inherits:
-
Object
- Object
- SDM::ActiveDirectoryStore
- 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.
-
#server_address ⇒ Object
Hostname of server that is hosting NDES (Network Device Enrollment Services).
-
#tags ⇒ Object
Tags is a map of key, value pairs.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, server_address: nil, tags: nil) ⇒ ActiveDirectoryStore
constructor
A new instance of ActiveDirectoryStore.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, server_address: nil, tags: nil) ⇒ ActiveDirectoryStore
2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 |
# File 'lib/models/porcelain.rb', line 2158 def initialize( id: nil, name: nil, server_address: nil, tags: nil ) @id = id == nil ? "" : id @name = name == nil ? "" : name @server_address = server_address == nil ? "" : server_address = == nil ? SDM::() : end |
Instance Attribute Details
#id ⇒ Object
Unique identifier of the SecretStore.
2149 2150 2151 |
# File 'lib/models/porcelain.rb', line 2149 def id @id end |
#name ⇒ Object
Unique human-readable name of the SecretStore.
2151 2152 2153 |
# File 'lib/models/porcelain.rb', line 2151 def name @name end |
#server_address ⇒ Object
Hostname of server that is hosting NDES (Network Device Enrollment Services). Often this is the same host as Active Directory Certificate Services
2154 2155 2156 |
# File 'lib/models/porcelain.rb', line 2154 def server_address @server_address end |
#tags ⇒ Object
Tags is a map of key, value pairs.
2156 2157 2158 |
# File 'lib/models/porcelain.rb', line 2156 def end |
Instance Method Details
#to_json(options = {}) ⇒ Object
2170 2171 2172 2173 2174 2175 2176 |
# File 'lib/models/porcelain.rb', line 2170 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 |