// Code generated by go-swagger; DO NOT EDIT.

// All Code Copyright(c) 2018-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed

package regs_models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// Backend backend
//
// swagger:model Backend
type Backend struct {

	// apikey
	APIKey string `json:"APIKey,omitempty"`

	// The Account that owns this Backend
	AccountID string `json:"AccountID,omitempty"`

	// Active
	Active bool `json:"Active,omitempty"`

	// Used to identify the State were required
	ApplicationName string `json:"ApplicationName,omitempty"`

	// Authentication Type
	AuthType string `json:"AuthType,omitempty"`

	// Backend Name
	BackendName string `json:"BackendName,omitempty"`

	// base_url
	BaseURL string `json:"BaseURL,omitempty"`

	// callback_url
	CallbackURL string `json:"CallbackURL,omitempty"`

	// client_id
	ClientID string `json:"ClientID,omitempty"`

	// client_secret
	ClientSecret string `json:"ClientSecret,omitempty"`

	// Company
	CompanyID string `json:"CompanyID,omitempty"`

	// Database object creation user
	CreatedByID string `json:"CreatedByID,omitempty"`

	// Database object creation date
	CreatedDate string `json:"CreatedDate,omitempty"`

	// Description
	Description string `json:"Description,omitempty"`

	// Taxnexus Record Id Only; not used in POST
	ID string `json:"ID,omitempty"`

	// Database object modification user
	LastModifiedByID string `json:"LastModifiedByID,omitempty"`

	// Database object modification date
	LastModifiedDate string `json:"LastModifiedDate,omitempty"`

	// login_url
	LoginURL string `json:"LoginURL,omitempty"`

	// Management Password
	ManagementPassword string `json:"ManagementPassword,omitempty"`

	// Management URL
	ManagementURL string `json:"ManagementURL,omitempty"`

	// Management Username
	ManagementUsername string `json:"ManagementUsername,omitempty"`

	// MetrcLicense
	MetrcLicense string `json:"MetrcLicense,omitempty"`

	// MetrcState
	MetrcState string `json:"MetrcState,omitempty"`

	// Ownerid
	OwnerID string `json:"OwnerID,omitempty"`

	// password
	Password string `json:"Password,omitempty"`

	// project_id
	ProjectID string `json:"ProjectID,omitempty"`

	// Provider Credentials
	ProviderCredentials string `json:"ProviderCredentials,omitempty"`

	// realm
	Realm string `json:"Realm,omitempty"`

	// Source System identifier for this record, if any
	Ref string `json:"Ref,omitempty"`

	// Resellerbackendid
	ResellerBackendID string `json:"ResellerBackendID,omitempty"`

	// security_token
	SecurityToken string `json:"SecurityToken,omitempty"`

	// Tenant that owns this object instance
	TenantID string `json:"TenantID,omitempty"`

	// Timeout
	Timeout int64 `json:"Timeout,omitempty"`

	// token_uri
	TokenURI string `json:"TokenURI,omitempty"`

	// Type
	Type string `json:"Type,omitempty"`

	// username
	Username string `json:"Username,omitempty"`

	// Backend Vendor Name
	Vendor string `json:"Vendor,omitempty"`
}

// Validate validates this backend
func (m *Backend) Validate(formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *Backend) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *Backend) UnmarshalBinary(b []byte) error {
	var res Backend
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
