func (p *CloudFlareProvider) ApplyChanges(changes *plan.Changes) error {
	proxiedByDefault := p.proxiedByDefault

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

	combinedChanges = append(combinedChanges, newCloudFlareChanges(cloudFlareCreate, changes.Create, proxiedByDefault)...)
	combinedChanges = append(combinedChanges, newCloudFlareChanges(cloudFlareUpdate, changes.UpdateNew, proxiedByDefault)...)
	combinedChanges = append(combinedChanges, newCloudFlareChanges(cloudFlareDelete, changes.Delete, proxiedByDefault)...)

	return p.submitChanges(combinedChanges)
}
func (p *CloudFlareProvider) ApplyChanges(changes *plan.Changes) error {
	proxiedByDefault := p.proxiedByDefault

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

	combinedChanges = append(combinedChanges, newCloudFlareChanges(cloudFlareCreate, changes.Create, proxiedByDefault)...)
	combinedChanges = append(combinedChanges, newCloudFlareChanges(cloudFlareUpdate, changes.UpdateNew, proxiedByDefault)...)
	combinedChanges = append(combinedChanges, newCloudFlareChanges(cloudFlareDelete, changes.Delete, proxiedByDefault)...)

	return p.submitChanges(combinedChanges)
}
func ( p * CloudFlareProvider ) ApplyChanges ( changes * plan . Changes ) error { proxiedByDefault := p . proxiedByDefault combinedChanges := make ( [ ] * cloudFlareChange , 0 , len ( changes . Create ) + len ( changes . UpdateNew ) + len ( changes . Delete ) ) combinedChanges = append ( combinedChanges , newCloudFlareChanges ( cloudFlareCreate , changes . Create , proxiedByDefault ) ... ) combinedChanges = append ( combinedChanges , newCloudFlareChanges ( cloudFlareUpdate , changes . UpdateNew , proxiedByDefault ) ... ) combinedChanges = append ( combinedChanges , newCloudFlareChanges ( cloudFlareDelete , changes . Delete , proxiedByDefault ) ... ) 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 .