Class: Vault::LeaderStatus

Inherits:
Response show all
Defined in:
lib/vault/api/sys/leader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Response

#==, decode, #initialize, #to_h

Constructor Details

This class inherits a constructor from Vault::Response

Instance Attribute Details

#address ⇒ String (readonly)

URL where the server is running.

Returns:

  • (String)


16
# File 'lib/vault/api/sys/leader.rb', line 16

field :leader_address, as: :address

Instance Method Details

#ha? ⇒ Boolean

Deprecated.

Use #ha_enabled? instead

Returns:

  • (Boolean)


19
# File 'lib/vault/api/sys/leader.rb', line 19

def ha?; ha_enabled?; end

#ha_enabled? ⇒ Boolean

Returns whether the high-availability mode is enabled.

Returns:

  • (Boolean)


6
# File 'lib/vault/api/sys/leader.rb', line 6

field :ha_enabled, as: :ha_enabled?

#is_leader? ⇒ Boolean

Deprecated.

Use #leader? instead

Returns:

  • (Boolean)


22
# File 'lib/vault/api/sys/leader.rb', line 22

def is_leader?; leader?; end

#is_self? ⇒ Boolean

Deprecated.

Use #leader? instead

Returns:

  • (Boolean)


25
# File 'lib/vault/api/sys/leader.rb', line 25

def is_self?; leader?; end

#leader? ⇒ Boolean

Returns whether the Vault server queried is the leader.

Returns:

  • (Boolean)


11
# File 'lib/vault/api/sys/leader.rb', line 11

field :is_self, as: :leader?

#self? ⇒ Boolean

Deprecated.

Use #leader? instead

Returns:

  • (Boolean)


28
# File 'lib/vault/api/sys/leader.rb', line 28

def self?; leader?; end