Sha256: e1ec2f066721b2315e460b2849bc5aaac90da43c6080ea753de71ecb8da8a4ed

Contents?: true

Size: 1.58 KB

Versions: 26

Compression:

Stored size: 1.58 KB

Contents

# typed: ignore
# frozen_string_literal: true

module Setsuzoku
  module Credential
    extend T::Sig
    extend T::Helpers
    extend Forwardable
    interface!

    attr_accessor :auth_strategy
    def_delegators :@auth_strategy, :plugin

    # All auth actions that are implemented.
    #
    # @return [Hash] all auth endpoint definitions for the API.
    sig { abstract.returns(T::Hash[T.untyped, T.untyped]) }
    def auth_actions; end

    # Create a stub implementation of the credential for testing purposes
    #
    # @return [Struct] a struct that implements stubbed version of a credential's required methods.
    sig { abstract.returns(Struct) }
    def self.stub_credential; end

    # The status of the credential.
    #
    # @return [Hash] the status of the credential.
    sig { abstract.returns(String) }
    def status; end

    # Setter for the status of the credential.
    #
    # @return [Hash] the status of the credential.
    sig { abstract.params(val: T.nilable(String)).returns(String) }
    def status=(val); end

    # A settings object for the credential.
    #
    # @return [Hash] the settings for the credential.
    sig { abstract.returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
    def settings; end

    # Setter for the settings object for the credential.
    #
    # @param val [Hash] a settings object to set.
    #
    # @return [Hash] the settings for the credential.
    sig do
      abstract
          .params(val: T.nilable(T::Hash[T.untyped, T.untyped]))
          .returns(T.nilable(T::Hash[T.untyped, T.untyped]))
    end
    def settings=(val); end
  end
end


Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
setsuzoku-0.15.7 lib/setsuzoku/credential.rb
setsuzoku-0.15.6 lib/setsuzoku/credential.rb
setsuzoku-0.15.5 lib/setsuzoku/credential.rb
setsuzoku-0.15.4 lib/setsuzoku/credential.rb
setsuzoku-0.15.3 lib/setsuzoku/credential.rb
setsuzoku-0.15.2 lib/setsuzoku/credential.rb
setsuzoku-0.15.1 lib/setsuzoku/credential.rb
setsuzoku-0.15.0 lib/setsuzoku/credential.rb
setsuzoku-0.14.9 lib/setsuzoku/credential.rb
setsuzoku-0.14.8 lib/setsuzoku/credential.rb
setsuzoku-0.14.7 lib/setsuzoku/credential.rb
setsuzoku-0.14.6 lib/setsuzoku/credential.rb
setsuzoku-0.14.5 lib/setsuzoku/credential.rb
setsuzoku-0.14.4 lib/setsuzoku/credential.rb
setsuzoku-0.14.3 lib/setsuzoku/credential.rb
setsuzoku-0.14.2 lib/setsuzoku/credential.rb
setsuzoku-0.14.1 lib/setsuzoku/credential.rb
setsuzoku-0.14.0 lib/setsuzoku/credential.rb
setsuzoku-0.13.1 lib/setsuzoku/credential.rb
setsuzoku-0.13.0 lib/setsuzoku/credential.rb