lib/api/voip/voip_models/vm_box.go

94 lines
2.1 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"
)
// VMBox Vm box
//
// swagger:model VmBox
type VMBox struct {
// Check if VM owner is owner of endpoint
CheckIfOwner bool `json:"CheckIfOwner,omitempty"`
// Delete VM after notification
DeleteAfterNotify bool `json:"DeleteAfterNotify,omitempty"`
// Telnexus Record ID
ID string `json:"ID,omitempty"`
// Is this VM Box setup?
IsSetup bool `json:"IsSetup,omitempty"`
// Kazoo Mailbox Id
KazooID string `json:"KazooID,omitempty"`
// Kazoo User Id
KazooOwnerID string `json:"KazooOwnerID,omitempty"`
// Kazoo Mailbox Number
MailboxNumber string `json:"MailboxNumber,omitempty"`
// Mailbox Name
Name string `json:"Name,omitempty"`
// Not Configurable?
NotConfigurable bool `json:"NotConfigurable,omitempty"`
// Telnexus PBX ID
PbxID string `json:"PbxID,omitempty"`
// Require PIN?
RequirePIN bool `json:"RequirePIN,omitempty"`
// Save after notify?
SaveAfterNotify bool `json:"SaveAfterNotify,omitempty"`
// Skip Greeting?
SkipGreeting bool `json:"SkipGreeting,omitempty"`
// Skip Instructions?
SkipInstructions bool `json:"SkipInstructions,omitempty"`
}
// Validate validates this Vm box
func (m *VMBox) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this Vm box based on context it is used
func (m *VMBox) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *VMBox) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *VMBox) UnmarshalBinary(b []byte) error {
var res VMBox
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}