Sha256: 3dd02b1f0f5d126235bebbb0456b81390b229ac1639c0944428137934ac3696f

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

=begin
#Svix API

#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: 1.1.1

Generated by: https://openapi-generator.tech
Generator version: 7.9.0

=end

require 'date'
require 'time'

module Svix
  class Oauth2AuthMethodIn
    CLIENT_SECRET_JWT = "clientSecretJwt".freeze
    CLIENT_SECRET_BASIC = "clientSecretBasic".freeze
    CLIENT_SECRET_POST = "clientSecretPost".freeze

    def self.all_vars
      @all_vars ||= [CLIENT_SECRET_JWT, CLIENT_SECRET_BASIC, CLIENT_SECRET_POST].freeze
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      return value if Oauth2AuthMethodIn.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #Oauth2AuthMethodIn"
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
svix-1.56.0 lib/svix/models/oauth2_auth_method_in.rb
svix-1.45.1 lib/svix/models/oauth2_auth_method_in.rb
svix-1.45.0 lib/svix/models/oauth2_auth_method_in.rb
svix-1.44.0 lib/svix/models/oauth2_auth_method_in.rb
svix-1.43.0 lib/svix/models/oauth2_auth_method_in.rb
svix-1.42.0 lib/svix/models/oauth2_auth_method_in.rb
svix-1.41.0 lib/svix/models/oauth2_auth_method_in.rb
svix-1.40.0 lib/svix/models/oauth2_auth_method_in.rb
svix-1.39.0 lib/svix/models/oauth2_auth_method_in.rb