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



2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
# File 'lib/models/porcelain.rb', line 2414

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.



2404
2405
2406
# File 'lib/models/porcelain.rb', line 2404

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



2406
2407
2408
# File 'lib/models/porcelain.rb', line 2406

def name
  @name
end

#server_urlObject

Returns the value of attribute server_url.



2408
2409
2410
# File 'lib/models/porcelain.rb', line 2408

def server_url
  @server_url
end

#tagsObject

Tags is a map of key, value pairs.



2410
2411
2412
# File 'lib/models/porcelain.rb', line 2410

def tags
  @tags
end

#tenant_nameObject

Returns the value of attribute tenant_name.



2412
2413
2414
# File 'lib/models/porcelain.rb', line 2412

def tenant_name
  @tenant_name
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2428
2429
2430
2431
2432
2433
2434
# File 'lib/models/porcelain.rb', line 2428

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