Class: SDM::VaultAppRoleStore

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, namespace: nil, server_address: nil, tags: nil) ⇒ VaultAppRoleStore

Returns a new instance of VaultAppRoleStore.



12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
# File 'lib/models/porcelain.rb', line 12403

def initialize(
  id: nil,
  name: nil,
  namespace: nil,
  server_address: nil,
  tags: nil
)
  @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

#idObject

Unique identifier of the SecretStore.



12393
12394
12395
# File 'lib/models/porcelain.rb', line 12393

def id
  @id
end

#nameObject

Unique human-readable name of the SecretStore.



12395
12396
12397
# File 'lib/models/porcelain.rb', line 12395

def name
  @name
end

#namespaceObject

The namespace to make requests within



12397
12398
12399
# File 'lib/models/porcelain.rb', line 12397

def namespace
  @namespace
end

#server_addressObject

The URL of the Vault to target



12399
12400
12401
# File 'lib/models/porcelain.rb', line 12399

def server_address
  @server_address
end

#tagsObject

Tags is a map of key, value pairs.



12401
12402
12403
# File 'lib/models/porcelain.rb', line 12401

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



12417
12418
12419
12420
12421
12422
12423
# File 'lib/models/porcelain.rb', line 12417

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