cloud/azure/resource/models/parameters_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"
)
// ParametersLink Entity representing the reference to the deployment paramaters.
// swagger:model ParametersLink
type ParametersLink struct {
// If included, must match the ContentVersion in the template.
ContentVersion string `json:"contentVersion,omitempty"`
// The URI of the parameters file.
// Required: true
URI *string `json:"uri"`
}
// Validate validates this parameters link
func (m *ParametersLink) 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 *ParametersLink) validateURI(formats strfmt.Registry) error {
if err := validate.Required("uri", "body", m.URI); err != nil {
return err
}
return nil
}