Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 200 for userid (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/extra_models/tutorial002_py310.py

        full_name: str | None = None
    
    
    class UserIn(UserBase):
        password: str
    
    
    class UserOut(UserBase):
        pass
    
    
    class UserInDB(UserBase):
        hashed_password: str
    
    
    def fake_password_hasher(raw_password: str):
        return "supersecret" + raw_password
    
    
    def fake_save_user(user_in: UserIn):
        hashed_password = fake_password_hasher(user_in.password)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 798 bytes
    - Click Count (0)
  2. docs_src/extra_models/tutorial001_py310.py

    
    def fake_save_user(user_in: UserIn):
        hashed_password = fake_password_hasher(user_in.password)
        user_in_db = UserInDB(**user_in.model_dump(), hashed_password=hashed_password)
        print("User saved! ..not really")
        return user_in_db
    
    
    @app.post("/user/", response_model=UserOut)
    async def create_user(user_in: UserIn):
        user_saved = fake_save_user(user_in)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 905 bytes
    - Click Count (0)
  3. CHANGELOG/CHANGELOG-1.10.md

    cluster now additionally requests a token with the  "userinfo.email" scope. This way, users can write ClusterRoleBindings/RoleBindings with the email address of the service account directly. (This is a breaking change if the numeric uniqueIDs of the Google service accounts were being used in RBAC role bindings. The behavior can be overridden by explicitly specifying the scope values as comma-separated string in the "users[*].config.scopes" field in the KUBECONFIG file.) This way, users can now  set a Google...
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Thu May 05 13:44:43 GMT 2022
    - 341.8K bytes
    - Click Count (0)
  4. docs/uk/docs/tutorial/extra-models.md

    ### Про `**user_in.model_dump()` { #about-user-in-model-dump }
    
    #### `.model_dump()` у Pydantic { #pydantics-model-dump }
    
    `user_in` - це модель Pydantic класу `UserIn`.
    
    Моделі Pydantic мають метод `.model_dump()`, який повертає `dict` з даними моделі.
    
    Отже, якщо ми створимо об’єкт Pydantic `user_in` так:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/extra-models.md

    Como en el ejemplo anterior obtuvimos `user_dict` de `user_in.model_dump()`, este código:
    
    ```Python
    user_dict = user_in.model_dump()
    UserInDB(**user_dict)
    ```
    
    sería equivalente a:
    
    ```Python
    UserInDB(**user_in.model_dump())
    ```
    
    ...porque `user_in.model_dump()` es un `dict`, y luego hacemos que Python lo "desempaquete" al pasarlo a `UserInDB` con el prefijo `**`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  6. docs/tr/docs/tutorial/extra-models.md

    Yukarıdaki örnekte `user_dict`'i `user_in.model_dump()` ile elde ettiğimiz için, şu kod:
    
    ```Python
    user_dict = user_in.model_dump()
    UserInDB(**user_dict)
    ```
    
    şuna eşdeğerdir:
    
    ```Python
    UserInDB(**user_in.model_dump())
    ```
    
    ...çünkü `user_in.model_dump()` bir `dict` döndürür ve biz de bunu `UserInDB`'ye `**` önekiyle vererek Python'ın "unpack" etmesini sağlarız.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  7. docs/ru/docs/tutorial/extra-models.md

    ### Про `**user_in.model_dump()` { #about-user-in-model-dump }
    
    #### `.model_dump()` из Pydantic { #pydantics-model-dump }
    
    `user_in` — это Pydantic-модель класса `UserIn`.
    
    У Pydantic-моделей есть метод `.model_dump()`, который возвращает `dict` с данными модели.
    
    Поэтому, если мы создадим Pydantic-объект `user_in` таким способом:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/extra-models.md

    Como no exemplo acima, obtivemos o `user_dict` a partir do `user_in.model_dump()`, este código:
    
    ```Python
    user_dict = user_in.model_dump()
    UserInDB(**user_dict)
    ```
    
    seria equivalente a:
    
    ```Python
    UserInDB(**user_in.model_dump())
    ```
    
    ...porque `user_in.model_dump()` é um `dict`, e depois fazemos o Python "desembrulhá-lo" passando-o para `UserInDB` precedido por `**`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/extra-models.md

    Da wir im obigen Beispiel `user_dict` von `user_in.model_dump()` bekommen haben, wäre dieser Code:
    
    ```Python
    user_dict = user_in.model_dump()
    UserInDB(**user_dict)
    ```
    
    gleichwertig zu:
    
    ```Python
    UserInDB(**user_in.model_dump())
    ```
    
    ... weil `user_in.model_dump()` ein `dict` ist, und dann lassen wir Python es „entpacken“, indem wir es an `UserInDB` mit vorangestelltem `**` übergeben.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/tutorial/extra-models.md

    ### 關於 `**user_in.model_dump()` { #about-user-in-model-dump }
    
    #### Pydantic 的 `.model_dump()` { #pydantics-model-dump }
    
    `user_in` 是一個 `UserIn` 類別的 Pydantic 模型。
    
    Pydantic 模型有 `.model_dump()` 方法,會回傳包含該模型資料的 `dict`。
    
    因此,若我們建立一個 Pydantic 物件 `user_in` 如:
    
    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    接著呼叫:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.3K bytes
    - Click Count (0)
Back to Top