func (p *AlibabaCloudProvider) applyChangesForPrivateZone(changes *plan.Changes) error {
	log.Infof("ApplyChanges to Alibaba Cloud Private Zone: %++v", *changes)

	zones, err := p.getPrivateZones()
	if err != nil {
		return err
	}

	for zoneName, zone := range zones {
		log.Debugf("%s: %++v", zoneName, zone)
	}

	p.createPrivateZoneRecords(zones, changes.Create)
	p.deletePrivateZoneRecords(zones, changes.Delete)
	p.updatePrivateZoneRecords(zones, changes.UpdateNew)
	return nil
}
func (p *AlibabaCloudProvider) applyChangesForPrivateZone(changes *plan.Changes) error {
	log.Infof("ApplyChanges to Alibaba Cloud Private Zone: %++v", *changes)

	zones, err := p.getPrivateZones()
	if err != nil {
		return err
	}

	for zoneName, zone := range zones {
		log.Debugf("%s: %++v", zoneName, zone)
	}

	p.createPrivateZoneRecords(zones, changes.Create)
	p.deletePrivateZoneRecords(zones, changes.Delete)
	p.updatePrivateZoneRecords(zones, changes.UpdateNew)
	return nil
}
func ( p * AlibabaCloudProvider ) applyChangesForPrivateZone ( changes * plan . Changes ) error { log . Infof ( " " , * changes ) zones , err := p . getPrivateZones ( ) if err != nil { return err } for zoneName , zone := range zones { log . Debugf ( " " , zoneName , zone ) } p . createPrivateZoneRecords ( zones , changes . Create ) p . deletePrivateZoneRecords ( zones , changes . Delete ) p . updatePrivateZoneRecords ( zones , changes . UpdateNew ) return nil }
// ApplyChanges applies the given changes.
//
// Returns nil if the operation was successful or an error if the operation failed.
ApplyChanges applies the given changes . Returns nil if the operation was successful or an error if the operation failed .