Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ut_user (0.08 sec)

  1. docs/em/docs/tutorial/sql-databases.md

    ```Python hl_lines="2  15  26"
    {!../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    🕐❔ 🔐 🔢 `items` `User`, `my_user.items`, ⚫️ 🔜 ✔️ 📇 `Item` 🇸🇲 🏷 (⚪️➡️ `items` 🏓) 👈 ✔️ 💱 🔑 ☝ 👉 ⏺ `users` 🏓.
    
    🕐❔ 👆 🔐 `my_user.items`, 🇸🇲 🔜 🤙 🚶 & ☕ 🏬 ⚪️➡️ 💽 `items` 🏓 & 🔗 👫 📥.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    	defer store.unlock()
    
    	// Load existing policy mapping
    	var mp MappedPolicy
    	if !isGroup {
    		if userType == stsUser {
    			stsMap := xsync.NewMapOf[string, MappedPolicy]()
    
    			// Attempt to load parent user mapping for STS accounts
    			store.loadMappedPolicy(context.TODO(), name, stsUser, false, stsMap)
    
    			mp, _ = stsMap.Load(name)
    		} else {
    			mp, _ = cache.iamUserPolicyMap.Load(name)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/sql-databases.md

    这将或多或少会成为一种“神奇”属性,其中表示该表与其他相关的表中的值。
    
    ```Python hl_lines="2  15  26"
    {!../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    当访问 user 中的属性`items`时,如 中`my_user.items`,它将有一个`Item`SQLAlchemy 模型列表(来自`items`表),这些模型具有指向`users`表中此记录的外键。
    
    当您访问`my_user.items`时,SQLAlchemy 实际上会从`items`表中的获取一批记录并在此处填充进去。
    
    同样,当访问 Item中的属性`owner`时,它将包含表中的`User`SQLAlchemy 模型`users`。使用`owner_id`属性/列及其外键来了解要从`users`表中获取哪条记录。
    
    ## 创建 Pydantic 模型
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  4. cmd/iam-object-store.go

    	var basePrefix string
    	switch userType {
    	case svcUser:
    		basePrefix = iamConfigServiceAccountsPrefix
    	case stsUser:
    		basePrefix = iamConfigSTSPrefix
    	default:
    		basePrefix = iamConfigUsersPrefix
    	}
    
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  5. cmd/iam.go

    		var oldDN string
    		if isGroup {
    			oldDN = r.Group
    		} else {
    			oldDN = r.User
    		}
    		if oldDN != dn {
    			sys.store.PolicyDBUpdate(ctx, oldDN, isGroup, stsUser, r.Policies, isAttach)
    		}
    	}
    
    	userType := stsUser
    	updatedAt, addedOrRemoved, effectivePolicies, err = sys.store.PolicyDBUpdate(
    		ctx, dn, isGroup, userType, r.Policies, isAttach)
    	if err != nil {
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  6. docs/nl/docs/features.md

        return user_id
    
    
    # Een Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    Vervolgens kan je het op deze manier gebruiken:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    second_user_data = {
        "id": 4,
        "name": "Mary",
        "joined": "2018-11-30",
    }
    
    my_second_user: User = User(**second_user_data)
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 03 13:50:38 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users.go

    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    	}
    
    	userType := regUser
    	if globalIAMSys.GetUsersSysType() == LDAPUsersSysType {
    		userType = stsUser
    
    		// Validate that the user or group exists in LDAP and use the normalized
    		// form of the entityName (which will be an LDAP DN).
    		var err error
    		if isGroup {
    			var foundGroupDN *xldap.DNSearchResult
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    	}
    
    	temp, err := strconv.ParseBool(mss.Get(peerRESTUserTemp))
    	if err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	userType := regUser
    	if temp {
    		userType = stsUser
    	}
    
    	if err = globalIAMSys.LoadUser(context.Background(), objAPI, accessKey, userType); err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
Back to top