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.



3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
# File 'lib/models/porcelain.rb', line 3592

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.



3582
3583
3584
# File 'lib/models/porcelain.rb', line 3582

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



3584
3585
3586
# File 'lib/models/porcelain.rb', line 3584

def name
  @name
end

#server_urlObject

The URL of the Delinea instance



3586
3587
3588
# File 'lib/models/porcelain.rb', line 3586

def server_url
  @server_url
end

#tagsObject

Tags is a map of key, value pairs.



3588
3589
3590
# File 'lib/models/porcelain.rb', line 3588

def tags
  @tags
end

#tenant_nameObject

The tenant name to target



3590
3591
3592
# File 'lib/models/porcelain.rb', line 3590

def tenant_name
  @tenant_name
end

Instance Method Details

#to_json(options = {}) ⇒ Object



3606
3607
3608
3609
3610
3611
3612
# File 'lib/models/porcelain.rb', line 3606

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