cloud/azure/resource/models/resources_move_info.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"
)
// ResourcesMoveInfo Parameters of move resources.
// swagger:model ResourcesMoveInfo
type ResourcesMoveInfo struct {
// The IDs of the resources.
Resources []string `json:"resources"`
// The target resource group.
TargetResourceGroup string `json:"targetResourceGroup,omitempty"`
}
// Validate validates this resources move info
func (m *ResourcesMoveInfo) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateResources(formats); err != nil {
// prop
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *ResourcesMoveInfo) validateResources(formats strfmt.Registry) error {
if swag.IsZero(m.Resources) { // not required
return nil
}
return nil
}