Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 418 for roles (0.03 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. docs/metrics/prometheus/alerts.md

      - static_configs:
        - targets: ['localhost:9093']
    rule_files:
      - rules.yml
    ```
    Here `rules.yml` is the file which should contain the alerting rules defined.
    
    ## Add rules for your deployment
    Below is a sample alerting rules configuration for MinIO. Refer https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/ for more instructions on writing alerting rules for Prometheus.
    
    ```yaml
    groups:
    - name: example
      rules:
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 23 15:13:23 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  3. tests/scanner_valuer_test.go

    	}
    }
    
    type Role struct {
    	Name string `gorm:"size:256"`
    }
    
    func (role *Role) Scan(value interface{}) error {
    	if b, ok := value.([]uint8); ok {
    		role.Name = string(b)
    	} else {
    		role.Name = value.(string)
    	}
    	return nil
    }
    
    func (role Role) Value() (driver.Value, error) {
    	return role.Name, nil
    }
    
    func (role Role) IsAdmin() bool {
    	return role.Name == "admin"
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/resources/org/apache/maven/artifact/resolver/ArtifactResolverTest.xml

              <role>org.codehaus.plexus.PlexusContainer</role>
              <role-hint>default</role-hint>
              <field-name>container</field-name>
            </requirement>
            <requirement>
              <role>org.apache.maven.plugin.LegacySupport</role>
              <role-hint>default</role-hint>
              <field-name>legacySupport</field-name>
            </requirement>
            <requirement>
              <role>org.eclipse.aether.RepositorySystem</role>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  5. logger/sql_test.go

    	return escaper + strings.ReplaceAll(string(v), escaper, escaper+escaper) + escaper
    }
    
    func TestExplainSQL(t *testing.T) {
    	type role string
    	type password []byte
    	type intType int
    	type floatType float64
    	var (
    		tt                 = now.MustParse("2020-02-23 11:10:10")
    		myrole             = role("admin")
    		pwd                = password("pass")
    		jsVal              = []byte(`{"Name":"test","Val":"test"}`)
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  6. compat/maven-compat/src/test/resources/org/apache/maven/artifact/manager/DefaultWagonManagerTest.xml

          <role>org.apache.maven.wagon.Wagon</role>
          <role-hint>b2</role-hint>
          <implementation>org.apache.maven.artifact.manager.WagonB</implementation>
        </component>
        <component>
          <role>org.apache.maven.wagon.Wagon</role>
          <role-hint>c</role-hint>
          <implementation>org.apache.maven.artifact.manager.WagonC</implementation>
        </component>
        <component>
          <role>org.apache.maven.wagon.Wagon</role>
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  7. internal/arn/arn_test.go

    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio:iam:us-east-1::role/my-role",
    		},
    		{
    			arn: ARN{
    				Partition:    "minio",
    				Service:      "",
    				Region:       "us-east-1",
    				ResourceType: "role",
    				ResourceID:   "my-role",
    			},
    			want: "arn:minio::us-east-1::role/my-role",
    		},
    	}
    	for _, tt := range tests {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Apr 04 08:31:34 GMT 2024
    - 5.1K bytes
    - Click Count (0)
  8. CHANGELOG/CHANGELOG-1.29.md

    - Drop additional rule requirement (cronjobs/finalizers) in the roles who use kubectl create cronjobs to be backwards compatible ([#124883](https://github.com/kubernetes/kubernetes/pull/124883), [@ardaguclu](https://github.com/ardaguclu)) [SIG CLI]
    Created: Fri Dec 26 09:05:12 GMT 2025
    - Last Modified: Wed Mar 12 00:36:01 GMT 2025
    - 429.6K bytes
    - Click Count (1)
  9. internal/event/config.go

    	for _, rule := range rules.Rules {
    		if nameSet.Contains(rule.Name) {
    			if rule.Name == "prefix" {
    				return &ErrFilterNamePrefix{}
    			}
    
    			return &ErrFilterNameSuffix{}
    		}
    
    		nameSet.Add(rule.Name)
    	}
    
    	*ruleList = FilterRuleList(rules)
    	return nil
    }
    
    func (ruleList FilterRuleList) isEmpty() bool {
    	return len(ruleList.Rules) == 0
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParser.java

         *
         * @param version the version string to parse, must not be {@code null}
         * @return the parsed version, never {@code null}
         * @throws VersionParserException if the string violates the syntax rules of this scheme
         * @see org.apache.maven.api.Session#parseVersion(String)
         */
        @Nonnull
        Version parseVersion(@Nonnull String version);
    
        /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 2.7K bytes
    - Click Count (0)
Back to Top