cloud/azure/resource/models/resource_group_export_result.go
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
"github.com/go-openapi/swag"
)
// ResourceGroupExportResult resource group export result
// swagger:model ResourceGroupExportResult
type ResourceGroupExportResult struct {
// The error.
Error *ResourceManagementErrorWithDetails `json:"error,omitempty"`
// The template content.
Template interface{} `json:"template,omitempty"`
}
// Validate validates this resource group export result
func (m *ResourceGroupExportResult) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateError(formats); err != nil {
// prop
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ResourceGroupExportResult) validateError(formats strfmt.Registry) error {
if swag.IsZero(m.Error) { // not required
return nil
}
if m.Error != nil {
if err := m.Error.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("error")
}
return err
}
}
return nil
}