...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model__devstate_resource_post_request.go

Documentation: github.com/redhat-developer/odo/pkg/apiserver-gen/go

     1  /*
     2   * odo dev
     3   *
     4   * API interface for 'odo dev'
     5   *
     6   * API version: 0.1
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package openapi
    11  
    12  type DevstateResourcePostRequest struct {
    13  
    14  	// Name of the resource
    15  	Name string `json:"name,omitempty"`
    16  
    17  	Inlined string `json:"inlined,omitempty"`
    18  
    19  	Uri string `json:"uri,omitempty"`
    20  
    21  	DeployByDefault string `json:"deployByDefault,omitempty"`
    22  }
    23  
    24  // AssertDevstateResourcePostRequestRequired checks if the required fields are not zero-ed
    25  func AssertDevstateResourcePostRequestRequired(obj DevstateResourcePostRequest) error {
    26  	return nil
    27  }
    28  
    29  // AssertRecurseDevstateResourcePostRequestRequired recursively checks if required fields are not zero-ed in a nested slice.
    30  // Accepts only nested slice of DevstateResourcePostRequest (e.g. [][]DevstateResourcePostRequest), otherwise ErrTypeAssertionError is thrown.
    31  func AssertRecurseDevstateResourcePostRequestRequired(objSlice interface{}) error {
    32  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    33  		aDevstateResourcePostRequest, ok := obj.(DevstateResourcePostRequest)
    34  		if !ok {
    35  			return ErrTypeAssertionError
    36  		}
    37  		return AssertDevstateResourcePostRequestRequired(aDevstateResourcePostRequest)
    38  	})
    39  }
    40  

View as plain text