mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 08:25:03 +00:00
Convert the existing swagger2.0 file to a moden OpenAPI file. Add missing endpoitns and model definitions. Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
57 lines
1.2 KiB
Go
57 lines
1.2 KiB
Go
// This file is auto-generated, DO NOT EDIT.
|
|
//
|
|
// Source:
|
|
//
|
|
// Title: OpenFaaS API Gateway
|
|
// Version: 0.8.12
|
|
package models
|
|
|
|
import (
|
|
validation "github.com/go-ozzo/ozzo-validation/v4"
|
|
)
|
|
|
|
// VersionInfo is an object.
|
|
type VersionInfo struct {
|
|
// CommitMessage:
|
|
CommitMessage string `json:"commit_message,omitempty" mapstructure:"commit_message,omitempty"`
|
|
// Release:
|
|
Release string `json:"release" mapstructure:"release"`
|
|
// Sha:
|
|
Sha string `json:"sha" mapstructure:"sha"`
|
|
}
|
|
|
|
// Validate implements basic validation for this model
|
|
func (m VersionInfo) Validate() error {
|
|
return validation.Errors{}.Filter()
|
|
}
|
|
|
|
// GetCommitMessage returns the CommitMessage property
|
|
func (m VersionInfo) GetCommitMessage() string {
|
|
return m.CommitMessage
|
|
}
|
|
|
|
// SetCommitMessage sets the CommitMessage property
|
|
func (m *VersionInfo) SetCommitMessage(val string) {
|
|
m.CommitMessage = val
|
|
}
|
|
|
|
// GetRelease returns the Release property
|
|
func (m VersionInfo) GetRelease() string {
|
|
return m.Release
|
|
}
|
|
|
|
// SetRelease sets the Release property
|
|
func (m *VersionInfo) SetRelease(val string) {
|
|
m.Release = val
|
|
}
|
|
|
|
// GetSha returns the Sha property
|
|
func (m VersionInfo) GetSha() string {
|
|
return m.Sha
|
|
}
|
|
|
|
// SetSha sets the Sha property
|
|
func (m *VersionInfo) SetSha(val string) {
|
|
m.Sha = val
|
|
}
|