Skip to content

Commit

Permalink
feat(specs): push source type (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3600

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Aug 27, 2024
1 parent ae6879a commit 7979413
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/algolia/models/ingestion/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ def initialize(attributes = {})

if attributes.key?(:input)
self.input = attributes[:input]
else
self.input = nil
end

if attributes.key?(:authentication_id)
Expand Down
2 changes: 0 additions & 2 deletions lib/algolia/models/ingestion/source_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ def initialize(attributes = {})

if attributes.key?(:input)
self.input = attributes[:input]
else
self.input = nil
end

if attributes.key?(:authentication_id)
Expand Down
14 changes: 13 additions & 1 deletion lib/algolia/models/ingestion/source_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@ class SourceType
JSON = "json".freeze
SHOPIFY = "shopify".freeze
SFCC = "sfcc".freeze
PUSH = "push".freeze

def self.all_vars
@all_vars ||= [BIGCOMMERCE, BIGQUERY, COMMERCETOOLS, CSV, DOCKER, GA4_BIGQUERY_EXPORT, JSON, SHOPIFY, SFCC].freeze
@all_vars ||= [
BIGCOMMERCE,
BIGQUERY,
COMMERCETOOLS,
CSV,
DOCKER,
GA4_BIGQUERY_EXPORT,
JSON,
SHOPIFY,
SFCC,
PUSH
].freeze
end

# Builds the enum from string
Expand Down

0 comments on commit 7979413

Please sign in to comment.