...

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

View as plain text