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 6504adc commit 9cd002d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion algoliasearch/ingestion/models/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Source(BaseModel):
)
type: SourceType
name: StrictStr
input: SourceInput
input: Optional[SourceInput] = None
authentication_id: Optional[StrictStr] = Field(
default=None,
description="Universally unique identifier (UUID) of an authentication resource.",
Expand Down
2 changes: 1 addition & 1 deletion algoliasearch/ingestion/models/source_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SourceCreate(BaseModel):

type: SourceType
name: StrictStr = Field(description="Descriptive name of the source.")
input: SourceInput
input: Optional[SourceInput] = None
authentication_id: Optional[StrictStr] = Field(
default=None,
description="Universally unique identifier (UUID) of an authentication resource.",
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/ingestion/models/source_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class SourceType(str, Enum):
JSON = "json"
SHOPIFY = "shopify"
SFCC = "sfcc"
PUSH = "push"

@classmethod
def from_json(cls, json_str: str) -> Self:
Expand Down

0 comments on commit 9cd002d

Please # to comment.