zrok/rest_model_zrok/service.go
Michael Quigley 1632422b37
overview spec
2022-08-03 14:36:40 -04:00

63 lines
1.3 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"`
// created at
CreatedAt string `json:"createdAt,omitempty"`
// endpoint
Endpoint string `json:"endpoint,omitempty"`
// updated at
UpdatedAt string `json:"updatedAt,omitempty"`
// ziti service Id
ZitiServiceID string `json:"zitiServiceId,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
}