...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model__devstate_image_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 DevstateImagePostRequest struct {
    13  
    14  	// Name of the image
    15  	Name string `json:"name,omitempty"`
    16  
    17  	ImageName string `json:"imageName,omitempty"`
    18  
    19  	Args []string `json:"args,omitempty"`
    20  
    21  	BuildContext string `json:"buildContext,omitempty"`
    22  
    23  	RootRequired bool `json:"rootRequired,omitempty"`
    24  
    25  	Uri string `json:"uri,omitempty"`
    26  
    27  	AutoBuild string `json:"autoBuild,omitempty"`
    28  }
    29  
    30  // AssertDevstateImagePostRequestRequired checks if the required fields are not zero-ed
    31  func AssertDevstateImagePostRequestRequired(obj DevstateImagePostRequest) error {
    32  	return nil
    33  }
    34  
    35  // AssertRecurseDevstateImagePostRequestRequired recursively checks if required fields are not zero-ed in a nested slice.
    36  // Accepts only nested slice of DevstateImagePostRequest (e.g. [][]DevstateImagePostRequest), otherwise ErrTypeAssertionError is thrown.
    37  func AssertRecurseDevstateImagePostRequestRequired(objSlice interface{}) error {
    38  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    39  		aDevstateImagePostRequest, ok := obj.(DevstateImagePostRequest)
    40  		if !ok {
    41  			return ErrTypeAssertionError
    42  		}
    43  		return AssertDevstateImagePostRequestRequired(aDevstateImagePostRequest)
    44  	})
    45  }
    46  

View as plain text