func (p *RcodeZeroProvider) ApplyChanges(changes *plan.Changes) error {

	combinedChanges := make([]*rc0.RRSetChange, 0, len(changes.Create)+len(changes.UpdateNew)+len(changes.Delete))

	combinedChanges = append(combinedChanges, p.NewRcodezeroChanges(rc0.ChangeTypeADD, changes.Create)...)
	combinedChanges = append(combinedChanges, p.NewRcodezeroChanges(rc0.ChangeTypeUPDATE, changes.UpdateNew)...)
	combinedChanges = append(combinedChanges, p.NewRcodezeroChanges(rc0.ChangeTypeDELETE, changes.Delete)...)

	return p.submitChanges(combinedChanges)
}
func (p *RcodeZeroProvider) ApplyChanges(changes *plan.Changes) error {

	combinedChanges := make([]*rc0.RRSetChange, 0, len(changes.Create)+len(changes.UpdateNew)+len(changes.Delete))

	combinedChanges = append(combinedChanges, p.NewRcodezeroChanges(rc0.ChangeTypeADD, changes.Create)...)
	combinedChanges = append(combinedChanges, p.NewRcodezeroChanges(rc0.ChangeTypeUPDATE, changes.UpdateNew)...)
	combinedChanges = append(combinedChanges, p.NewRcodezeroChanges(rc0.ChangeTypeDELETE, changes.Delete)...)

	return p.submitChanges(combinedChanges)
}
func ( p * RcodeZeroProvider ) ApplyChanges ( changes * plan . Changes ) error { combinedChanges := make ( [ ] * rc0 . RRSetChange , 0 , len ( changes . Create ) + len ( changes . UpdateNew ) + len ( changes . Delete ) ) combinedChanges = append ( combinedChanges , p . NewRcodezeroChanges ( rc0 . ChangeTypeADD , changes . Create ) ... ) combinedChanges = append ( combinedChanges , p . NewRcodezeroChanges ( rc0 . ChangeTypeUPDATE , changes . UpdateNew ) ... ) combinedChanges = append ( combinedChanges , p . NewRcodezeroChanges ( rc0 . ChangeTypeDELETE , changes . Delete ) ... ) return p . submitChanges ( combinedChanges ) }
// ApplyChanges applies a given set of changes in a given zone.
ApplyChanges applies a given set of changes in a given zone .