...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model__component_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 ComponentGet200Response struct {
    13  
    14  	// Description of the component. This is the same as output of 'odo describe component -o json'
    15  	Component map[string]interface{} `json:"component,omitempty"`
    16  }
    17  
    18  // AssertComponentGet200ResponseRequired checks if the required fields are not zero-ed
    19  func AssertComponentGet200ResponseRequired(obj ComponentGet200Response) error {
    20  	return nil
    21  }
    22  
    23  // AssertRecurseComponentGet200ResponseRequired recursively checks if required fields are not zero-ed in a nested slice.
    24  // Accepts only nested slice of ComponentGet200Response (e.g. [][]ComponentGet200Response), otherwise ErrTypeAssertionError is thrown.
    25  func AssertRecurseComponentGet200ResponseRequired(objSlice interface{}) error {
    26  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    27  		aComponentGet200Response, ok := obj.(ComponentGet200Response)
    28  		if !ok {
    29  			return ErrTypeAssertionError
    30  		}
    31  		return AssertComponentGet200ResponseRequired(aComponentGet200Response)
    32  	})
    33  }
    34  

View as plain text