Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 253 for a_uuid (0.08 seconds)

  1. 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)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 37.3K bytes
    - Click Count (0)
  2. 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)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/advanced/response-directly.md

    ## 在 `Response` 中使用 `jsonable_encoder` { #using-the-jsonable-encoder-in-a-response }
    
    因為 **FastAPI** 不會對你回傳的 `Response` 做任何更動,你需要自行確保它的內容已經準備好。
    
    例如,你不能直接把一個 Pydantic 模型放進 `JSONResponse`,需要先把它轉成 `dict`,並將所有資料型別(像是 `datetime`、`UUID` 等)轉成與 JSON 相容的型別。
    
    在這些情況下,你可以先用 `jsonable_encoder` 把資料轉好,再傳給回應物件:
    
    {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *}
    
    /// note | 技術細節
    
    你也可以使用 `from starlette.responses import JSONResponse`。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  4. 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:
    
    {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. schema/naming.go

    	commonInitialisms         = []string{"API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "LHS", "QPS", "RAM", "RHS", "RPC", "SLA", "SMTP", "SSH", "TLS", "TTL", "UID", "UI", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XSRF", "XSS"}
    	commonInitialismsReplacer *strings.Replacer
    )
    
    func init() {
    	commonInitialismsForReplacer := make([]string, 0, len(commonInitialisms))
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed Jun 12 03:46:59 GMT 2024
    - 5.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                DcerpcBind bindWithParams = new DcerpcBind(mockBinding, mockHandle);
    
                // When/Then - Expect NPE due to UUID.encode() limitations
                assertThrows(NullPointerException.class, () -> {
                    bindWithParams.encode_in(mockBuffer);
                }, "Should fail on UUID encoding");
            }
        }
    
        @Nested
        @DisplayName("Decoding Tests")
        class DecodingTests {
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  7. 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"
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 37K bytes
    - Click Count (1)
  8. .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 {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Oct 16 01:27:05 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  9. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

    import java.util.Queue;
    import java.util.Random;
    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import java.util.TreeMap;
    import java.util.TreeSet;
    import java.util.UUID;
    import java.util.concurrent.BlockingDeque;
    import java.util.concurrent.BlockingQueue;
    import java.util.concurrent.ConcurrentMap;
    import java.util.concurrent.ConcurrentNavigableMap;
    import java.util.concurrent.DelayQueue;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  10. docs/ko/docs/advanced/response-directly.md

    ## `Response`에서 `jsonable_encoder` 사용하기 { #using-the-jsonable-encoder-in-a-response }
    
    **FastAPI**는 반환하는 `Response`에 아무런 변경도 하지 않으므로, 그 내용이 준비되어 있는지 확인해야 합니다.
    
    예를 들어, Pydantic 모델을 먼저 `dict`로 변환하고 `datetime`, `UUID` 등의 모든 데이터 타입을 JSON 호환 타입으로 변환하지 않으면 Pydantic 모델을 `JSONResponse`에 넣을 수 없습니다.
    
    이러한 경우, 데이터를 응답에 전달하기 전에 `jsonable_encoder`를 사용하여 변환할 수 있습니다:
    
    {* ../../docs_src/response_directly/tutorial001_py310.py hl[5:6,20:21] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 4.7K bytes
    - Click Count (0)
Back to Top