lib/api/isp/isp_models/zone.go

103 lines
2.2 KiB
Go
Raw Permalink 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"
)
// Zone zone
//
// swagger:model Zone
type Zone 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"`
// Expiration Date
ExpirationDate string `json:"ExpirationDate,omitempty"`
// The ID of the Host upon which this Zone is hosted
HostID string `json:"HostID,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// ID Protect?
IDProtect bool `json:"IDProtect,omitempty"`
// Last Modified By
LastModifiedByID string `json:"LastModifiedById,omitempty"`
// Last Modifed Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Auto Renew?
PeriodStartID bool `json:"PeriodStartID,omitempty"`
// ID of the Registar that owns this zone instance
RegistrarID string `json:"RegistrarID,omitempty"`
// Term
Term string `json:"Term,omitempty"`
// Zone Name
ZoneName string `json:"ZoneName,omitempty"`
}
// Validate validates this zone
func (m *Zone) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this zone based on context it is used
func (m *Zone) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Zone) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Zone) UnmarshalBinary(b []byte) error {
var res Zone
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}