func NewGetDiagnosticsConfirmation() *GetDiagnosticsConfirmation {
	return &GetDiagnosticsConfirmation{}
}
Creates a new GetDiagnosticsConfirmation, containing all required fields. Optional fields may be set afterwards.
package firmware
import (
	"github.com/lorenzodonini/ocpp-go/ocpp1.6/types"
	"reflect"
)
const GetDiagnosticsFeatureName = "GetDiagnostics"
type GetDiagnosticsRequest struct {
	Location      string          `json:"location" validate:"required,uri"`
	Retries       *int            `json:"retries,omitempty" validate:"omitempty,gte=0"`
	RetryInterval *int            `json:"retryInterval,omitempty" validate:"omitempty,gte=0"`
	StartTime     *types.DateTime `json:"startTime,omitempty"`
	EndTime       *types.DateTime `json:"endTime,omitempty"`
}
type GetDiagnosticsConfirmation struct {
	FileName string `json:"fileName,omitempty" validate:"max=255"`
}
type GetDiagnosticsFeature struct{}
func (f GetDiagnosticsFeature) GetFeatureName() string {
	return GetDiagnosticsFeatureName
}
func (f GetDiagnosticsFeature) GetRequestType() reflect.Type {
	return reflect.TypeOf(GetDiagnosticsRequest{})
}
func (f GetDiagnosticsFeature) GetResponseType() reflect.Type {
	return reflect.TypeOf(GetDiagnosticsConfirmation{})
}
func (r GetDiagnosticsRequest) GetFeatureName() string {
	return GetDiagnosticsFeatureName
}
func (c GetDiagnosticsConfirmation) GetFeatureName() string {
	return GetDiagnosticsFeatureName
}
func NewGetDiagnosticsRequest(location string) *GetDiagnosticsRequest {
	return &GetDiagnosticsRequest{Location: location}
}