...

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

View as plain text