lib/api/voip/voip_models/pbx_user.go

109 lines
2.4 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"
)
// PbxUser pbx user
//
// swagger:model PbxUser
type PbxUser struct {
// Call Restriction Record ID
CallRestrictionID string `json:"CallRestrictionID,omitempty"`
// CNAM Override
CallerID string `json:"CallerID,omitempty"`
// Telnexus Contact ID
ContactID string `json:"ContactID,omitempty"`
// Email Address
Email string `json:"Email,omitempty"`
// Enabled?
Enabled bool `json:"Enabled,omitempty"`
// Fax To Email Enabled?
FaxToEmailEnabled bool `json:"FaxToEmailEnabled,omitempty"`
// First Name
FirstName string `json:"FirstName,omitempty"`
// Telnexus ID
ID string `json:"ID,omitempty"`
// Language
Language string `json:"Language,omitempty"`
// Last Name
LastName string `json:"LastName,omitempty"`
// Telnexus PBX ID
PbxID string `json:"PbxID,omitempty"`
// Privilege Level
PrivLevel string `json:"PrivLevel,omitempty"`
// RecordCall?
RecordCall bool `json:"RecordCall,omitempty"`
// Require Passoword Update?
RequirePasswordUpdate bool `json:"RequirePasswordUpdate,omitempty"`
// Timezone
Timezone string `json:"Timezone,omitempty"`
// Kazoo User ID
UserID string `json:"UserID,omitempty"`
// Kazoo Username
UserName string `json:"UserName,omitempty"`
// Verified?
Verified bool `json:"Verified,omitempty"`
// Voice Mail to Email Enabled?
VMToEmailEnabled bool `json:"VmToEmailEnabled,omitempty"`
}
// Validate validates this pbx user
func (m *PbxUser) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this pbx user based on context it is used
func (m *PbxUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *PbxUser) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PbxUser) UnmarshalBinary(b []byte) error {
var res PbxUser
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}