...

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

View as plain text