Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 5,776 for example2 (0.25 sec)

  1. tests/test_schema_extra_examples.py

                return item
    
        @app.post("/examples/")
        def examples(
            item: Item = Body(
                examples=[
                    {"data": "Data in Body examples, example1"},
                    {"data": "Data in Body examples, example2"},
                ],
            ),
        ):
            return item
    
        with pytest.warns(DeprecationWarning):
    
            @app.post("/example_examples/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 37.7K bytes
    - Viewed (0)
  2. src/reflect/internal/example2/example.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package example2
    
    type MyStruct struct {
    	MyStructs []MyStruct
    	MyStruct  *MyStruct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 14:05:53 UTC 2022
    - 246 bytes
    - Viewed (0)
  3. src/go/doc/testdata/examples/iota.go

    )
    
    const (
    	e = iota
    	f
    )
    
    // The example refers to only one of the constants in the iota group, but we
    // must keep all of them because of the iota. The second group of constants can
    // be trimmed. The third has an iota, but is unused, so it can be eliminated.
    
    func Example() {
    	_ = b
    	_ = d
    }
    
    // Need two examples to hit the playExample function.
    
    func Example2() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 23:13:45 UTC 2022
    - 596 bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/apis/example2/v1/generated.proto

    syntax = "proto2";
    
    package k8s.io.apiserver.pkg.apis.example2.v1;
    
    import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
    import "k8s.io/apimachinery/pkg/runtime/generated.proto";
    import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
    
    // Package-wide variables from generator "generated".
    option go_package = "k8s.io/apiserver/pkg/apis/example2/v1";
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. tests/test_openapi_examples.py

        data: str
    
    
    @app.post("/examples/")
    def examples(
        item: Item = Body(
            examples=[
                {"data": "Data in Body examples, example1"},
            ],
            openapi_examples={
                "Example One": {
                    "summary": "Example One Summary",
                    "description": "Example One Description",
                    "value": {"data": "Data in Body examples, example1"},
                },
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 17K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/apis/example2/zz_generated.deepcopy.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Code generated by deepcopy-gen. DO NOT EDIT.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 698 bytes
    - Viewed (0)
  7. api/api-rules/codegen_violation_exceptions.list

    API rule violation: names_match,k8s.io/code-generator/examples/apiserver/apis/example/v1,TestTypeStatus,Blah
    API rule violation: names_match,k8s.io/code-generator/examples/apiserver/apis/example2/v1,TestTypeStatus,Blah
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AnnotationProcessingSmokeTest.groovy

                import lombok.val;
    
                public class ValExample {
                  public String example() {
                    val example = new ArrayList<String>();
                    example.add("Hello, World!");
                    val foo = example.get(0);
                    return foo.toLowerCase();
                  }
    
                  public void example2() {
                    val map = new HashMap<Integer, String>();
                    map.put(0, "zero");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/conversion_test.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apiserver/pkg/apis/example"
    	examplev1 "k8s.io/apiserver/pkg/apis/example/v1"
    	example2v1 "k8s.io/apiserver/pkg/apis/example2/v1"
    )
    
    func initiateScheme(t *testing.T) *runtime.Scheme {
    	s := runtime.NewScheme()
    	require.NoError(t, example.AddToScheme(s))
    	require.NoError(t, examplev1.AddToScheme(s))
    	require.NoError(t, example2v1.AddToScheme(s))
    	return s
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/apis/example2/v1/generated.pb.go

    func init() {
    	proto.RegisterType((*ReplicaSet)(nil), "k8s.io.apiserver.pkg.apis.example2.v1.ReplicaSet")
    	proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.apiserver.pkg.apis.example2.v1.ReplicaSetSpec")
    	proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.apiserver.pkg.apis.example2.v1.ReplicaSetStatus")
    }
    
    func init() {
    	proto.RegisterFile("k8s.io/apiserver/pkg/apis/example2/v1/generated.proto", fileDescriptor_c0d8f6d73eb5bf83)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top