Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 136 for getUsers (0.17 sec)

  1. docs_src/sql_databases_peewee/sql_app/crud.py

    
    def get_user(user_id: int):
        return models.User.filter(models.User.id == user_id).first()
    
    
    def get_user_by_email(email: str):
        return models.User.filter(models.User.email == email).first()
    
    
    def get_users(skip: int = 0, limit: int = 100):
        return list(models.User.select().offset(skip).limit(limit))
    
    
    def create_user(user: schemas.UserCreate):
        fake_hashed_password = user.password + "notreallyhashed"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 843 bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/AbstractClassBackedManagedTypeIntegrationTest.groovy

            '''
    
            then:
            succeeds "echo"
    
            and:
            output.contains("name: foo")
        }
    
        def "managed type implemented as abstract class can have generative getters"() {
            when:
            buildScript '''
                @Managed
                abstract class Person {
                    abstract String getFirstName()
                    abstract void setFirstName(String firstName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. plugin/pkg/auth/authorizer/rbac/rbac.go

    			scope = fmt.Sprintf("in namespace %q", ns)
    		} else {
    			scope = "cluster-wide"
    		}
    
    		klogV.Infof("RBAC: no rules authorize user %q with groups %q to %s %s", requestAttributes.GetUser().GetName(), requestAttributes.GetUser().GetGroups(), operation, scope)
    	}
    
    	reason := ""
    	if len(ruleCheckingVisitor.errors) > 0 {
    		reason = fmt.Sprintf("RBAC: %v", utilerrors.NewAggregate(ruleCheckingVisitor.errors))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 24 10:13:50 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-groovy/src/integTest/groovy/org/gradle/integtests/GroovyToJavaConversionIntegrationTest.groovy

                            def properties = org.gradle.internal.reflect.ClassInspector.inspect(convertedClass).properties
                            properties.each { prop ->
                                if (prop.getters.find { it.declaringClass == convertedClass }) {
                                    println "Checking property \${prop.name} on \${convertedClass.name}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go

    )
    
    // Attributes is an interface used by an Authorizer to get information about a request
    // that is used to make an authorization decision.
    type Attributes interface {
    	// GetUser returns the user.Info object to authorize
    	GetUser() user.Info
    
    	// GetVerb returns the kube verb associated with API requests (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 14:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/builtin.go

    }
    
    func (r *privilegedGroupAuthorizer) Authorize(ctx context.Context, attr authorizer.Attributes) (authorizer.Decision, string, error) {
    	if attr.GetUser() == nil {
    		return authorizer.DecisionNoOpinion, "Error", errors.New("no user on request.")
    	}
    	for _, attr_group := range attr.GetUser().GetGroups() {
    		for _, priv_group := range r.groups {
    			if priv_group == attr_group {
    				return authorizer.DecisionAllow, "", nil
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 3.2K bytes
    - Viewed (0)
  7. tests/count_test.go

    		t.Errorf("Count with group should be 2, but got count: %v", count2)
    	}
    }
    
    func TestCount(t *testing.T) {
    	var (
    		user1                 = *GetUser("count-1", Config{})
    		user2                 = *GetUser("count-2", Config{})
    		user3                 = *GetUser("count-3", Config{})
    		users                 []User
    		count, count1, count2 int64
    	)
    
    	DB.Save(&user1).Save(&user2).Save(&user3)
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. docs_src/sql_databases/sql_app/crud.py

        return db.query(models.User).filter(models.User.id == user_id).first()
    
    
    def get_user_by_email(db: Session, email: str):
        return db.query(models.User).filter(models.User.email == email).first()
    
    
    def get_users(db: Session, skip: int = 0, limit: int = 100):
        return db.query(models.User).offset(skip).limit(limit).all()
    
    
    def create_user(db: Session, user: schemas.UserCreate):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 1K bytes
    - Viewed (0)
  9. src/internal/trace/reader_test.go

    			}
    			testReader(t, tr, exp)
    		})
    	}
    }
    
    func FuzzReader(f *testing.F) {
    	// Currently disabled because the parser doesn't do much validation and most
    	// getters can be made to panic. Turn this on once the parser is meant to
    	// reject invalid traces.
    	const testGetters = false
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		r, err := trace.NewReader(bytes.NewReader(b))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. tests/helper_test.go

    	}
    
    	if config.Company {
    		user.Company = Company{Name: "company-" + name}
    	}
    
    	if config.Manager {
    		user.Manager = GetUser(name+"_manager", Config{})
    	}
    
    	for i := 0; i < config.Team; i++ {
    		user.Team = append(user.Team, *GetUser(name+"_team_"+strconv.Itoa(i+1), Config{}))
    	}
    
    	for i := 0; i < config.Languages; i++ {
    		name := name + "_locale_" + strconv.Itoa(i+1)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top