Class: SDM::CyberarkPAMExperimentalStore

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

Overview

CyberarkPAMExperimentalStore is currently unstable, and its API may change, or it may be removed, without a major version bump.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CyberarkPAMExperimentalStore.



4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
# File 'lib/models/porcelain.rb', line 4395

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



4387
4388
4389
# File 'lib/models/porcelain.rb', line 4387

def appurl
  @appurl
end

#idObject

Unique identifier of the SecretStore.



4389
4390
4391
# File 'lib/models/porcelain.rb', line 4389

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



4391
4392
4393
# File 'lib/models/porcelain.rb', line 4391

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



4393
4394
4395
# File 'lib/models/porcelain.rb', line 4393

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4407
4408
4409
4410
4411
4412
4413
# File 'lib/models/porcelain.rb', line 4407

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