Class: SDM::DelineaStore

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

DelineaStore is currently unstable, and its API may change, or it may be removed, without a major version bump.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, server_url: nil, tags: nil, tenant_name: nil) ⇒ DelineaStore

Returns a new instance of DelineaStore.



2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
# File 'lib/models/porcelain.rb', line 2317

def initialize(
  id: nil,
  name: nil,
  server_url: nil,
  tags: nil,
  tenant_name: nil
)
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @server_url = server_url == nil ? "" : server_url
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
  @tenant_name = tenant_name == nil ? "" : tenant_name
end

Instance Attribute Details

#idObject

Unique identifier of the SecretStore.



2307
2308
2309
# File 'lib/models/porcelain.rb', line 2307

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



2309
2310
2311
# File 'lib/models/porcelain.rb', line 2309

def name
  @name
end

#server_urlObject

Returns the value of attribute server_url.



2311
2312
2313
# File 'lib/models/porcelain.rb', line 2311

def server_url
  @server_url
end

#tagsObject

Tags is a map of key, value pairs.



2313
2314
2315
# File 'lib/models/porcelain.rb', line 2313

def tags
  @tags
end

#tenant_nameObject

Returns the value of attribute tenant_name.



2315
2316
2317
# File 'lib/models/porcelain.rb', line 2315

def tenant_name
  @tenant_name
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2331
2332
2333
2334
2335
2336
2337
# File 'lib/models/porcelain.rb', line 2331

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end