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.



3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
# File 'lib/models/porcelain.rb', line 3403

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



3395
3396
3397
# File 'lib/models/porcelain.rb', line 3395

def appurl
  @appurl
end

#idObject

Unique identifier of the SecretStore.



3397
3398
3399
# File 'lib/models/porcelain.rb', line 3397

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



3399
3400
3401
# File 'lib/models/porcelain.rb', line 3399

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



3401
3402
3403
# File 'lib/models/porcelain.rb', line 3401

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



3415
3416
3417
3418
3419
3420
3421
# File 'lib/models/porcelain.rb', line 3415

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