Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1471 - 1480 of 6,777 for RETURN (0.07 sec)

  1. tests/test_response_model_data_filter.py

    @app.post("/users/", response_model=UserBase)
    async def create_user(user: UserCreate):
        return user
    
    
    @app.get("/pets/{pet_id}", response_model=PetOut)
    async def read_pet(pet_id: int):
        user = UserDB(
            email="******@****.***",
            hashed_password="secrethashed",
        )
        pet = PetDB(name="Nibbler", owner=user)
        return pet
    
    
    @app.get("/pets/", response_model=List[PetOut])
    async def read_pets():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. internal/bucket/replication/replication.go

    		}
    	}
    	sort.Slice(rules, func(i, j int) bool {
    		return rules[i].Priority > rules[j].Priority && rules[i].Destination.String() == rules[j].Destination.String()
    	})
    
    	return rules
    }
    
    // GetDestination returns destination bucket and storage class.
    func (c Config) GetDestination() Destination {
    	if len(c.Rules) > 0 {
    		return c.Rules[0].Destination
    	}
    	return Destination{}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. internal/config/identity/openid/openid.go

    	return provider.User{ID: userid, Enabled: true}, nil
    }
    
    // ProviderEnabled returns true if any vendor specific provider is enabled.
    func (r Config) ProviderEnabled() bool {
    	if !r.Enabled {
    		return false
    	}
    	for _, v := range r.arnProviderCfgsMap {
    		if v.provider != nil {
    			return true
    		}
    	}
    	return false
    }
    
    // GetRoleInfo - returns ARN to policies map if a role policy based openID
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 10 20:16:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSetMultimap.java

            Entry<?, ?> entry = (Entry<?, ?>) object;
            return multimap.containsEntry(entry.getKey(), entry.getValue());
          }
          return false;
        }
    
        @Override
        public int size() {
          return multimap.size();
        }
    
        @Override
        public UnmodifiableIterator<Entry<K, V>> iterator() {
          return multimap.entryIterator();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/ntlmssp/Type3Message.java

            return flags;
        }
    
    
        /**
         * Returns the LanManager/LMv2 response.
         *
         * @return A <code>byte[]</code> containing the LanManager response.
         */
        public byte[] getLMResponse () {
            return this.lmResponse;
        }
    
    
        /**
         * Sets the LanManager/LMv2 response for this message.
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 30.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/Strings.java

    
        /**
         * 
         * @param str
         * @param encoding
         * @return encoded
         */
        public static byte[] getBytes ( String str, Charset encoding ) {
            if ( str == null ) {
                return new byte[0];
            }
            return str.getBytes(encoding);
        }
    
    
        /**
         * 
         * @param str
         * @return the string as bytes (UTF16-LE)
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe.go

    			facts = append(facts, trafficMatch.String())
    		}
    	}
    
    	return match, facts
    }
    
    func renderStringMatch(sm *v1alpha3.StringMatch) string {
    	if sm == nil {
    		return ""
    	}
    
    	switch x := sm.MatchType.(type) {
    	case *v1alpha3.StringMatch_Exact:
    		return x.Exact
    	case *v1alpha3.StringMatch_Prefix:
    		return x.Prefix + "*"
    	}
    
    	return sm.String()
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

        SmbComNegotiateResponse( SmbTransport.ServerData server ) {
            this.server = server;
        }
    
        int writeParameterWordsWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int writeBytesWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int readParameterWordsWireFormat( byte[] buffer,
                                        int bufferIndex ) {
            int start = bufferIndex;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    # Dependencies in path operation decorators
    
    In some cases you don't really need the return value of a dependency inside your *path operation function*.
    
    Or the dependency doesn't return a value.
    
    But you still need it to be executed/solved.
    
    For those cases, instead of declaring a *path operation function* parameter with `Depends`, you can add a `list` of `dependencies` to the *path operation decorator*.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

      }
    
      /**
       * Used by tests that require a map, but don't care whether it's populated or not.
       *
       * @return a new map instance.
       */
      protected Map<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return makeEmptyMap();
        }
      }
    
      protected final boolean supportsValuesHashCode(Map<K, V> map) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
Back to top