mirror of
https://github.com/openziti/zrok.git
synced 2024-12-23 23:29:22 +01:00
69 lines
1.4 KiB
Go
69 lines
1.4 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package rest_model_zrok
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// Service service
|
|
//
|
|
// swagger:model service
|
|
type Service struct {
|
|
|
|
// active
|
|
Active bool `json:"active,omitempty"`
|
|
|
|
// backend
|
|
Backend string `json:"backend,omitempty"`
|
|
|
|
// created at
|
|
CreatedAt string `json:"createdAt,omitempty"`
|
|
|
|
// frontend
|
|
Frontend string `json:"frontend,omitempty"`
|
|
|
|
// updated at
|
|
UpdatedAt string `json:"updatedAt,omitempty"`
|
|
|
|
// ziti service Id
|
|
ZitiServiceID string `json:"zitiServiceId,omitempty"`
|
|
|
|
// zrok service Id
|
|
ZrokServiceID string `json:"zrokServiceId,omitempty"`
|
|
}
|
|
|
|
// Validate validates this service
|
|
func (m *Service) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this service based on context it is used
|
|
func (m *Service) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *Service) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *Service) UnmarshalBinary(b []byte) error {
|
|
var res Service
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|