Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 3,545 for getE (0.03 sec)

  1. cmd/bucket-versioning.go

    func (sys *BucketVersioningSys) PrefixSuspended(bucket, prefix string) bool {
    	vc, err := sys.Get(bucket)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    
    	return vc.PrefixSuspended(prefix)
    }
    
    // Get returns stored bucket policy
    func (sys *BucketVersioningSys) Get(bucket string) (*versioning.Versioning, error) {
    	if bucket == minioMetaBucket || strings.HasPrefix(bucket, minioMetaBucket) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_response_model/test_tutorial003_05_py310.py

    @needs_py310
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/portal": {
                    "get": {
                        "summary": "Get Portal",
                        "operationId": "get_portal_portal_get",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. tests/test_serialize_response.py

        name: str
        price: Optional[float] = None
        owner_ids: Optional[List[int]] = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return {"name": "valid", "price": 1.0}
    
    
    @app.get("/items/coerce", response_model=Item)
    def get_coerce():
        return {"name": "coerce", "price": "1.0"}
    
    
    @app.get("/items/validlist", response_model=List[Item])
    def get_validlist():
        return [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 03 12:29:07 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/SparseImmutableTable.java

          Cell<R, C, V> cell = cellList.get(i);
          R rowKey = cell.getRowKey();
          C columnKey = cell.getColumnKey();
          V value = cell.getValue();
    
          /*
           * These requireNonNull calls are safe because we construct the maps to hold all the provided
           * cells.
           */
          cellRowIndices[i] = requireNonNull(rowIndex.get(rowKey));
          Map<C, V> thisRow = requireNonNull(rows.get(rowKey));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial003_an.py

    
    def test_no_token():
        response = client.get("/users/me")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_token():
        response = client.get("/users/me", headers={"Authorization": "Bearer johndoe"})
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  6. internal/config/etcd/etcd.go

    		Level:    zap.NewAtomicLevelAt(zap.FatalLevel),
    		Encoding: "console",
    	}
    	cfg.Endpoints = etcdEndpoints
    	cfg.CoreDNSPath = env.Get(EnvEtcdCoreDNSPath, kvs.Get(CoreDNSPath))
    	// Default path prefix for all keys on etcd, other than CoreDNSPath.
    	cfg.PathPrefix = env.Get(EnvEtcdPathPrefix, kvs.Get(PathPrefix))
    	if etcdSecure {
    		cfg.TLS = &tls.Config{
    			RootCAs:                  rootCAs,
    			PreferServerCipherSuites: true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 23:17:22 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest.java

         * @return This request, never {@code null}.
         */
        MetadataResolutionRequest setOffline(boolean offline);
    
        /**
         * Gets the artifact to resolve metadata for.
         *
         * @return The artifact to resolve metadata for or {@code null} if not set.
         */
        Artifact getArtifact();
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        assertEquals(Integer.valueOf(20), map.get(10));
        assertEquals(Integer.valueOf(0), map.get(20));
        assertEquals(Integer.valueOf(1), map.get(30));
        assertEquals(Integer.valueOf(2), map.get(54));
        assertEquals(Integer.valueOf(3), map.get(443));
        assertEquals(Integer.valueOf(4), map.get(1));
        assertEquals(Integer.valueOf(5), cache.get(6));
        assertEquals(Integer.valueOf(6), cache.apply(7));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. tests/test_security_http_digest.py

    app = FastAPI()
    
    security = HTTPDigest()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_digest():
        response = client.get("/users/me", headers={"Authorization": "Digest foobar"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. tests/test_security_oauth2_authorization_code_bearer.py

    oauth2_scheme = OAuth2AuthorizationCodeBearer(
        authorizationUrl="authorize", tokenUrl="token", auto_error=True
    )
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        return {"token": token}
    
    
    client = TestClient(app)
    
    
    def test_no_token():
        response = client.get("/items")
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top