Skip to content

Commit 4d3e8bd

Browse files
algolia-botsbellone
andcommitted
docs: authentication type can't be updated (generated)
algolia/api-clients-automation#5824 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Sylvain Bellone <sylvain.bellone@algolia.com>
1 parent ab5cc3f commit 4d3e8bd

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

algoliasearch/ingestion/models/authentication_update.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@
1919

2020

2121
from algoliasearch.ingestion.models.auth_input_partial import AuthInputPartial
22-
from algoliasearch.ingestion.models.authentication_type import AuthenticationType
2322

2423
_ALIASES = {
25-
"type": "type",
2624
"name": "name",
2725
"input": "input",
2826
}
@@ -37,7 +35,6 @@ class AuthenticationUpdate(BaseModel):
3735
Request body for updating an authentication resource.
3836
"""
3937

40-
type: Optional[AuthenticationType] = None
4138
name: Optional[str] = None
4239
""" Descriptive name for the resource. """
4340
input: Optional[AuthInputPartial] = None
@@ -77,7 +74,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
7774
if not isinstance(obj, dict):
7875
return cls.model_validate(obj)
7976

80-
obj["type"] = obj.get("type")
8177
obj["input"] = (
8278
AuthInputPartial.from_dict(obj["input"])
8379
if obj.get("input") is not None

0 commit comments

Comments
 (0)