Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 1,595 for uker (0.05 sec)

  1. tests/test_tutorial/test_response_model/test_tutorial003.py

    from fastapi.testclient import TestClient
    
    from docs_src.response_model.tutorial003 import app
    
    client = TestClient(app)
    
    
    def test_post_user():
        response = client.post(
            "/user/",
            json={
                "username": "foo",
                "password": "fighter",
                "email": "******@****.***",
                "full_name": "Grave Dohl",
            },
        )
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. docs_src/response_model/tutorial002.py

    
    class UserIn(BaseModel):
        username: str
        password: str
        email: EmailStr
        full_name: Union[str, None] = None
    
    
    # Don't do this in production!
    @app.post("/user/")
    async def create_user(user: UserIn) -> UserIn:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 07 13:45:48 UTC 2023
    - 350 bytes
    - Viewed (0)
  3. common-protos/k8s.io/api/authentication/v1/generated.proto

    }
    
    // UserInfo holds the information about the user needed to implement the
    // user.Info interface.
    message UserInfo {
      // The name that uniquely identifies this user among all active users.
      // +optional
      optional string username = 1;
    
      // A unique value that identifies this user across time. If this user is
      // deleted and another user by the same name is added, they will have
      // different UIDs.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. helm-releases/minio-4.0.15.tgz

    echo "credentials file is invalid" rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP return 1 fi USER=$(head -1 $MINIO_ACCESSKEY_SECRETKEY_TMP) # Create the user if it does not exist if ! checkUserExists ; then echo "Creating user '$USER'" cat $MINIO_ACCESSKEY_SECRETKEY_TMP | ${MC} admin user add myminio else echo "User '$USER' already exists." fi #clean up credentials files. rm -f $MINIO_ACCESSKEY_SECRETKEY_TMP # set policy for user if [ ! -z $POLICY -a $POLICY != " " ] ; then echo "Adding policy '$POLICY' for '$USER'"...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 21 11:07:01 UTC 2022
    - 20K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_response_model/test_tutorial003_01_py310.py

        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/user/": {
                    "post": {
                        "summary": "Create User",
                        "operationId": "create_user_user__post",
                        "requestBody": {
                            "content": {
                                "application/json": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 04 20:47:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. docs_src/generate_clients/tutorial003.py

            {"name": "Plumbus", "price": 3},
            {"name": "Portal Gun", "price": 9001},
        ]
    
    
    @app.post("/users/", response_model=ResponseMessage, tags=["users"])
    async def create_user(user: User):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Mar 04 22:02:18 UTC 2022
    - 939 bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/annotations/Parameter.java

        /**
         * Specifies that this parameter cannot be configured directly by the user (as in the case of POM-specified
         * configuration). This is useful when you want to force the user to use common POM elements rather than plugin
         * configurations, as in the case where you want to use the artifact's final name as a parameter. In this case, you
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Feb 05 09:45:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. cmd/sftp-server_test.go

    	accessKey, secretKey := mustGenerateCredentials(c)
    	err := s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    
    	userReq := madmin.PolicyAssociationReq{
    		Policies: []string{"readwrite"},
    		User:     accessKey,
    	}
    	if _, err := s.adm.AttachPolicy(ctx, userReq); err != nil {
    		c.Fatalf("Unable to attach policy: %v", err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. helm-releases/minio-4.0.2.tgz

    active return 0 } # checkUserExists ($username) # Check if the user exists, by using the exit code of `mc admin user info` checkUserExists() { USER=$1 CMD=$(${MC} admin user info myminio $USER > /dev/null 2>&1) return $? } # createUser ($username, $password, $policy) createUser() { USER=$1 PASS=$2 POLICY=$3 # Create the user if it does not exist if ! checkUserExists $USER ; then echo "Creating user '$USER'" ${MC} admin user add myminio $USER $PASS else echo "User '$USER' already exists." fi # set policy...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon May 09 04:25:47 UTC 2022
    - 18K bytes
    - Viewed (0)
  10. helm-releases/minio-4.0.3.tgz

    active return 0 } # checkUserExists ($username) # Check if the user exists, by using the exit code of `mc admin user info` checkUserExists() { USER=$1 CMD=$(${MC} admin user info myminio $USER > /dev/null 2>&1) return $? } # createUser ($username, $password, $policy) createUser() { USER=$1 PASS=$2 POLICY=$3 # Create the user if it does not exist if ! checkUserExists $USER ; then echo "Creating user '$USER'" ${MC} admin user add myminio $USER $PASS else echo "User '$USER' already exists." fi # set policy...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 08 06:16:22 UTC 2022
    - 18K bytes
    - Viewed (0)
Back to top