Files
odo/pkg/apiserver-gen/go/model__devfile_get_200_response.go
Philippe Martin 2c3d2ea0b1 Add /devfile PUT and GET endpoints (#6950)
* Serve /devfile

* Implement /devfile endpoints

* Load/Save devfile from UI

* Required metadata fields in the response

* Add an Apply button on 1st tab

* Fix: validate new devfile, not previous one

* Add generated UI files to gitattributes file

* Fix rebase
2023-07-06 12:30:48 -04:00

32 lines
1008 B
Go
Generated

/*
* odo dev
*
* API interface for 'odo dev'
*
* API version: 0.1
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
type DevfileGet200Response struct {
Content string `json:"content,omitempty"`
}
// AssertDevfileGet200ResponseRequired checks if the required fields are not zero-ed
func AssertDevfileGet200ResponseRequired(obj DevfileGet200Response) error {
return nil
}
// AssertRecurseDevfileGet200ResponseRequired recursively checks if required fields are not zero-ed in a nested slice.
// Accepts only nested slice of DevfileGet200Response (e.g. [][]DevfileGet200Response), otherwise ErrTypeAssertionError is thrown.
func AssertRecurseDevfileGet200ResponseRequired(objSlice interface{}) error {
return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
aDevfileGet200Response, ok := obj.(DevfileGet200Response)
if !ok {
return ErrTypeAssertionError
}
return AssertDevfileGet200ResponseRequired(aDevfileGet200Response)
})
}