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.



5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
# File 'lib/models/porcelain.rb', line 5190

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



5182
5183
5184
# File 'lib/models/porcelain.rb', line 5182

def appurl
  @appurl
end

#idObject

Unique identifier of the SecretStore.



5184
5185
5186
# File 'lib/models/porcelain.rb', line 5184

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



5186
5187
5188
# File 'lib/models/porcelain.rb', line 5186

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



5188
5189
5190
# File 'lib/models/porcelain.rb', line 5188

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5202
5203
5204
5205
5206
5207
5208
# File 'lib/models/porcelain.rb', line 5202

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