lib/api/voip/voip_models/pbx.go

121 lines
2.7 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 voip_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"
)
// Pbx pbx
//
// swagger:model Pbx
type Pbx struct {
// Telnexus Account ID
AccountID string `json:"AccountID,omitempty"`
// Backend ID
BackendID string `json:"BackendID,omitempty"`
// Billing Contact ID
BillingContact string `json:"BillingContact,omitempty"`
// Kazoo Billing ID
BillingID string `json:"BillingID,omitempty"`
// Kazoo Billing Mode
BillingMode string `json:"BillingMode,omitempty"`
// Call Restriction Record ID
CallRestrictionID string `json:"CallRestrictionID,omitempty"`
// Caller ID Emergency Name
CallerIDEmergencyName string `json:"CallerIdEmergencyName,omitempty"`
// Caller ID Emergency Number
CallerIDEmergencyNumber string `json:"CallerIdEmergencyNumber,omitempty"`
// Caller ID External Name
CallerIDExternalName string `json:"CallerIdExternalName,omitempty"`
// Caller ID External Number
CallerIDExternalNumber string `json:"CallerIdExternalNumber,omitempty"`
// Date Created
Created string `json:"Created,omitempty"`
// User Enabled?
Enabled bool `json:"Enabled,omitempty"`
// Telnexus ID
ID string `json:"ID,omitempty"`
// Is Account a Reseller?
IsReseller bool `json:"IsReseller,omitempty"`
// Kazoo Account Name
KazooAccountName string `json:"KazooAccountName,omitempty"`
// Kazoo PBX ID
KazooID string `json:"KazooID,omitempty"`
// Language
Language string `json:"Language,omitempty"`
// Default Music On Hold
MusicOnHold string `json:"MusicOnHold,omitempty"`
// PBX Name
Name string `json:"Name,omitempty"`
// PBX Realm
Realm string `json:"Realm,omitempty"`
// Reseller ID
ResellerID string `json:"ResellerID,omitempty"`
// Technical Contact
TechnicalContactID string `json:"TechnicalContactID,omitempty"`
// PBX Timezone
Timezone string `json:"Timezone,omitempty"`
}
// Validate validates this pbx
func (m *Pbx) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this pbx based on context it is used
func (m *Pbx) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Pbx) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Pbx) UnmarshalBinary(b []byte) error {
var res Pbx
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}