Class: SDM::VaultTLSStore

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ca_cert_path: nil, client_cert_path: nil, client_key_path: nil, id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultTLSStore

Returns a new instance of VaultTLSStore.



8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
# File 'lib/models/porcelain.rb', line 8129

def initialize(
  ca_cert_path: nil,
  client_cert_path: nil,
  client_key_path: nil,
  id: nil,
  name: nil,
  namespace: nil,
  server_address: nil,
  tags: nil
)
  @ca_cert_path = ca_cert_path == nil ? "" : ca_cert_path
  @client_cert_path = client_cert_path == nil ? "" : client_cert_path
  @client_key_path = client_key_path == nil ? "" : client_key_path
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @namespace = namespace == nil ? "" : namespace
  @server_address = server_address == nil ? "" : server_address
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#ca_cert_pathObject

Returns the value of attribute ca_cert_path.



8113
8114
8115
# File 'lib/models/porcelain.rb', line 8113

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

Returns the value of attribute client_cert_path.



8115
8116
8117
# File 'lib/models/porcelain.rb', line 8115

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

Returns the value of attribute client_key_path.



8117
8118
8119
# File 'lib/models/porcelain.rb', line 8117

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



8119
8120
8121
# File 'lib/models/porcelain.rb', line 8119

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



8121
8122
8123
# File 'lib/models/porcelain.rb', line 8121

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



8123
8124
8125
# File 'lib/models/porcelain.rb', line 8123

def namespace
  @namespace
end

#server_addressObject

Returns the value of attribute server_address.



8125
8126
8127
# File 'lib/models/porcelain.rb', line 8125

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



8127
8128
8129
# File 'lib/models/porcelain.rb', line 8127

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



8149
8150
8151
8152
8153
8154
8155
# File 'lib/models/porcelain.rb', line 8149

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