...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model__instance_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 InstanceGet200Response struct {
    13  
    14  	// Directory on which this 'odo dev' instance is running
    15  	ComponentDirectory string `json:"componentDirectory,omitempty"`
    16  
    17  	// PID of the this 'odo dev' instance.
    18  	Pid int32 `json:"pid,omitempty"`
    19  }
    20  
    21  // AssertInstanceGet200ResponseRequired checks if the required fields are not zero-ed
    22  func AssertInstanceGet200ResponseRequired(obj InstanceGet200Response) error {
    23  	return nil
    24  }
    25  
    26  // AssertRecurseInstanceGet200ResponseRequired recursively checks if required fields are not zero-ed in a nested slice.
    27  // Accepts only nested slice of InstanceGet200Response (e.g. [][]InstanceGet200Response), otherwise ErrTypeAssertionError is thrown.
    28  func AssertRecurseInstanceGet200ResponseRequired(objSlice interface{}) error {
    29  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    30  		aInstanceGet200Response, ok := obj.(InstanceGet200Response)
    31  		if !ok {
    32  			return ErrTypeAssertionError
    33  		}
    34  		return AssertInstanceGet200ResponseRequired(aInstanceGet200Response)
    35  	})
    36  }
    37  

View as plain text