...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model__devstate_composite_command_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 DevstateCompositeCommandPostRequest struct {
    13  
    14  	// Name of the command
    15  	Name string `json:"name,omitempty"`
    16  
    17  	Parallel bool `json:"parallel,omitempty"`
    18  
    19  	Commands []string `json:"commands,omitempty"`
    20  }
    21  
    22  // AssertDevstateCompositeCommandPostRequestRequired checks if the required fields are not zero-ed
    23  func AssertDevstateCompositeCommandPostRequestRequired(obj DevstateCompositeCommandPostRequest) error {
    24  	return nil
    25  }
    26  
    27  // AssertRecurseDevstateCompositeCommandPostRequestRequired recursively checks if required fields are not zero-ed in a nested slice.
    28  // Accepts only nested slice of DevstateCompositeCommandPostRequest (e.g. [][]DevstateCompositeCommandPostRequest), otherwise ErrTypeAssertionError is thrown.
    29  func AssertRecurseDevstateCompositeCommandPostRequestRequired(objSlice interface{}) error {
    30  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    31  		aDevstateCompositeCommandPostRequest, ok := obj.(DevstateCompositeCommandPostRequest)
    32  		if !ok {
    33  			return ErrTypeAssertionError
    34  		}
    35  		return AssertDevstateCompositeCommandPostRequestRequired(aDevstateCompositeCommandPostRequest)
    36  	})
    37  }
    38  

View as plain text