mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* [api/devstate] Add volumes to Devfile content * Add Volume related endpoints to API * Create/Delete volumes from the Volumes Tab * Update UI static files * API Devstate returns VolumeMounts * Display volume mounts in containers * [api] Add VolumeMounts to containers * [ui] Define container's volume mounts * [ui] e2e tests * Update UI static files * [ui] create volumes from container / exec command creation * Update UI static files * Update container display * Update UI static files * Regenerate UI static files
40 lines
1.2 KiB
Go
Generated
40 lines
1.2 KiB
Go
Generated
/*
|
|
* odo dev
|
|
*
|
|
* API interface for 'odo dev'
|
|
*
|
|
* API version: 0.1
|
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
|
*/
|
|
|
|
package openapi
|
|
|
|
type DevstateVolumePostRequest struct {
|
|
|
|
// Name of the volume
|
|
Name string `json:"name,omitempty"`
|
|
|
|
// Minimal size of the volume
|
|
Size string `json:"size,omitempty"`
|
|
|
|
// True if the Volume is Ephemeral
|
|
Ephemeral bool `json:"ephemeral,omitempty"`
|
|
}
|
|
|
|
// AssertDevstateVolumePostRequestRequired checks if the required fields are not zero-ed
|
|
func AssertDevstateVolumePostRequestRequired(obj DevstateVolumePostRequest) error {
|
|
return nil
|
|
}
|
|
|
|
// AssertRecurseDevstateVolumePostRequestRequired recursively checks if required fields are not zero-ed in a nested slice.
|
|
// Accepts only nested slice of DevstateVolumePostRequest (e.g. [][]DevstateVolumePostRequest), otherwise ErrTypeAssertionError is thrown.
|
|
func AssertRecurseDevstateVolumePostRequestRequired(objSlice interface{}) error {
|
|
return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
|
|
aDevstateVolumePostRequest, ok := obj.(DevstateVolumePostRequest)
|
|
if !ok {
|
|
return ErrTypeAssertionError
|
|
}
|
|
return AssertDevstateVolumePostRequestRequired(aDevstateVolumePostRequest)
|
|
})
|
|
}
|