...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model__devstate_exec_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 DevstateExecCommandPostRequest struct {
    13  
    14  	// Name of the command
    15  	Name string `json:"name,omitempty"`
    16  
    17  	Component string `json:"component,omitempty"`
    18  
    19  	CommandLine string `json:"commandLine,omitempty"`
    20  
    21  	WorkingDir string `json:"workingDir,omitempty"`
    22  
    23  	HotReloadCapable bool `json:"hotReloadCapable,omitempty"`
    24  }
    25  
    26  // AssertDevstateExecCommandPostRequestRequired checks if the required fields are not zero-ed
    27  func AssertDevstateExecCommandPostRequestRequired(obj DevstateExecCommandPostRequest) error {
    28  	return nil
    29  }
    30  
    31  // AssertRecurseDevstateExecCommandPostRequestRequired recursively checks if required fields are not zero-ed in a nested slice.
    32  // Accepts only nested slice of DevstateExecCommandPostRequest (e.g. [][]DevstateExecCommandPostRequest), otherwise ErrTypeAssertionError is thrown.
    33  func AssertRecurseDevstateExecCommandPostRequestRequired(objSlice interface{}) error {
    34  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    35  		aDevstateExecCommandPostRequest, ok := obj.(DevstateExecCommandPostRequest)
    36  		if !ok {
    37  			return ErrTypeAssertionError
    38  		}
    39  		return AssertDevstateExecCommandPostRequestRequired(aDevstateExecCommandPostRequest)
    40  	})
    41  }
    42  

View as plain text