cloud/azure/compute/models/virtual_machine_scale_set_list_with_link_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/swag"
"github.com/go-openapi/errors"
"github.com/go-openapi/validate"
)
// VirtualMachineScaleSetListWithLinkResult The List Virtual Machine operation response.
// swagger:model VirtualMachineScaleSetListWithLinkResult
type VirtualMachineScaleSetListWithLinkResult struct {
// The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets.
NextLink string `json:"nextLink,omitempty"`
// The list of virtual machine scale sets.
// Required: true
Value []*VirtualMachineScaleSet `json:"value"`
}
// Validate validates this virtual machine scale set list with link result
func (m *VirtualMachineScaleSetListWithLinkResult) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateValue(formats); err != nil {
// prop
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *VirtualMachineScaleSetListWithLinkResult) validateValue(formats strfmt.Registry) error {
if err := validate.Required("value", "body", m.Value); err != nil {
return err
}
for i := 0; i < len(m.Value); i++ {
if swag.IsZero(m.Value[i]) { // not required
continue
}
if m.Value[i] != nil {
if err := m.Value[i].Validate(formats); err != nil {
return err
}
}
}
return nil
}