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.



3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
# File 'lib/models/porcelain.rb', line 3112

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



3104
3105
3106
# File 'lib/models/porcelain.rb', line 3104

def appurl
  @appurl
end

#idObject

Unique identifier of the SecretStore.



3106
3107
3108
# File 'lib/models/porcelain.rb', line 3106

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



3108
3109
3110
# File 'lib/models/porcelain.rb', line 3108

def name
  @name
end

#tagsObject

Tags is a map of key, value pairs.



3110
3111
3112
# File 'lib/models/porcelain.rb', line 3110

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



3124
3125
3126
3127
3128
3129
3130
# File 'lib/models/porcelain.rb', line 3124

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