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.



2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
# File 'lib/models/porcelain.rb', line 2948

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



2940
2941
2942
# File 'lib/models/porcelain.rb', line 2940

def appurl
  @appurl
end

#idObject

Unique identifier of the SecretStore.



2942
2943
2944
# File 'lib/models/porcelain.rb', line 2942

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



2944
2945
2946
# File 'lib/models/porcelain.rb', line 2944

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



2946
2947
2948
# File 'lib/models/porcelain.rb', line 2946

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2960
2961
2962
2963
2964
2965
2966
# File 'lib/models/porcelain.rb', line 2960

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