Class: SDM::DelineaStore

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

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.



4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
# File 'lib/models/porcelain.rb', line 4543

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.



4533
4534
4535
# File 'lib/models/porcelain.rb', line 4533

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



4535
4536
4537
# File 'lib/models/porcelain.rb', line 4535

def name
  @name
end

#server_urlObject

The URL of the Delinea instance



4537
4538
4539
# File 'lib/models/porcelain.rb', line 4537

def server_url
  @server_url
end

#tagsObject

Tags is a map of key, value pairs.



4539
4540
4541
# File 'lib/models/porcelain.rb', line 4539

def tags
  @tags
end

#tenant_nameObject

The tenant name to target



4541
4542
4543
# File 'lib/models/porcelain.rb', line 4541

def tenant_name
  @tenant_name
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4557
4558
4559
4560
4561
4562
4563
# File 'lib/models/porcelain.rb', line 4557

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