Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 486 for uuid (0.05 sec)

  1. docs/en/docs/advanced/response-directly.md

    For example, you cannot put a Pydantic model in a `JSONResponse` without first converting it to a `dict` with all the data types (like `datetime`, `UUID`, etc) converted to JSON-compatible types.
    
    For those cases, you can use the `jsonable_encoder` to convert your data before passing it to a response:
    
    ```Python hl_lines="6-7  21-22"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. cmd/rebalance-admin.go

    }
    
    // rebalanceAdminStatus holds rebalance status related information exported to mc, console, etc.
    type rebalanceAdminStatus struct {
    	ID        string                // identifies the ongoing rebalance operation by a uuid
    	Pools     []rebalancePoolStatus `json:"pools"` // contains all pools, including inactive
    	StoppedAt time.Time             `json:"stoppedAt,omitempty"`
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Dec 22 00:56:43 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. cmd/erasure-sets.go

    import (
    	"context"
    	"encoding/binary"
    	"errors"
    	"fmt"
    	"hash/crc32"
    	"math/rand"
    	"net/http"
    	"reflect"
    	"strings"
    	"sync"
    	"time"
    
    	"github.com/dchest/siphash"
    	"github.com/google/uuid"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio-go/v7/pkg/set"
    	"github.com/minio/minio-go/v7/pkg/tags"
    	"github.com/minio/minio/internal/dsync"
    	"github.com/minio/minio/internal/logger"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (1)
  4. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

                    "Not defined: $it"
                )
            }
        }
    
        @Test
        fun uuidsAreUnique() {
            val uuidList = model.stages.flatMap { it.functionalTests.map { ft -> ft.uuid } }
            assertEquals(uuidList.distinct(), uuidList)
        }
    
        @Test
        fun testsAreCorrectlyConfiguredForAllSubProjects() {
            model.subprojects.subprojects.filter {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 18 07:02:47 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. cmd/object-api-utils.go

    	}
    
    	return false
    }
    
    // mustGetUUID - get a random UUID.
    func mustGetUUID() string {
    	u, err := uuid.NewRandom()
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    
    	return u.String()
    }
    
    // mustGetUUIDBytes - get a random UUID as 16 bytes unencoded.
    func mustGetUUIDBytes() []byte {
    	u, err := uuid.NewRandom()
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_test.go

    	if err := xl2.Load(trimmed); err == nil {
    		t.Fatal("metadata corruption not detected")
    	}
    }
    
    // TestUsesDataDir tests xlMetaV2.UsesDataDir
    func TestUsesDataDir(t *testing.T) {
    	vID := uuid.New()
    	dataDir := uuid.New()
    	transitioned := make(map[string][]byte)
    	transitioned[ReservedMetadataPrefixLower+TransitionStatus] = []byte(lifecycle.TransitionComplete)
    
    	toBeRestored := make(map[string]string)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

        private val buckets: Map<TestCoverage, List<BuildTypeBucket>> by lazy {
            val uuidToTestCoverage = model.stages.flatMap { it.functionalTests }.associateBy { it.uuid }
            val testCoverageAndBuckets = JSON.parseArray(testBucketsJson.readText()) as JSONArray
            testCoverageAndBuckets.associate { testCoverageAndBucket ->
                testCoverageAndBucket as JSONObject
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 12 09:50:29 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/lifecycle_test.go

    package lifecycle
    
    import (
    	"bytes"
    	"encoding/xml"
    	"fmt"
    	"net/http"
    	"net/http/httptest"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/google/uuid"
    	"github.com/minio/minio/internal/bucket/object/lock"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    func TestParseAndValidateLifecycleConfig(t *testing.T) {
    	testCases := []struct {
    		inputConfig           string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/extra-data-types.md

    しかし、より複雑なデータ型を使用することもできます。
    
    そして、今まで見てきたのと同じ機能を持つことになります:
    
    * 素晴らしいエディタのサポート
    * 受信したリクエストからのデータ変換
    * レスポンスデータのデータ変換
    * データの検証
    * 自動注釈と文書化
    
    ## 他のデータ型
    
    ここでは、使用できる追加のデータ型のいくつかを紹介します:
    
    * `UUID`:
        * 多くのデータベースやシステムで共通のIDとして使用される、標準的な「ユニバーサルにユニークな識別子」です。
        * リクエストとレスポンスでは`str`として表現されます。
    * `datetime.datetime`:
        * Pythonの`datetime.datetime`です。
        * リクエストとレスポンスはISO 8601形式の`str`で表現されます: `2008-09-15T15:53:00+05:00`
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. docs/ko/docs/advanced/response-directly.md

    ## `Response`에서 `jsonable_encoder` 사용하기
    
    **FastAPI**는 반환하는 `Response`에 아무런 변환을 하지 않으므로, 그 내용이 준비되어 있어야 합니다.
    
    예를 들어, Pydantic 모델을 `dict`로 변환해 `JSONResponse`에 넣지 않으면 JSON 호환 유형으로 변환된 데이터 유형(예: `datetime`, `UUID` 등)이 사용되지 않습니다.
    
    이러한 경우, 데이터를 응답에 전달하기 전에 `jsonable_encoder`를 사용하여 변환할 수 있습니다:
    
    ```Python hl_lines="6-7 21-22"
    {!../../docs_src/response_directly/tutorial001.py!}
    ```
    
    /// note | "기술적 세부 사항"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 20:00:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top