cloud/azure/resource/models/alias_path_type.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"
)
// AliasPathType The type of the paths for alias.
// swagger:model AliasPathType
type AliasPathType struct {
// The API versions.
APIVersions []string `json:"apiVersions"`
// The path of an alias.
Path string `json:"path,omitempty"`
}
// Validate validates this alias path type
func (m *AliasPathType) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAPIVersions(formats); err != nil {
// prop
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *AliasPathType) validateAPIVersions(formats strfmt.Registry) error {
if swag.IsZero(m.APIVersions) { // not required
return nil
}
return nil
}