Class: SDM::CyberarkConjurStore

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(appurl: nil, id: nil, name: nil, tags: nil) ⇒ CyberarkConjurStore

Returns a new instance of CyberarkConjurStore.



5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
# File 'lib/models/porcelain.rb', line 5740

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

Instance Attribute Details

#appurlObject

The URL of the Cyberark instance



5732
5733
5734
# File 'lib/models/porcelain.rb', line 5732

def appurl
  @appurl
end

#idObject

Unique identifier of the SecretStore.



5734
5735
5736
# File 'lib/models/porcelain.rb', line 5734

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



5736
5737
5738
# File 'lib/models/porcelain.rb', line 5736

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



5738
5739
5740
# File 'lib/models/porcelain.rb', line 5738

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5752
5753
5754
5755
5756
5757
5758
# File 'lib/models/porcelain.rb', line 5752

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