cloud/azure/resource/models/template_link.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/validate"
)
// TemplateLink Entity representing the reference to the template.
// swagger:model TemplateLink
type TemplateLink struct {
// If included, must match the ContentVersion in the template.
ContentVersion string `json:"contentVersion,omitempty"`
// The URI of the template to deploy.
// Required: true
URI *string `json:"uri"`
}
// Validate validates this template link
func (m *TemplateLink) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateURI(formats); err != nil {
// prop
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *TemplateLink) validateURI(formats strfmt.Registry) error {
if err := validate.Required("uri", "body", m.URI); err != nil {
return err
}
return nil
}