lib/api/isp/isp_models/registrar.go

88 lines
1.9 KiB
Go
Raw Normal View History

2021-07-31 03:05:02 +00:00
// Code generated by go-swagger; DO NOT EDIT.
// (c) 2012-2020 by Telnexus LLC
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package isp_models
// 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"
)
// Registrar registrar
//
// swagger:model Registrar
type Registrar struct {
// Account
AccountID string `json:"AccountID,omitempty"`
// Contact
ContactID string `json:"ContactID,omitempty"`
// Created By
CreatedByID string `json:"CreatedById,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
// End Date
DateEnd string `json:"DateEnd,omitempty"`
// Start Date
DateStart string `json:"DateStart,omitempty"`
// Description
Description string `json:"Description,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// Last Modified By
LastModifiedByID string `json:"LastModifiedById,omitempty"`
// Last Modifed Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Registrar Name
RegistrarName string `json:"RegistrarName,omitempty"`
// Registrar URL
URL string `json:"URL,omitempty"`
}
// Validate validates this registrar
func (m *Registrar) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this registrar based on context it is used
func (m *Registrar) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Registrar) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Registrar) UnmarshalBinary(b []byte) error {
var res Registrar
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}