func (auth *ASMAuthResource) ApplyTransition(nextState resourcestatus.ResourceStatus) error {
	transitionFunc, ok := auth.resourceStatusToTransitionFunction[nextState]
	if !ok {
		return errors.Errorf("resource [%s]: transition to %s impossible", auth.GetName(),
			auth.StatusString(nextState))
	}
	return transitionFunc()
}
func (auth *ASMAuthResource) ApplyTransition(nextState resourcestatus.ResourceStatus) error {
	transitionFunc, ok := auth.resourceStatusToTransitionFunction[nextState]
	if !ok {
		return errors.Errorf("resource [%s]: transition to %s impossible", auth.GetName(),
			auth.StatusString(nextState))
	}
	return transitionFunc()
}
func ( auth * ASMAuthResource ) ApplyTransition ( nextState resourcestatus . ResourceStatus ) error { transitionFunc , ok := auth . resourceStatusToTransitionFunction [ nextState ] if ! ok { return errors . Errorf ( " " , auth . GetName ( ) , auth . StatusString ( nextState ) ) } return transitionFunc ( ) }
// ApplyTransition calls the function required to move to the specified status
ApplyTransition calls the function required to move to the specified status