mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* Consolidating route type utilization Fixes: #197 * Adding --version to fn init CLI command * Updating functions_go to 0.1.36 * Updating route init process * Updating tests * Adding "memory" CLI flag to fn run * Make CLI memory flag override what's in func.yaml * Get rid of default value for memory flag * Revert UX impact func.yaml remains the same, no nested maps
75 lines
1.7 KiB
Go
75 lines
1.7 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package models
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
strfmt "github.com/go-openapi/strfmt"
|
|
|
|
"github.com/go-openapi/errors"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// Call call
|
|
// swagger:model Call
|
|
type Call struct {
|
|
|
|
// App name that is assigned to a route that is being executed.
|
|
// Read Only: true
|
|
AppName string `json:"app_name,omitempty"`
|
|
|
|
// Time when call completed, whether it was successul or failed. Always in UTC.
|
|
// Read Only: true
|
|
CompletedAt strfmt.DateTime `json:"completed_at,omitempty"`
|
|
|
|
// Time when call was submitted. Always in UTC.
|
|
// Read Only: true
|
|
CreatedAt strfmt.DateTime `json:"created_at,omitempty"`
|
|
|
|
// Call UUID ID.
|
|
// Read Only: true
|
|
ID string `json:"id,omitempty"`
|
|
|
|
// App route that is being executed.
|
|
// Read Only: true
|
|
Path string `json:"path,omitempty"`
|
|
|
|
// Time when call started execution. Always in UTC.
|
|
// Read Only: true
|
|
StartedAt strfmt.DateTime `json:"started_at,omitempty"`
|
|
|
|
// Call execution status.
|
|
// Read Only: true
|
|
Status string `json:"status,omitempty"`
|
|
}
|
|
|
|
// Validate validates this call
|
|
func (m *Call) Validate(formats strfmt.Registry) error {
|
|
var res []error
|
|
|
|
if len(res) > 0 {
|
|
return errors.CompositeValidationError(res...)
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *Call) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *Call) UnmarshalBinary(b []byte) error {
|
|
var res Call
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|