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.



6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
# File 'lib/models/porcelain.rb', line 6887

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
)
  if ca_cert_path != nil
    @ca_cert_path = ca_cert_path
  end
  if client_cert_path != nil
    @client_cert_path = client_cert_path
  end
  if client_key_path != nil
    @client_key_path = client_key_path
  end
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if namespace != nil
    @namespace = namespace
  end
  if server_address != nil
    @server_address = server_address
  end
  if tags != nil
    @tags = tags
  end
end

Instance Attribute Details

#ca_cert_pathObject

Returns the value of attribute ca_cert_path.



6871
6872
6873
# File 'lib/models/porcelain.rb', line 6871

def ca_cert_path
  @ca_cert_path
end

#client_cert_pathObject

Returns the value of attribute client_cert_path.



6873
6874
6875
# File 'lib/models/porcelain.rb', line 6873

def client_cert_path
  @client_cert_path
end

#client_key_pathObject

Returns the value of attribute client_key_path.



6875
6876
6877
# File 'lib/models/porcelain.rb', line 6875

def client_key_path
  @client_key_path
end

#idObject

Unique identifier of the SecretStore.



6877
6878
6879
# File 'lib/models/porcelain.rb', line 6877

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



6879
6880
6881
# File 'lib/models/porcelain.rb', line 6879

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace.



6881
6882
6883
# File 'lib/models/porcelain.rb', line 6881

def namespace
  @namespace
end

#server_addressObject

Returns the value of attribute server_address.



6883
6884
6885
# File 'lib/models/porcelain.rb', line 6883

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



6885
6886
6887
# File 'lib/models/porcelain.rb', line 6885

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



6923
6924
6925
6926
6927
6928
6929
# File 'lib/models/porcelain.rb', line 6923

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