Search Options

Results per page
Sort
Preferred Languages
Advance

Results 971 - 980 of 1,097 for asdict (0.14 sec)

  1. docs/pt/docs/advanced/security/oauth2-scopes.md

    ## Esquema de segurança OAuth2
    
    A primeira mudança é que agora nós estamos declarando o esquema de segurança OAuth2 com dois escopos disponíveis, `me` e `items`.
    
    O parâmetro `scopes` recebe um `dict` contendo cada escopo como chave e a descrição como valor:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="63-66"
    {!> ../../docs_src/security/tutorial005_an_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableCollection.java

       * copying anything. The exact circumstances under which the copy is performed are undefined and
       * subject to change.
       *
       * @since 2.0
       */
      public ImmutableList<E> asList() {
        switch (size()) {
          case 0:
            return ImmutableList.of();
          case 1:
            return ImmutableList.of(iterator().next());
          default:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/dependencies/index.md

    &amp; ⚫️ 💪 📨 🕳 👆 💚.
    
    👉 💼, 👉 🔗 ⌛:
    
    * 📦 🔢 🔢 `q` 👈 `str`.
    * 📦 🔢 🔢 `skip` 👈 `int`, &amp; 🔢 `0`.
    * 📦 🔢 🔢 `limit` 👈 `int`, &amp; 🔢 `100`.
    
    &amp; ⤴️ ⚫️ 📨 `dict` ⚗ 📚 💲.
    
    ### 🗄 `Depends`
    
    //// tab | 🐍 3️⃣.6️⃣ &amp; 🔛
    
    ```Python hl_lines="3"
    {!> ../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ &amp; 🔛
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. cmd/metrics-v2.go

    				},
    				VariableLabels: map[string]string{"target_id": st.ID.ID, "target_name": st.ID.Name},
    				Value:          float64(st.FailedRequests),
    			})
    		}
    
    		// Audit and system:
    		audit := logger.CurrentStats()
    		for id, st := range audit {
    			metrics = append(metrics, MetricV2{
    				Description: MetricDescription{
    					Namespace: minioNamespace,
    					Subsystem: auditSubsystem,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  5. docs/pt/docs/advanced/settings.md

    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/handling-errors.md

    }
    ```
    
    /// tip | "Tipp"
    
    Wenn Sie eine `HTTPException` auslösen, können Sie dem Parameter `detail` jeden Wert übergeben, der nach JSON konvertiert werden kann, nicht nur `str`.
    
    Zum Beispiel ein `dict`, eine `list`, usw.
    
    Das wird automatisch von **FastAPI** gehandhabt und der Wert nach JSON konvertiert.
    
    ///
    
    ## Benutzerdefinierte Header hinzufügen
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/custom-response.md

    ///
    
    ### `Response`
    
    其他全部的响应都继承自主类 `Response`。
    
    你可以直接返回它。
    
    `Response` 类接受如下参数:
    
    * `content` - 一个 `str` 或者 `bytes`。
    * `status_code` - 一个 `int` 类型的 HTTP 状态码。
    * `headers` - 一个由字符串组成的 `dict`。
    * `media_type` - 一个给出媒体类型的 `str`,比如 `"text/html"`。
    
    FastAPI(实际上是 Starlette)将自动包含 Content-Length 的头。它还将包含一个基于 media_type 的 Content-Type 头,并为文本类型附加一个字符集。
    
    
    ```Python hl_lines="1  18"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/path-params.md

    ```Python hl_lines="20"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    /// tip | "提示"
    
    使用 `ModelName.lenet.value` 也能获取值 `"lenet"`。
    
    ///
    
    #### 返回*枚举元素*
    
    即使嵌套在 JSON 请求体里(例如, `dict`),也可以从*路径操作*返回*枚举元素*。
    
    返回给客户端之前,要把枚举元素转换为对应的值(本例中为字符串):
    
    ```Python hl_lines="18  21  23"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    客户端中的 JSON 响应如下:
    
    ```JSON
    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload.go

    	filePerms                       = os.FileMode(0o744)
    )
    
    func Cmd(ctx cli.Context) *cobra.Command {
    	namespace = ctx.Namespace()
    	workloadCmd := &cobra.Command{
    		Use:   "workload",
    		Short: "Commands to assist in configuring and deploying workloads running on VMs and other non-Kubernetes environments",
    		Example: `  # workload group yaml generation
      istioctl x workload group create
    
      # workload entry configuration generation
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                "maven.build.allowExpressionInEffectiveProjectVersion";
    
        public static final List<String> VALID_MODEL_VERSIONS =
                Collections.unmodifiableList(Arrays.asList("4.0.0", "4.1.0"));
    
        private static final Pattern EXPRESSION_NAME_PATTERN = Pattern.compile("\\$\\{(.+?)}");
        private static final Pattern EXPRESSION_PROJECT_NAME_PATTERN = Pattern.compile("\\$\\{(project.+?)}");
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
Back to top