Class: SDM::CyberarkPAMStore

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) ⇒ CyberarkPAMStore

Returns a new instance of CyberarkPAMStore.



3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
# File 'lib/models/porcelain.rb', line 3175

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



3167
3168
3169
# File 'lib/models/porcelain.rb', line 3167

def appurl
  @appurl
end

#idObject

Unique identifier of the SecretStore.



3169
3170
3171
# File 'lib/models/porcelain.rb', line 3169

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



3171
3172
3173
# File 'lib/models/porcelain.rb', line 3171

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



3173
3174
3175
# File 'lib/models/porcelain.rb', line 3173

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



3187
3188
3189
3190
3191
3192
3193
# File 'lib/models/porcelain.rb', line 3187

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