...

Source file src/github.com/redhat-developer/odo/pkg/apiserver-gen/go/model__devstate_volume_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 DevstateVolumePostRequest struct {
    13  
    14  	// Name of the volume
    15  	Name string `json:"name,omitempty"`
    16  
    17  	// Minimal size of the volume
    18  	Size string `json:"size,omitempty"`
    19  
    20  	// True if the Volume is Ephemeral
    21  	Ephemeral bool `json:"ephemeral,omitempty"`
    22  }
    23  
    24  // AssertDevstateVolumePostRequestRequired checks if the required fields are not zero-ed
    25  func AssertDevstateVolumePostRequestRequired(obj DevstateVolumePostRequest) error {
    26  	return nil
    27  }
    28  
    29  // AssertRecurseDevstateVolumePostRequestRequired recursively checks if required fields are not zero-ed in a nested slice.
    30  // Accepts only nested slice of DevstateVolumePostRequest (e.g. [][]DevstateVolumePostRequest), otherwise ErrTypeAssertionError is thrown.
    31  func AssertRecurseDevstateVolumePostRequestRequired(objSlice interface{}) error {
    32  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    33  		aDevstateVolumePostRequest, ok := obj.(DevstateVolumePostRequest)
    34  		if !ok {
    35  			return ErrTypeAssertionError
    36  		}
    37  		return AssertDevstateVolumePostRequestRequired(aDevstateVolumePostRequest)
    38  	})
    39  }
    40  

View as plain text