Sha256: 8d7675f6b8f30e6160410e0aa2ed9d9b4c62b42d4c248b15b2a2214a251d59ee

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true

module NgrokAPI
  module Models
    class EndpointSAMLMutate
      attr_reader :client,
        :attrs,
        :enabled,
        :options_passthrough,
        :cookie_prefix,
        :inactivity_timeout,
        :maximum_duration,
        :idp_metadata_url,
        :idp_metadata,
        :force_authn,
        :allow_idp_initiated,
        :authorized_groups,
        :nameid_format

      def initialize(client: nil, attrs: {})
        @client = client
        @attrs = attrs
        @enabled = @attrs['enabled']
        @options_passthrough = @attrs['options_passthrough']
        @cookie_prefix = @attrs['cookie_prefix']
        @inactivity_timeout = @attrs['inactivity_timeout']
        @maximum_duration = @attrs['maximum_duration']
        @idp_metadata_url = @attrs['idp_metadata_url']
        @idp_metadata = @attrs['idp_metadata']
        @force_authn = @attrs['force_authn']
        @allow_idp_initiated = @attrs['allow_idp_initiated']
        @authorized_groups = @attrs['authorized_groups']
        @nameid_format = @attrs['nameid_format']
      end

      def ==(other)
        @attrs == other.attrs
      end

      def to_s
        @attrs.to_s
      end

      def to_h
        @attrs.to_h
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ngrok-api-0.19.0 lib/ngrokapi/models/endpoint_saml_mutate.rb