mirror of https://github.com/vernonkeenan/lib
142 lines
3.4 KiB
Go
142 lines
3.4 KiB
Go
// 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"
|
|
)
|
|
|
|
// Endpoint endpoint
|
|
//
|
|
// swagger:model Endpoint
|
|
type Endpoint struct {
|
|
|
|
// Asset ID
|
|
AssetID string `json:"AssetID,omitempty"`
|
|
|
|
// Call Forwarding Record ID
|
|
CallForwardID string `json:"CallForwardID,omitempty"`
|
|
|
|
// Call Restriction Record ID
|
|
CallRestrictionID string `json:"CallRestrictionID,omitempty"`
|
|
|
|
// Endpoint CNAM Override
|
|
CallerIDOverride string `json:"CallerIdOverride,omitempty"`
|
|
|
|
// Telnexus Contact ID
|
|
ContactID string `json:"ContactID,omitempty"`
|
|
|
|
// Device Type
|
|
DeviceType string `json:"DeviceType,omitempty"`
|
|
|
|
// Dial Plan
|
|
DialPlan string `json:"DialPlan,omitempty"`
|
|
|
|
// Do Not Disturb
|
|
DoNotDisturb string `json:"DoNotDisturb,omitempty"`
|
|
|
|
// Do Not Disturb Enabled?
|
|
DoNotDisturbEnabled bool `json:"DoNotDisturbEnabled,omitempty"`
|
|
|
|
// Endpoint Enabled?
|
|
Enabled bool `json:"Enabled,omitempty"`
|
|
|
|
// Endpoint Name
|
|
EndpointName string `json:"EndpointName,omitempty"`
|
|
|
|
// Exclude From Queues?
|
|
ExcludeFromQueues bool `json:"ExcludeFromQueues,omitempty"`
|
|
|
|
// Telnexus Record ID
|
|
ID string `json:"ID,omitempty"`
|
|
|
|
// Kazoo Endpoint ID
|
|
KazooEndpointID string `json:"KazooEndpointID,omitempty"`
|
|
|
|
// Endpoint Language Override
|
|
Language string `json:"Language,omitempty"`
|
|
|
|
// MAC Address
|
|
MacAddress string `json:"MacAddress,omitempty"`
|
|
|
|
// Music On Hold Override
|
|
MusicOnHold string `json:"MusicOnHold,omitempty"`
|
|
|
|
// Kazoo MOH Media ID
|
|
MusicOnHoldMediaID string `json:"MusicOnHoldMediaID,omitempty"`
|
|
|
|
// MWI Unassociated Updates?
|
|
MwiUnassociatedUpdates bool `json:"MwiUnassociatedUpdates,omitempty"`
|
|
|
|
// Kazoo Owner ID
|
|
OwnerID string `json:"OwnerID,omitempty"`
|
|
|
|
// Telnexus PBX ID
|
|
PbxID string `json:"PbxID,omitempty"`
|
|
|
|
// Presence ID
|
|
PresenceID string `json:"PresenceID,omitempty"`
|
|
|
|
// Provisioning Record ID
|
|
ProvisionID string `json:"ProvisionID,omitempty"`
|
|
|
|
// Register Overwrite Notify?
|
|
RegisterOverwriteNotify bool `json:"RegisterOverwriteNotify,omitempty"`
|
|
|
|
// Endpoint Ringtones
|
|
Ringtones string `json:"Ringtones,omitempty"`
|
|
|
|
// Ringtones External
|
|
RingtonesExternal string `json:"RingtonesExternal,omitempty"`
|
|
|
|
// Ringtones Internal
|
|
RingtonesInternal string `json:"RingtonesInternal,omitempty"`
|
|
|
|
// SIP Information Record ID
|
|
SipID string `json:"SipID,omitempty"`
|
|
|
|
// Suppress Unregister Notifications?
|
|
SuppressUnregisterNotifications bool `json:"SuppressUnregisterNotifications,omitempty"`
|
|
|
|
// Endpoint Timezone Override
|
|
Timezone string `json:"Timezone,omitempty"`
|
|
}
|
|
|
|
// Validate validates this endpoint
|
|
func (m *Endpoint) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this endpoint based on context it is used
|
|
func (m *Endpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *Endpoint) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *Endpoint) UnmarshalBinary(b []byte) error {
|
|
var res Endpoint
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|