Skip to content

Commit ae85154

Browse files
algolia-botClaraMullermillotpshortcuts
committed
feat(specs): merge composition & composition-full (generated)
algolia/api-clients-automation#5333 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Pierre Millot <[email protected]> Co-authored-by: shortcuts <[email protected]>
1 parent cfb44ab commit ae85154

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+10282
-0
lines changed

lib/algolia/api/composition_client.rb

Lines changed: 765 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# frozen_string_literal: true
2+
3+
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
4+
5+
require "date"
6+
require "time"
7+
8+
module Algolia
9+
module Composition
10+
class Action
11+
UPSERT = "upsert".freeze
12+
DELETE = "delete".freeze
13+
14+
def self.all_vars
15+
@all_vars ||= [UPSERT, DELETE].freeze
16+
end
17+
18+
# Builds the enum from string
19+
# @param [String] The enum value in the form of the string
20+
# @return [String] The enum value
21+
def self.build_from_hash(value)
22+
new.build_from_hash(value)
23+
end
24+
25+
# Builds the enum from string
26+
# @param [String] The enum value in the form of the string
27+
# @return [String] The enum value
28+
def build_from_hash(value)
29+
return value if Action.all_vars.include?(value)
30+
raise "Invalid ENUM value #{value} for class #Action"
31+
end
32+
end
33+
end
34+
end
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# frozen_string_literal: true
2+
3+
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
4+
5+
require "date"
6+
require "time"
7+
8+
module Algolia
9+
module Composition
10+
class AdvancedSyntaxFeatures
11+
EXACT_PHRASE = "exactPhrase".freeze
12+
EXCLUDE_WORDS = "excludeWords".freeze
13+
14+
def self.all_vars
15+
@all_vars ||= [EXACT_PHRASE, EXCLUDE_WORDS].freeze
16+
end
17+
18+
# Builds the enum from string
19+
# @param [String] The enum value in the form of the string
20+
# @return [String] The enum value
21+
def self.build_from_hash(value)
22+
new.build_from_hash(value)
23+
end
24+
25+
# Builds the enum from string
26+
# @param [String] The enum value in the form of the string
27+
# @return [String] The enum value
28+
def build_from_hash(value)
29+
return value if AdvancedSyntaxFeatures.all_vars.include?(value)
30+
raise "Invalid ENUM value #{value} for class #AdvancedSyntaxFeatures"
31+
end
32+
end
33+
end
34+
end
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# frozen_string_literal: true
2+
3+
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
4+
5+
require "date"
6+
require "time"
7+
8+
module Algolia
9+
module Composition
10+
class AlternativesAsExact
11+
IGNORE_PLURALS = "ignorePlurals".freeze
12+
SINGLE_WORD_SYNONYM = "singleWordSynonym".freeze
13+
MULTI_WORDS_SYNONYM = "multiWordsSynonym".freeze
14+
IGNORE_CONJUGATIONS = "ignoreConjugations".freeze
15+
16+
def self.all_vars
17+
@all_vars ||= [IGNORE_PLURALS, SINGLE_WORD_SYNONYM, MULTI_WORDS_SYNONYM, IGNORE_CONJUGATIONS].freeze
18+
end
19+
20+
# Builds the enum from string
21+
# @param [String] The enum value in the form of the string
22+
# @return [String] The enum value
23+
def self.build_from_hash(value)
24+
new.build_from_hash(value)
25+
end
26+
27+
# Builds the enum from string
28+
# @param [String] The enum value in the form of the string
29+
# @return [String] The enum value
30+
def build_from_hash(value)
31+
return value if AlternativesAsExact.all_vars.include?(value)
32+
raise "Invalid ENUM value #{value} for class #AlternativesAsExact"
33+
end
34+
end
35+
end
36+
end
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# frozen_string_literal: true
2+
3+
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
4+
5+
require "date"
6+
require "time"
7+
8+
module Algolia
9+
module Composition
10+
class Anchoring
11+
IS = "is".freeze
12+
STARTS_WITH = "startsWith".freeze
13+
ENDS_WITH = "endsWith".freeze
14+
CONTAINS = "contains".freeze
15+
16+
def self.all_vars
17+
@all_vars ||= [IS, STARTS_WITH, ENDS_WITH, CONTAINS].freeze
18+
end
19+
20+
# Builds the enum from string
21+
# @param [String] The enum value in the form of the string
22+
# @return [String] The enum value
23+
def self.build_from_hash(value)
24+
new.build_from_hash(value)
25+
end
26+
27+
# Builds the enum from string
28+
# @param [String] The enum value in the form of the string
29+
# @return [String] The enum value
30+
def build_from_hash(value)
31+
return value if Anchoring.all_vars.include?(value)
32+
raise "Invalid ENUM value #{value} for class #Anchoring"
33+
end
34+
end
35+
end
36+
end

0 commit comments

Comments
 (0)