Class: Carbon::CustomCredentialsType
- Inherits:
-
Object
- Object
- Carbon::CustomCredentialsType
- Defined in:
- lib/carbon_ruby_sdk/models/custom_credentials_type.rb
Constant Summary collapse
- OPENAI =
"OPENAI".freeze
- COHERE =
"COHERE".freeze
- AZURE_OPENAI =
"AZURE_OPENAI".freeze
- AZURE_OPENAI_V3 =
"AZURE_OPENAI_V3".freeze
- UPSTAGE =
"UPSTAGE".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
20 21 22 |
# File 'lib/carbon_ruby_sdk/models/custom_credentials_type.rb', line 20 def self.all_vars @all_vars ||= [OPENAI, COHERE, AZURE_OPENAI, AZURE_OPENAI_V3, UPSTAGE].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
27 28 29 |
# File 'lib/carbon_ruby_sdk/models/custom_credentials_type.rb', line 27 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
34 35 36 37 |
# File 'lib/carbon_ruby_sdk/models/custom_credentials_type.rb', line 34 def build_from_hash(value) return value if CustomCredentialsType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #CustomCredentialsType" end |