Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 22 for Role (0.02 seconds)

  1. tests/test_schema_compat_pydantic_v2.py

            username: str
            role: PlatformRole | OtherRole
    
        @app.get("/users")
        async def get_user() -> User:
            return {"username": "alice", "role": "admin"}
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_get(client: TestClient):
        response = client.get("/users")
        assert response.json() == {"username": "alice", "role": "admin"}
    
    
    @needs_py310
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. tests/test_jsonable_encoder.py

        data = ModelV1(name="test")
        with pytest.raises(PydanticV1NotSupportedError):
            jsonable_encoder(data)
    
    
    def test_encode_model_with_config():
        model = ModelWithConfig(role=RoleEnum.admin)
        assert jsonable_encoder(model) == {"role": "admin"}
    
    
    def test_encode_model_with_alias_raises():
        with pytest.raises(ValidationError):
            ModelWithAlias(foo="Bar")
    
    
    def test_encode_model_with_alias():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  3. internal/arn/arn.go

    //
    // Reference: https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
    
    const (
    	arnPrefixArn        = "arn"
    	arnPartitionMinio   = "minio"
    	arnServiceIAM       = "iam"
    	arnResourceTypeRole = "role"
    )
    
    // ARN - representation of resources based on AWS ARNs.
    type ARN struct {
    	Partition    string
    	Service      string
    	Region       string
    	ResourceType string
    	ResourceID   string
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  4. .github/workflows/update-test-buckets.yml

        steps:
          - name: Checkout repository
            uses: actions/checkout@v6
          - name: configure aws credentials
            uses: aws-actions/configure-aws-credentials@v6
            with:
              role-to-assume: arn:aws:iam::992382829881:role/GHASecrets_gradle_all
              aws-region: "eu-central-1"
          - name: get secrets
            uses: aws-actions/aws-secretsmanager-get-secrets@v2
            with:
              secret-ids: |
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 09 22:14:16 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. .github/workflows/update-perf-test-buckets.yml

        steps:
          - name: Checkout repository
            uses: actions/checkout@v6
          - name: configure aws credentials
            uses: aws-actions/configure-aws-credentials@v6
            with:
              role-to-assume: arn:aws:iam::992382829881:role/GHASecrets_gradle_all
              aws-region: "eu-central-1"
          - name: get secrets
            uses: aws-actions/aws-secretsmanager-get-secrets@v2
            with:
              secret-ids: |
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 09 22:14:16 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  6. .github/workflows/validate-codeowners.yml

            if: (github.event_name != 'pull_request' && github.repository_owner == 'gradle') || github.event.pull_request.head.repo.full_name == github.repository
            with:
              role-to-assume: arn:aws:iam::992382829881:role/GHASecrets_gradle_all
              secret-ids: |
                ORG_TEAM_GITHUB_ACCESS_TOKEN, gha/gradle/_all/ORG_TEAM_GITHUB_ACCESS_TOKEN
    
          - uses: actions/checkout@v6
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Nov 20 22:15:20 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  7. .github/workflows/cleanup-stale-performance-data.yml

          - name: Checkout repository
            uses: actions/checkout@v6
          
          - name: Configure AWS credentials
            uses: aws-actions/configure-aws-credentials@v6
            with:
              role-to-assume: arn:aws:iam::992382829881:role/GHASecrets_gradle_all
              aws-region: "eu-central-1"
          
          - name: Get secrets
            uses: aws-actions/aws-secretsmanager-get-secrets@v2
            with:
              secret-ids: |
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Nov 20 22:15:20 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

                    <br>
                    <p>
                    If you did this intentionally, please accept the change and provide an explanation:
                    <a class="btn btn-info" role="button" data-toggle="collapse" href="#accept-${changeId}" aria-expanded="false" aria-controls="collapseExample">Accept this change</a>
                    <div class="collapse" id="accept-${changeId}">
                      <div class="well">
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  9. cmd/iam.go

    		err = sys.store.PolicyMappingNotificationHandler(ctx, user, true, regUser)
    	}
    	return err
    }
    
    // HasRolePolicy - returns if a role policy is configured for IAM.
    func (sys *IAMSys) HasRolePolicy() bool {
    	return len(sys.rolesMap) > 0
    }
    
    // GetRolePolicy - returns policies associated with a role ARN.
    func (sys *IAMSys) GetRolePolicy(arnStr string) (arn.ARN, string, error) {
    	roleArn, err := arn.Parse(arnStr)
    	if err != nil {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 76.5K bytes
    - Click Count (0)
  10. cmd/sts-handlers_test.go

    				suite.TearDownSuite(c)
    			},
    		)
    	}
    }
    
    const (
    	testRoleARN  = "arn:minio:iam:::role/nOybJqMNzNmroqEKq5D0EUsRZw0"
    	testRoleARN2 = "arn:minio:iam:::role/domXb70kze7Ugc1SaxaeFchhLP4"
    )
    
    var (
    	testRoleARNs = []string{testRoleARN, testRoleARN2}
    
    	// Load test client app and test role mapping depending on test
    	// environment.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 103.4K bytes
    - Click Count (1)
Back to Top